Check Age
-
The block "check age" has the right data format in mq4. But in mq5, there seems to be a problem: When changing the EA's options via Metatrader, for example 5 minutes looks like "5.0" in MT4 and the EA is working properly. But in MT5, the format is "1970.01.01 00:00:05" and the EA does not work.
-
Checking age has been tricky for me too..
In some case I have decided to simply use variables to count the age, like:
once per bar -> modify variable barcount to barcount +1
-> reset the variable when trade closes, or any other condition you like. Very flexible solution
-
MetaTrader options... I don't see checked checkboxes or constants in this EA...
-
@roar Good idea, works perfect. Thank you!
