Page 1 of 1

RSI backtesting

Posted: Tue Jan 18, 2022 4:24 pm
by mpw581
Hi everyone,

I am new to (pinescript) coding and was hoping someone here could help me figure out the following:

In the context of a RSI strategy backtest, in addition to the time and price of when RSI crosses above/below the overbought/oversold levels, I would like to record/extract the time, price and RSI value when the RSI reaches a maximum or minimum between each crossover.

Is this something that can be extracted through a strategy script? Any other solution?

Many thanks in advance for any advice!

Kind regards,
M.