I am trying to find the US open price, the same code to be used on the 1m and the 30m chart. I find there is a difference in price. Could one of you geniuses guide me as to how I get them to be the same, please?
Below is the code I’m using.
if time=093000 then
US=open
endif
Many thanks,
RR
Hi! I'll give you a few examples. It depends on whether you trade stocks or futures/forex.
if opentime>=093000 and day<>day[1] then
us1=open
endif
if intradaybarindex=0 then
us2=open
endif
if opentime>=093000 and opentime[1]<093000 then
us3=open
endif
return us1, us2, us3
Thanks, Ivan- I will give them a try.
RR
Prefect -Again, thank you, Ivan