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

Forums>AlgoWizard / EA Wizard>General Discussion>Auto signal for the last 10 candles

  • #113235 |
    Customer
    112 Posts

    hi Admin,

     

    How to configure an Indicator to signal a match only for the last 10 candles (eg. (close(9) from now), dynamically? 

     

    Also, where do I edit the mql code such that the signal will only be seen on D1, H4 & H1 charts? 

     

    Thanks. 

     

    TJ

    #128721
    Customer
    484 Posts

    Im not an admin, just an experienced customer. It would help if you are more specific really. A little vague.
    You want the signal after its 10 bars old? Easy. ADX(Shift 9) > 30. Shift 9 will give you the signal after it passed 9 sessions ago.

    On time frames: its built into the program on each indicator.

    Attachments in this forum are visible only for registered users.

     

    #128729
    Mark Fric
    Administrator
    1182 Posts

    I also don’t fully understand what you want to achieve, but you can use Shift parameter.

     

    Shift = 0 means value at current bar, Shift = 1 means indicator value on previous bar and so on.

    Shift = 9 means indicator value 9th bar back.

    Mark
    StrategyQuant architect

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

You must be logged in to reply to this topic.