Arrows in EA?

 

IS it possible to insert Arrows & other Drawing shapes in EA

I mean just EA`s not Indicators

because SetIndexStyle() does not work in my EA`s

please help me

 

still no answer?

 

It's possible.

Try to insert this function in your EA:

void DrawArrow(string name,datetime time, double price, int type, color clr)

{

ObjectCreate(name, OBJ_ARROW, 0, time, price);

ObjectSet(name, OBJPROP_COLOR, clr);

ObjectSet(name, OBJPROP_ARROWCODE, type);

}

arashas:
IS it possible to insert Arrows & other Drawing shapes in EA

I mean just EA`s not Indicators

because SetIndexStyle() does not work in my EA`s

please help me
 
igorad:
It's possible.

Try to insert this function in your EA:

void DrawArrow(string name,datetime time, double price, int type, color clr)

{

ObjectCreate(name, OBJ_ARROW, 0, time, price);

ObjectSet(name, OBJPROP_COLOR, clr);

ObjectSet(name, OBJPROP_ARROWCODE, type);

}

highly appreciated

thank your favor to me

let me check it please

 

if (ObjectCreate("text_object_1", OBJ_TEXT, 0, D'2006.11.28 12:00', 1.3100))

{

ObjectDelete("text_object_1");

ObjectSetText("text_object_1", "Hello world!", 12, "Times New Roman", Red);

}

You can write down any words on your chart.