OPEN-SOURCE SCRIPT
RSI Extreme Retest [josseliani]

RSI Extreme Retest identifies a two-stage momentum reversal structure inside the RSI oscillator.
The first stage begins when RSI reaches an upper or lower extreme. This initial entry into the overbought or oversold zone is not treated as a reversal signal.
After the first extreme, RSI must cool down to a configurable level. The indicator then waits for RSI to return to the corresponding retest zone without significantly breaking the first RSI peak or bottom.
A confirmed second signal appears after RSI begins moving away from the retest area in the opposite direction.
If RSI reaches the opposite extreme zone before the retest is completed, the previous setup is cancelled.
Users can choose to display either the first extreme signal or only the second confirmed retest signal.
The indicator can be used on any timeframe, and alerts can be created for both the initial and confirmed signals.
Confirmed second signals can also be displayed as arrows directly on the price chart.
The first stage begins when RSI reaches an upper or lower extreme. This initial entry into the overbought or oversold zone is not treated as a reversal signal.
After the first extreme, RSI must cool down to a configurable level. The indicator then waits for RSI to return to the corresponding retest zone without significantly breaking the first RSI peak or bottom.
A confirmed second signal appears after RSI begins moving away from the retest area in the opposite direction.
If RSI reaches the opposite extreme zone before the retest is completed, the previous setup is cancelled.
Users can choose to display either the first extreme signal or only the second confirmed retest signal.
The indicator can be used on any timeframe, and alerts can be created for both the initial and confirmed signals.
Confirmed second signals can also be displayed as arrows directly on the price chart.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.