% of days down-up in last 126 tds

Forums ProRealTime English forum ProBuilder support % of days down-up in last 126 tds

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

    Good morning guys, does anyone know a way to build the % of down (close-close1) minus the % of up trading days (close-close1) of a stock over the last 126 trading days please? So for example, if a stock was down 35% and up 65% of the last 126 trading days, then the answer would be 0.35-0.65=-0.3

    Thanks and happy holidays!

    #183878

    Not tested:

    when Difference > 0 UPs are greater than DOWNs, when < 0 it’s the other way round.

     

    1 user thanked author for this post.
    #183879

    Thank you Roberto!

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