Download MetaTrader 5

Is there a simple way to activate the trading line?

To add comments, please log in or register
moonsboy
889
moonsboy  

After you test your EA, you can see the lines show where your orders open from and where they close at?

However, the lines are not shown in the chart of live trading. 

Is there any simple way to switch on the function? Thank you.

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI  
What is your code in opening orders? Use SRC when posting codes.
Keith Watford
Moderator
9976
Keith Watford  

You can add them by dragging a closed order to the chart window. But not open trades.

You would need to write code in the EA to draw the arrows and lines 

moonsboy
889
moonsboy  
Dear GumRai, thank you very much!
Dear deymacro, below is my code.
OrderSend(Symbol(),OP_SELL,lotSize,Bid,slippage,0,0,TradeComment,MAGIC,0,clrMediumVioletRed);
OrderClose(OrderTicket(),OrderLots(),Ask,slippage,clrDodgerBlue);
To add comments, please log in or register