protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
{
if(BarsInProgress == 1)
{
//logic for timeframe 1
}
if(BarsInProgress == 2)
{
//logic for timeframe 2
}
}
Assuming that in this case two additional dataseries are loaded into the strategy.
Comment