Reply

Draw Arrow with different colors

6 replies

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

3 years ago #201032

Hello

I would like to change the color of the arrows depending on which is the condition satisfied. Now we have a red down arrow and a Green up arrow. Is it posible to change those colors for the arrows?

Related to this, is it posible to draw different signs like a cross, a plus, a minus, etc. using the same tool as for the arrows?

Thanks

Regards

Jose

0

tomas262

Administrator, sq-ultimate, 708 replies.

Visit profile

3 years ago #201061

Hello,

instead of “Draw Arrow” action use multiple “Custom Action” and this code for an arrow up (each line of code with a new custom action line)

ObjectCreate(name, OBJ_ARROW, 0, Time[1], Low[1]-20*Point);
ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name, OBJPROP_ARROWCODE, SYMBOL_ARROWUP);
ObjectSet(name, OBJPROP_COLOR, Green);

For the down arrow use this alternative

ObjectCreate(name, OBJ_ARROW, 0, Time[1], High[1]+20*Point);
ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name, OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN);
ObjectSet(name, OBJPROP_COLOR, Red);

Let me know if you need some example in Wizard

0

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

3 years ago #201071

Hi tomas262

I will try it.

THANKS

Regards

Jose

0

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

3 years ago #201073

Hello tomas262

Please, could you check if I have made it wrong? Because it does not work on the MT4 strategy tester.

An example is always welcome.

Thanks

Regards

Jose

0

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

3 years ago #201074

tomas262

Administrator, sq-ultimate, 708 replies.

Visit profile

3 years ago #201133

Ok, will test this

0

tomas262

Administrator, sq-ultimate, 708 replies.

Visit profile

3 years ago #202123

Hello,

please try to use this version instead (file attached)

0

Viewing 7 posts - 1 through 7 (of 7 total)