Not logged in

Forums

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

Forums>EA Wizard>Strategy Samples>Draw Arrow with different colors

  • #201032 |
    Participant
    21 Posts

    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

    #201061
    Administrator
    348 Posts

    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

    #201071
    Participant
    21 Posts

    Hi tomas262

    I will try it.

    THANKS

    Regards

    Jose

    #201073
    Participant
    21 Posts

    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

    #201133
    Administrator
    348 Posts

    Ok, will test this

    #202123
    Administrator
    348 Posts

    Hello,

    please try to use this version instead (file attached)

    Attachments:
    You must be logged in to view attached files.
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.