I have a strategy with two instruments:
BarsInProgress 0---> 1 tick
BarsInProgress 1--> Daily
Why I never enter into "if(BarsInProgress==1)" (please see below) if I run the strategy from Strategy TAB but
I enter successfully into "if(BarsInProgress==1)" if I run the strategy using Strategy Analyzer?
Thank You
GB
protectedoverridevoid Initialize()
{
Add(PeriodType.Day,1);
}
protectedoverridevoid OnBarUpdate()
{
if(BarsInProgress==1){
Print(" BarsInProgress==1 ")
return;
}
}

Comment