Download MetaTrader 5

Chart - Hide trades, stop loss and take profit

To add comments, please log in or register
Christoph Stallmann
464
Christoph Stallmann  
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
85512
Vladimir Karputov  
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".
Christoph Stallmann
464
Christoph Stallmann  
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
85512
Vladimir Karputov  
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".
Christoph Stallmann
464
Christoph Stallmann  
Ah. Thanks for the help.
Christoph Stallmann
464
Christoph Stallmann  
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?
Christoph Stallmann
464
Christoph Stallmann  
Never mind: right-click on chart -> properties -> show.
To add comments, please log in or register