Help with writing a backtest code with multiple RSI conditions

Forums ProRealTime English forum ProOrder support Help with writing a backtest code with multiple RSI conditions

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

    Hello everybody,

    Up until now I always used the “simplified creation”, but for this one I need your help with writing a more specific code:

    To enter a long position the conditions are –

    1. The values of RSI (21) minus RSI (7) should be less than 7

    2. RSI (21) is bigger than RSI (14)

    3. RSI (14) is bigger than RSI (7)

    Thank you

    Assaf

    #110686

    Automated trading questions should be posted in the ProOrder forum section. Please try to write explicit title next time! Many thanks.

    The below code should be ok, I have not tested:

     

    #110691

    It works!

    Thank you so much!

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