Help with a code for screening

Forums ProRealTime English forum ProScreener support Help with a code for screening

Viewing 2 posts - 1 through 2 (of 2 total)
  • #9654

    Hi all / Bonjour tout le monde,

    I’m new here and wonder if someone could help me out with some coding. I am trying to incorporate the following into my scan but have been unsuccessful:

    1. Rising/falling RSI14 for the past X consecutive days
    2. Rising moving average for volume for the past Y consecutive days (i.e. average[N](volume) has been increasing for the past Y days)

    Any advice would be greatly greatly appreciated. Thanks!

    #9661

    Hi, you should use loops to count how much time your RSI were rising or falling. Same for the moving average you’d like to test.

    You can find loop short tutorial in the documentation:

    http://www.prorealcode.com/documentation/for/

    http://www.prorealcode.com/documentation/break/

    Inside the loop, test if your average of the current period Y of the loop is rising, if yes increase a variable. Don’t forget to reset your variable before each time you launch the loop.

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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