MQLII code to MQL4 - Need to remake indicator that shows sessions and dayhigh/lows

 
 

Session2

Vasilyt,

Please try attached indicator and tell me what do you think?

Files:
session2.mq4  3 kb
 

Thank you

Thank you very much but unfortunately it doesnt dispay day's highs and lows correctly. Cann't figure out where the mistake is. The code appears to be identical to the origional; so why doesnt it display progressive highs and lows of the day correctly?

Reason: