Download MetaTrader 5
To add comments, please log in or register
Ask your broker to open the official channel. Thousands of traders will read the news!
moonsboy
889
moonsboy 2015.01.11 07:47 

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 2015.01.11 08:20  
What is your code in opening orders? Use SRC when posting codes.
Keith Watford
Moderator
7887
Keith Watford 2015.01.11 08:22  

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 2015.01.11 08:40  
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