Not logged in
Viewing 3 posts - 1 through 3 (of 3 total)

Forums>AlgoWizard / EA Wizard>Make my EA>Using StopLoss Levels as Support/Resistance

  • #270242 |
    Participant
    2 Posts

    Hey Guys!

    I want my EA to draw horizontal lines at the SL level and uses those lines either like supports or resistances. Could you help me please?

    #270261
    tomas262
    Administrator
    1823 Posts

    Hello,

    you can use custom actions in AlgoWizard to employ some MQL4 code snippets and draw lines for example. First you need to save SL price into a variable. You will use these variable to draw a line on a chart

    You can use this code

    Custom Action: ObjectCreate(“SLline”, OBJ_HLINE, 0, Time[0], Variable1);

    where ‘Variable1’ is the price stored in the variable

    #270272
    Participant
    2 Posts

    Many thanks!

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

You must be logged in to reply to this topic.