How to code for previous days?

Forums ProRealTime English forum ProOrder support How to code for previous days?

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

    Hi All

    Can someone please help with what I think is a simple code?  I’m not a coder so am fumbling around getting nowhere.

    Basically I want to place a sell order if the following occurs….

    IF  RSI is over 70
    AND RSI for the current day -1 is under 70
    AND RSI for the current day -2 is under 70
    AND RSI for the current day -3 is under 70
    AND RSI for the current day -4 is under 70
    AND RSI for the current day -5 is under 70

    Thanks

    #17098

    Hi Cusack

    Using a Daily Timeframe Chart …

    I’m terrible at remembering syntax so watch out for syntax errors in above but PRT should alert you anyway when you try to run it.

    Cheers

    GraHal

     

    2 users thanked author for this post.
    #17163

    You rock GraHal!  thank you!

    #17175

    Not really but thanks anyway! ha 🙂

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