How to check current candle is bigger than previous n candles or not?

Forums ProRealTime English forum ProBuilder support How to check current candle is bigger than previous n candles or not?

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

    Hi,

    I’d like to know how to write a code which allow to check if current candle has a larger body than previous n candles or not. This checking keep repeating when next candle starts.

    Thanks

    #72848

    This should do

     

    2 users thanked author for this post.
    #72860

    That code can also be adapted easily to look for the largest range in n candles.

    and also sometimes it is interesting to know when a candle has the smallest body or range in n candles. Quite useful to get out of the market with your profit when the market has gone a bit flat.

     

    2 users thanked author for this post.
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