Download MetaTrader 5

Setting SL or TP at a certain time

To add comments, please log in or register
Have you published a program in the Market? Place it in your blog as well - the widget will help!
Joaquim A. Pla
10
Joaquim A. Pla 2015.01.14 18:21 

Hello,

I am building an EA and would like it to set the SL and TP levels not when the trade is opened, but at a certain time of the day after it has been placed. Can someone help me, please?

 Thank you! 

Rodrigo Malacarne
Moderator
9903
Rodrigo Malacarne 2015.01.17 08:08  
Kimipla:

Hello,

I am building an EA and would like it to set the SL and TP levels not when the trade is opened, but at a certain time of the day after it has been placed. Can someone help me, please?

 Thank you! 

Hello Kimipla,

In order to do that, you have to be familiar with the basics os "time" programming.

Please take a look at this article: https://www.mql5.com/en/articles/599

Regards,
Malacarne 

MQL5 Programming Basics: Time
MQL5 Programming Basics: Time
  • 2013.04.26
  • Dmitry Fedoseev
  • www.mql5.com
The article focuses on standard MQL5 functions for working with time, as well as programming techniques and practically useful functions for working with time that are required when creating Expert Advisors and indicators. Particular attention is paid to the general theory of time measurement. This article should be of interest primarily to novice MQL5 programmers.
To add comments, please log in or register