How to retrieve candle size for strategy
#2
Hi Peter,

you can do this with the help of the tradingAdvisor.


Code:
var config = require ('../core/util.js').getConfig();

 this.requiredHistory     = config.tradingAdvisor.historySize;
 this.setCandleSize    = config.tradingAdvisor.candleSize;
 console.log("candleSize: "+this.setCandleSize+", history: "+this.requiredHistory);


Another way to use the different candle sizes similar to the way you worked with different periods of the same indicator before, you could do a multiple timeframe approach. There are strategies incorporating this approach here on this forum.

Regards,
Rainer
  Reply


Messages In This Thread
RE: How to retrieve candle size for strategy - by rengel - 09-10-2019, 09:39 AM

Forum Jump:


Users browsing this thread: