Forum

How do I store the value at US open?

Hi, I copied a Donchian channel indicator from online resources. I want to plot the Upper and Lower at US market open. The values should only change at US market open. Then remain the same value after 16:30(IC market server time at US open). But I failed to do so. #property indicator_chart_window

How do I save a specfic number in specfic time in mql5?

Hi, I have some experience in pinescript and other languages but new to mql5. I want to save a number in US session open. But I have some problems. double test = 0 ; if (time.hour == usOpenHour && time. min == usOpenMin){ test = 1 ; } Comment( "\n session max : " + test); The problem is at