Hello,
To anyone who can assist, I am trying to understand how I can run parts of my dashboard/EA based on the timeframe that I am trying to analyze. For example, I would like my EA to rest on the M15 chart, but calculate H1/H4/D1 data - not on every new M15 bar, but on the bars that correlate.
Off the start, I believe I can use some thing like:
if(TimeHour(TimeCurrent()) == 01 && TimeMinute(TimeCurrent()) == 00)
Well this would allow me to commence a script or some code at the top of the hour.
Major drawbacks:
To anyone who can assist, I am trying to understand how I can run parts of my dashboard/EA based on the timeframe that I am trying to analyze. For example, I would like my EA to rest on the M15 chart, but calculate H1/H4/D1 data - not on every new M15 bar, but on the bars that correlate.
Off the start, I believe I can use some thing like:
if(TimeHour(TimeCurrent()) == 01 && TimeMinute(TimeCurrent()) == 00)
Well this would allow me to commence a script or some code at the top of the hour.
Major drawbacks:
- the obvious bulky code that could ensue to do this for multiple timeframes
- The bigger one - if the code concludes before minute is able to increment to ':01' will it run again?