In my strategy I have added daily bar as secondary bar to store daily OHLC prices and I am running this strategy on 1 min chart. In backtest this works fine but in live Ninja generates 1 min bar but it doesn't generate daily bar. Following is a sample code
if(BarsInProgress == 1 )
{
Log("Daily bar", LogLevel.Information) ;
//Calculations for daily bar
}
if(BarsInProgress == 0 )
{
Log("1 Min bar", LogLevel.Information) ;
//Calculations for 1 min bar
}
Thanks,
Comment