use of com.github.jnidzwetzki.cryptobot.strategy.indicator.DonchianChannelLower in project crypto-bot by jnidzwetzki.
the class DonchianBot method getLowerChannelValue.
/**
* Get the lower channel value
* @param currencyPair
* @return
*/
private Decimal getLowerChannelValue(final BitfinexCurrencyPair currencyPair) {
final TimeSeries currencyTimeSeries = timeSeries.get(currencyPair);
final MinPriceIndicator minPrice = new MinPriceIndicator(currencyTimeSeries);
final DonchianChannelLower donchianChannelLower = new DonchianChannelLower(minPrice, periodOut);
return donchianChannelLower.getValue(currencyTimeSeries.getEndIndex());
}
Aggregations