Murat Yazici:
Hi all,
I have an EA. The EA opens a trade according to some rules. It has take profit point and stop loss point.
I want to obtain when the EA opens a trade,if the trade isn't closed by take profit point up to x hours, the EA must close the trade.
How can I do that?
Best.
You could use OnTimer event to run after x seconds depending on when you want the trade to close? When the timer runs, if the trade is still open, close it!
Hi all,
I have an EA. The EA opens a trade according to some rules. It has take profit point and stop loss point.
I want to obtain when the EA opens a trade,if the trade isn't closed by take profit point up to x hours, the EA must close the trade.
How can I do that?
Best.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have an EA. The EA opens a trade according to some rules. It has take profit point and stop loss point.
I want to obtain when the EA opens a trade,if the trade isn't closed by take profit point up to x hours, the EA must close the trade.
How can I do that?
Best.