PROTECTED SOURCE SCRIPT
Green to Red Money Rails

What this indicator does
Green to Red Money Rails (G2R Rails) is a price-action tool that draws dynamic “rails” from recent swing lows and highs. It tracks how support and resistance are shifting so you can see where trend pressure is building or weakening.
Core logic (high level)
How to use it
This script does not auto-generate signals or manage risk for you; it is a visual framework for reading structure and building your own trading plans.
Green to Red Money Rails (G2R Rails) is a price-action tool that draws dynamic “rails” from recent swing lows and highs. It tracks how support and resistance are shifting so you can see where trend pressure is building or weakening.
Core logic (high level)
- Detects pivot lows and stores the last three (L1, L2, L3).
- Builds green support “fans”: inner dotted rails L1→L2 and L2→L3, plus a main solid base rail L1→L3.
- Detects pivot highs and, when the last high is lower than the previous one, draws a red resistance rail from H2→H3.
- Optional labels mark the most recent swing low (“L”) and swing high (“H”).
How to use it
- Use the green rails as dynamic support zones for trend-following, pullback entries, or stop placement.
- Use the red rail as a visual ceiling in downtrends: breaks above it can signal the end of a sell-off; rejections at it confirm sellers still in control.
- Works best on liquid markets and swing-trading timeframes (for example, 1h–1D). Always combine with your own risk management and higher-timeframe context.
This script does not auto-generate signals or manage risk for you; it is a visual framework for reading structure and building your own trading plans.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由使用,沒有任何限制 — 點擊此處了解更多。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。