How to coding with trading time in EA???

  • Thread starter Thread starter yhjia
  • Start date Start date
  • Watchers Watchers 2

yhjia

Newbie
Messages
4
Likes
0
Please help me figure out how to hold without trade until 30 minutes after open a position in mql4.
Thanks very much.
 
Hi,

1 open position
2 save current time

3 IF (currentTime - savedTime >= 30 * 60) THEN 30 minutes passed

Regards,
Kriss
 

Attachments

Last edited:
Hi Kriss,

Thank you very much for the kindly help. That's exactly what I wanted.

Best Regards,

Yhjia
 
Back
Top