Hi,
I need some help coding the following
For a 24 hour market for Germany 30 and for timeframes of 30 min and 15 mins I need to display yesterday’s price at 12:00
Thanks in advance
if time = 120000 then
a = close
endif
return a
The above will work on any time frame faster than daily.
Perfect thats exactly what I needed
thanks
One more question – same set up ie Germany 30 and 15 min chart
If the time currently is greater than 11:00am how do I find the low between 07:00 and 08:00?
Thanks
if time = 064500 then
highprice = close
lowprice = close
endif
if time >= 070000 and time < 081500 then
highprice = max(highprice, high)
lowprice = min(lowprice, low)
endif
return highprice as "Highest Price", lowprice as "Lowest Price"
thanks once again for your swift and perfect response – saved me a lot of time