Draw Arrow with different colors
7 replies
josecort_trader
7 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

tomas262
7 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
josecort_trader
7 years ago #201071
josecort_trader
7 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
josecort_trader
7 years ago #201074

tomas262
7 years ago #201133
Ok, will test this

tomas262
7 years ago #202123
Maicol Eduardo Martinez Gonzalez
11 months ago #286985
Podrian mostrar como utilizar las flechas de color? no logro hacer que funcionen en el grafico de Strategyquant para comprobar si mi estrateguia es correcta
Viewing 7 replies - 1 through 7 (of 7 total)