Print("Current strategy chart is a "+BarsPeriod.Value+" "+BarsPeriod.Id);
load the cs to a 1 min chart
it will print 'Current strategy chart is a 1 Minute'
change the interval to a 1000 volume
it will print 'Current strategy chart is a 1 Minute'
change the interval to a 60 second
it will print 'Current strategy chart is a 1000 volume'
Clearly NT runs the strategy BEFORE it changes the interval
so what? well if you are checking the BarsPeriod.Value and BarsPeriod.Id before adding a barseries, you will get the wrong information and add or not add the barseries
Obviously the fix is to F5 refresh the chart after changing the interval to make sure you are adding the barseries
Question: why does NT not add the strategy AFTER changing the interval? Seems to me if the user wants to change the interval then the user wants the strategy run on the new interval and not on the old interval
Comment