i know that the S&P 500 future (ES) is quoting 24/24h, when i look at the chart on daily from my provider (CQG) i have the daily chart with the quotation of the NY's pit (from 9 am to 6 pm or something like that)
if a want a daily chart 24/24h i put the chart on 1440 minutes.
My question is :
in my script, i would like to call the daily open of today.
if i call CurrentDayOHL().CurrentOpen[0] i get the open of midnight of the current day, not the one of 9am NY times.
If i call Bars.GetDayBar(0).Open it is not working (i think the code is wrong).
If i call Opens[1][0] (with Add (PeriodType.Day,1); on the Initialize) it call the open of yesterday.
So, how to call the daily open of NY pit sent by CQG that i see on daily chart ?
I you can help.
Thx
Comment