INVITE-ONLY SCRIPT

Ultimate Natural Gas Forecaster

18
Imagine you’re looking at Natural Gas today at $3.50 with the CCI at 120. You’re wondering: “What usually happens next when conditions look like this?”

This indicator answers that question by scanning years of historical data to find every single time Natural Gas was around $3.50 with CCI around 120, then shows you exactly what happened in the next 5 and 10 days during those times.

It’s like having a time machine that says: “Hey, we’ve seen this exact setup 23 times before, and here’s what happened...”

This indicator analyzes historical patterns in Natural Gas futures based on current price and CCI levels to predict future price movements. It identifies similar historical conditions and provides statistical analysis of what happened next, including average returns, biggest rises/falls, and probability of significant moves.

How It Works:
The indicator takes the current Natural Gas price and CCI value and scans historical data (default 550 bars lookback) to find periods when NG price and CCI were within your specified tolerance ranges.
For each historical match, it analyzes what happened in the next 5 and 10 trading days and then aggregates all matches to show average performance, extremes, and probabilities

The table shows three main sections:
  • PATTERN STATISTICS - Based on all historical matches
  • LAST YEAR SAME DATE - What happened last year around this date
  • 5-YRS SAME DATE - Data across 5 years for this date
Visual Indicators
Background Color: Blue bars = historical matches (when conditions were similar)

Table Background:
Green = Bullish pattern (avg return > 5%)
Red = Bearish pattern (avg return < -2%)
Orange = Neutral pattern

Includes "Front Month (NG1!)" or "Second Month (NG2!)" Option
Default: Front Month (NG1!)

NG Price Settings
Absolute dollar tolerance for price matching
Example: If NG is $3.00 and tolerance is 0.50, matches $2.50-$3.50
Use Relative Tolerance (%)
Switch between absolute and percentage-based tolerance
NG Relative Tolerance %
Percentage-based tolerance for price matching
Example: If NG is $3.00 and tolerance is 10%, matches $2.70-$3.30

CCI Settings
Include CCI in pattern matching or use NG price only
Use Case: Disable if you only want price-based analysis
CCI Level Tolerance (+/-)
Absolute tolerance for CCI matching
Example: If CCI is 100 and tolerance is 20, matches 80-120
CCI Use Relative Tolerance (%)
Switch between absolute and percentage-based CCI tolerance
CCI Relative Tolerance %
Percentage-based tolerance for CCI matching
CCI Length
Period for CCI calculation
Standard: 20 is the classic CCI setting
CCI Source
Options: Close, Open, High, Low, HL/2, HLC/3, OHLC/4
Price source for CCI calculation

Lookback Period for Analysis (bars)
Range: 50-550 bars
Default: 550
How far back to search for historical matches
Highlight Historical Matches
Show blue background on bars where conditions matched
Show Seasonal Statistics
Display "Last Year Same Date" and "5-Yr Same Date" sections
Use Case: Disable to focus only on pattern statistics

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.