Wonder if any of you can help me.
I have a pit session OHL/C for current and prior day - It plots session OHLC for a defined pit session even when on 24hour Globex charts.
It works OK but I have to allow for an offset of the chart bar period when inputting the start/end time. This is a bit of a pain when I change the period of a chart, because I have to then go into the indicator and change the setting, then change back when I change the chart period back...
As an example, if the pit opens at 0900 and closes at 1430, and I am on a 5minute chart, I have to input 0905 as the open time and 1435 as the close time, if I am on a 1minute chart then I have to input 0901 and 1431 etc etc - I would prefer being able to simply input the correct actual times, then I could freely change chart period without amending the indicator settings each time.
Can some sort of offset be put into the code? So that the code accounts for the charts period of bar automatically.
Appreciate it if someone can help me do this. Thank-you
Comment