![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Forum on trading, automated trading systems and testing trading strategies
Which strategy is best to close the position?
Sergey Golubev, 2018.03.27 06:56
Time.
For sure it is not that simple, but I open (market or pending) position(s) 1min after market open and close 2-3min before market close.
For example I opened buy for EURJPY today at 129.671. I will close today 2-3min before market close if the trade is profitable, if not than it will be carried for tomorrow.
Time is the magic word.
I've found another exit.
Average out.
Yeah. Time exit is also very good.
Trailing Equity Money - expert for MetaTrader 5
The EA starts working when the Equity of the trading account reaches the value " Get started with Equity> = ". After that, the EA constantly remembers the maximum value of Equity (remembers in the variable m_prev_max_equity and at the same time in the global terminal variable " TEM ").
As soon as Equity decreases by " Close all with a decrease of " from the maximum value, this is a signal to close all positions on the trading account. After closing all positions, the EA pauses: removes the global variable of the terminal and no longer tracks Equity.