Download MetaTrader 5

Chart - Hide trades, stop loss and take profit

To add comments, please log in or register
Publish your article and get a reward!
goocreations
329
goocreations 2015.05.10 13:06 
Is there a way to hide the trade arrow icon and SL/TP horizontal lines on a chart which are automatically added if you call OrderSend?
Vladimir Karputov
Moderator
45787
Vladimir Karputov 2015.05.10 13:15  
goocreations :
Is there a way to hide the trade arrow icon and SL/TP horizontal lines on a chart which are automatically added if you call OrderSend?
Yes, it is. You are necessary to change the terminal settings: "Tools" -> "Options" -> "Trade" -> "Show realtime history of deals on chart" and right click on the chart -> "Properties" -> "Show" -> "Show trade levels".
goocreations
329
goocreations 2015.05.10 13:31  
Karputov Vladimir:
Yes, it is. You are necessary to change the terminal settings: "Tools" -> "Options" -> "Trade" -> "Show realtime history of deals on chart" and right click on the chart -> "Properties" -> "Show" -> "Show trade levels".
Thanks, can't really test it, since the market is currently closed. However, during backtesting in visual mode, the objects still display, even with the option disabled. Isn't there a programtical way by calling one of MQL's functions to simply not add these objects to the chart? In MQL4 the OrderSend function had a last parameter that could be used not to show the arrow icon. Anything similar in MQL5?
Vladimir Karputov
Moderator
45787
Vladimir Karputov 2015.05.10 14:08  
goocreations:
Thanks, can't really test it, since the market is currently closed. However, during backtesting in visual mode, the objects still display, even with the option disabled. Isn't there a programtical way by calling one of MQL's functions to simply not add these objects to the chart? In MQL4 the OrderSend function had a last parameter that could be used not to show the arrow icon. Anything similar in MQL5?
In the Strategy Tester, you cannot disable trade levels and  arrow objects "buy" and "sell".
goocreations
329
goocreations 2015.05.10 17:30  
Ah. Thanks for the help.
goocreations
329
goocreations 2015.05.14 08:44  
I've tested it now. The trade icons can be hidden, but the annoying SL/TP lines and the line showing the price of the placed order still shows. They also do not show under the object list. Anyway to remove them?
goocreations
329
goocreations 2015.05.14 08:46  
Never mind: right-click on chart -> properties -> show.
To add comments, please log in or register