Trailing stop loss modifying positions on another symbols when expert is attached to multiple charts.
![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
For example, any USD/CAD position will be CONSTANTLY, NON STOP, being attempted to get modified. Also, I'm not seeing any logs when this happens, just this error message every second the trailing stop loss is enabled:
"2024.06.06 11:32:33.444 Trades '1091281011': failed modify #114111858 buy 0.17 USDCAD sl: 1.36753, tp: 1.37553 -> sl: 113.84200, tp: 1.37553 [Invalid stops]"
"2024.06.06 11:32:33.444 MeanChange (CADJPY,M30) CTrade::OrderSend: modify position #114111858 USDCAD (sl: 113.84200, tp: 1.37553) [invalid stops]"
Is the error not in the trailing stop function? It's the only position.Modify statement in my entire code.
Any help here would be greatly appreciated.