Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Convert calculated BBANDS indicator into double Type http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57716 |
Page 1 of 1 |
Author: | powerof618 [ Wed 22 Sep, 2021, 12:28 ] |
Post subject: | Convert calculated BBANDS indicator into double Type |
Hello, I want to build a strategy with the BBANDS indicator on a 10 Pip RangeBarChart, but I don´t know, how to get the values of the indicator. With the RSI indicator I did it this way and it worked fine: Object[] rsiObjectsFeed = indicators.calculateIndicator(feedDescriptor, new OfferSide[]{myOfferSide}, "RSI", I tried to do it the similar way with the BBANDS indicator. Object[] bbandsUniversal = indicators.calculateIndicator( Compilation is successful, but it doesn´t work. There are no values shown in the message tab. How can I convert the "Object[] bbandsUniversal" into a double type, so I get the values of the different Bands? |
Author: | vadim_berezhnoj [ Wed 29 Sep, 2021, 10:16 ] |
Post subject: | Re: Convert calculated BBANDS indicator into double Type |
Hello One value is returned for each output when indicator calculated by shift: Object[] bbandsUniversal = indicators.calculateIndicator( Array with size corresponding to amount of candles is returned for each output when indicator calculated by candles range: Object[] bbandsUniversal = indicators.calculateIndicator( |
Page 1 of 1 |