Seasonality - Multiple Timeframes📊 Seasonality - Multiple Timeframes
🎯 What This Indicator Does
This advanced seasonality indicator analyzes historical price patterns across multiple configurable timeframes and projects future seasonal behavior based on statistical averages. Unlike simple seasonal overlays, this indicator provides gap-resistant architecture specifically designed for commodity futures markets and other instruments with contract rolls.
🔧 Key Features
Multiple Timeframe Analysis
Three Independent Timeframes: Configure separate historical periods (e.g., 5Y, 10Y, 15Y) for comprehensive analysis
Individual Control: Enable/disable historical lines and projections independently for each timeframe
Color Customization: Distinct colors for historical patterns and future projections
Advanced Architecture
Gap-Resistant Design: Handles missing data and contract rolls in futures markets seamlessly
Calendar-Day Normalization: Uses 365-day calendar system for accurate seasonal comparisons
Outlier Filtering: Automatically excludes extreme price movements (>10% daily changes)
Roll Detection: Identifies and excludes contract roll periods to maintain data integrity
Real-Time Projections
Forward-Looking Analysis: Projects seasonal patterns into the future based on remaining calendar days
Configurable Projection Length: Adjust forecast period from 10 to 150 bars
Data Interpolation: Optional gap-filling for smoother seasonal curves
📈 How It Works
Data Collection Process
The indicator collects daily price returns for each calendar day (1-365) over your specified historical periods. For each timeframe, it:
Calculates daily returns while excluding roll periods and outliers
Accumulates these returns by calendar day across multiple years
Computes average seasonal performance from January 1st to current date
Projects remaining seasonal pattern based on historical averages
🎯 Designed For
Primary Use Cases
Commodity Futures Trading: Corn, soybeans, coffee, sugar, cocoa, natural gas, crude oil
Seasonal Strategy Development: Identify optimal entry/exit timing based on historical patterns
Pattern Validation: Confirm seasonal tendencies across different time horizons
Market Timing: Compare current performance against historical seasonal expectations
Trading Applications
Trend Confirmation: Use multiple timeframes to validate seasonal direction
Risk Assessment: Understand seasonal volatility patterns
Position Sizing: Adjust exposure based on seasonal performance consistency
Calendar Spread Analysis: Identify seasonal price relationships
⚙️ Configuration Guide
Timeframe Setup
Configure each timeframe independently:
Years: Set historical lookback period (1-20 years)
Historical Display: Show/hide the seasonal pattern line
Projection Display: Enable/disable future seasonal projection
Colors: Customize line colors for visual clarity
Display Options
Current YTD: Compare actual year-to-date performance
Info Table: Detailed performance comparison across timeframes
Projection Bars: Control forward-looking projection length
Fill Gaps: Interpolate missing data points for smoother curves
Debug Features
Enable debug mode to validate data quality:
Data Point Counts: Verify sufficient historical data per calendar day
Roll Detection Status: Monitor contract roll identification
Empty Days Analysis: Identify potential data gaps
Calculation Verification: Debug seasonal price computations
📊 Interpretation Guidelines
Strong Seasonal Signal
All three timeframes align in the same direction
Current price follows seasonal expectation
Sufficient data points (>3 years minimum per timeframe)
Seasonal Divergence
Different timeframes show conflicting patterns
Recent years deviate from longer-term averages
Current price significantly above/below seasonal expectation
Data Quality Indicators
Green Status: Adequate data across all calendar days
Red Warnings: Insufficient data or excessive gaps
Roll Detection: Proper handling of futures contract changes
⚠️ Important Considerations
Data Requirements
Minimum History: At least 3-5 years for reliable seasonal analysis
Continuous Data: Best results with daily continuous contract data
Market Hours: Designed for traditional market session data
Limitations
Past Performance: Historical patterns don't guarantee future results
Market Changes: Structural shifts can alter traditional seasonal patterns
External Factors: Weather, geopolitics, and policy changes affect seasonal behavior
Contract Rolls: Some data gaps may occur during futures roll periods
🔍 Technical Specifications
Performance Optimizations
Array Management: Efficient data storage using Pine Script arrays
Gap Handling: Robust price calculation with fallback mechanisms
Memory Usage: Optimized for large historical datasets (max_bars_back = 4000)
Real-Time Updates: Live calculation updates as new data arrives
Calculation Accuracy
Outlier Filtering: Excludes daily moves >10% to prevent data distortion
Roll Detection: 8% threshold for identifying contract changes
Data Validation: Multiple checks for price continuity and data integrity
🚀 Getting Started
Add to Chart: Apply indicator to your desired futures contract or commodity
Configure Timeframes: Set historical periods (recommend 5Y, 10Y, 15Y)
Enable Projections: Turn on future seasonal projections for forward guidance
Validate Data: Use debug mode initially to ensure sufficient historical data
Interpret Patterns: Compare current price action against seasonal expectations
💡 Pro Tips
Multiple Confirmations: Use all three timeframes for stronger signal validation
Combine with Technicals: Integrate seasonal analysis with technical indicators
Monitor Divergences: Pay attention when current price deviates from seasonal pattern
Adjust for Volatility: Consider seasonal volatility patterns for position sizing
Regular Updates: Recalibrate settings annually to maintain relevance
---
This indicator represents years of development focused on commodity market seasonality. It provides institutional-grade seasonal analysis previously available only to professional trading firms.
Dönemler
FVG & SMA @danciFVG zones with 200 SMA & daily dividers for intraday analysis, customizable and clear.
RUBY SYSTEM📋 Step 1: Setup & Installation
Add to TradingView:
Copy the entire Pine Script code from the artifact above
Open TradingView → Go to Pine Editor (bottom of screen)
Paste the code and click "Add to Chart"
Boom! Your chart now has institutional-level analysis
Customize Your Settings:
Click the ⚙️ gear icon on the indicator to adjust:
EMA Length: Keep at 9 (optimal for price action)
Stop Loss Method: Choose "Structure" (uses swing highs/lows)
Risk:Reward: TP1 at 1.5R, TP2 at 3R (customize as needed)
Volume Filter: Keep ON (avoids low-conviction moves)
🎯 Step 2: Reading the Visual Signals
What You'll See on Your Chart:
📊 Core Lines:
🟠 Orange Line: VWAP (institutional fair value)
🔵 Blue Line: EMA 9 (trend filter)
📦 Order Flow Boxes:
🟢 Green Boxes: Bullish Order Blocks (banks bought here)
🔴 Red Boxes: Bearish Order Blocks (institutions sold here)
📱 Green/Red FVG Boxes: Fair Value Gaps (price imbalances)
🎯 Entry Signals:
🟢 Green Triangle UP: Long entry signal
🔴 Red Triangle DOWN: Short entry signal
💎 Orange Diamonds: Liquidity sweeps (stop hunts)
⬆️ Lime Arrows: Bullish Break of Structure
⬇️ Purple Arrows: Bearish Break of Structure
📏 Trade Management Lines:
🔴 Red Dashed Line: Stop Loss level
🟢 Green Dashed Line: Take Profit level
🚀 Step 3: How to Trade
🔍 BEFORE Entering Any Trade:
Check the Dashboard (top-right corner):
HTF Trend: Only trade WITH the trend
Volume Surge: Want this to be TRUE
Market Structure: Look for BoS signals
📈 LONG ENTRY Checklist:
✅ Green triangle appears (entry signal)
✅ Price above VWAP (orange line)
✅ Price above EMA (blue line)
✅ HTF Trend shows "Bullish"
✅ Volume Surge = True
✅ Recent Break of Structure UP (↑)
📉 SHORT ENTRY Checklist:
✅ Red triangle appears (entry signal)
✅ Price below VWAP (orange line)
✅ Price below EMA (blue line)
✅ HTF Trend shows "Bearish"
✅ Volume Surge = True
✅ Recent Break of Structure DOWN (↓)
💰 Step 4: Trade Management
🛑 Stop Loss (Red Dashed Line):
Automatically calculated at recent swing high/low
NEVER move your stop against you
Only move to break-even after hitting first target
🎯 Take Profit (Green Dashed Line):
TP1: 1.5 Risk:Reward (take 50% profits)
TP2: 3.0 Risk:Reward (take remaining 50%)
Or hold until price closes opposite side of EMA
🚪 Exit Rules:
LONG: Exit when price closes BELOW EMA (blue line)
SHORT: Exit when price closes ABOVE EMA (blue line)
Or hit your stop loss
🏆 Step 5: Advanced Strategies
🎪 The "Liquidity Sweep" Setup:
Wait for orange diamond (liquidity sweep)
Look for immediate reversal back into structure
Enter when green/red triangle confirms
These are PREMIUM setups - highest win rate
📦 The "Order Block Retest":
Wait for price to hit a green/red box (order block)
Look for rejection from that zone
Enter when triangle signal appears
Institutions often defend these levels
🔄 The "VWAP Retest":
Price breaks VWAP with volume
Comes back to retest VWAP (orange line)
Gets support/resistance at VWAP
Enter on triangle signal confirmation
🚨 Step 6: Risk Management Rules
⚠️ NEVER Trade When:
Volume Surge = False (low conviction)
HTF Trend contradicts your direction
No Break of Structure signal
Market Structure shows "Ranging"
💡 Position Sizing:
Risk 1-2% per trade maximum
Use the stop loss line to calculate position size
Never risk more than you can afford to lose
📊 Best Timeframes:
5M-15M: Scalping (quick in/out)
1H-4H: Swing trading (hold longer)
Daily: Position trading
🎯 Quick Start Checklist:
✅ Add indicator to chart
✅ Wait for green/red triangle signal
✅ Check dashboard shows favorable conditions
✅ Confirm HTF trend alignment
✅ Enter trade at signal
✅ Set stop at red dashed line
✅ Take profits at green dashed line
✅ Exit if price closes opposite side of EMA
🚀 Pro Tips:
Be patient - wait for ALL confirmations
Quality over quantity - fewer high-probability trades win
Practice on paper before going live
Backtest on historical data to build confidence
Set up alerts so you don't miss signals
DCA Anchor (Weekly/Monthly/N Bars) [CHE] What is Dollar-Cost Averaging (DCA)?
DCA is a position-building method where you invest a fixed amount at fixed intervals (e.g., weekly or monthly) regardless of price. Over time, this:
reduces timing risk (you don’t need to guess tops/bottoms),
smooths entry price by buying more units when price is low and fewer when price is high,
keeps decisions simple and repeatable.
Trade-offs:
You’ll never catch the exact bottom.
In strong uptrends, lump-sum can outperform.
Fees matter if you buy very frequently.
Simple math:
Qty bought at time t = `amount / price_t` (net of fees if fees are not “on top”).
Total qty = sum of all buys.
Average price (cost basis) = `total invested / total qty`.
Equity = `total qty last price`.
P\&L = `equity − total invested` (and `%` = `P&L / total invested`).
DCA Anchor (Weekly/Monthly/N Bars)
Purpose: automate scheduled DCA buys on chart data, optionally add extra buys on drawdowns, track stats, and fire alerts.
Core features
Schedules:
1. Every N bars,
2. Weekly (first bar of a new week),
3. Monthly (first bar of a new month).
A Start time input gates when the logic begins.
Fees model:
Fee on top: you pay `amount + fee` in cash; quantity = `amount / close`.
Fee from amount: fee is deducted from the amount; quantity is smaller, cash outlay equals `amount`.
Optional drawdown buys:
Trigger when `close ≤ avgCost (1 − ddPct/100)`.
Controls: drawdown % threshold, multiplier (extra size vs. base amount), and cooldown in bars.
State & metrics: tracks total invested, total quantity, average price, equity, P\&L (abs/%).
Visuals:
Line plot of Average Price.
Buy labels at execution bars (plan and drawdown).
Compact table (positionable) with key stats (trades, invested, qty, avg price, equity, P\&L).
Alerts:
Plan Buy (Bar Close) and Drawdown Buy (Bar Close) — robust, non-repainting.
Optional Intrabar Preview alerts for early heads-up (can fire before bar close).
How to use it (quick start)
1. Add to chart → Inputs:
Buy frequency: pick Every N bars, Weekly, or Monthly.
Start time: date from which buys may begin.
Buy amount: fixed cash per planned buy.
Fees % and Fee on top? to match your broker/exchange model.
(Optional) Enable drawdown buy, set threshold %, multiplier, and cooldown.
Toggle Show buy labels and Show stats table.
2. Alerts (recommended):
Use “DCA Plan Buy (Bar Close)” and/or “DCA Drawdown Buy (Bar Close)” with Once per bar close.
If you need early signals, enable Intrabar pre-alerts and add the two Intrabar Preview alerts with Once per bar.
3. Interpretation:
The yellow line is your average price.
Green/orange markers show plan buys and drawdown buys.
The table summarizes total trades, invested capital, quantity, average price, current equity, and P\&L.
Practical notes
All executions occur at bar close by default to avoid intrabar repainting.
Weekly/monthly roll depends on the symbol’s exchange calendar.
Backtest realism: no slippage, no partial fills. Fees are modeled as configured.
If you buy very frequently, consider higher “N” or weekly/monthly to keep fees under control.
If you want, I can tailor the defaults (amount, fee model, drawdown rules) to your typical markets and timeframes.
Disclaimer
No indicator guarantees profits. DCA Anchor (Weekly/Monthly/N Bars) is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
SSL CHANNEL 2.0SSL Channel + Braid Filter + MFI Alerts (TanTechTrades™)
This indicator combines three confirmation tools — SSL Channel, Braid Filter, and Money Flow Index (MFI) — to generate precise buy/sell alerts.
🔹 Features
SSL Channel: Trend direction based on moving averages of highs and lows
Braid Filter: Confirms trend strength via EMA separation and volatility filter
MFI: Volume-adjusted momentum for validation of long/short entries
Alerts for both long and short signals
Background coloring for visual Braid Filter confirmation
Signal markers on the chart (BUY/SELL labels + colored circles)
🔹 How It Works
Long Signal: SSL bullish crossover + Braid Filter green + MFI above threshold
Short Signal: SSL bearish crossunder + Braid Filter red + MFI below threshold
Plots dynamic trend lines and color-coded backgrounds to reinforce signals visually
This multi-indicator system helps reduce false signals by requiring trend, momentum, and volume confirmation before entries.
⚠️ Disclaimer: Educational purposes only. Not financial advice.
SESSIONS Golden Team SESSIONS — Multi-Session Forex Box & Range Analysis
This indicator displays the major Forex market sessions — London, New York, Tokyo, Sydney, and Frankfurt — directly on the chart. Each session is shown as a customizable colored box with optional Fibonacci levels and opening range markers.
It also calculates and displays the average pip range of each session over a user-defined number of past days, allowing traders to analyze volatility patterns for each trading period.
Key Features:
Configurable session times and time zones
Individual on/off toggle for each session
Custom colors, box transparency, and border styles
Optional Opening Range and Fibonacci retracement levels for each session
Average pip range table for quick volatility reference
Works on any intraday timeframe
How It Works:
The script identifies the start and end times of each session based on user settings.
A box is drawn around the high/low of the session period.
At the end of each session, the pip range is recorded, and an average is calculated over the last N sessions (default: 20).
The results are displayed in a statistics table showing average pips and whether the session is currently active.
Suggested Use:
Identify high-volatility sessions for breakout trading
Filter trades to active trading hours
Study historical volatility to refine entry timing
FX Market Sessions serkanMarket stock market opening and closing indicators
Opening and closing time ranges
Frankfurt
London
CM
New York opening and closing time ranges
Minute speciale universale (3,11,17,29,41,47,53,59)//@version=5
indicator("Minute speciale universale (3,11,17,29,41,47,53,59)", overlay=true, max_labels_count=500)
// lista de minute speciale
var int specials = array.from(3, 11, 17, 29, 41, 47, 53, 59)
// minutul de start al barei (0..59)
mStart = minute(time)
// durata barei (secunde) -> minute
secInBar = timeframe.in_seconds(timeframe.period)
isIntraday = timeframe.isintraday
minutesInBar = (isIntraday and not na(secInBar)) ? math.max(1, int(math.ceil(secInBar / 60.0))) : 0
// caută dacă vreo valoare din `specials` cade în intervalul barei
bool hit = false
var int first = na
if minutesInBar > 0
for i = 0 to array.size(specials) - 1
s = array.get(specials, i)
delta = (s - mStart + 60) % 60
if delta < minutesInBar
hit := true
if na(first)
first := s
// etichetă (o singură linie ca să evităm parse issues)
if hit
label.new(bar_index, high, str.tostring(first), xloc=xloc.bar_index, yloc=yloc.abovebar, style=label.style_label_up, color=color.black, textcolor=color.white, size=size.tiny)
Worstfx Fractal Sessions V1.0Worstfx Sessions V.1.0 (Eastern Timezone)
A simple but powerful session visualizer designed to keep your focus on the right market windows. This indicator is designed to outline major Forex/Futures market sessions.
It is built for traders who want visual clarity on sessions & important market structure zones.
✅ Features:
• Automatic shading of Asia, London, Pre-NY, and NY sessions.
• Centered session titles that adapt to each window.
• 6:00 pm ET day divider (new trading day) with vertical weekday labels.
• Lightweight design — no extra clutter, just structure.
⚙️Customization
• Session colors & opacity: change each session’s look.
• Titles: toggle on/off, adjust color and font size.
• Dividers: toggle day divider on/off, change line color, choose weekday label color/size
🦾 Strengths
• Forces traders to see the market in cycles instead of random candles.
• Makes fractal rhythm (Asia → London → NY) visual.
• Great for building timing & patience (when not to trade matters just as much).
🚧 Limitations:
• Traders still need skill in reading price action inside the sessions — the indicator frames the market, but doesn't "predict."
- Score: 9/10 - Extremely useful, especially for people who get lost in noise. It gives them a map.
Stay tuned for updates!
VWAP MTF Scalping ModuleThe VWAP MTF indicator allows you to visualize anchored VWAP across multiple timeframes, while maintaining a clean and responsive display.
Designed for intraday traders, scalpers, and swing traders, this module offers a clear view of volume-weighted average price zones across key timeframes (1m, 5m, 15m, 1h... customizable).
Weekly Period Separator [Adjustable History]Features:
Adjustable History: Shows weekly separators for a configurable number of weeks back (1-100 weeks)
Customizable Appearance:
Choose line color, width, and style (solid, dotted, dashed)
Defaults to showing 10 weeks of historical data
Accurate Week Detection: Properly handles week boundaries regardless of timezone
Clean Implementation: Uses lines that extend from bottom to top of chart
Multi-Timeframe HTS Retest Strategy v6Multi-Timeframe HTS Retest Strategy v6 is a trend-following tool designed to detect high-probability retest entries aligned with higher timeframe direction. The indicator applies HTS bands (short & long) on both the current and higher timeframe (4x–8x multiplier) to confirm market bias.
A strong trend is validated when HTS bands separate on the higher timeframe. On the lower timeframe, the strategy tracks price behavior relative to the bands: after breaking outside, price must retest either the fast (blue) or slow (red) band, confirmed by a rejection candle. This generates precise BUY or SELL retest signals.
Features include flexible average methods (RMA, EMA, SMA, etc.), customizable cross detection (final cross, 4 crosses, or both), volume-based retest conditions, and clear visual signals (dots for trend start, triangles for retests). Alerts are integrated for automation.
This strategy is suitable for forex, crypto, indices, and stocks, supporting both scalping and swing trading.
FibNexus [CHE]FibNexus — Auto-Fibonacci with Adaptive TrendLen + TFRSI Triggers
What it is.
FibNexus is a chart overlay that auto-anchors Fibonacci levels to the most relevant swing range without any manual timeframe picking. It does this by computing an adaptive trend length (“TrendLen”) from recent price behavior, then drawing retracements/extensions from the detected swing High/Low. A built-in TFRSI module adds LONG/SHORT triggers and ready-made alerts.
What makes FibNexus different (the TrendLen edge)
Most Fibonacci tools either (a) use fixed lookbacks or (b) force you to choose a higher reference timeframe (or a multiplier of it) and then place Fibs on those higher-TF swings. Your earlier Ultimate Fibonacci Trading Tool \ follows that higher-reference approach (auto TF, multiplier, or manual) and emphasizes custom level/label options. ( )
FibNexus flips that workflow:
* It doesn’t rely on a higher timeframe or a static lookback.
* Instead, it measures multiple window lengths inside the current chart timeframe and selects the one that best fits the data right now.
* From that data-driven window, it automatically finds the most recent swing high & low and draws the entire Fib stack from there.
* When the statistically “best” window changes, anchors update once, labels refresh cleanly, and then lines just extend to the right on each new bar.
Result: No more guesswork about “which timeframe or lookback should I use?”—FibNexus adapts the anchors to market conditions and keeps the drawing noise low.
How TrendLen works (transparent, deterministic)
1. Scan windows: The script evaluates a series of lookbacks (10, 20, …, 500 bars).
2. Score by correlation: For each window, it computes the correlation between price and its lagged version and picks the window with the highest correlation (the strongest, most self-consistent trend segment).
3. Anchor the swing: On a confirmed bar and only when TrendLen changes, it scans the last `TrendLen` bars to capture the highest high and lowest low and marks them with “X”.
4. Draw once, extend later: It deletes the old Fib objects, redraws the active levels from those anchors, and from then on extends the lines to the right as new bars print (no redraw spam).
This makes FibNexus responsive (it adapts when the structure shifts) and quiet (it doesn’t constantly repaint Fibs).
Fibonacci engine (levels, labels, direction)
* Retracements: 0.000 · 0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 1.000
* Extensions: 1.618 · 2.618 · 3.618 · 4.236
* Label styles: *Default* (percent + price), *None*, *Percentage*, *Price*
* Label sizing: *tiny → huge*
* Bull/Bear context: Direction is inferred from mid-range positioning; prices are projected accordingly (retracement vs. extension math is handled for both cases).
* Selective toggles: You can show/hide any level and color it independently.
Momentum & signals (TFRSI module)
FibNexus embeds your TFRSI (“The Forbidden RSI \ ”) as the momentum/trigger layer. TFRSI is your open-source oscillator published on TradingView and designed for fast, normalized momentum readouts with customizable length/smoothing. ( )
* Defaults: `TFRSI length = 6`, `signal smoothing = 2`
* Triggers:
* LONG when TFRSI crosses up through the Long level (default 2.0)
* SHORT when TFRSI crosses down through the Short level (default 98.0)
* On-chart labels: Green LONG under the bar, red SHORT above the bar.
* Spam control: Keep only the N most recent labels to avoid clutter.
* Confirmed bars only: Signals/labels finalize at bar close to reduce flicker.
Alerts (ready for TradingView)
* LONG signal (TFRSI crossover)
* SHORT signal (TFRSI crossunder)
* TrendLen changed (anchors/Fibs recalculated)
* Price crossed a Fib level (any active level)
Use the provided `alertcondition(...)` entries in the TV dialog. Optionally enable instant `alert()` calls with verbose text (avoid duplicates if you also add alertconditions).
Typical use-cases & playbook
* Level reaction trading: In trends, watch 0.382 / 0.5 / 0.618 for reaction. A TFRSI up-cross near a retracement in an uptrend is a straightforward continuation setup; the opposite applies in downtrends.
* Breakout objectives: After clearing the 1.000 line (old swing), 1.618 is a common first extension target; beyond that, 2.618/3.618/4.236 map stretch objectives.
* Chop control: In range conditions, keep signals conservative (e.g., stick with the tight defaults 2.0/98.0 or raise thresholds). Always seek confluence (candlesticks, volume, HTF bias).
* Less micromanagement: You don’t need to babysit timeframe selection or anchors—TrendLen recomputes only when the data say so.
Inputs (by group)
* Core: TFRSI length & smoothing.
* Fibonacci Levels: Per-level toggles, numeric values, colors.
* Fibonacci Labels: Style (percentage/price/both/none) and size.
* Signals: Max number of visible LONG/SHORT labels (or 0 = off).
* TFRSI Trigger: Long/Short thresholds (defaults 2.0 / 98.0).
* Alerts: Master enable, per-event toggles, optional instant `alert()`.
Performance & UX
* Overlay indicator; efficient object handling.
* Clean redraw policy: Full re-draw only when TrendLen changes; otherwise Fibs extend horizontally.
* Clarity: Auto-marked swing anchors (“X”), configurable labels/colors.
Credits & references
* TFRSI – “The Forbidden RSI \ ” (open-source publication and description on TradingView). Used here as the momentum basis.
* “Ultimate Fibonacci Trading Tool \ ” (your earlier open-source tool on TradingView). Focuses on higher-reference timeframe selection (auto/multiplier/manual) and rich labeling controls; FibNexus replaces the fixed/higher-TF anchor logic with adaptive TrendLen in the current timeframe.
Risk disclaimer
This indicator is for educational/information purposes only and is not financial advice. No performance guarantees; past behavior does not predict future results. Trading involves substantial risk (including total loss). Always do your own research, test on demo, use risk management, and consult a licensed advisor where appropriate. Use at your own risk.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence with FibNexus ! 🚀
Happy trading
Chervolino
Stacey Burke Signal Day LTE“Previously published as ‘Day Zero Fakeout Detector MTF’”
Stacey Burke Signal Day LTE
Automatic detection of Day Zero, Inside Days, and Outside Days for Stacey Burke’s intraday playbook
🔎 Stacey Burke’s Signal Days
This indicator highlights the key daily patterns that often lead to high-probability intraday setups in Stacey Burke’s methodology:
1️⃣ Day Zero
The reset days within a 3-day cycle (e.g. breakout → continuation → exhaustion/reversal).
Can mark the beginning of a new directional phase.
Trades back inside the prior range after a Peak Formation High (PFH) or Peak Formation Low (PFL).
Bias: Look for measured parabolic session moves. When combined with trend following indicators, these signal days can be very powerful.
2️⃣ Inside Day
A day where the entire range is contained within the prior day’s range.
Signals consolidation and energy build-up.
Often leads to explosive breakouts in the next session.
Bias: Trade breakouts of the inside day’s high/low or breakout reversal in the session at key timings in the direction of higher timeframe bias. When combined with trend following indicators, these signal days can be very powerful.
3️⃣ Outside Day (Engulfing Day)
`
A day where the range is larger than the prior day’s range, engulfing both high and low.
Marks trapped traders and fakeouts on both sides.
Often precedes strong continuations or sharp reversals from outside of the ranges.
Bias: Align trades with the true continuation move. When combined with trend following indicators, these signal days can be very powerful.
📌 How They Work Together
Day Zero → Signals the new cycle after PFH/PFL.
Inside Day → Signals compression → expect breakout setups.
Outside Day → Signals exhaustion/fakeouts → expect reversals or continuations.
Together, they give traders a clear daily roadmap for where liquidity sits and when to expect the highest-probability setups.
✅ Example in Practice
Market rallies for 3 days → PFH forms → Day Zero short bias.
Next day prints an Inside Day → watch for breakout continuation short, and breakout reversals.
Later, an Outside Day traps both longs and shorts → the following session offers a clean intraday reversal or continuation trade in line with the underlying MTF trend/bias.
⚙️ Features of This Indicator
Automatic detection of Day Zero, Inside Days, and Outside Days
Multi-Timeframe (MTF) support for cycle alignment
Visual markers for PFH/PFL and consolidation zones
Measured move projections for breakout targets
👉 Stacey Burke Signal Day LTE gives traders just a few of the most important signal days — Day Zero, Inside Day, and Outside Day — to structure their intraday trades around fake outs, breakouts, and reversals within the daily cycles of the week. (This is work in progress: Next up, FRD/FGD's, 3-day cycle detecting, 3DLs, 3DSs).
Trend Score with Dynamic Stop Loss HTF
How the Trend Score System Works
This indicator uses a Trend Score (TS) to measure price momentum over time. It tracks whether price is breaking higher or lower, then sums these moves into a cumulative score to define trend direction.
⸻
1. Trend Score (+1 / -1 Mechanism)
On each new bar:
• +1 point: if the current bar breaks the previous bar’s high.
• −1 point: if the current bar breaks the previous bar’s low.
• If both happen in the same bar, they cancel each other out.
• If neither happens, the score does not change.
This creates a simple running measure of bullish vs bearish pressure.
⸻
2. Cumulative Trend Score
The Trend Score is cumulative, meaning each new +1 or -1 is added to the total score, building a continuous count.
• Rising scores = buyers are consistently pushing price to higher highs.
• Falling scores = sellers are consistently pushing price to lower lows.
This smooths out noise and helps identify persistent momentum rather than single-bar spikes.
⸻
3. Trend Flip Trigger (default = 3)
A trend flip occurs when the cumulative Trend Score changes by 3 points (default setting) in the opposite direction of the current trend.
• Bullish Flip:
• Cumulative TS rises 3 points from its most recent low pivot.
• Marks a potential start of a new uptrend.
• A bullish stop-loss (SL) is set at the most recent swing low.
• Bearish Flip:
• Cumulative TS falls 3 points from its most recent high pivot.
• Marks a potential start of a new downtrend.
• A bearish SL is set at the most recent swing high.
Example:
• TS is at -2, then climbs to +1.
• That’s a +3 change, triggering a bullish flip.
⸻
4. Visual Summary
• Green background: Active bullish trend.
• Red background: Active bearish trend.
• ▲ Triangle Up: A bullish flip occurred this bar.
• Stop Loss Line: Shows the structural low used for risk management.
⸻
Why This Matters
The Trend Score measures trend pressure simply and objectively:
• +1 / -1 mechanics track real price behavior (breakouts of highs and lows).
• Cumulative changes of 3 points act like a momentum filter, ignoring small reversals.
• This helps you see true regime shifts on higher timeframes, which is especially useful for swing trades and investing decisions.
⸻
Key Takeaways
• Only flips after meaningful swings: prevents overreacting to single-bar noise.
• SL shows invalidation point: helps you know where a trend thesis fails.
• Works best on Daily or Weekly charts: for smoother, more reliable signals. Using Trend Score for Long-Term Investing
This indicator is designed to support decision-making for higher timeframe investing, such as swing trades, multi-month positions, or even multi-year holds.
It helps you:
• Identify major bullish regimes.
• Decide when to add to winning positions (DCA up).
• Know when to pause buying or consider trimming during weak periods.
• Stay disciplined while holding long-term winners.
Important Note:
These are suggestions for context. Always combine them with your own analysis, portfolio allocation rules, and risk tolerance.
⸻
1. Start With the Higher Timeframe
• Use Weekly charts for a broad investing view.
• Use Daily charts only for fine-tuning entry points or deciding when to add.
• A Bullish Flip on Weekly suggests the market may be entering a major uptrend.
• If Weekly is bullish and Daily also turns bullish, it’s extra confirmation of strength.
⸻
2. Building a Position with DCA
Goal: Grow your position gradually during strong bullish regimes while staying aware of risk.
A. Initial Buy
• Start with a small initial allocation when a Bullish Flip appears on Weekly or Daily.
• This is just a starter position to get exposure while the new trend develops.
B. Adding Through Strength (DCA Up)
• Consider adding during pullbacks, as long as price stays above the active SL line.
• Each add should be smaller or equal to your first buy.
• Spread out adds over time or price levels, instead of going all-in at once.
C. Pause Buying When:
• Price approaches or touches the SL level (trend invalidation).
• A Bearish Flip appears on Weekly or Daily — this signals potential weakness.
• Your total position size reaches your maximum allocation limit for that asset.
⸻
3. Holding Winners
When a position grows in profit:
• Stay in the trend as long as the Weekly regime remains bullish.
• The indicator’s green background acts as a reminder to hold, not panic sell.
• Use the SL bubble to monitor where the trend could potentially break.
• Avoid selling just because of small pullbacks — focus on big-picture trend health.
⸻
4. Taking Partial Profits
While this tool is designed to help hold long-term winners, there may be times to lighten risk:
• After large, rapid moves far above the SL, consider trimming a small portion of your position.
• When MFE (Maximum Favorable Excursion) in the table reaches unusually high levels, it may signal overextension.
• If the Weekly chart turns Neutral or Bearish, you can gradually reduce exposure while waiting for the next Bullish Flip.
⸻
5. Using the Stop Loss Line for Awareness
The Dynamic SL line represents a structural level that, if broken, may suggest the bullish trend is weakening.
How to think about it:
• Above SL: Market remains structurally healthy — continue holding or adding gradually.
• Close to SL: Pause adds. Be cautious and consider tightening your risk.
• Below SL: Treat this as a potential signal to reassess your position, especially if the break is confirmed on Weekly.
The SL is not a hard stop — it’s a visual guide to help you manage expectations.
⸻
6. Example Use Case
Imagine you are investing in a growth stock:
• Weekly Bullish Flip: You open a small starter position.
• Price pulls back slightly but stays above SL: You add a second, smaller tranche.
• Trend continues up for months: You hold and stop adding once your desired allocation is reached.
• Price doubles: You trim 10–20% to lock some profits, but continue holding the majority.
• Price later dips below SL: You slow down, reassess, and decide whether to reduce exposure.
This keeps you:
• Participating in major uptrends.
• Avoiding overcommitment during weak phases.
• Making adjustments gradually, not emotionally.
⸻
7. Suggested Workflow
1. Check Weekly chart → is it Bullish?
2. If yes, review Daily chart to fine-tune entry or adds.
3. Build exposure gradually while Weekly remains bullish.
4. Watch SL bubbles as awareness points for risk management.
5. Use partial trims during big rallies, but avoid exiting entirely too soon.
6. Reassess if Weekly turns Neutral or Bearish.
⸻
Key Takeaways
• Use this as a compass, not a command system.
• Weekly flips = big picture direction.
• Daily flips = timing and precision.
• Add gradually (DCA) while above SL, pause near SL, reassess below SL.
• Hold winners as long as Weekly remains bullish.
Trend Score with Dynamic Stop Loss RTH
📘 Trend Score with Dynamic Stop Loss (RTH) — Guide
🔎 Overview
This indicator tracks intraday momentum during Regular Trading Hours and flags trend flips using a cumulative TrendScore. It also draws dynamic stop-loss levels and shows a live stats table for quick decision-making and journaling.
⸻
⚙️ Core Concepts
1) TrendScore (per bar)
• +1 if the current bar makes a higher high than the previous bar (counted once per bar).
• –1 if the current bar makes a lower low than the previous bar (counted once per bar).
• If a bar takes both the prior high and low, the net contribution can cancel out within that bar.
2) Cumulative TrendScore (running total)
• The per-bar TrendScore accumulates across the session to form the cumulative TrendScore (TS).
• TS resets to 0 at session open and is cleared at session close.
• Rising TS = persistent upside pressure; falling TS = persistent downside pressure.
⸻
🔄 Flip Rules (3-point reversal of the cumulative TrendScore)
A flip occurs when the cumulative TrendScore reverses by 3 points in the opposite direction of the current trend.
• Bullish Flip
• Trigger: After a decline, the cumulative TrendScore rises by +3 from its down-leg.
• Interpretation: Bulls have taken control.
• Stop-loss: the lowest price of the prior (down) leg.
• Bearish Flip
• Trigger: After a rise, the cumulative TrendScore falls by –3 from its up-leg.
• Interpretation: Bears have taken control.
• Stop-loss: the highest price of the prior (up) leg.
Flip bars are marked with ▲ (lime) for bullish and ▼ (red) for bearish.
Note: If you prefer a different reversal distance, adjust the flip distance setting in the script’s inputs (default is 3).
⸻
📏 Stop-Loss Lines
• A dotted line is drawn at the prior leg’s extreme:
Green (below price) after a bullish flip.
Red (above price) after a bearish flip.
• Options:
Remove on touch for a clean chart.
Freeze on touch to keep a visual record for journaling.
• All stop lines are cleared at session end.
⸻
🧮 Stats Table (what you see)
• Trend: Bull / Bear / Neutral
• Bars in Trend: Count since the flip bar
• Since Flip: Current close minus flip bar close
• Since SL: Current close minus active stop level
• MFE-Maximum Favorable Excursion: Highest favorable move since flip
• MAE-Maximum Adverse Excursion: Largest adverse move since flip
Table colors reflect the current trend (green for bull, red for bear).
⸻
📊 Trading Playbook
Entries
• Aggressive: Enter immediately on a flip marker.
• Conservative: Wait for a small pullback that doesn’t violate the stop.
Stops
• Place the stop at the script’s flip stop-loss line (the prior leg extreme).
Exits
Choose one style and stick with it:
• Stop-only: Exit when the stop is hit.
• Time-based: Flatten at session close.
• Targets: Scale/close at 1R, 2R.
• Trailing: Trail behind minor swings once MFE > 1R.
Ultimately Exit choice is your own edge, so you must decide for yourself.
💡 Best Practices
• Skip the first few bars after the open (gap noise).
• Use regular candles (Heikin-Ashi will distort highs/lows).
• If you want fewer flips, increase the flip distance (e.g., 4 or 5). For more
responsiveness, use 2. Otherwise, increase your time frame to 5m, 10m, 15m.
• Keep SL lines frozen (not auto-removed) if you’re journaling.
Price Grid (Base/Step/Levels)Price Grid (Base/Step/Levels) is a simple yet powerful tool for visual traders. It automatically draws a customizable grid of horizontal price levels on your chart.
You choose a base price, a grid step size, and the number of levels to display above and below. The indicator then plots evenly spaced lines around the base, helping you:
Spot round-number zones and psychological levels
Plan entries, exits, and stop-loss placements
Visualize support/resistance clusters
Build grid or ladder trading strategies
The base line is highlighted so you always know your anchor level, while the other levels are styled separately for clarity.
⚙️ Inputs
Base price → anchor level (set 0 to use current close price)
Grid step → distance between levels
Number of levels → lines drawn above & below base
Line style / width / colors → full customization
✅ Notes
Works on any market and timeframe
Automatically respects the symbol’s minimum tick size
Lightweight & non-repainting
Zigzag Market Type OscillatorZigzag Market Type Oscillator
This indicator is a powerful tool for analyzing market conditions by categorizing price action into one of four states: Up-Trending, Down-Trending, Consolidating, or Ranging. It uses a Zigzag pattern to identify swings and then calculates the average size of upward and downward price movements to determine the prevailing market type.
How It Works:
Swing Detection: The script first uses a Zigzag algorithm (based on the Zigzag Depth input) to find significant highs and lows in the market. These swings are considered the "legs" of price movement.
Average Leg Size: It keeps track of the percentage change of the most recent upward and downward legs. The Number of Legs for Average setting controls how many past legs are used to calculate the average size of up-moves and down-moves.
Disparity Calculation: The core of the indicator is the Disparity value, which measures the difference between the average size of up-legs and down-legs.
- A positive disparity means up-legs are, on average, larger than down-legs.
- A negative disparity means down-legs are, on average, larger than up-legs.
- A disparity near zero means up-legs and down-legs are roughly the same size.
Market Type Classification: The indicator then uses the Disparity and Average Size values to color-code the oscillator, providing a clear visual signal of the market type:
Green (Up-Trending): The disparity is positive and above your Disparity Threshold. This suggests a strong upward trend where buyers are consistently making larger moves than sellers.
Red (Down-Trending): The disparity is negative and below your -Disparity Threshold. This suggests a strong downward trend where sellers are consistently making larger moves than buyers.
Blue (Ranging): The disparity is close to zero (within your Disparity Threshold), and the overall Average Size of the swings is small (below your Size Threshold). This indicates a tight, choppy, and indecisive market with no clear direction.
Silver (Consolidating or drifting in direction of most recent trend) : The disparity is close to zero, but the overall Average Size of the swings is large. This suggests a sideways market with wide swings, also known as a trading range.
How to Use It:
Trend Confirmation: Use the Green and Red signals to confirm the direction and strength of a trend. A sustained green plot suggests a good environment for long positions, while a sustained red plot favors short positions.
Identify Non-Trending Conditions: Use the Blue and Silver plots to identify when the market is not trending. During these periods, trend-following strategies may not be effective. You might look for breakout opportunities (from a blue plot) or use a range-bound trading strategy (within a silver plot).
Risk Management: The oscillator can serve as a warning sign. For example, if you are in an uptrending market (green plot) but the oscillator suddenly turns silver or blue, it may signal that the trend is losing momentum and that you should consider reducing your position or tightening your stop-loss.
Settings:
Zigzag Depth: This controls the sensitivity of the Zigzag, which in turn defines the "legs." A higher value will ignore smaller price fluctuations, focusing on larger swings. A lower value will capture more detail.
Number of Legs for Average: This determines the lookback period for the average size calculation. A higher number will create a smoother, more stable oscillator but will react more slowly to changes in market behavior.
Disparity Threshold: This is the key setting that determines the line between a trending market and a non-trending one. Adjust this to a level that you believe represents a significant difference between up and down moves.
Size Threshold (%): This separates Ranging (small swings) from Consolidating (large swings). Adjust this to define what you consider a "small" vs. a "large" price swing for the asset you are trading.
Planetary Speed - CEPlanetary Speed - Community Edition
Welcome to the Planetary Speed - Community Edition , a specialized tool designed to enhance W.D. Gann-inspired trading by plotting the speed of selected planets. This indicator measures changes in planetary ecliptic longitudes, which may correlate with market timing and volatility, making it ideal for traders analyzing equities, forex, commodities, and cryptocurrencies.
Overview
The Planetary Speed - Community Edition calculates the speed of a chosen planet (Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto) by comparing its ecliptic longitude across time. Supporting heliocentric and geocentric modes, the script plots speed data with high precision across various chart timeframes, particularly for markets open 24/7 like cryptocurrencies. Traders can customize line colors and add multiple instances for multi-planet analysis, aligning with Gann’s belief that planetary cycles influence market trends.
Key Features
Plots the speed of eight planets (Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto) based on ecliptic longitude changes
Supports heliocentric and geocentric modes for flexible analysis
Customizes line colors for clear visualization of planetary speed data
Projects future speed data up to 250 days with daily resolution
Works across default TradingView timeframes (except monthly) for continuous markets
Enables multiple script instances for tracking different planets on the same chart
How to Use
Access the script’s settings to configure preferences
Choose a planet from Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto
Select heliocentric or geocentric mode for calculations
Customize the line color for speed data visualization
Review plotted speed data to identify potential market timing or volatility shifts
Add multiple instances to track different planets simultaneously
Get Started
The Planetary Speed - Community Edition provides full functionality for astrological market analysis. Designed to highlight Gann’s planetary cycles, this tool empowers traders to explore celestial influences. Trade wisely and harness the power of planetary speed!
Planetary Signs - CEPlanetary Signs - Community Edition
Welcome to the Planetary Signs - Community Edition , a specialized tool designed to enhance W.D. Gann-inspired trading by highlighting zodiac sign transitions for selected planets. This indicator marks when planets enter specific zodiac signs, which may correlate with market turning points, making it ideal for traders analyzing equities, forex, commodities, and cryptocurrencies.
Overview
The Planetary Signs - Community Edition calculates the ecliptic longitude of a chosen planet (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto) and highlights periods when it enters user-selected zodiac signs (Aries, Taurus, Gemini, etc.). Supporting heliocentric and geocentric modes, the script plots sign transitions with minute-level accuracy, syncing perfectly with chart timeframes. Traders can customize colors for each sign and add multiple instances for multi-planet analysis, aligning with Gann’s belief that zodiac transitions influence market trends.
Key Features
Highlights zodiac sign transitions for ten celestial bodies (Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto)
Supports heliocentric and geocentric modes (Pluto heliocentric-only; Sun and Moon geocentric)
Allows selection of one or multiple zodiac signs with customizable highlight colors
Plots vertical lines and labels (e.g., “☿ 0 ♈ Aries”) at sign transitions with minute-level accuracy
Projects future sign transitions up to 120 days with daily resolution
Enables multiple script instances for tracking different planets or signs on the same chart
How to Use
Access the script’s settings to configure preferences
Choose a planet from the Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, or Pluto
Select one or more zodiac signs (e.g., Aries, Taurus) to highlight
Customize the highlight color for each selected zodiac sign
Select heliocentric or geocentric mode for calculations
Review highlighted periods and labeled lines to identify zodiac sign transitions
Use transitions to anticipate potential market turning points, integrating Gann’s astrological principles
Get Started
The Planetary Signs - Community Edition provides full functionality for astrological market analysis. Designed to highlight Gann’s zodiac cycles, this tool empowers traders to explore celestial transitions. Trade wisely and harness the power of planetary alignments!
Elliott Wave Rule EngineWhat this tool does
The indicator scans price for two concurrent swing structures—a Small (shorter-degree) and a Large (higher-degree) set—then applies an Elliott/NeoWave rule engine to the most recent 5-swing motive (1-2-3-4-5) or 3-swing corrective (A-B-C). It produces:
Blue lines for Small swings and Orange lines for Large swings.
A rule dashboard (optional) showing PASS/FAIL/WARN for core rules & guidelines.
Buy/Sell labels when (a) a valid motive completes and (b) loop “consensus,” alignment, and scoring gates are satisfied.
Reading the chart
Small swings: thin blue segments, built from your Small settings.
Large swings: thicker orange segments, from your Large settings.
Background tint: faint green when a motive (impulse/diagonal) is valid right now on Small.
Labels (if enabled):
“1…5” or “A-B-C” markers on the latest detected structure.
Buy/Sell label at the last pivot when all gates pass; text may include a score %.
How it works
For both Small and Large degrees the script:
- Loops over all (left, right) combinations you specify (e.g., Small Left = 3..6, Right = 0..0) and calls ta.pivothigh/low.
- Aggregates the results:
- Keeps the most extreme pivot found in the loop (highest high or lowest low) that’s newer than the last accepted swing.
- Gates acceptance by minimum % change versus the last opposite swing (inside the loop) and a post-aggregation filter (Small Minimum swing %, Large Minimum swing %).
- Merges back-to-back same-type swings (HH or LL) by keeping only the more extreme one.
- Keeps only the last N=lookbackWaves swings (default 100).
- Consensus (used for signals) comes from the loop counts:
- sBuyConsensus = small L-count / total-combos (bullish bias)
- sSellConsensus = small H-count / total-combos (bearish bias)
(and the same for Large). This is a data-driven “how many combos agreed” measure.
2) Rule engine (Impulse/Diagonal vs. Corrective)
When there are at least 6 Small swings, the engine tests 1-2-3-4-5:
Hard rules (must pass for an Impulse):
- Wave-2 not > 100% of Wave-1 (no retrace beyond start of W1).
- Wave-3 not the shortest among 1,3,5.
- Wave-4 doesn’t overlap Wave-1 (if it does, structure may be a Diagonal).
- Diagonal eligibility: Rules 1 & 2 pass but Rule 3 fails ⇒ eligible as a Diagonal (
Guidelines (7 checks, count toward a threshold you set):
- W2 retraces a Fib level (within ±fibTol).
- W4 retraces a Fib level (within ±fibTol).
- W3 strongest momentum (speed = |Δprice| / bars).
- Alternation: W2 vs W4 have meaningfully different “sharpness” (price per bar), threshold altSlopeThr.
- Proportion (Price): |W1| and |W3| within propTolP× each other.
- Proportion (Time): W1W3 and W2W4 durations within propTolT×.
- W5 weaker than W3 (momentum divergence proxy).
A Motive is valid if:
- Impulse: all 3 hard rules pass and guideline passes ≥ Min guideline passes.
- Diagonal: diagonal-eligible and guideline passes ≥ Min guideline passes.
- if motive fails, the engine still evaluates ABC as Zigzag and Flat to populate the table:
- Zigzag: B shallower than ~0.618A; C ≈ A or 1.618A (±fibTol).
- Flat: B ≥ ~0.9A; expanded flat if B > 1.0A and C in *A; “running” note if C < A.
3) Signal logic (consensus-gated & scored)
Signals fire only on new Small pivots and only if a Small motive just validated:Direction comes from the motive’s W1 (up = bull, down = bear).
Consensus checks (from the loop):
Use Sell consensus if the last pivot is a High, or Buy consensus if it’s a Low.Require it ≥ Min SMALL loop consensus and ahead of the opposite side by at least Min consensus margin.If you also require Large quality: check the corresponding Large consensus ≥ Min LARGE loop consensus.
Alignment: If Require small/large directional alignment is ON, Small and Large directions must match (or the Large motive must be complete).
Score:
- If Large not required: finalScore = smallConsensus × smallQuality.
- If Large required: finalScore = smallConsensus × smallQuality × largeQuality.
- Need finalScore ≥ Min final score.
When all gates pass, you’ll see “Buy xx%” or “Sell xx%” at the pivot.
Inputs (explained):
- Smaller Wave Swing Detection (Looped)
- Small Left Min / Max (default 3..6): ta.pivot* left widths to scan.
- Small Right Min / Max (default 0..0): right widths to scan (0 = earliest confirmation).
- Small Minimum swing % (post-aggregation) (0.3%): filters out tiny swings after the loop.
- Larger Wave Swing Detection (Looped)
- Large Left Min / Max (100..200) and Right Min/Max (0..0): higher-degree scan (defaults are big; adjust for intraday).
- Large Minimum swing % (post-aggregation) (1.5%).
- Loop Filters (inside the loop)
- Small loop min % change (0.20%): a candidate pivot counts only if move vs. last opposite Small swing ≥ this.
- Large loop min % change (1.50%): same idea for Large.
Rule Engine Tolerances
- Fibonacci tolerance (±%) (0.05 = 5%): closeness to Fib levels.
-Same-degree TIME proportion max (x) (2.00×) and PRICE proportion max (x) (3.00×).
- Alternation slope ratio threshold (0.10): higher = stricter alternation.
- Min guideline passes (0–7) (5): threshold for motive validity.
- Signal Probability (Loop Consensus)
- Min SMALL loop consensus (0.60).
- Min LARGE loop consensus (0.50) (used only if Large validation matters).
- Min consensus margin vs opposite (0.10): e.g., 0.60 vs 0.45 fails (margin 0.15 passes).
Require LARGE 1–5 valid (or diagonal) for signal (off by default).
Min final score (0.20): gate on the composite score.
Annotate label with score % (on).
WARN (orange): guideline not met—pattern can still be valid if total passes ≥ Min guideline passes.
FAQ
Q: Why did I get a diagonal instead of an impulse?
A: Wave-4 overlapped Wave-1 (Rule 3). If Rules 1 & 2 pass and guidelines meet your minimum, it’s eligible as a Diagonal.
Q: Where do Buy/Sell labels come from?
A: Only after a valid Small motive at a new pivot, and only if consensus, alignment, and final score gates pass (per your settings).
Q: It “missed” a wave in hindsight.
A: Pivots require right bars to confirm; extremely tight settings can filter that swing; adjust Small min % or ranges.
Q: Are there repaints?
A: No, It uses standard pivot confirmation; until a pivot is confirmed, recent swings can evolve. After confirmation, lines/labels are stable.
Limitations & disclaimers
Elliott/NeoWave rules are heuristics; markets are messy. Treat outputs as structured context, not certainty.
Consensus is pattern-scan agreement, not probability of profit Not investment advice; always couple with risk management.