I have created a session template that matches the pit session so it runs from 9:00am to 4:15 pm EST.
It is an intraday strategy so I have added the second period in the Initilize like so:
protected override void Initialize()
Add(Period.Type.Day,1);
Then in the On Bar Update I have added:
if(Bars in Progress ==1)
this.curATR=ATR(this.curATRPeriod[0];
When I set the ATR period to 1 the ATR shown in my Strategy matches the Atr(1) on the ES chart. As soon as I add a value greater than 1 I get values in my strategy different than those expressed on the chart.
For example. on the ES 06-16 for May 5, 2016 on the chart with a 2 day ATR The chart indicates 22.13.In my strategy it indicates a value of 23.75
I have attached the chart and data window over the output window where the strategy indicates the ATR Value
Comment