Hi all,
i need to know data related to first bar of the day, or its BARINDEX
The code:
If time = 000000 then
MyHI = high
MyLO = low
Endif
Return MyHI as “high”,MyLO as “low”
do work, but only if a bar does exist at 000000. For some reason in PRT charts in the US future markets some bars are missing (for instance monday may start at 6:30).
How to get the first bar of the day after 00:00:00 event if a bar at 00:00:00 does not exist?
If dayofweek[0] <> dayofweek[1]
then firstBarOfTheDay = BARINDEX
Endif
Return firstBarOfTheDay
but this does not work for me.
Sorry for the bad formatting….
TIA
Roberto
…. a bit of help about how to insert formatted code in a post will be appreciated too!
Hello.
I have moved your query to the English forum. Remember to write in the language of your chosen forum.
Regarding how to insert code, by default I always post in the forum with the code option, instead of visual.
Here you can click on the Add PRT Code button to add code (see screenshot).
regarding your main question:
You can use intradaybarindex
if intradaybarindex=0 then
myhi=high
mylo=low
endif
return myhi, mylo
ok Ivan, thank you
And yeah! INTRADAYBARINDEX