Crosses of a level

Forums ProRealTime English forum ProOrder support Crosses of a level

Viewing 3 posts - 1 through 3 (of 3 total)
  • #5786

    I have seen that the market will often test support/resistance levels 3 times before proceeding to the next level, I can’t work out the best way to keep track of the number of crosses (closes above/below?) in code, please help.

    Regards

    Steve

    #5788

    What kind of support / resistance do you want to test?

    Test if price has crossed up or down a resistance/support price and count it by incrementing a variable.

    This is an example with a rebound on a moving average:

     

     

    #5794

    Thanks Nicolas, that looks really interesting.

    It could be any support/resistance level, such as a pivot, a moving average, a high/low, a round number, I think your code will work for them all, just modify the mm entry.

    Regards

    Steve

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