Forum Topics not found
ctid1032297 07 Mar 2019, 17:33
cAlgo_Development said:
We added new functionality to cAlgo - the ability for robots and indicators to retrieve OHLCV data for multiple timeframes. This can be done using the MarketData.GetSeries method: MarketSeries m5series = MarketData.GetSeries(TimeFrame.Minute5); We recommend to call the GetSeries method in the Robot.OnStart() or the Indicator.Initialize() methods. When the series for a specified timeframe is received, you can access the series values or build an indicator based on that series: private MarketSeries m10; private MovingAverage ma; protected override void OnStart() { m10 = MarketData.GetSeries(TimeFrame.Minute10); ma = Indicators.SimpleMovingAverage(m10.High, 14); } The new version of our Demo cTrader and cAlgo is released and can be downloaded from www.spotware.com Update: Backtesting of Multi-timeframe robots is supported now.
We added new functionality to cAlgo - the ability for robots and indicators to retrieve OHLCV data for multiple timeframes. This can be done using the MarketData.GetSeries method:
MarketSeries m5series = MarketData.GetSeries(TimeFrame.Minute5);
We recommend to call the GetSeries method in the Robot.OnStart() or the Indicator.Initialize() methods.
When the series for a specified timeframe is received, you can access the series values or build an indicator based on that series:
private MarketSeries m10; private MovingAverage ma; protected override void OnStart() { m10 = MarketData.GetSeries(TimeFrame.Minute10); ma = Indicators.SimpleMovingAverage(m10.High, 14); }
The new version of our Demo cTrader and cAlgo is released and can be downloaded from www.spotware.com
Update: Backtesting of Multi-timeframe robots is supported now.
Is it possible to call this but not for one of the time based timeframes? I.e Range bars?
ctid1032297
07 Mar 2019, 17:33
RE:
cAlgo_Development said:
Is it possible to call this but not for one of the time based timeframes? I.e Range bars?
@ctid1032297