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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.