OPEN-SOURCE SCRIPT
Cập nhật Root Deviation Loop | Lyro RS

The Root Deviation Loop indicator is a multi-mode trend signal tool that detects price momentum and breakout conditions using Root Mean Square Deviation (RMSD) instead of standard deviation. It provides a flexible framework for analyzing market conditions through three distinct signal generation methods: Bollinger Band-style deviation, a loop-based scoring system, and a hybrid combined signal. These modes help highlight trend continuation or reversal zones with a focus on smoothing out noise and avoiding extreme outlier effects.
Indicator Modes
Signal Interpretation
In the Bollinger Bands mode, signals are generated based on price interaction with the RMSD bands:
These signals suggest potential breakout points when price momentum exceeds recent volatility-defined boundaries.
⚠️Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Indicator Modes
- Bollinger-Style RMSD Bands
This mode plots upper and lower volatility bands using RMSD around a selected moving average. RMSD is used instead of standard deviation for a more stable measurement of price dispersion. The formula for the bands is:
Upper Band = Moving Average + (RMSD × Multiplier)
Lower Band = Moving Average − (RMSD × Multiplier)
The bands dynamically expand and contract based on market volatility. Crossovers above or below these bands are used to signal trend shifts or breakouts. - For-Loop Momentum Scoring
This mode calculates a loop-based trend score by comparing the RMSD-weighted source to its historical values within a defined range. The loop evaluates the directional bias of price changes:
If the current value is greater than past values, it adds to the score.
If it is lower, it subtracts from the score.
This produces a net momentum score used to determine bullish or bearish dominance.
RMSD Weighted Source = (Price × RMSD) / RMSD
Score = Sum over loop: (src > src) ? +1 : -1 - Combined Signal
This mode merges the outputs of the Bollinger RMSD and For-Loop modes. It averages both signals into a single composite score. A long or short signal is generated based on whether the combined score crosses above or below user-defined thresholds.
Signal Interpretation
In the Bollinger Bands mode, signals are generated based on price interaction with the RMSD bands:
- A long signal occurs when price crosses above the upper RMSD band
- A short signal occurs when price crosses below the lower RMSD band
- No signal is produced when price remains between bands
These signals suggest potential breakout points when price momentum exceeds recent volatility-defined boundaries.
⚠️Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
Phát hành các Ghi chú
chart fix.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.
Get access to our private indicators: whop.com/lyro-rs
Join our community: discord.gg/kcEBMWaFjS
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Join our community: discord.gg/kcEBMWaFjS
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
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.
Get access to our private indicators: whop.com/lyro-rs
Join our community: discord.gg/kcEBMWaFjS
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
Join our community: discord.gg/kcEBMWaFjS
All material from Lyro RS is for educational purposes only. Past performance does not guarantee future results.
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.