Buy after N number of bars please help

Forums ProRealTime English forum ProOrder support Buy after N number of bars please help

  • This topic has 2 replies, 2 voices, and was last updated 6 years ago by avatarDAK.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #34825
    DAK

    Hi everyone,

    I would need some help for a little code.

    I am trying to code the following strategy :

    • Wait for EMA 5 AND EMA 10 to cross but don’t enter
    • After a certain number of bars, if EMA 5 is still above EMA 10 then you can enter the market

    The number of bars to wait is issued from a third indicator and this value is changing over time.

    I tried but didn’t manage to code properly this strategy. Any help would be very appreciated. If it really works I will publish it.

    Many thanks.

     

    #34844

    Try this one (I didn ‘t):

     

    1 user thanked author for this post.
    #34900
    DAK

    Thanks very much it works like a charm !

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

Create your free account now and post your request to benefit from the help of the community
Register or Login