Drawing a Line with an EA

 

Hey,

is it possible to create lines (not the straight ones) with an EA (not an indicator)?

I didn't find any useful parameters when using the ObjectCreate()...

I though it may be possible to draw just one dot everytime the EA is runned but you can't do that either with ObjectCreate.

I want to use it for checking trailling stops graphically...

Thanks for your ideas...

 
luedman:

I though it may be possible to draw just one dot everytime the EA is runned but you can't do that either with ObjectCreate.

Yes you can . . . draw an object type OBJ_ARROW and use ObjectSet to set the index type to be OBJPROP_ARROWCODE with a Wingding value of your choice . . maybe 159 or 167
 
luedman:
is it possible to create lines (not the straight ones) with an EA (not an indicator)?
My polyline code does just that.