Is there a simple way to activate the trading line?

Back to topics list To post a new topic, please log in or register
avatar
228
jollydragon 2015.01.11 08: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.

avatar
1211
deysmacro 2015.01.11 09:20 #
 
What is your code in opening orders? Use SRC when posting codes.
avatar
Moderator
3406
GumRai 2015.01.11 09: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 

avatar
228
jollydragon 2015.01.11 09: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);

Back to topics list  

To add comments, please log in or register