Help with a code for screening

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9654 quote
    Jasa
    Participant
    New

    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 quote
    Nicolas
    Keymaster
    Master

    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.

    Jasa thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Help with a code for screening


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Jasa @jasa Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/22/2016
Status: Active
Attachments: No files
Logo Logo
Loading...