How can I Comment StopLoss and TakeProfit values on my chart using an EA?
Only the position (order) has a comment (unchangeable for the trader) but not SL & TP.
Thank you for your responce.
If I can not use it in my EA to display the StopLoss and TakeProfit on my chart can I maybe divise some sort of indicator that will show the StopLoss and TakeProfit on my chart?
Ian Macmillan #:
Thank you for your responce.
If I can not use it in my EA to display the StopLoss and TakeProfit on my chart can I maybe divise some sort of indicator that will show the StopLoss and TakeProfit on my chart?
You should:
1. Iterate all open orders/positions
2. read TP and SL values
3. create object labels and texts on chart for display.
You may also create freelance orders for this task.
![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