How to code a change of the "ribbon"

Forums ProRealTime English forum ProBuilder support How to code a change of the "ribbon"

Viewing 4 posts - 1 through 4 (of 4 total)
  • #97962

    Given a number of moving averages with different periods, I would like to code the first moment when they are arranged by order, for example:

    and that only candle to use as an entry signal.

    Hope I have been clear.

     

    Thanks anybody

     

    Alex

    #97964

    So.

    • x > x[1]    will tell you the first bar when they are in order
    • x < x[1]    will tell you the first bar when they are no more in order
    • x <> x[1] will tell you whenever there’s been a change from order to disorder and viceversa

     

    1 user thanked author for this post.
    #97967

    So.

    • x > x[1] will tell you the first bar when they are in order
    • x < x[1] will tell you the first bar when they are no more in order
    • x <> x[1] will tell you whenever there’s been a change from order to disorder and viceversa

    So, if I would code an entry, it would be like:

    Am I right?

    #97982

    Yes, sure.

    You may also add GRAPH to your code to watch desired values as they change candle after candle.

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

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