Use ObjectCreate and OBJ_HLINE or OBJ_VLINE as the object type. They can be used by anything be it a script, EA or indicator.
WhooDoo22:
Does anyone know how I can code an EA to draw lines on a chart?
Thank you!
I am thinking along the lines of some code like this...
if ( "put my parameters" ) { { draw line code }} // idk, something simple :) // Thank you!Thank you!
heelflip43:
Use ObjectCreate and OBJ_HLINE or OBJ_VLINE as the object type. They can be used by anything be it a script, EA or indicator.
Use ObjectCreate and OBJ_HLINE or OBJ_VLINE as the object type. They can be used by anything be it a script, EA or indicator.
I will give it a shot!
I am researching the "object" documentation now!
heelflip43:
Use ObjectCreate and OBJ_HLINE or OBJ_VLINE as the object type. They can be used by anything be it a script, EA or indicator.
Use ObjectCreate and OBJ_HLINE or OBJ_VLINE as the object type. They can be used by anything be it a script, EA or indicator.
Look what you helped me create heelflip43!
I have attached an EA that will draw a line on a chart!
Thank you!
Files:
objectcreatekea.mq4
2 kb
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Does anyone know how I can code an EA to draw lines on a chart?
Thank you!