Create a Line after Take Profit

 

Hello Guys:

  I know its not really important but I want to add to my EA a line coming from each opened trade to the point where it took profit. So anyone know a coding I can use to add to my EA?

Thanks

 
Ricel Almirola:

Hello Guys:

  I know its not really important but I want to add to my EA a line coming from each opened trade to the point where it took profit. So anyone know a coding I can use to add to my EA?

Thanks

'a line - OBJ_VLINE, OBJ_HLINE.

Try https://www.mql5.com/en/docs/constants/objectconstants/enum_object/obj_vline

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_VLINE
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types / OBJ_VLINE
  • www.mql5.com
//| Create the vertical line                                         |               time=0,                          width=1,            //
 
Thanks a lot MThomp!!! Really appreciate your help!
Reason: