![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
Hi,
I am a newbie having a hard time understanding what is going on with this TP. Order #2 is executed correctly with TP=36.29, then nothing happens until partial realization order #3 is issued and executed. For some reason this triggers #4, which is the TP based on order #2. However, I suppose it should have been triggered long ago, several days before.
Why the TP was not executed before? What kept it dormant for so many days when the price had obviously been reached? There is no spread issue here since tp price has been far exceeded.
I understood from https://www.metatrader5.com/en/terminal/help/trading/general_concept that the problem might be carrying the position overnight. Nevertheless, other tests make me believe I am misreading the explanation because the behaviour is not always this.
I'm using MT5 version 5, build 2560 (Jul 2020). Timeframe is H1. All is happening in OnTimer() event when market is closed. Position accounting system is netting.
Thank you for your time and help!