price closes more than 5 points higher than N candlesticks ago

Forums ProRealTime English forum ProOrder support price closes more than 5 points higher than N candlesticks ago

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

    Hello folks,

    Does anyone know how to express points move in code?  for example, if a price closes more than 5 points higher than N time frames ago, I want to see a signal (the latter I know how to do, it’s the first part which I’m struggling with!)

    Thanks

    #153452

    Variable Cond will either be true (1) or false (0):

    actually any value <> 0, not just 1, is considered to be true.

    1 user thanked author for this post.
    #153459

    Roberto’s code will return true if the current close is 5 pips higher than the highest high in the last 5 candles. If you just want it to be 5 pips higher than the close 5 candles ago then you need to use:

     

    1 user thanked author for this post.
    #153504

    Thank you both!!

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