High and Low of a customizable timerange

 

Hi guys,


I am quite new to MQL and managed to program my first EA, but with my second try I have trouble.

I trade at the 5min chart. If I want to know the highest high and lowest low of a time period from 12:40 to 14:40 what can I do?

The amount of candles is 24.... but that doesn't help me. Something is missing.

Please put me on the right trace.

Thanks in advance.


Testmaster

 

Use iHigh with iHighest and iLow with iLowest . . .

Have a read here for more info: https://docs.mql4.com/series

Reason: