Is there a simple way to activate the trading line?

 

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.

 
What is your code in opening orders? Use SRC when posting codes.
 

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 

 
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);
Reason: