How to coding with trading time in EA???

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

  • timewait.mq4
    1.5 KB · Views: 417
Last edited:
Hi Kriss,

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

Best Regards,

Yhjia
 
Top