[Beginner] How to sell a position after 1 week

Forums ProRealTime English forum General trading discussions [Beginner] How to sell a position after 1 week

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

    Hi,

    I want to backtest a strategy were I buy at RSI>30 and sell (not going short) after 1 week. I’m having trouble finding out how to define the sell contidion. Is it possible to set this condition in “simplified creation” tab? Or do i have to code it?

    #47614

    Try this on for example the 30m timeframe:

    Does something like that work?

    #48046

    Thank you for your help. Unfortunately, the code has an error in line 11.

    #48071

    Add the word THEN in the end of the line 11.

    1 user thanked author for this post.
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