ZarzaZarza All-in-One Indicator for God’s Kingdom
“But remember the Lord your God, for it is He who gives you the power to get wealth, that He may establish His covenant.” — Deuteronomy 8:18
The Zarza All-in-One Indicator is more than a trading tool — it’s a divinely inspired system designed to help Kingdom traders operate with clarity, discipline, and spiritual alignment in the markets.
Built to detect momentum shifts, liquidity zones, reversals, and smart-money movements, this indicator brings together the best of technical precision and prophetic purpose.
This isn’t just about charts — it’s about stewardship.
Every trade is an act of faith and discernment, partnering with Heaven’s wisdom to prepare for the great wealth transfer that will fund God’s Kingdom projects and reach souls across the nations.
Indikatoren und Strategien
Hurdle rateStocks beating BTC 50 > 200 Week EMA. The indicator is scanning the available stocks for equities that are beating BTC over mid term time frames.
Relative Strength Index Remastered [CHE]Relative Strength Index Remastered — Enhanced RSI with robust divergence detection using price-based pivots and line-of-sight validation to reduce false signals compared to the standard RSI indicator.
Summary
RSI Remastered builds on the classic Relative Strength Index by adding a more reliable divergence detection system that relies on price pivots rather than RSI pivots alone, incorporating a line-of-sight check to ensure the RSI path between points remains clear. This approach filters out many false divergences that occur in the original RSI indicator due to its volatile pivot detection on the RSI line itself. Users benefit from clearer reversal and continuation signals, especially in noisy markets, with optional hidden divergence support for trend confirmation. The core RSI calculation and smoothing options remain familiar, but the divergence logic provides materially fewer alerts while maintaining sensitivity.
Motivation: Why this design?
The standard RSI indicator often generates misleading divergence signals because it detects pivots directly on the RSI values, which can fluctuate erratically in volatile conditions, leading to frequent false positives that confuse traders during ranging or choppy price action. RSI Remastered addresses this by shifting pivot detection to the underlying price highs and lows, which are more stable, and adding a validation step that confirms the RSI line does not cross the direct path between pivot points. This design targets the real problem of over-signaling in the original, promoting more actionable insights without altering the RSI's core momentum measurement.
What’s different vs. standard approaches?
- Reference baseline: The classical TradingView RSI indicator, which uses simple RSI-based pivot detection for divergences.
- Architecture differences:
- Pivot identification on price extremes (highs and lows) instead of RSI values, extracting RSI levels at those points for comparison.
- Addition of a line-of-sight validation that checks the RSI path bar by bar between pivots to prevent signals where the line is interrupted.
- Inclusion of hidden divergence types alongside regular ones, using the same robust framework.
- Configurable drawing of connecting lines between validated pivot RSI points for visual clarity.
- Practical effect: Charts show fewer but higher-quality divergence markers and lines, reducing clutter from the original's frequent RSI pivot triggers; this matters for avoiding whipsaws in intraday trading, where the standard version might flag dozens of invalid setups per session.
Key Comparison Aspects
Aspect: Title/Shorttitle
Original RSI: "Relative Strength Index" / "RSI"
Robust Variant: "Relative Strength Index Remastered " / "RSI RM"
Aspect: Max. Lines/Labels
Original RSI: No specification (Standard: 50/50)
Robust Variant: max_lines_count=200, max_labels_count=200 (for more lines/markers in divergences)
Aspect: RSI Calculation & Plots
Original RSI: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Robust Variant: Identical: RSI with RMA, Plots (line, bands, gradient fills)
Aspect: Smoothing (MA)
Original RSI: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Robust Variant: Identical: Inputs for MA types (SMA, EMA etc.), Bollinger Bands optional
Aspect: Divergence Activation
Original RSI: input.bool(false, "Calculate Divergence") (disabled by default)
Robust Variant: input.bool(true, "Calculate Divergence") (enabled by default, with tooltip)
Aspect: Pivot Calculation
Original RSI: Pivots on RSI (ta.pivotlow/high on RSI values)
Robust Variant: Pivots on price (ta.pivotlow/high on low/high), RSI values then extracted
Aspect: Lookback Values
Original RSI: Fixed: lookbackLeft=5, lookbackRight=5
Robust Variant: Input: L=5 (Pivot Left), R=5 (Pivot Right), adjustable (min=1, max=50)
Aspect: Range Between Pivots
Original RSI: Fixed: rangeUpper=60, rangeLower=5 (via _inRange function)
Robust Variant: Input: rangeUpper=60 (Max Bars), rangeLower=5 (Min Bars), adjustable (min=1–6, max=100–300)
Aspect: Divergence Types
Original RSI: Only Regular Bullish/Bearish: - Bull: Price LL + RSI HL - Bear: Price HH + RSI LH
Robust Variant: Regular + Hidden (optional via showHidden=true): - Regular Bull: Price LL + RSI HL - Regular Bear: Price HH + RSI LH - Hidden Bull: Price HL + RSI LL - Hidden Bear: Price LH + RSI HH
Aspect: Validation
Original RSI: No additional check (only pivot + range check)
Robust Variant: Line-of-Sight Check: RSI line must not cross the connecting line between pivots (line_clear function with slope calculation and loop for each bar in between)
Aspect: Signals (Plots/Shapes)
Original RSI: - Plot of pivot points (if divergence) - Shapes: "Bull"/"Bear" at RSI value, offset=-5
Robust Variant: - No pivot plots, instead shapes at RSI , offset=-R (adjustable) - Shapes: "Bull"/"Bear" (Regular), "HBull"/"HBear" (Hidden) - Colors: Lime/Red (Regular), Teal/Orange (Hidden)
Aspect: Line Drawing
Original RSI: No lines
Robust Variant: Optional (showLines=true): Lines between RSI pivots (thick for regular, dashed/thin for hidden), extend=none
Aspect: Alerts
Original RSI: Only Regular Bullish/Bearish (with pivot lookback reference)
Robust Variant: Regular Bullish/Bearish + Hidden Bullish/Bearish (specific "at latest pivot low/high")
Aspect: Robustness
Original RSI: Simple, prone to false signals (RSI pivots can be volatile)
Robust Variant: Higher: Price pivots are more stable, line-of-sight filters "broken" divergences, hidden support for trend continuations
Aspect: Code Length/Structure
Original RSI: ~100 lines, simple if-blocks for bull/bear
Robust Variant: ~150 lines, extended helper functions (e.g., inRange, line_clear), var group for inputs
How it works (technical)
The indicator first computes the core RSI value based on recent price changes, separating upward and downward movements over the specified length and smoothing them to derive a momentum reading scaled between zero and one hundred. This value is then plotted in a separate pane with fixed upper and lower reference lines at seventy and thirty, along with optional gradient fills to highlight overbought and oversold zones.
For smoothing, a moving average type is applied to the RSI if enabled, with an option to add bands around it based on the variability of recent RSI values scaled by a multiplier. Divergence detection activates on confirmed price pivots: lows for bullish checks and highs for bearish. At each new pivot, the system retrieves the bar index and values (price and RSI) for the current and prior pivot, ensuring they fall within a configurable bar range to avoid unrelated points.
Comparisons then assess whether the price has made a lower low (or higher high) while the RSI at those points moves in the opposite direction—higher for bullish regular, lower for bearish regular. For hidden types, the directions reverse to capture trend strength. The line-of-sight check calculates the straight path between the two RSI points and verifies that the actual RSI values in between stay entirely above (for bullish) or below (for bearish) that path, breaking the signal if any bar violates it. Valid signals trigger shapes at the RSI level of the new pivot and optional lines connecting the points. Initialization uses built-in functions to track prior occurrences, with states persisting across bars for accurate historical comparisons. No higher timeframe data is used, so confirmation occurs after the right pivot bars close, minimizing live-bar repaints.
Parameter Guide
Length — Controls the period for measuring price momentum changes — Default: 14 — Trade-offs/Tips: Shorter values increase responsiveness but add noise and more false signals; longer smooths trends but delays entries in fast markets.
Source — Selects the price input for RSI calculation — Default: Close — Trade-offs/Tips: Use high or low for volatility focus, but close works best for most assets; mismatches can skew overbought/oversold reads.
Calculate Divergence — Enables the enhanced divergence logic — Default: True — Trade-offs/Tips: Disable for pure RSI view to save computation; essential for signal reliability over the standard method.
Type (Smoothing) — Chooses the moving average applied to RSI — Default: SMA — Trade-offs/Tips: None for raw RSI; EMA for quicker adaptation, but SMA reduces whipsaws; Bollinger Bands option adds volatility context at cost of added lines.
Length (Smoothing) — Period for the smoothing average — Default: 14 — Trade-offs/Tips: Match RSI length for consistency; shorter boosts signal speed but amplifies noise in the smoothed line.
BB StdDev — Multiplier for band width around smoothed RSI — Default: 2.0 — Trade-offs/Tips: Lower narrows bands for tighter signals, risking more touches; higher widens for fewer but stronger breakouts.
Pivot Left — Bars to the left for confirming price pivots — Default: 5 — Trade-offs/Tips: Increase for stricter pivots in noisy data, reducing signals; too high delays confirmation excessively.
Pivot Right — Bars to the right for confirming price pivots — Default: 5 — Trade-offs/Tips: Balances with left for symmetry; longer right ensures maturity but shifts signals backward.
Max Bars Between Pivots — Upper limit on distance for valid pivot pairs — Default: 60 — Trade-offs/Tips: Tighten for short-term trades to focus recent action; widen for swing setups but risks unrelated comparisons.
Min Bars Between Pivots — Lower limit to avoid clustered pivots — Default: 5 — Trade-offs/Tips: Raise to filter micro-moves; too low invites overlapping signals like the original RSI.
Detect Hidden — Includes trend-continuation hidden types — Default: True — Trade-offs/Tips: Enable for full trend analysis; disable simplifies to reversals only, akin to basic RSI.
Draw Lines — Shows connecting lines between valid pivots — Default: True — Trade-offs/Tips: Turn off for cleaner charts; helps visually confirm line-of-sight in backtests.
Reading & Interpretation
The main RSI line oscillates between zero and one hundred, crossing above fifty suggesting building momentum and below indicating weakness; touches near seventy or thirty flag potential extremes. The optional smoothed line and bands provide a filtered view—price above the upper band on the RSI pane hints at overextension. Divergence shapes appear as upward labels for bullish (lime for regular, teal for hidden) and downward for bearish (red regular, orange hidden) at the pivot's RSI level, signaling a mismatch only after validation. Connecting lines, if drawn, slope between points without RSI interference, their color matching the shape type; a dashed style denotes hidden. Fewer shapes overall compared to the standard RSI mean higher conviction, but always confirm with price structure.
Practical Workflows & Combinations
- Trend following: Enter longs on regular bullish shapes near support with higher highs in price; filter hidden bullish for pullback buys in uptrends, pairing with a rising smoothed RSI above fifty.
- Exits/Stops: Use bearish regular as reversal warnings to tighten stops; hidden bearish in downtrends confirms continuation—exit if lines show RSI crossing the path.
- Multi-asset/Multi-TF: Defaults suit forex and stocks on one-hour charts; for crypto volatility, widen pivot ranges to ten; scale min/max bars proportionally on daily for swings, avoiding the original's intraday spam.
Behavior, Constraints & Performance
Signals confirm only after the right pivot bars close, so live bars may show tentative pivots that vanish on close, unlike the standard RSI's immediate RSI-pivot triggers—plan for this delay in automation. No higher timeframe calls, so no security-related repaints. Resources include up to two hundred lines and labels for dense charts, with a loop in validation scanning up to three hundred bars between pivots, which is efficient but could slow on very long histories. Known limits: Slight lag at pivot confirmation in trending markets; volatile RSI might rarely miss fine path violations; not ideal for gap-heavy assets where pivots skip.
Sensible Defaults & Quick Tuning
Start with defaults for balanced momentum and divergence on most timeframes. For too many signals (like the original), raise pivot left/right to eight and min bars to ten to filter noise. If sluggish in trends, shorten RSI length to nine and enable EMA smoothing for faster adaptation. In high-volatility assets, widen max bars to one hundred but disable hidden to focus essentials. For clean reversal hunts, set smoothing to none and lines on.
What this indicator is—and isn’t
RSI Remastered serves as a refined momentum and divergence visualization tool, enhancing the standard RSI for better signal quality in technical analysis setups. It is not a standalone trading system, nor does it predict price moves—pair it with volume, structure breaks, and risk rules for decisions. Use alongside position sizing and broader context, not in isolation.
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.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
VMS Momentum Trend Matrix Indicator [09.00 to 23.30]VMS Momentum Trend Matrix Indicator - Detailed Explanation
🎯 Overview & Core Philosophy
This is a multi-dimensional trading and a multi-confirmation system that combines 4 independent analytical approaches into one unified framework. The indicator operates on the principle of "consensus trading" - where signals are only considered reliable when multiple systems confirm each other. The system is designed for 9:00 AM to 23:30 PM trading sessions (Indian Market) with dynamic support/resistance levels.
Five Pillars of Analysis:
1. Trend Matrix – Multiple indicator voting system
2. Momentum Suite – Multiple Hybrid oscillator
3. Volume Analysis - Buy/sell pressure quantification
4. Key Level Identification - Dynamic support/resistance
5. EMA Trend: Indicates the overall long-term direction.
📊 DASHBOARD INTERPRETATION - ROW BY ROW
ROW 1: Indicator Name and Cell background colour changes with Trend Matrix
ROW 2: EMA ANALYSIS (It analyses independently and does not combine this analysis with the Combined Analysis and Trading View. Background Colour on price chart is based on this)
Purpose: Long-term trend identification using Exponential Moving Averages
What to Watch:
• Major Trend: Overall market direction (Bullish/Bearish/Neutral)
• Bullish Condition: All EMAs aligned upward
• Bearish Condition: All EMAs aligned downward
• Neutral: Mixed alignment
Trading Significance:
• Trading Condition: Current bias based on EMA alignment
• Bullish Market: Focus on LONG positions only
• Bearish Market: Focus on SHORT positions only
• Neutral Market: Wait for clearer direction
ROW 3-4: KEY LEVELS
Purpose: Dynamic support and resistance identification
Levels to Monitor:
• VMS Line-1 (Support): Dynamic Support for long positions
• VMS Line-2 (Resistance): Dynamic Resistance for short positions
• Up/Down: Daily base levels from opening price calculations
• Up: Daily support level based on opening price
• Down: Daily resistance level based on opening price
How Levels Work:
• Wait for Line-1 and 2 Crossing
• In the Upward movement, Line-1 will move with the price, and Line-2 will be moved as a straight line
• In the Downward movement, Line-2 will move with the price, and Line-2 will be moved as a straight line
• Provide clear entry/exit points
• If the price is between these levels, it is mostly a sideways market. After the Upward movement, if the price crosses Line-1 and other bearish conditions are supported, a short position can be taken. And in the Downward movement, it is the reverse condition.
• If the price is above the up level, it can be considered as bullish and below as bearish
ROW 5-6: VOLUME ANALYSIS
Purpose: Measure buying vs selling pressure
Key Metrics:
• Total Buy Volume: Cumulative buying pressure
• Total Sell Volume: Cumulative selling pressure
• Bullish Candles: Number of up-candles in session
• Bearish Candles: Number of down-candles in session
Interpretation:
• Buy Volume > Sell Volume: Bullish sentiment
• Sell Volume > Buy Volume: Bearish sentiment
• Bullish Candles Dominating: Upward momentum
• Bearish Candles Dominating: Downward momentum
ROW 7-8: MOMENTUM SUITE (Background colour of Oscillator is based on this)
Purpose: Short-term momentum strength and direction
Critical Components:
• Direction: Current momentum (BULLISH/BEARISH)
• Strength: 0-100% strength measurement
• Bullish Height: Positive momentum magnitude
• Bearish Height: Negative momentum magnitude
Strength Classification:
• 80-100%: Very Strong - High conviction trades
• 60-80%: Strong - Good trading opportunities
• 40-60%: Moderate - Caution advised
• 20-40%: Weak - Avoid trading
• 0-20%: Very Weak - No trade zone
ROW 9-11: TREND MATRIX
Purpose: Consensus from Multiple technical indicators
Matrix Scoring:
• Bullish Signals: Number voting UP
• Bearish Signals: Number voting DOWN
• Neutral Signals: Non-committed indicators
• Net Score: Bullish - Bearish signals
Trend Classification:
• Strong Uptrend: Net Score ≥ +5
• Uptrend: Net Score +1 to +4
• Neutral: Net Score = 0
• Downtrend: Net Score -1 to -4
• Strong Downtrend: Net Score ≤ -5
ROW 12: COMBINED ANALYSIS
Purpose: Final integrated signal from all systems
Bias Levels:
• STRONG BULLISH: All systems aligned upward
• BULLISH: Majority systems upward
• NEUTRAL: Mixed or weak signals
• BEARISH: Majority systems downward
• STRONG BEARISH: All systems aligned downward
Confidence Score: 0-100% reliability measurement
ROW 13: TRADING VIEW
Purpose: Clear action recommendations
Possible Actions:
• STRONG LONG: High conviction buy signal
• MODERATE LONG: Medium conviction buy signal
• WAIT FOR CONFIRMATION: No clear signal
• MODERATE SHORT: Medium conviction sell signal
• STRONG SHORT: High conviction sell signal
🎯 COMPLETE TRADING RULES
BUY ENTRY CONDITIONS (All Must Be True)
Primary Conditions:
1. Combined Bias: BULLISH or STRONG BULLISH
2. Trading Action: MODERATE LONG or STRONG LONG
3. Momentum Strength: ≥ 40% (≥60% for STRONG LONG)
4. Trend Matrix: Net Score ≥ +3
5. EMA Trend: Bullish or Neutral
Confirmation Conditions:
6. Price Position: Above VMS Line-1 AND Base Up
7. Volume Confirmation: Buy Volume > Sell Volume
8. Bullish Candles: More bullish than bearish candles
Risk Management:
9. Stop Loss: Below VMS Line-1 OR Base Down (whichever is lower)
10. Position Size: Based on confidence score (higher score = larger position)
11. Take Profit: When Combined Bias turns "NEUTRAL" or momentum strength drops below 20%
12. Exit Signal: Trading Action shows "WAIT FOR CONFIRMATION"
SELL/SHORT ENTRY CONDITIONS (All Must Be True)
Primary Conditions:
1. Combined Bias: BEARISH or STRONG BEARISH
2. Trading Action: MODERATE SHORT or STRONG SHORT
3. Momentum Strength: ≥ 40% (≥60% for STRONG SHORT)
4. Bearish Signals: ≥ 12 in Trend Matrix
5. Trend Matrix: Net Score ≤ -3
6. EMA Trend: Bearish or Neutral
Confirmation Conditions:
6. Price Position: Below VMS Line-2 AND Base Down
7. Volume Confirmation: Sell Volume > Buy Volume
8. Bearish Candles: More bearish than bullish candles
Risk Management:
9. Stop Loss: Above VMS Line-2 OR Base Up (whichever is higher)
10. Position Size: Based on confidence score
11. Take Profit: When Combined Bias turns "NEUTRAL" or momentum strength drops below 20%
12. Exit Signal: Trading Action shows "WAIT FOR CONFIRMATION"
⏰ ENTRY/EXIT TIMING
Best Entry Times:
• 9:30-11:00 AM: Early session momentum established
• 12:30-16:30 AM: Mid-session confirmation
• 21:30-23:00 PM: closing session momentum shifts
Avoid Trading:
• First 15 minutes: Excessive volatility
• 12:00-18:00 PM: Low liquidity period
• After 22:00 PM: Session closing volatility
Exit Triggers:
Profit Taking:
• Target 1: 1:1 Risk-Reward (exit 50% position)
• Target 2: 1.5:1 Risk-Reward (exit remaining 50%)
• Trailing Stop: Move stop to breakeven after Target 1
Stop Loss Triggers:
• Price crosses opposite VMS line
• Combined Bias changes to NEUTRAL
• Momentum Strength drops below 20%
• Volume confirmation reverses
•
Emergency Exit:
• Trend Matrix Net Score reverses direction
• 6-EMA trend changes direction
• Key support/resistance breaks against position
📈 TRADING SCENARIOS
Scenario 1: STRONG BULLISH SETUP
- Combined Bias: STRONG BULLISH
- Trading Action: STRONG LONG
- Momentum Strength: 75%
- Trend Matrix: Net Score +8
- Price: Above VMS Line-1 and Base Up
- Volume: Strong buy volume dominance
ACTION: Enter LONG with full position size
STOP LOSS: Below VMS Line-1
TARGET: 1.5:1 Risk-Reward ratio
Scenario 2: MODERATE BEARISH SETUP
- Combined Bias: BEARISH
- Trading Action: MODERATE SHORT
- Momentum Strength: 55%
- Trend Matrix: Net Score -4
- Price: Below VMS Line-2 but above Base Down
- Volume: Moderate sell volume dominance
ACTION: Enter SHORT with half position size
STOP LOSS: Above VMS Line-2
TARGET: 1:1 Risk-Reward ratio
Scenario 3: NEUTRAL/WAIT SETUP
- Combined Bias: NEUTRAL
- Trading Action: WAIT FOR CONFIRMATION
- Momentum Strength: 35%
- Trend Matrix: Net Score 0
- Mixed volume signals
ACTION: NO TRADE - Wait for clearer signals
________________________________________
⚠️ RISK MANAGEMENT RULES
Position Sizing:
• STRONG Signals (80-100% confidence): 100% normal position
• MODERATE Signals (60-79% confidence): 50-75% position
• WEAK Signals (40-59% confidence): 25% position or avoid
• VERY WEAK (<40% confidence): NO TRADE
Daily Loss Limits:
• Maximum 2% capital loss per day
• Maximum 3 consecutive losing trades
• Stop trading after the daily limit is reached
Trade Management:
• Never move the stop loss against a position
• Take partial profits at predetermined levels
• Never average down losing positions
• Respect all exit signals immediately
________________________________________
🔄 SIGNAL CONFIRMATION PROCESS
Step 1: Trend Direction
Check EMA alignment and Combined Bias
Step 2: Momentum Strength
Verify Momentum Strength ≥ 40% and direction matches trend
Step 3: Volume Confirmation
Confirm volume supports the direction
Step 4: Matrix Consensus
Ensure Trend Matrix agrees (Net Score ≥ |3|)
Step 5: Price Position
Verify price is on the correct side of key levels
Step 6: Entry Execution
Enter on a pullback to support/resistance with a stop loss
________________________________________
This system works best when you wait for all conditions to align. Patience is key - only trade when all systems confirm the same direction with adequate strength. The multiple confirmation layers significantly increase the probability of success but reduce trading frequency.
ULTIMATE SCALPING ADX BUY SELL on Price Chart[, Hey traders , i tried to bring ADX directly on price chart with BUY and SELL, I have noticed that it is next to perfect and will help the traders a lot, I have tried to also add buy and sell with the adx along with the buy and sell with DMI also. Also tried to vertical shift and adjust the ADX as per the requirement on Price chart. Hopw it will help the traders who usually do scalping. If any thing else seems lacking in this. do kindly share.
January Barometer OverlayDescription:
The January Barometer Overlay is a dynamic Pine Script indicator that visualizes the classic "January Barometer" seasonal forecasting concept directly on your TradingView chart. This tool stretches the intra-month price action of January (relative to its opening close) proportionally across the entire year, creating a predictive projection line that overlays your price candles. It's perfect for spotting potential yearly trends based on January's performance—e.g., if January ends up 5%, the projection forecasts a similar relative gain by December. For multi-year views, it applies a separate stretched projection for each year's January, color-coded for easy distinction: even years in hot yellow, odd years in vibrant pink. Whether you're analyzing stocks like SPY, cryptos like ETHUSD, or forex, this overlay turns historical seasonality into an intuitive, forward-looking guide. Note: It's illustrative for strategy brainstorming, not financial advice—backtest and combine with other indicators for real trades!
Key Features:
Proportional Stretching: Maps January's daily ratios to the full ~365 days (leap years handled automatically).
Future Projection: Extends the line into unloaded future bars for "what-if" forecasting.
Multi-Year Support: Alternating colors (yellow for even years, pink for odd) make historical comparisons pop.
Smooth Interpolation: Linear blending between January points for a clean, non-stepped line.
Historical Edge (S&P 500 Context): The January Barometer has ~75% directional accuracy since 1950, with positive Januaries signaling an 89% chance of yearly gains averaging +21.6%. Use it as a seasonal bias booster!
Instructions to Add and Use on TradingView
1. Search in Indicators: On any chart, click the Indicators button (fx icon) at the top. Search for "January Barometer Overlay" (or your custom title if you rename it).
2. Add to Chart: Select it from the Public Library results—Boom, it's overlaid!
Tips & Limitations:
Works on any ticker, but shines on indices/crypto with clear seasonal patterns.
Requires full January data; projections update live as January progresses.
Not a guarantee—markets evolve! Test on historical data (e.g., 2020's wild January vs. actual crash). If errors pop up, ensure you're on daily bars.
Adaptive CE-VWAP Breakout Framework [KedArc Quant]📘 Description
A structured framework that unites three complementary systems into one charting engine:
>Chandelier Exit (CE) – ATR-based trailing logic that defines trend direction, stop placement, and risk/reward overlays.
>Swing-Anchored VWAP (SWAV) – a dynamically anchored VWAP that re-starts from each confirmed swing and adapts its smoothness to volatility.
>Pivot S/R with Volume Breaks – confirmed horizontal levels with alerts when broken on expanding volume.
This script builds a single workflow for bias → trigger → management>without mixing unrelated indicators. Each module is internally linked rather than layered cosmetically, making it a true analytical framework—not.
🙏 Acknowledgment
Special thanks to Dynamic Swing Anchored VWAP by @Zeiierman, whose swing-anchoring concept inspired a part of the SWAV module’s implementation and adaptation logic.
Support and Resistance Levels with Breaks by @luxalgo for S/R breakout logic.
🎯 How this helps traders
>Trend clarity – CE color-codes direction and provides evolving stops.
>Context value – SWAV traces adaptive mean paths so traders see where price is “heavy” or “light.”
>Action filter – Pivot+volume logic highlights true structural breaks, filtering false moves.
>Discipline tool – Optional R:R boxes visualize risk and target zones to enforce planning.
🧩 Entry / Exit guidelines (for study purposes only)
Bias Use CE direction: green = long bias · red = short bias
Entry
1. Breakout method>– Trade in CE direction when a pivot level breaks on valid volume.
2. VWAP confirmation>– Prefer breaks occurring around the nearest SWAV path (fair-value cross or re-test).
Exit
>Stop = CE line / recent swing HL / ATR × (multiplier)
>Target = R-multiple × risk (default 2 R)
>Optional live update keeps SL/TP aligned with current CE state.
🧮 Core formula concepts
>ATR Stop: `Stop = High/Low – ATR × multiplier`
>VWAP calc: `Σ(price × vol) / Σ(vol)` anchored at swing pivot, adapted by APT (Adaptive Price Tracking) ratio ∝ ATR volatility.
>Volume oscillator: `100 × (EMA₅ – EMA₁₀)/EMA₁₀`; valid break when > threshold %.
⚙️ Input configuration (high-level)
Master Controls
• Show CE / SWAV modules • Theme & Fill opacity
CE Section
• ATR period & multiplier • Use Close for extremums
• Show buy/sell labels • Await bar confirmation
• Risk-Reward overlay: R-multiple, Stop basis (CE/Swing/ATR×), Live update toggle
SWAV Section
• Swing period • Adaptive Price Tracking length • Volatility bias (ATR-based adaptation) • Line width
Pivot & Volume Breaks
• Left/Right bar windows • Volume threshold % • Show Break labels and alerts
⏱ Best timeframes
>Intraday: 5 m – 30 m for breakout confirmation
>Swing: 1 h – 4 h for trend context
Settings scale with instrument volatility—adjust ATR period and volume threshold to match liquidity.
📘 Glossary
>ATR: Average True Range (volatility metric)
>CE: Chandelier Exit (trailing stop/trend filter)
>SWAV: Swing-Anchored VWAP (anchored mean price path)
>Pivot H/L: Confirmed local extrema using left/right bar windows
>R-multiple: Profit target as a multiple of initial risk
💬 FAQ
Q: Does it repaint? A: No—pivots wait for confirmation and VWAP updates forward-only.
Q: Can modules be disabled? A: Yes—each section has its own toggle.
Q: Can it trade automatically? A: This is an indicator/study, not an auto-strategy.
Q: Is this financial advice? A: No—educational use only.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Always apply sound risk management.
EA M1 Signals with Persistent ATR TP/SL1 Minute scalper for XAU/USD - uses multiple integrated indicators to provide signals upon a breakout and pullback
AI INSTITUTIONAL ENGINE + PATTERNS + VOLUME DASHBOARD📈 AI Institutional Engine – Pattern + Volume Dashboard
© 2025 MJ VIOLET PRO FX – all rights reserved
What it does
Auto-plots yesterday’s high / low / mid plus dynamic swing S/R
Detects 17 classical candle patterns on a higher-time-frame (default Daily)
Scans volume delta in real time and flags when today’s tape is ≥ 1.5 × 20-period average
Boosts pattern confidence if signal occurs inside NYSE hours (09:30 – 16:00 ET)
Paints an “HTF volume candle” so you see institutional-size footprints without changing charts
Fires audible / pop-up alerts only when pattern + volume + session line up
Why traders like it
One glance: trend emoji, pattern name, exact entry / exit prices, key level, stop distance
No repainting: all calculations close on the bar close; alerts fire once per bar
Fully customizable: toggle levels, labels, dashboard position, colours, text size, line length
Works on every symbol and timeframe (crypto, FX, equities, futures)
Lightweight code: < 500 drawing objects, no security() leaks, compatible with free TradingView accounts
How to read the dashboard
Buy Vol / Sell Vol / Delta – session-totals reset at the daily candle
Current Day – live bull / bear / doji emoji
Yesterday’s Range – the exact numbers the algo uses for breakout logic
Typical workflow
Add indicator
Wait for “High+” or “High” confidence pattern (green / orange label)
Check breakout box: close above resistance = long trigger, close below support = short trigger
Use suggested entry / stop in the label or place limit orders at the printed levels
Move stop to breakeven when price reaches 1:1 R:R or when opposite signal prints
Inputs you can tweak
Candle Time-frame for patterns (default D, but 4 h / 12 h / W work too)
Session filter time-zone (already set to “America/New_York”)
Volume multiplier (default 1.5 × MA)
Dashboard & table position, text sizes, colours, line style / length
Alert on / off for patterns and / or breakout levels only
Disclaimer
This tool is for educational and informational purposes only. It is not investment advice, an offer or solicitation to buy / sell any security, or a recommendation of any trading strategy. MJ VIOLET PRO FX is not a registered advisor. Futures, FX and CFDs are leveraged products; losses can exceed deposits. Always do your own due diligence and consult a licensed professional before risking capital.
SBuy (Beyond Candle)The primary objective of utilizing the Stochastic indicator is to pinpoint potential 'Buy Zones' on a price chart, where an asset is typically considered oversold and poised for a potential recovery
Yesterday's ATR DrawerWith this ATR Drawer, you can easily see what yesterday's ATR was compared to today's High/Low , you don't have to draw it yourself, and if you want, it will also show you yesterday's ATR number in the corner.
When a new High/Low is created during the day, the lines automatically adapt . So if a new high is created, the lower ATR line will move up, and vice versa. Every day, it recalculates and redraws the lines to yesterday's ATR level.
You can add 1 line above and 1 line below yesterday's ATR, which will be at the percentage distance from yesterday's original ATR line. So basically this allows you to set the average range that is usually reached after the ATR is broken .
You can set:
- ATR length
- ATR line width
- Line color
- Show/hide yesterday's ATR
- Upper Avr. Range After ATR Exceeded (%)
- Lower Avr. Range After ATR Exceeded (%)
Squeeze Weekday Frequency [CHE] Squeeze Weekday Frequency — Tracks historical frequency of low-volatility squeezes by weekday to inform timing of low-risk setups.
Summary
This indicator monitors periods of unusually low volatility, defined as when the average true range falls below a percentile threshold, and tallies their occurrences across each weekday. By aggregating these counts over the chart's history, it reveals patterns in squeeze frequency, helping traders avoid or target specific days for reduced noise. The approach uses persistent counters to ensure accurate daily tallies without duplicates, providing a robust view of weekday biases in volatility regimes.
Motivation: Why this design?
Traders often face inconsistent signal quality due to varying volatility patterns tied to the trading calendar, such as quieter mid-week sessions or busier Mondays. This indicator addresses that by binning low-volatility events into weekday buckets, allowing users to spot recurring low-activity days where trends may develop with less whipsaw. It focuses on historical aggregation rather than real-time alerts, emphasizing pattern recognition over prediction.
What’s different vs. standard approaches?
- Reference baseline: Traditional volatility trackers like simple moving averages of range or standalone Bollinger Band squeezes, which ignore temporal distribution.
- Architecture differences:
- Employs array-based persistent counters for each weekday to accumulate events without recounting.
- Includes duplicate prevention via day-key tracking to handle sparse data.
- Features on-demand sorting and conditional display modes for focused insights.
- Practical effect: Charts show a persistent table of ranked weekdays instead of transient plots, making it easier to glance at biases like higher squeezes on Fridays, which reduces the need for manual logging and highlights calendar-driven edges.
How it works (technical)
The indicator first computes the average true range over a specified lookback period to gauge recent volatility. It then ranks this value against its own history within a sliding window to identify squeezes when the rank drops below the threshold. Each bar's timestamp is resolved to a weekday using the selected timezone, and a unique day identifier is generated from the date components.
On detecting a squeeze and valid price data, it checks against a stored last-marked day for that weekday to avoid multiple counts per day. If it's a new occurrence, the corresponding weekday counter in an array increments. Total days and data-valid days are tracked separately for context.
At the chart's last bar, it sums all counters to compute shares, sorts weekdays by their squeeze proportions, and populates a table with the selected subset. The table alternates row colors and highlights the peak weekday. An info label above the final bar summarizes totals and the top day. Background shading applies a faint red to squeeze bars for visual confirmation. State persists via variable arrays initialized once, ensuring counts build incrementally without resets.
Parameter Guide
ATR Length — Sets the lookback for measuring average true range, influencing squeeze sensitivity to short-term swings. Default: 14. Trade-offs/Tips: Shorter values increase responsiveness but raise false positives in chop; longer smooths for stability, potentially missing early squeezes.
Percentile Window (bars) — Defines the history length for ranking the current ATR, balancing recent relevance with sample size. Default: 252. Trade-offs/Tips: Narrower windows adapt faster to regime shifts but amplify noise; wider ones stabilize ranks yet lag in fast markets—aim for 100-500 bars on daily charts.
Squeeze threshold (PR < x) — Determines the cutoff for low-volatility classification; lower values flag rarer, tighter squeezes. Default: 10.0. Trade-offs/Tips: Tighter thresholds (under 5) yield fewer but higher-quality signals, reducing clutter; looser (over 20) captures more events at the cost of relevance.
Timezone — Selects the reference for weekday assignment; exchange default aligns with asset's session. Default: Exchange. Trade-offs/Tips: Use custom for cross-market analysis, but verify alignment to avoid offset errors in global pairs.
Show — Toggles the results table visibility for quick on/off of the display. Default: true. Trade-offs/Tips: Disable in multi-indicator setups to save screen space; re-enable for periodic reviews.
Pos — Positions the table on the chart pane for optimal viewing. Default: Top Right. Trade-offs/Tips: Bottom options suit long-term charts; test placements to avoid overlapping price action.
Font — Adjusts text size in the table for readability at different zooms. Default: normal. Trade-offs/Tips: Smaller fonts fit more data but strain eyes on small screens; larger for presentations.
Dark — Applies a dark color scheme to the table for contrast against chart backgrounds. Default: true. Trade-offs/Tips: Toggle false for light themes; ensures legibility without manual recoloring.
Display — Filters table rows to show all, top three, or bottom three weekdays by squeeze share. Default: All. Trade-offs/Tips: Use "Top 3" for focus on high-frequency days in active trading; "All" for full audits.
Reading & Interpretation
Red-tinted backgrounds mark individual squeeze bars, indicating current low-volatility conditions. The table's summary row shows the highest squeeze count, its percentage of total events, and the associated weekday in teal. Detail rows list selected weekdays with their absolute counts, proportional shares, and a left arrow for the peak day—higher percentages signal days where squeezes cluster, suggesting potential for calmer trend development. The info label reports overall days observed, valid data days, and reiterates the top weekday with its count. Drifting counts toward zero on a weekday imply rarity, while elevated ones point to habitual low-activity sessions.
Practical Workflows & Combinations
- Trend following: Scan for squeezes on high-frequency weekdays as entry filters, confirming with higher highs or lower lows in the structure; pair with momentum oscillators to time breaks.
- Exits/Stops: On low-squeeze days, widen stops for breathing room, tightening them during peak squeeze periods to guard against false breaks—use the table's percentages as a regime proxy.
- Multi-asset/Multi-TF: Defaults work across forex and indices on hourly or daily frames; for stocks, adjust percentile window to 100 for shorter histories. Scale thresholds up by 5-10 points for high-vol assets like crypto to maintain signal sparsity.
Behavior, Constraints & Performance
- Repaint/confirmation: Counts update only on confirmed bars via day-key changes, with no future references—live bars may shade red tentatively but tallies finalize at session close.
- security()/HTF: Not used, so no higher-timeframe repaint risks; all computations stay in the chart's resolution.
- Resources: Relies on a fixed-size array of seven elements and small loops for sorting and table fills, capped at 5000 bars back—efficient for most charts but may slow on very long intraday histories.
- Known limits: Ignores weekends and holidays implicitly via data presence; early chart bars lack full percentile context, leading to initial undercounting; assumes continuous sessions, so gaps in data (e.g., news halts) skew totals.
Sensible Defaults & Quick Tuning
Start with the built-in values for broad-market daily charts: ATR at 14, window at 252, threshold at 10. For noisier environments, lower the threshold to 5 and shorten the window to 100 to prioritize rare squeezes. If too few events appear, raise the threshold to 15 and extend ATR to 20 for broader capture. To combat overcounting in sparse data, widen the window to 500 while keeping others stock—monitor the info label's data-days count before trusting patterns.
What this indicator is—and isn’t
This serves as a statistical overlay for spotting calendar-based volatility biases, aiding in session selection and filter design. It is not a standalone signal generator, predictive model, or risk manager—integrate it with price action, volume, and broader strategy rules for decisions.
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.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Falcon Imbalance TradesIn this indicator, I am using ATR + Volume to find breakouts. These candles where I am getting these breakouts, I am creating a box for price action. If candle breaks above it, it gives us a buy signal. Similarly for downside.
The logic is to find imbalance so that we can avoid sideways market and focus on trending or impulsive move.
I hope you enjoy this indicator. Drop comments for any questions.
Orderblocks & BreakersThis indicator identifies potential orderblocks and breakers based on recent swing highs and lows. It is built to offer a structured, customizable, and noise-controlled view of how price interacts with supply and demand levels.
The script applies pivot-based swing detection to identify swing highs and lows.
Bullish Orderblocks: The script Identifies and stores the last down candle before a swing high is breached and confirms and plots the orderblock with a market structure break (close above the swing high).
Bearish Orderblocks: The script Identifies and stores the last up candle before a swing low is breached and confirms and plots the orderblock with a market structure break (close below the swing low).
When price later closes through an existing orderblock, it is reclassified as a Breaker and recolored accordingly. (all colors can be changed in the settings)
What Makes It Different
Unlike most orderblock tools that simply mark every swing-based block, this version introduces:
1. Chop Control – automatically hides breakers that price repeatedly closes through (2 closes after the orderblock becomes a breaker), keeping only relevant zones visible.
2. Recent Block Filtering – limits how many of the recent orderblocks or breakers are displayed, preventing chart clutter.
3. Dynamic Updating – orderblocks automatically convert to breakers when price closes beyond them, with clear color changes.
These features make it easier to study cleaner price structure without manually managing old or invalid zones. The optional Chop Control filter can reduce overlapping or repeatedly invalidated zones to keep the chart clearer.
Customizable Parameters
- Swing detection length (shorter means more aggressive pivot detection, longer means less aggressive so less highs/lows detected)
- Number of recent blocks to display
- Visibility toggles for orderblocks or breakers
- Color and transparency controls for each type
Alerts
Alerts can be set to trigger when price tests any defined zone.
Purpose
This indicator is designed as a price structure visualization and study tool.
It may assist in understanding how price interacts with previously active regions, but it does not produce signals or trade recommendations.
Bitcoin Power Law Corridor + Z-score
This script visualizes the long-term Bitcoin Power Law Corridor, a conceptual model originally discussed by Harold Christopher Burger, and enhances it with a logarithmic Z-Score framework.
The indicator plots Bitcoin’s long-term regression curve together with estimated resistance and support bands based on power-law relationships between price and time since inception.
The added Z-Score expresses the statistical distance between price and the central regression line, using logarithmic scaling:
Z ≈ 0 → price near its long-term fair-value trajectory.
Z ≈ +2 → price near the lower corridor boundary (historically undervalued region).
Z ≈ −2 → price near the upper corridor boundary (historically overheated region).
This indicator is designed for visual and educational purposes only.
It should not be considered financial advice, a predictive model, or a signal provider.
Users should always combine this tool with other forms of technical, fundamental, and sentiment analysis to confirm confluence before making any decision.
CVD with Trend LineThis indicator augments the traditional Cumulative Volume Delta (CVD) by incorporating a customizable trend line that connects the tops of the CVD histogram bars, enhancing visualization of delta trends and market momentum. The CVD measures the net difference between buying and selling volume, utilizing lower timeframe data for accuracy, with configurable anchor periods and timeframe options. The trend line, which can be tailored in both color and style (e.g., solid, dashed), provides traders with a flexible tool to track cumulative delta movements, aiding in the identification of market sentiment shifts. Perfect for volume-based analysis with a clear, adaptable display.
Optimal Retracement📘 Optimal Retracement
Fibonacci Retracement Confluence Indicator
(Protected Source)
🧭 Overview
Optimal Retracement is a clean, professional Fibonacci retracement engine that finds price cluster zones where multiple retracements from recent swings align within a tight range. It mirrors the minimalist style of your projection tool: single horizontal lines, right-edge labels with ratio and price, optional price-scale markers, and a clustering core that designates one Prime retracement level with spaced Secondary levels.
⚙️ Core Features
Automatic Trend Bias
Select Auto (EMA-based), Up, or Down to focus calculations on the relevant swing direction.
Swing-Based Anchoring (Non-Repainting)
Builds swing legs from confirmed pivots (left/right bars), scanning a user-defined number of recent swings before computing retracement sets.
Fibonacci Retracements (Boroden)
Standard ratios: 0.236, 0.382, 0.500, 0.618, 0.786
• Up bias (Low→High): computes pullback support below the high.
• Down bias (High→Low): computes pullback resistance above the low.
Cluster Engine (Confluence Finder)
Groups nearby retracement levels within a tick-based tolerance, selects the highest-overlap Prime Cluster, and filters Secondary targets using a minimum spacing rule—keeping charts crisp and readable.
Smart Visualization
• One line per level, extending right a fixed length (configurable).
• Compact right-edge labels (ratio + exact price).
• Optional price-scale markers (Prime + up to two Secondaries).
• Distinct colors/widths for Prime vs Secondary levels.
Alerts Built-In
• Near Prime Cluster — when price approaches the Prime zone.
• Crossed Prime Cluster — when price breaks through the Prime zone.
(Optional runtime alerts include symbol, timeframe, and price.)
🎯 How to Use
Timeframe: Works on any TF; many prefer 1H–Daily for structure.
Bias: Set Auto, Up, or Down to align with trend context.
Swings: Tune Pivot Left/Right and Swings to Scan (e.g., 5–8).
Ratios: Toggle which retracement ratios to include.
Clustering: Adjust Cluster Tolerance (ticks), Min Members, and Min Spacing to instrument volatility/tick size.
Read: Use the Prime retracement cluster as your decision zone; Secondaries offer alternates if Prime is invalidated.
Alerts: Enable Near / Cross alerts to automate monitoring.
💡 Why It’s Different
Basic fib tools draw static lines from one swing. Optimal Retracement aggregates retracements across multiple recent swings and performs mathematical clustering to isolate the most overlapped zone. You get fewer lines, higher informational density, and an objective Prime level—a clean pullback map that pairs perfectly with projection/extension tools.
🔐 Protected Source Notice
Published as a Protected Script to preserve proprietary clustering, swing selection, and visualization design. All calculations, alerts, and visuals are fully functional while the core logic remains secured, consistent with TradingView’s standards for unique, non-trivial scripts.
⚠️ Disclaimer
For educational and analytical purposes only. This tool does not constitute financial advice or performance guarantees. Always perform independent analysis and manage risk appropriately.
🏷 Credits
Methodology inspired by Carolyn Boroden’s Fibonacci work (retracements & price clusters), adapted into a modern, cluster-driven retracement workflow with a minimal chart footprint.
Luxy Momentum, Trend, Bias and Breakout Indicators V7
TABLE OF CONTENTS
This is Version 7 (V7) - the latest and most optimized release. If you are using any older versions (V6, V5, V4, V3, etc.), it is highly recommended to replace them with V7.
Why This Indicator is Different
Who Should Use This
Core Components Overview
The UT Bot Trading System
Understanding the Market Bias Table
Candlestick Pattern Recognition
Visual Tools and Features
How to Use the Indicator
Performance and Optimization
FAQ
---
### CREDITS & ATTRIBUTION
This indicator implements proven trading concepts using entirely original code developed specifically for this project.
### CONCEPTUAL FOUNDATIONS
• UT Bot ATR Trailing System
- Original concept by @QuantNomad: (search "UT-Bot-Strategy"
- Our version is a complete reimplementation with significant enhancements:
- Volume-weighted momentum adjustment
- Composite stop loss from multiple S/R layers
- Multi-filter confirmation system (swing, %, 2-bar, ZLSMA)
- Full integration with multi-timeframe bias table
- Visual audit trail with freeze-on-touch
- NOTE: No code was copied - this is a complete reimplementation with enhancements.
• Standard Technical Indicators (Public Domain Formulas):
- Supertrend: ATR-based trend calculation with custom gradient fills
- MACD: Gerald Appel's formula with separation filters
- RSI: J. Welles Wilder's formula with pullback zone logic
- ADX/DMI: Custom trend strength formula inspired by Wilder's directional movement concept, reimplemented with volume weighting and efficiency metrics
- ZLSMA: Zero-lag formula enhanced with Hull MA and momentum prediction
### Custom Implementations
- Trend Strength: Inspired by Wilder's ADX concept but using volume-weighted pressure calculation and efficiency metrics (not traditional +DI/-DI smoothing)
- All code implementations are original
### ORIGINAL FEATURES (70%+ of codebase)
- Multi-Timeframe Bias Table with live updates
- Risk Management System (R-multiple TPs, freeze-on-touch)
- Opening Range Breakout tracker with session management
- Composite Stop Loss calculator using 6+ S/R layers
- Performance optimization system (caching, conditional calcs)
- VIX Fear Index integration
- Previous Day High/Low auto-detection
- Candlestick pattern recognition with interactive tooltips
- Smart label and visual management
- All UI/UX design and table architecture
### DEVELOPMENT PROCESS
**AI Assistance:** This indicator was developed over 2+ months with AI assistance (ChatGPT/Claude) used for:
- Writing Pine Script code based on design specifications
- Optimizing performance and fixing bugs
- Ensuring Pine Script v6 compliance
- Generating documentation
**Author's Role:** All trading concepts, system design, feature selection, integration logic, and strategic decisions are original work by the author. The AI was a coding tool, not the system designer.
**Transparency:** We believe in full disclosure - this project demonstrates how AI can be used as a powerful development tool while maintaining creative and strategic ownership.
---
1. WHY THIS INDICATOR IS DIFFERENT
Most traders use multiple separate indicators on their charts, leading to cluttered screens, conflicting signals, and analysis paralysis. The Suite solves this by integrating proven technical tools into a single, cohesive system.
Key Advantages:
All-in-One Design: Instead of loading 5-10 separate indicators, you get everything in one optimized script. This reduces chart clutter and improves TradingView performance.
Multi-Timeframe Bias Table: Unlike standard indicators that only show the current timeframe, the Bias Table aggregates trend signals across multiple timeframes simultaneously. See at a glance whether 1m, 5m, 15m, 1h are aligned bullish or bearish - no more switching between charts.
Smart Confirmations: The indicator doesn't just give signals - it shows you WHY. Every entry has multiple layers of confirmation (MA cross, MACD momentum, ADX strength, RSI pullback, volume, etc.) that you can toggle on/off.
Dynamic Stop Loss System: Instead of static ATR stops, the SL is calculated from multiple support/resistance layers: UT trailing line, Supertrend, VWAP, swing structure, and MA levels. This creates more intelligent, price-action-aware stops.
R-Multiple Take Profits: Built-in TP system calculates targets based on your initial risk (1R, 1.5R, 2R, 3R). Lines freeze when touched with visual checkmarks, giving you a clean audit trail of partial exits.
Educational Tooltips Everywhere: Every single input has detailed tooltips explaining what it does, typical values, and how it impacts trading. You're not guessing - you're learning as you configure.
Performance Optimized: Smart caching, conditional calculations, and modular design mean the indicator runs fast despite having 15+ features. Turn off what you don't use for even better performance.
No Repainting: All signals respect bar close. Alerts fire correctly. What you see in history is what you would have gotten in real-time.
What Makes It Unique:
Integrated UT Bot + Bias Table: No other indicator combines UT Bot's ATR trailing system with a live multi-timeframe dashboard. You get precision entries with macro trend context.
Candlestick Pattern Recognition with Interactive Tooltips: Patterns aren't just marked - hover over any emoji for a full explanation of what the pattern means and how to trade it.
Opening Range Breakout Tracker: Built-in ORB system for intraday traders with customizable session times and real-time status updates in the Bias Table.
Previous Day High/Low Auto-Detection: Automatically plots PDH/PDL on intraday charts with theme-aware colors. Updates daily without manual input.
Dynamic Row Labels in Bias Table: The table shows your actual settings (e.g., "EMA 10 > SMA 20") not generic labels. You know exactly what's being evaluated.
Modular Filter System: Instead of forcing a fixed methodology, the indicator lets you build your own strategy. Start with just UT Bot, add filters one at a time, test what works for your style.
---
2. WHO WHOULD USE THIS
Designed For:
Intermediate to Advanced Traders: You understand basic technical analysis (MAs, RSI, MACD) and want to combine multiple confirmations efficiently. This isn't a "one-click profit" system - it's a professional toolkit.
Multi-Timeframe Traders: If you trade one asset but check multiple timeframes for confirmation (e.g., enter on 5m after checking 15m and 1h alignment), the Bias Table will save you hours every week.
Trend Followers: The indicator excels at identifying and following trends using UT Bot, Supertrend, and MA systems. If you trade breakouts and pullbacks in trending markets, this is built for you.
Intraday and Swing Traders: Works equally well on 5m-1h charts (day trading) and 4h-D charts (swing trading). Scalpers can use it too with appropriate settings adjustments.
Discretionary Traders: This isn't a black-box system. You see all the components, understand the logic, and make final decisions. Perfect for traders who want tools, not automation.
Works Across All Markets:
Stocks (US, international)
Cryptocurrency (24/7 markets supported)
Forex pairs
Indices (SPY, QQQ, etc.)
Commodities
NOT Ideal For :
Complete Beginners: If you don't know what a moving average or RSI is, start with basics first. This indicator assumes foundational knowledge.
Algo Traders Seeking Black Box: This is discretionary. Signals require context and confirmation. Not suitable for blind automated execution.
Mean-Reversion Only Traders: The indicator is trend-following at its core. While VWAP bands support mean-reversion, the primary methodology is trend continuation.
---
3. CORE COMPONENTS OVERVIEW
The indicator combines these proven systems:
Trend Analysis:
Moving Averages: Four customizable MAs (Fast, Medium, Medium-Long, Long) with six types to choose from (EMA, SMA, WMA, VWMA, RMA, HMA). Mix and match for your style.
Supertrend: ATR-based trend indicator with unique gradient fill showing trend strength. One-sided ribbon visualization makes it easier to see momentum building or fading.
ZLSMA : Zero-lag linear-regression smoothed moving average. Reduces lag compared to traditional MAs while maintaining smooth curves.
Momentum & Filters:
MACD: Standard MACD with separation filter to avoid weak crossovers.
RSI: Pullback zone detection - only enter longs when RSI is in your defined "buy zone" and shorts in "sell zone".
ADX/DMI: Trend strength measurement with directional filter. Ensures you only trade when there's actual momentum.
Volume Filter: Relative volume confirmation - require above-average volume for entries.
Donchian Breakout: Optional channel breakout requirement.
Signal Systems:
UT Bot: The primary signal generator. ATR trailing stop that adapts to volatility and gives clear entry/exit points.
Base Signals: MA cross system with all the above filters applied. More conservative than UT Bot alone.
Market Bias Table: Multi-timeframe dashboard showing trend alignment across 7 timeframes plus macro bias (3-day, weekly, monthly, quarterly, VIX).
Candlestick Patterns: Six major reversal patterns auto-detected with interactive tooltips.
ORB Tracker: Opening range high/low with breakout status (intraday only).
PDH/PDL: Previous day levels plotted automatically on intraday charts.
VWAP + Bands : Session-anchored VWAP with up to three standard deviation band pairs.
---
4. THE UT BOT TRADING SYSTEM
The UT Bot is the heart of the indicator's signal generation. It's an advanced ATR trailing stop that adapts to market volatility.
Why UT Bot is Superior to Fixed Stops:
Traditional ATR stops use a fixed multiplier (e.g., "stop = entry - 2×ATR"). UT Bot is smarter:
It TRAILS the stop as price moves in your favor
It WIDENS during high volatility to avoid premature stops
It TIGHTENS during consolidation to lock in profits
It FLIPS when price breaks the trailing line, signaling reversals
Visual Elements You'll See:
Orange Trailing Line: The actual UT stop level that adapts bar-by-bar
Buy/Sell Labels: Aqua triangle (long) or orange triangle (short) when the line flips
ENTRY Line: Horizontal line at your entry price (optional, can be turned off)
Suggested Stop Loss: A composite SL calculated from multiple support/resistance layers:
- UT trailing line
- Supertrend level
- VWAP
- Swing structure (recent lows/highs)
- Long-term MA (200)
- ATR-based floor
Take Profit Lines: TP1, TP1.5, TP2, TP3 based on R-multiples. When price touches a TP, it's marked with a checkmark and the line freezes for audit trail purposes.
Status Messages: "SL Touched ❌" or "SL Frozen" when the trade leg completes.
How UT Bot Differs from Other ATR Systems:
Multiple Filters Available: You can require 2-bar confirmation, minimum % price change, swing structure alignment, or ZLSMA directional filter. Most UT implementations have none of these.
Smart SL Calculation: Instead of just using the UT line as your stop, the indicator suggests a better SL based on actual support/resistance. This prevents getting stopped out by wicks while keeping risk controlled.
Visual Audit Trail: All SL/TP lines freeze when touched with clear markers. You can review your trades weeks later and see exactly where entries, stops, and targets were.
Performance Options: "Draw UT visuals only on bar close" lets you reduce rendering load without affecting logic or alerts - critical for slower machines or 1m charts.
Trading Logic:
UT Bot flips direction (Buy or Sell signal appears)
Check Bias Table for multi-timeframe confirmation
Optional: Wait for Base signal or candlestick pattern
Enter at signal bar close or next bar open
Place stop at "Suggested Stop Loss" line
Scale out at TP levels (TP1, TP2, TP3)
Exit remaining position on opposite UT signal or stop hit
---
5. UNDERSTANDING THE MARKET BIAS TABLE
This is the indicator's unique multi-timeframe intelligence layer. Instead of looking at one chart at a time, the table aggregates signals across seven timeframes plus macro trend bias.
Why Multi-Timeframe Analysis Matters:
Professional traders check higher and lower timeframes for context:
Is the 1h uptrend aligning with my 5m entry?
Are all short-term timeframes bullish or just one?
Is the daily trend supportive or fighting me?
Doing this manually means opening multiple charts, checking each indicator, and making mental notes. The Bias Table does it automatically in one glance.
Table Structure:
Header Row:
On intraday charts: 1m, 5m, 15m, 30m, 1h, 2h, 4h (toggle which ones you want)
On daily+ charts: D, W, M (automatic)
Green dot next to title = live updating
Headline Rows - Macro Bias:
These show broad market direction over longer periods:
3 Day Bias: Trend over last 3 trading sessions (uses 1h data)
Weekly Bias: Trend over last 5 trading sessions (uses 4h data)
Monthly Bias: Trend over last 30 daily bars
Quarterly Bias: Trend over last 13 weekly bars
VIX Fear Index: Market regime based on VIX level - bullish when low, bearish when high
Opening Range Breakout: Status of price vs. session open range (intraday only)
These rows show text: "BULLISH", "BEARISH", or "NEUTRAL"
Indicator Rows - Technical Signals:
These evaluate your configured indicators across all active timeframes:
Fast MA > Medium MA (shows your actual MA settings, e.g., "EMA 10 > SMA 20")
Price > Long MA (e.g., "Price > SMA 200")
Price > VWAP
MACD > Signal
Supertrend (up/down/neutral)
ZLSMA Rising
RSI In Zone
ADX ≥ Minimum
These rows show emojis: GREEB (bullish), RED (bearish), GRAY/YELLOW (neutral/NA)
AVG Column:
Shows percentage of active timeframes that are bullish for that row. This is the KEY metric:
AVG > 70% = strong multi-timeframe bullish alignment
AVG 40-60% = mixed/choppy, no clear trend
AVG < 30% = strong multi-timeframe bearish alignment
How to Use the Table:
For a long trade:
Check AVG column - want to see > 60% ideally
Check headline bias rows - want to see BULLISH, not BEARISH
Check VIX row - bullish market regime preferred
Check ORB row (intraday) - want ABOVE for longs
Scan indicator rows - more green = better confirmation
For a short trade:
Check AVG column - want to see < 40% ideally
Check headline bias rows - want to see BEARISH, not BULLISH
Check VIX row - bearish market regime preferred
Check ORB row (intraday) - want BELOW for shorts
Scan indicator rows - more red = better confirmation
When AVG is 40-60%:
Market is choppy, mixed signals. Either stay out or reduce position size significantly. These are low-probability environments.
Unique Features:
Dynamic Labels: Row names show your actual settings (e.g., "EMA 10 > SMA 20" not generic "Fast > Slow"). You know exactly what's being evaluated.
Customizable Rows: Turn off rows you don't care about. Only show what matters to your strategy.
Customizable Timeframes: On intraday charts, disable 1m or 4h if you don't trade them. Reduces calculation load by 20-40%.
Automatic HTF Handling: On Daily/Weekly/Monthly charts, the table automatically switches to D/W/M columns. No configuration needed.
Performance Smart: "Hide BIAS table on 1D or above" option completely skips all table calculations on higher timeframes if you only trade intraday.
---
6. CANDLESTICK PATTERN RECOGNITION
The indicator automatically detects six major reversal patterns and marks them with emojis at the relevant bars.
Why These Six Patterns:
These are the most statistically significant reversal patterns according to trading literature:
High win rate when appearing at support/resistance
Clear visual structure (not subjective)
Work across all timeframes and assets
Studied extensively by institutions
The Patterns:
Bullish Patterns (appear at bottoms):
Bullish Engulfing: Green candle completely engulfs prior red candle's body. Strong reversal signal.
Hammer: Small body with long lower wick (at least 2× body size). Shows rejection of lower prices by buyers.
Morning Star: Three-candle pattern (large red → small indecision → large green). Very strong bottom reversal.
Bearish Patterns (appear at tops):
Bearish Engulfing: Red candle completely engulfs prior green candle's body. Strong reversal signal.
Shooting Star: Small body with long upper wick (at least 2× body size). Shows rejection of higher prices by sellers.
Evening Star: Three-candle pattern (large green → small indecision → large red). Very strong top reversal.
Interactive Tooltips:
Unlike most pattern indicators that just draw shapes, this one is educational:
Hover your mouse over any pattern emoji
A tooltip appears explaining: what the pattern is, what it means, when it's most reliable, and how to trade it
No need to memorize - learn as you trade
Noise Filter:
"Min candle body % to filter noise" setting prevents false signals:
Patterns require minimum body size relative to price
Filters out tiny candles that don't represent real buying/selling pressure
Adjust based on asset volatility (higher % for crypto, lower for low-volatility stocks)
How to Trade Patterns:
Patterns are NOT standalone entry signals. Use them as:
Confirmation: UT Bot gives signal + pattern appears = stronger entry
Reversal Warning: In a trade, opposite pattern appears = consider tightening stop or taking profit
Support/Resistance Validation: Pattern at key level (PDH, VWAP, MA 200) = level is being respected
Best combined with:
UT Bot or Base signal in same direction
Bias Table alignment (AVG > 60% or < 40%)
Appearance at obvious support/resistance
---
7. VISUAL TOOLS AND FEATURES
VWAP (Volume Weighted Average Price):
Session-anchored VWAP with standard deviation bands. Shows institutional "fair value" for the trading session.
Anchor Options: Session, Day, Week, Month, Quarter, Year. Choose based on your trading timeframe.
Bands: Up to three pairs (X1, X2, X3) showing statistical deviation. Price at outer bands often reverses.
Auto-Hide on HTF: VWAP hides on Daily/Weekly/Monthly charts automatically unless you enable anchored mode.
Use VWAP as:
Directional bias (above = bullish, below = bearish)
Mean reversion levels (outer bands)
Support/resistance (the VWAP line itself)
Previous Day High/Low:
Automatically plots yesterday's high and low on intraday charts:
Updates at start of each new trading day
Theme-aware colors (dark text for light charts, light text for dark charts)
Hidden automatically on Daily/Weekly/Monthly charts
These levels are critical for intraday traders - institutions watch them closely as support/resistance.
Opening Range Breakout (ORB):
Tracks the high/low of the first 5, 15, 30, or 60 minutes of the trading session:
Customizable session times (preset for NYSE, LSE, TSE, or custom)
Shows current breakout status in Bias Table row (ABOVE, BELOW, INSIDE, BUILDING)
Intraday only - auto-disabled on Daily+ charts
ORB is a classic day trading strategy - breakout above opening range often leads to continuation.
Extra Labels:
Change from Open %: Shows how far price has moved from session open (intraday) or daily open (HTF). Green if positive, red if negative.
ADX Badge: Small label at bottom of last bar showing current ADX value. Green when above your minimum threshold, red when below.
RSI Badge: Small label at top of last bar showing current RSI value with zone status (buy zone, sell zone, or neutral).
These labels provide quick at-a-glance confirmation without needing separate indicator windows.
---
8. HOW TO USE THE INDICATOR
Step 1: Add to Chart
Load the indicator on your chosen asset and timeframe
First time: Everything is enabled by default - the chart will look busy
Don't panic - you'll turn off what you don't need
Step 2: Start Simple
Turn OFF everything except:
UT Bot labels (keep these ON)
Bias Table (keep this ON)
Moving Averages (Fast and Medium only)
Suggested Stop Loss and Take Profits
Hide everything else initially. Get comfortable with the basic UT Bot + Bias Table workflow first.
Step 3: Learn the Core Workflow
UT Bot gives a Buy or Sell signal
Check Bias Table AVG column - do you have multi-timeframe alignment?
If yes, enter the trade
Place stop at Suggested Stop Loss line
Scale out at TP levels
Exit on opposite UT signal
Trade this simple system for a week. Get a feel for signal frequency and win rate with your settings.
Step 4: Add Filters Gradually
If you're getting too many losing signals (whipsaws in choppy markets), add filters one at a time:
Try: "Require 2-Bar Trend Confirmation" - wait for 2 bars to confirm direction
Try: ADX filter with minimum threshold - only trade when trend strength is sufficient
Try: RSI pullback filter - only enter on pullbacks, not chasing
Try: Volume filter - require above-average volume
Add one filter, test for a week, evaluate. Repeat.
Step 5: Enable Advanced Features (Optional)
Once you're profitable with the core system, add:
Supertrend for additional trend confirmation
Candlestick patterns for reversal warnings
VWAP for institutional anchor reference
ORB for intraday breakout context
ZLSMA for low-lag trend following
Step 6: Optimize Settings
Every setting has a detailed tooltip explaining what it does and typical values. Hover over any input to read:
What the parameter controls
How it impacts trading
Suggested ranges for scalping, day trading, and swing trading
Start with defaults, then adjust based on your results and style.
Step 7: Set Up Alerts
Right-click chart → Add Alert → Condition: "Luxy Momentum v6" → Choose:
"UT Bot — Buy" for long entries
"UT Bot — Sell" for short entries
"Base Long/Short" for filtered MA cross signals
Optionally enable "Send real-time alert() on UT flip" in settings for immediate notifications.
Common Workflow Variations:
Conservative Trader:
UT signal + Base signal + Candlestick pattern + Bias AVG > 70%
Enter only at major support/resistance
Wider UT sensitivity, multiple filters
Aggressive Trader:
UT signal + Bias AVG > 60%
Enter immediately, no waiting
Tighter UT sensitivity, minimal filters
Swing Trader:
Focus on Daily/Weekly Bias alignment
Ignore intraday noise
Use ORB and PDH/PDL less (or not at all)
Wider stops, patient approach
---
9. PERFORMANCE AND OPTIMIZATION
The indicator is optimized for speed, but with 15+ features running simultaneously, chart load time can add up. Here's how to keep it fast:
Biggest Performance Gains:
Disable Unused Timeframes: In "Time Frames" settings, turn OFF any timeframe you don't actively trade. Each disabled TF saves 10-15% calculation time. If you only day trade 5m, 15m, 1h, disable 1m, 2h, 4h.
Hide Bias Table on Daily+: If you only trade intraday, enable "Hide BIAS table on 1D or above". This skips ALL table calculations on higher timeframes.
Draw UT Visuals Only on Bar Close: Reduces intrabar rendering of SL/TP/Entry lines. Has ZERO impact on logic or alerts - purely visual optimization.
Additional Optimizations:
Turn off VWAP bands if you don't use them
Disable candlestick patterns if you don't trade them
Turn off Supertrend fill if you find it distracting (keep the line)
Reduce "Limit to 10 bars" for SL/TP lines to minimize line objects
Performance Features Built-In:
Smart Caching: Higher timeframe data (3-day bias, weekly bias, etc.) updates once per day, not every bar
Conditional Calculations: Volume filter only calculates when enabled. Swing filter only runs when enabled. Nothing computes if turned off.
Modular Design: Every component is independent. Turn off what you don't need without breaking other features.
Typical Load Times:
5m chart, all features ON, 7 timeframes: ~2-3 seconds
5m chart, core features only, 3 timeframes: ~1 second
1m chart, all features: ~4-5 seconds (many bars to calculate)
If loading takes longer, you likely have too many indicators on the chart total (not just this one).
---
10. FAQ
Q: How is this different from standard UT Bot indicators?
A: Standard UT Bot (originally by @QuantNomad) is just the ATR trailing line and flip signals. This implementation adds:
- Volume weighting and momentum adjustment to the trailing calculation
- Multiple confirmation filters (swing, %, 2-bar, ZLSMA)
- Smart composite stop loss system from multiple S/R layers
- R-multiple take profit system with freeze-on-touch
- Integration with multi-timeframe Bias Table
- Visual audit trail with checkmarks
Q: Can I use this for automated trading?
A: The indicator is designed for discretionary trading. While it has clear signals and alerts, it's not a mechanical system. Context and judgment are required.
Q: Does it repaint?
A: No. All signals respect bar close. UT Bot logic runs intrabar but signals only trigger on confirmed bars. Alerts fire correctly with no lookahead.
Q: Do I need to use all the features?
A: Absolutely not. The indicator is modular. Many profitable traders use just UT Bot + Bias Table + Moving Averages. Start simple, add complexity only if needed.
Q: How do I know which settings to use?
A: Every single input has a detailed tooltip. Hover over any setting to see:
What it does
How it affects trading
Typical values for scalping, day trading, swing trading
Start with defaults, adjust gradually based on results.
Q: Can I use this on crypto 24/7 markets?
A: Yes. ORB will not work (no defined session), but everything else functions normally. Use "Day" anchor for VWAP instead of "Session".
Q: The Bias Table is blank or not showing.
A: Check:
"Show Table" is ON
Table position isn't overlapping another indicator's table (change position)
At least one row is enabled
"Hide BIAS table on 1D or above" is OFF (if on Daily+ chart)
Q: Why are candlestick patterns not appearing?
A: Patterns are relatively rare by design - they only appear at genuine reversal points. Check:
Pattern toggles are ON
"Min candle body %" isn't too high (try 0.05-0.10)
You're looking at a chart with actual reversals (not strong trending market)
Q: UT Bot is too sensitive/not sensitive enough.
A: Adjust "Sensitivity (Key×ATR)". Lower number = tighter stop, more signals. Higher number = wider stop, fewer signals. Read the tooltip for guidance.
Q: Can I get alerts for the Bias Table?
A: The Bias Table is a dashboard for visual analysis, not a signal generator. Set alerts on UT Bot or Base signals, then manually check Bias Table for confirmation.
Q: Does this work on stocks with low volume?
A: Yes, but turn OFF the volume filter. Low volume stocks will never meet relative volume requirements.
Q: How often should I check the Bias Table?
A: Before every entry. It takes 2 seconds to glance at the AVG column and headline rows. This one check can save you from fighting the trend.
Q: What if UT signal and Base signal disagree?
A: UT Bot is more aggressive (ATR trailing). Base signals are more conservative (MA cross + filters). If they disagree, either:
Wait for both to align (safest)
Take the UT signal but with smaller size (aggressive)
Skip the trade (conservative)
There's no "right" answer - depends on your risk tolerance.
---
FINAL NOTES
The indicator gives you an edge. How you use that edge determines results.
For questions, feedback, or support, comment on the indicator page or message the author.
Happy Trading!
First-Move-Wrong Toolkit [CHE] First-Move-Wrong Toolkit — Session-bound sweep rejection with structure confirmation
Summary
This indicator marks potential “first move wrong” reversals during a defined trading session. It looks for a quick sweep beyond the prior day high or low, or the opening range high or low, followed by rejection and a basic structure confirmation. Optional rules require a retest and a VWAP reclaim in the direction of the trade idea. The script renders session levels as right-extended lines, signals as labels, optional SL/TP guide lines for visualization, and background tints during sweep events. Pivots are confirmed using swing width, which reduces repaint risk compared to live swings.
Motivation: Why this design?
Intraday reversals often start with a liquidity sweep around obvious highs or lows. Acting on the sweep alone can be noisy, while waiting for structure break and a retest can be slow. This tool balances both by checking a sweep and rejection at session-relevant levels, then requiring a simple structure cue and, optionally, a retest and a VWAP filter. The goal is a clear, rule-based signal layer that is easy to audit on chart without hidden state.
What’s different vs. standard approaches?
Baseline reference: Simple sweep detectors or basic CHOCH markers that ignore session context and liquidity anchors.
Architecture differences:
Session-aware opening range tracking that finalizes after the chosen minutes from session start.
Daily previous high and low pulled without lookahead, then extended forward as visual anchors.
Confirmed pivot highs and lows to avoid repaint from live, unconfirmed swings.
Optional retest rule using crossover or crossunder at the trigger level.
Optional VWAP filter to demand reclaim in the intended direction.
Global label cooldown to prevent clusters of signals.
Practical effect: Fewer one-off flips around noisy levels, clearer alignment with session structure, and compact visual feedback through lines, labels, and tints.
How it works (technical)
Levels: During the defined session, the script builds an opening range high and low until the configured minute mark after session start, then freezes those levels for the day. It also fetches the previous day high and low from the daily timeframe without lookahead and extends them forward.
Sweep and rejection: A sweep is defined as price moving beyond a target level and then rejecting back inside on the same bar. The script checks this condition separately for highs and lows against opening range and previous-day levels.
Structure validation: Confirmed pivot highs and lows are computed using a symmetric swing width. A bearish idea requires a prior sweep of a high plus a break through the last confirmed swing low. A bullish idea requires a prior sweep of a low plus a break through the last confirmed swing high.
Optional retest: If enabled, a bearish signal needs a cross under the bearish trigger level; a bullish signal needs a cross over the bullish trigger level.
VWAP filter (optional): The script requires a reclaim of VWAP in the intended direction when enabled.
State handling: Opening range values, previous-day lines, and the label cooldown timestamp are stored in persistent variables. Lines are created once and updated each bar to extend forward.
Repaint considerations: Pivots confirm only after the specified swing width, reducing repaint. The daily level request is performed without lookahead. Signals use closed-bar checks implied by crossover and crossunder logic.
Parameter Guide
Session (local) — Defines the active trading window. Default nine to seventeen. Narrower windows focus on the main session drive.
Opening Range (min) — Minutes from session start to finalize OR levels. Default fifteen. Shorter values react faster; longer values stabilize levels.
Use PrevDay H/L levels — Toggle previous-day anchors. On by default.
Use OR H/L levels — Toggle opening range anchors. On by default.
Equal H/L tolerance (ticks) — Intended tolerance for equal highs or lows. Default one. (Unknown/Optional) in current signals.
Swing width — Bars on both sides for confirmed pivots. Default two. Larger values reduce noise but confirm later.
Require CHOCH after sweep — Enforces structure break after a sweep. On by default.
Prefer retest entries — Requires crossover or crossunder of the trigger level. On by default.
VWAP filter — Demands a reclaim of VWAP in signal direction. Off by default.
TP in R (guide) — Multiplier for visual TP guides. Default one. Visualization only.
Show levels / Show signals / Show R-guides — Rendering toggles. R-guides are visual aids, not orders.
Label cooldown (bars) — Minimum bars between labels. Default five. Higher values reduce clusters.
Palette inputs — Colors and transparencies for levels, labels, VWAP, and tints.
Reading & Interpretation
Lines: Dotted lines represent opening range high and low after the OR window completes. Dashed lines represent previous-day high and low.
Signals: “Long” labels appear after a low-side sweep with rejection and structure confirmation, subject to optional retest and VWAP rules. “Short” labels mirror this on the high side.
Background tints: Red-tinted bars indicate a high-side sweep and rejection. Green-tinted bars indicate a low-side sweep and rejection.
R-guides: Circles display a visual stop level at the bar extreme and a target guide based on the selected multiple. They are informational only.
Practical Workflows & Combinations
Session reversal scans: During the first hour, watch for sweeps around previous-day or opening range levels, then wait for structure confirmation and optional retest.
Trend following with filters: Combine signals with higher-timeframe structure or a moving average regime check. Ignore signals against the dominant regime.
Exits and stops: Use the visual stop as a reference near the sweep extreme; adapt the target guide to volatility and market conditions.
Multi-asset / Multi-TF: Works on intraday timeframes for liquid futures, indices, forex, and large-cap equities. Start with default settings and adjust swing width and OR minutes to instrument volatility.
Behavior, Constraints & Performance
Repaint/confirmation: Pivots confirm after the swing window completes. Signals occur only when conditions are met on closed bars.
security()/HTF: Daily previous-day levels are requested without lookahead to reduce repaint.
Resources: Uses persistent variables and line updates per bar; no heavy loops or arrays.
Known limits: Signals can arrive later when swing width is large. Gaps around session boundaries may distort OR levels. VWAP behavior may vary with partial sessions or illiquid assets.
Sensible Defaults & Quick Tuning
Starting point: Session nine to seventeen, opening range fifteen minutes, swing width two, CHOCH required, retest on, VWAP off, cooldown five bars.
Too many flips: Increase swing width, enable VWAP filter, or raise label cooldown.
Too sluggish: Reduce swing width or shorten the opening range window.
Too many session-level hits: Disable either previous-day levels or opening range levels to simplify context.
What this indicator is—and isn’t
This is a session-aware visualization and signal layer focused on sweep-plus-structure behavior. It is not a complete trading system and does not manage orders, risk, or portfolio exposure. Use it with market structure, risk limits, and execution rules that fit your process.
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.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
DynLenLibLibrary "DynLenLib"
sum_dyn(src, len)
Parameters:
src (float)
len (int)
lag_dyn(src, len)
Parameters:
src (float)
len (int)
highest_dyn(src, len)
Parameters:
src (float)
len (int)
lowest_dyn(src, len)
Parameters:
src (float)
len (int)
var_dyn(src, len)
Parameters:
src (float)
len (int)
stdev_dyn(src, len)
Parameters:
src (float)
len (int)
hl2()
hlc3()
ohlc4()
sma_dyn(src, len)
Parameters:
src (float)
len (int)
ema_dyn(src, len)
Parameters:
src (float)
len (int)
rma_dyn(src, len)
Parameters:
src (float)
len (int)
smma_dyn(src, len)
Parameters:
src (float)
len (int)
wma_dyn(src, len)
Parameters:
src (float)
len (int)
vwma_dyn(price, vol, len)
Parameters:
price (float)
vol (float)
len (int)
hma_dyn(src, len)
Parameters:
src (float)
len (int)
dema_dyn(src, len)
Parameters:
src (float)
len (int)
tema_dyn(src, len)
Parameters:
src (float)
len (int)
kama_dyn(src, erLen, fastLen, slowLen)
Parameters:
src (float)
erLen (int)
fastLen (int)
slowLen (int)
mcginley_dyn(src, len)
Parameters:
src (float)
len (int)
median_price()
true_range()
atr_dyn(len)
Parameters:
len (int)
bbands_dyn(src, len, mult)
Parameters:
src (float)
len (int)
mult (float)
bb_percent_b(src, len, mult)
Parameters:
src (float)
len (int)
mult (float)
bb_bandwidth(src, len, mult)
Parameters:
src (float)
len (int)
mult (float)
keltner_dyn(src, lenEMA, lenATR, multATR)
Parameters:
src (float)
lenEMA (int)
lenATR (int)
multATR (float)
donchian_dyn(len)
Parameters:
len (int)
choppiness_index(len)
Parameters:
len (int)
vol_stop(lenATR, mult)
Parameters:
lenATR (int)
mult (float)
roc_dyn(src, len)
Parameters:
src (float)
len (int)
rsi_dyn(src, len)
Parameters:
src (float)
len (int)
stoch_dyn(kLen, dLen, smoothK)
Parameters:
kLen (int)
dLen (int)
smoothK (int)
stoch_rsi_dyn(rsiLen, stochLen, kSmooth, dLen)
Parameters:
rsiLen (int)
stochLen (int)
kSmooth (int)
dLen (int)
cci_dyn(src, len)
Parameters:
src (float)
len (int)
cmo_dyn(src, len)
Parameters:
src (float)
len (int)
trix_dyn(len)
Parameters:
len (int)
tsi_dyn(shortLen, longLen)
Parameters:
shortLen (int)
longLen (int)
ultimate_osc(len1, len2, len3)
Parameters:
len1 (int)
len2 (int)
len3 (int)
dpo_dyn(src, len)
Parameters:
src (float)
len (int)
willr_dyn(len)
Parameters:
len (int)
macd_dyn(src, fastLen, slowLen, sigLen)
Parameters:
src (float)
fastLen (int)
slowLen (int)
sigLen (int)
ppo_dyn(src, fastLen, slowLen, sigLen)
Parameters:
src (float)
fastLen (int)
slowLen (int)
sigLen (int)
aroon_dyn(len)
Parameters:
len (int)
dmi_adx_dyn(diLen, adxLen)
Parameters:
diLen (int)
adxLen (int)
vortex_dyn(len)
Parameters:
len (int)
coppock_dyn(rocLen1, rocLen2, wmaLen)
Parameters:
rocLen1 (int)
rocLen2 (int)
wmaLen (int)
rvi_dyn(len)
Parameters:
len (int)
price_osc_dyn(src, fastLen, slowLen)
Parameters:
src (float)
fastLen (int)
slowLen (int)
rci_dyn(src, len)
Parameters:
src (float)
len (int)
obv()
pvt()
cmf_dyn(len)
Parameters:
len (int)
adl()
chaikin_osc_dyn(fastLen, slowLen)
Parameters:
fastLen (int)
slowLen (int)
mfi_dyn(len)
Parameters:
len (int)
volume_osc_dyn(fastLen, slowLen)
Parameters:
fastLen (int)
slowLen (int)
up_down_volume()
cvd()
supertrend_dyn(atrLen, mult)
Parameters:
atrLen (int)
mult (float)
envelopes_dyn(src, len, pct)
Parameters:
src (float)
len (int)
pct (float)
linreg_line_slope(src, len)
Parameters:
src (float)
len (int)
lsma_dyn(src, len)
Parameters:
src (float)
len (int)
corrcoef_dyn(a, b, len)
Parameters:
a (float)
b (float)
len (int)
psar(step, maxStep)
Parameters:
step (float)
maxStep (float)
pivots_standard()
williams_alligator(src, jawLen, teethLen, lipsLen)
Parameters:
src (float)
jawLen (int)
teethLen (int)
lipsLen (int)
twap_dyn(src, len)
Parameters:
src (float)
len (int)
vwap_anchored(price, volume, reset)
Parameters:
price (float)
volume (float)
reset (bool)
performance_pct(len)
Parameters:
len (int)
Golden Cross Screener [Pineify]Golden Cross Screener Pineify – Multi-Symbol Trend Detection Screener for TradingView
Discover the Golden Cross Screener Pineify for TradingView: a multi-symbol, multi-timeframe indicator for crypto and other assets. Customizable Golden Cross detection, robust algorithm, and intuitive screener design for smarter portfolio trend analysis.
Key Features
Multi-symbol screening across major cryptocurrencies or assets – BTCUSD, ETHUSD, XRPUSD, USDT, BNB, SOLUSD, DOGEUSD, TRXUSD (fully customizable).
Multi-timeframe analysis (e.g., 1m, 5m, 10m, 30m), enabling robust trend detection from scalp to swing.
Customizable Moving Average settings for both Fast and Slow MA (source and length).
Efficient screener table, highlighting Golden Cross events and current asset trends in one panel.
Visual cues for bullish, bearish, and cross states using intuitive color-coding and labels.
Flexible symbol and timeframe inputs to tailor the screener to any portfolio or watchlist.
How It Works
The Golden Cross Screener Pineify leverages the classic Golden Cross methodology—a bullish trend signal triggered when a shorter-term moving average crosses above a longer-term moving average. To improve robustness, you are empowered to configure both Fast MA and Slow MA periods and sources, making the detection logic applicable to any symbol, timeframe, or asset class.
Internally, the script runs dedicated calculations on each chosen symbol and timeframe, generating independent signals using exponential moving averages (EMA). Using the TradingView `request.security` function, it fetches and processes price data for up to eight portfolio assets on four timeframes, displaying the detected Golden Cross, Bullish, or Bearish states in a central screener table.
Trading Ideas and Insights
Spot emerging bullish or bearish trends across your favorite crypto pairs or trading assets in real time.
Capture prime opportunities when multiple assets align with Golden Cross signals—ideal for portfolio rebalancing or rotational strategies.
Analyze trend consistency by monitoring cross events at multiple timeframes for a given asset.
Swiftly identify when short-term and long-term momentum diverge—flagging potential reversals or trend initiations.
The Golden Cross Screener Pineify is not just a trend signal; it’s a holistic multi-asset scanner built for traders who know the power of combining technical breadth with agile timing.
How Multiple Indicators Work Together
This screener stands out with its modular approach: each asset/timeframe pair is monitored in isolation, yet displayed collectively for multidimensional market insight. Each symbol’s price action is processed through independently configured EMAs—Fast and Slow—whose crossovers are analyzed for directional bias. The implementation’s real innovation is in its screener table engine: it aggregates signals, synchronizes timeframes, and color-codes market states, allowing users to see confluences, divergences, and sector trends at a glance.
Combining Golden Cross detection with customizable moving averages and flexible multi-timeframe, multi-symbol scanning means users can fine-tune sensitivity, focus on specific signals, and adapt screener logic for scalping, swing trading, or investing.
Unique Aspects
True multi-symbol screener within the TradingView indicator framework.
Full customization of screener assets, timeframes, and moving averages.
Advanced, efficient use of TradingView table for clear, actionable visualization.
No dependency on standard, static MA settings—adjust everything to match your strategy.
Big-picture and granular trend detection in one tool, designed for both active traders and portfolio managers.
How to Use
Add the Golden Cross Screener Pineify to your TradingView chart.
Choose up to eight symbols—crypto, stock, forex, or custom assets.
Set four timeframes for screening, from lower to higher intervals.
Adjust moving average sources (price, close, etc.) and period lengths for both Fast and Slow MAs to suit your trading style.
Interpret table cells: clear labels and color indicate Golden Cross (trend shift), Bullish (uptrend), Bearish (downtrend) states for each symbol/timeframe.
React to signal alignments—deploy or rebalance positions, increase alert sensitivity, or backtest sequence confluences.
Customization
The indicator’s inputs panel gives full control:
Select which symbols to screen, making it perfect for any asset watchlist.
Pick the desired timeframes—mix daily, hourly, or minute-based intervals.
Adjust Fast and Slow MA settings: switch source type, change period length, and fine-tune detection logic as needed.
Style your screener table via TradingView settings (colors, font sizes, alignment).
Every element is customizable—adapt the Golden Cross Screener Pineify for your specific portfolio, trading timeframe, and strategy focus.
Conclusion
The Golden Cross Screener Pineify elevates multi-symbol trend detection to a new level on TradingView. By combining configurable Golden Cross logic with a powerful screener engine, it serves both precision and broad market insight—crucial for agile traders and strategic portfolio managers. Whether you’re tracking crypto pairs, stocks, forex, or a mix, this tool transforms static trend analysis into an active, multi-dimensional trading edge.
AlgebraGeometryLabLibrary "AlgebraGeometryLab"
Algebra & 2D geometry utilities absent from Pine built-ins.
Rigorous, no-repaint, export-ready: vectors, robust roots, linear solvers, 2x2/3x3 det/inverse,
symmetric 2x2 eigensystem, orthogonal regression (TLS), affine transforms, intersections,
distances, projections, polygon metrics, point-in-polygon, convex hull (monotone chain),
Bezier/Catmull-Rom/Barycentric tools.
clamp(x, lo, hi)
clamp to
Parameters:
x (float)
lo (float)
hi (float)
near(a, b, atol, rtol)
approximately equal with relative+absolute tolerance
Parameters:
a (float)
b (float)
atol (float)
rtol (float)
sgn(x)
sign as {-1,0,1}
Parameters:
x (float)
hypot(x, y)
stable hypot (sqrt(x^2+y^2))
Parameters:
x (float)
y (float)
method length(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method length2(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method normalized(v)
Namespace types: Vec2
Parameters:
v (Vec2)
method add(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method sub(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method muls(v, s)
Namespace types: Vec2
Parameters:
v (Vec2)
s (float)
method dot(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method crossz(a, b)
Namespace types: Vec2
Parameters:
a (Vec2)
b (Vec2)
method rotate(v, ang)
Namespace types: Vec2
Parameters:
v (Vec2)
ang (float)
method apply(v, T)
Namespace types: Vec2
Parameters:
v (Vec2)
T (Affine2)
affine_identity()
identity transform
affine_translate(tx, ty)
translation
Parameters:
tx (float)
ty (float)
affine_rotate(ang)
rotation about origin
Parameters:
ang (float)
affine_scale(sx, sy)
scaling about origin
Parameters:
sx (float)
sy (float)
affine_rotate_about(ang, px, py)
rotation about pivot (px,py)
Parameters:
ang (float)
px (float)
py (float)
affine_compose(T2, T1)
compose T2∘T1 (apply T1 then T2)
Parameters:
T2 (Affine2)
T1 (Affine2)
quadratic_roots(a, b, c)
Real roots of ax^2 + bx + c = 0 (numerically stable)
Parameters:
a (float)
b (float)
c (float)
Returns: with n∈{0,1,2}; r1<=r2 when n=2.
cubic_roots(a, b, c, d)
Real roots of ax^3+bx^2+cx+d=0 (Cardano; returns up to 3 real roots)
Parameters:
a (float)
b (float)
c (float)
d (float)
Returns: (valid r2/r3 only if n>=2/n>=3)
det2(a, b, c, d)
det2 of
Parameters:
a (float)
b (float)
c (float)
d (float)
inv2(a, b, c, d)
inverse of 2x2; returns
Parameters:
a (float)
b (float)
c (float)
d (float)
solve2(a, b, c, d, e, f)
solve 2x2 * = via Cramer
Parameters:
a (float)
b (float)
c (float)
d (float)
e (float)
f (float)
det3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
det3 of 3x3
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
inv3(a11, a12, a13, a21, a22, a23, a31, a32, a33)
inverse 3x3; returns
Parameters:
a11 (float)
a12 (float)
a13 (float)
a21 (float)
a22 (float)
a23 (float)
a31 (float)
a32 (float)
a33 (float)
eig2_symmetric(a, b, d)
symmetric 2x2 eigensystem: [ , ]
Parameters:
a (float)
b (float)
d (float)
Returns: with unit eigenvectors
tls_line(xs, ys)
Orthogonal (total least squares) regression line through point cloud
Input arrays must be same length N>=2. Returns line in normal form n•x + c = 0
Parameters:
xs (array)
ys (array)
Returns: where (nx,ny) unit normal; (cx,cy) centroid.
orient(a, b, c)
orientation (signed area*2): >0 CCW, <0 CW, 0 collinear
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
project_point_line(p, a, d)
project point p onto infinite line through a with direction d
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
Returns: where proj = a + t*d
closest_point_segment(p, a, b)
closest point on segment to p
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
Returns: where t∈ on segment
dist_point_line(p, a, d)
distance from point to line (infinite)
Parameters:
p (Vec2)
a (Vec2)
d (Vec2)
dist_point_segment(p, a, b)
distance from point to segment
Parameters:
p (Vec2)
a (Vec2)
b (Vec2)
intersect_lines(p1, d1, p2, d2)
line-line intersection: L1: p1+d1*t, L2: p2+d2*u
Parameters:
p1 (Vec2)
d1 (Vec2)
p2 (Vec2)
d2 (Vec2)
Returns:
intersect_segments(s1, s2)
segment-segment intersection (closed segments)
Parameters:
s1 (Segment2)
s2 (Segment2)
Returns: where kind: 0=no, 1=proper point, 2=overlap (ix/iy=na)
circumcircle(a, b, c)
circle through 3 non-collinear points
Parameters:
a (Vec2)
b (Vec2)
c (Vec2)
intersect_circle_line(C, p, d)
intersections of circle and line (param p + d t)
Parameters:
C (Circle2)
p (Vec2)
d (Vec2)
Returns: with n∈{0,1,2}
intersect_circles(A, B)
circle-circle intersection
Parameters:
A (Circle2)
B (Circle2)
Returns: with n∈{0,1,2}
polygon_area(xs, ys)
signed area (shoelace). Positive if CCW.
Parameters:
xs (array)
ys (array)
polygon_centroid(xs, ys)
polygon centroid (for non-self-intersecting). Fallback to vertex mean if area≈0.
Parameters:
xs (array)
ys (array)
point_in_polygon(px, py, xs, ys)
point-in-polygon test (ray casting). Returns true if inside; boundary counts as inside.
Parameters:
px (float)
py (float)
xs (array)
ys (array)
convex_hull(xs, ys)
convex hull (monotone chain). Returns array of hull vertex indices in CCW order.
Uses array.sort_indices(xs) (ascending by x). Ties on x are handled; result is deterministic.
Parameters:
xs (array)
ys (array)
lerp(a, b, t)
linear interpolate between a and b
Parameters:
a (float)
b (float)
t (float)
bezier2(p0, p1, p2, t)
quadratic Bezier B(t) for points p0,p1,p2
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
t (float)
bezier3(p0, p1, p2, p3, t)
cubic Bezier B(t) for p0,p1,p2,p3
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
p3 (Vec2)
t (float)
catmull_rom(p0, p1, p2, p3, t, alpha)
Catmull-Rom interpolation (centripetal form when alpha=0.5)
t∈ , returns point between p1 and p2
Parameters:
p0 (Vec2)
p1 (Vec2)
p2 (Vec2)
p3 (Vec2)
t (float)
alpha (float)
barycentric(A, B, C, P)
barycentric coordinates of P wrt triangle ABC
Parameters:
A (Vec2)
B (Vec2)
C (Vec2)
P (Vec2)
Returns:
point_in_triangle(A, B, C, P)
point-in-triangle using barycentric (boundary included)
Parameters:
A (Vec2)
B (Vec2)
C (Vec2)
P (Vec2)
Vec2
Fields:
x (series float)
y (series float)
Line2
Fields:
p (Vec2)
d (Vec2)
Segment2
Fields:
a (Vec2)
b (Vec2)
Circle2
Fields:
c (Vec2)
r (series float)
Affine2
Fields:
a (series float)
b (series float)
c (series float)
d (series float)
tx (series float)
ty (series float)