Hi @Pere, I moved your code submission from the Library to this topic for a better comprehension of how you found your variables periods.
Mean reverting strategy built with RSI2 are indeed very effective in a strong bullish market, and of course way better with optimized variables, but did you try a simple 70/30% validation for them?