draw line from within EA

 

Hello,

i am looking for the smartest way to draw a line (stopcurve) from within EA

without coding an indicator for this.

can anyone give a brief sample for this ?

thank you

 
chinaski:

Hello,

i am looking for the smartest way to draw a line (stopcurve) from within EA

without coding an indicator for this.

can anyone give a brief sample for this ?

thank you

Use ObjectCreate() function.

 
robofx.org wrote >>

Use ObjectCreate() function.

thank you.

this is my solution:

// initial

ObjectCreate("my unique name", OBJ_HLINE, 0, TimeCurrent(), currentStop)

// if currentStop changed

ObjectMove("my unique name", 0, TimeCurrent(), currentStop ) ;