FX TP/SL 2EMA traderglobaltopEMA crossover indicator with clear triangles, entry line, and automatic 2R TP/SL, optimized for forex.
Moving Averages
Swing Data [ATR Ext | RVol | ADR | Ticker/Sector RS]Disclaimer : This indicator is not financial advice and is strictly for educational and informational purposes only. The metrics and signals provided herein—including ATR extensions, volume projections, and rolling alpha for relative strength — are calculated based on historical market data and do not guarantee future performance. Trading stocks and commodities involves significant risk of loss. The user assumes full responsibility for all trading decisions and should always perform their own due diligence before executing trades.
Hello there. I was inspired after reading this Twitter post by Steve Jacobs regarding the ATR Matrix. I followed Steve's recommendation to the interesting indicator built by @Fred6724 for @jfsrev but I couldn't match my manual calculations to their math. So, I threw together this TradingView indicator to match my own manual calculations for the ATR Extension Multiple. And then, I added more quality-of-life features that I found useful in my daily workflow such as table positioning, specific data streams, threshold customization, and conditional coloring. This became quite a snowball.
Daily Chart : Please note that the design for this indicator was focused on the daily chart. Edge case testing has not been fully conducted for other charting periods, although the math should apply agnostically. The calculations of rolling alpha for Ticker RS and Sector RS fetch daily data instead of the displayed chart period, which may affect Ticker RS if you have turned on pre-market and after-market.
Relative Strength Differential reveals rolling alpha: One way to read the Ticker RS and Sector RS is... this stock is beating SPY by +75% in the past 63 days and blue color means the stock's outperformance is accelerating but the sector of this stock is beating SPY by a sleepy 3% and orange color means the sector's performance against the broader market is shrinking... so at a glance, we can conclude this is a strong stock in a lagging sector.
Status Line : The script outputs the raw ATR Extension value, ATR%, and a Boolean (0/1) for the ATR Extension alert dot directly to the Status Line. This allows you to hover your mouse over any historical candle to see exactly how extended price was on that specific candle, without needing to calculate it manually. These values are coded to display as text only. They provide the data you need without drawing distracting line plots across your price action. In the Style Tab of the indicator settings, you will see checkboxes for these values. Avoid toggling them off and on. Doing so can override the script’s default "invisible" setting and force TradingView to draw unnecessary lines on the chart.
Data streams available for turning on/off:
ATR Multiple above SMA (default SMA50, default alert on candle >6 multiple, the simple math is Price minus SMA50 and then divide by ATR)
ATR Percent (default period length 14)
ATR Value
Percent Distance from SMA (default SMA50)
Projected Relative Volume calculated against Average Volume (default 60 day avg vol)
Projected Volume (estimates end of day volume based on current volume at elapsed time)
Projected Dollar Volume (estimates end of day turnover based on projected volume x current price... it's a ballpark for gauging liquidity... time arrays for modestly more accurate turnover projection is compute heavy and low signal intel)
Average Volume (default 60 day)
Average Dollar Volume (default 60 day)
ADR Percent (default period length 20 while TradingView prefers 14)
ADX (default period length 14)
Low of Day Price
Dynamic Stop Loss (default Stop MA length 10 and Stop ATR multiple 0.5, adjust at your preference)
Market Capitalization (calculates latest Fiscal Quarter's Shares Outstanding x Price)
Ticker RS vs SPY (calculates the stock's 63-day rolling performance against the broader market to quantify raw outperformance percentage; the text color signals velocity, turning default blue if the relative strength is flying above the 21-day average of this relative strength or default orange if shrinking below)
Sector RS vs SPY (calculates the sector's 63-day rolling performance against the broader market to quantify raw outperformance percentage; the text color signals velocity, turning default blue if the relative strength is flying above the 21-day average of this relative strength or default orange if shrinking below)
Sector (basic exception handling such as metal/energy/crypto in ambiguous industries and GICS industry overrides, see code block below)
Industry (pulls TradingView's syminfo, truncates when too long)
Advanced mapping of the Sector string to a specific ETF, GICS Compliant.
// 1. Get Sector and Industry Strings
// 'str.lower' converts the description to lowercase to make keyword matching easier (case-insensitive).
string sec_raw = syminfo.sector
string ind_raw = syminfo.industry
string desc_raw = str.lower(syminfo.description)
// Default Fallback: If no match is found, we compare against SPY (Market Average).
string sec_etf = "SPY"
// 2. DEFINE CONDITIONAL GATES (The Safeguards)
// CRITICAL: We only want to scan for keywords (like "Silver") if the stock is in a vague industry bucket.
// This prevents "False Positives". For example, we don't want "Silvergate Bank" (Regional Banks)
// to be accidentally reclassified as a Mining stock just because it has "Silver" in the name.
bool is_ambiguous = ind_raw == "Investment Trusts/Mutual Funds" or ind_raw == "Miscellaneous" or ind_raw == "Financial Conglomerates" or ind_raw == "Other Metals/Minerals" or ind_raw == "Precious Metals"
// 3. KEYWORD LOGIC (Only runs inside the Gate)
// RULE A: COMMODITY TRUSTS (Metals -> XLB)
// Fixes: PSLV, PHYS, SPPP, GLD, SLV which are legally "Financial Trusts" but trade like Commodities.
// Logic: If it's a Trust AND mentions "Silver/Gold/Bullion", map to Materials ( AMEX:XLB ).
bool has_metal = str.contains(desc_raw, "silver") or str.contains(desc_raw, "gold") or str.contains(desc_raw, "bullion") or str.contains(desc_raw, "platinum") or str.contains(desc_raw, "palladium") or str.contains(desc_raw, "precious")
// RULE B: ENERGY TRUSTS (Oil/Uranium -> XLE)
// Fixes: USO, UNG, SPUT (Uranium).
// Logic: Uranium and Oil trusts correlate with Energy ( AMEX:XLE ), not Financials.
bool has_energy = str.contains(desc_raw, "oil") or str.contains(desc_raw, "natural gas") or str.contains(desc_raw, "petroleum") or str.contains(desc_raw, "uranium") or str.contains(desc_raw, "crude")
// RULE C: CRYPTO PROXIES (Bitcoin/Ether -> XLK)
// Fixes: GBTC, IBIT, FBTC.
// Logic: Crypto equities currently have the highest correlation with High-Beta Tech ( AMEX:XLK ).
bool has_crypto = str.contains(desc_raw, "bitcoin") or str.contains(desc_raw, "ethereum") or str.contains(desc_raw, "crypto") or str.contains(desc_raw, "coin")
// 4. EXECUTE KEYWORD MAPPING
if is_ambiguous and has_metal
sec_etf := "XLB" // Force Metals to Materials
else if is_ambiguous and has_energy
sec_etf := "XLE" // Force Energy Trusts to Energy
else if is_ambiguous and has_crypto
sec_etf := "XLK" // Force Crypto to Tech (Risk On)
// 5. GICS INDUSTRY OVERRIDES (The "Standard" Fixes)
// These rules fix known classification errors where TradingView data lags behind GICS reclassifications.
// EXCEPTION: PAYMENT PROCESSORS (The "Visa" Rule - 2023 Update)
// Visa ($V), Mastercard ( NYSE:MA ), and PayPal ( NASDAQ:PYPL ) are now Financials ( AMEX:XLF ), not Tech.
else if ind_raw == "Data Processing Services"
sec_etf := "XLF"
// EXCEPTION: COMMUNICATIONS (The "Google/Meta" Rule - 2018 Update)
// Separates "Internet" and "Media" stocks ( NASDAQ:GOOGL , NASDAQ:META , NASDAQ:NFLX ) from "Packaged Software" ( NASDAQ:MSFT ).
// These belong in Communications ( AMEX:XLC ).
else if ind_raw == "Internet Software/Services" or ind_raw == "Advertising/Marketing Services" or ind_raw == "Broadcasting" or ind_raw == "Cable/Satellite TV" or ind_raw == "Movies/Entertainment"
sec_etf := "XLC"
// EXCEPTION: REAL ESTATE (The "REIT" Rule)
// Pulls REITs out of the Financials bucket ( AMEX:XLF ) and into their own sector ( AMEX:XLRE ).
else if str.contains(ind_raw, "Real Estate") or str.contains(ind_raw, "REIT")
sec_etf := "XLRE"
// EXCEPTION: AUTO MANUFACTURERS (The "Tesla" Rule)
// Tesla ( NASDAQ:TSLA ), Ford ($F), and GM are Consumer Discretionary ( AMEX:XLY ), not Tech or Industrials.
else if ind_raw == "Motor Vehicles"
sec_etf := "XLY"
// EXCEPTION: INTERNET RETAIL (The "Amazon" Rule)
// Amazon ( NASDAQ:AMZN ) and eBay are Consumer Discretionary ( AMEX:XLY ), distinct from generic "Retail Trade" ( AMEX:XRT ).
else if ind_raw == "Internet Retail"
sec_etf := "XLY"
// EXCEPTION: TEXTILES & APPAREL
// Nike ( NYSE:NKE ), Lululemon ( NASDAQ:LULU ), and Ralph Lauren are Consumer Discretionary ( AMEX:XLY ).
else if ind_raw == "Apparel/Footwear" or ind_raw == "Textiles"
sec_etf := "XLY"
// EXCEPTION: AEROSPACE & DEFENSE (The "Lockheed" Rule)
// Often mislabeled as Tech in some feeds, strictly belongs to Industrials ( AMEX:XLI ).
else if ind_raw == "Aerospace & Defense"
sec_etf := "XLI"
// EXCEPTION: SEMICONDUCTORS
// Explicit check to ensure Semis ( NASDAQ:NVDA , NASDAQ:AMD ) always stick to Tech ( AMEX:XLK ).
else if ind_raw == "Semiconductors"
sec_etf := "XLK"
// 6. STANDARD FALLBACKS
// If the stock didn't trigger any exception above, map based on the broad Sector name.
else
sec_etf := switch sec_raw
"Technology Services" => "XLK" // Microsoft, Oracle, Adobe
"Electronic Technology" => "XLK" // Apple, Hardware
"Finance" => "XLF" // Banks, Insurance
"Health Technology" => "XLV" // Pharma, Biotech
"Health Services" => "XLV" // Managed Care (UNH)
"Retail Trade" => "XRT" // Home Depot, Walmart (Retailers)
"Consumer Non-Durables" => "XLP" // Coke, P&G (Staples)
"Energy Minerals" => "XLE" // Exxon, Chevron (Oil)
"Industrial Services" => "XLI" // Construction, Engineering
"Consumer Services" => "XLY" // Restaurants, Hotels
"Consumer Durables" => "XLY" // Homebuilders, Appliances
"Utilities" => "XLU" // Power, Water
"Transportation" => "XTN" // Airlines, Rail, Trucking
"Non-Energy Minerals" => "XLB" // Steel, Copper, Chemicals
"Commercial Services" => "XLC" // Remaining Media/Comms
"Communications" => "XLC" // Legacy tag
"Distribution Services" => "XLY" // Wholesalers
=> "SPY" // Final Catch-All
Gold TP/SL 2EMA traderglobaltopEMA crossover indicator with clear triangles, entry line, and automatic 2R TP/SL, optimized for gold.
4 EMA Flexible with CrossoversOverview
This indicator is a highly customizable multi-EMA (Exponential Moving Average) suite designed for trend followers and momentum traders. Unlike standard EMA indicators, this script provides four independent EMAs, each with its own horizontal Offset parameter, allowing traders to shift averages forward or backward to account for market lag or cycles.
It is specifically built for traders who use a "Triple EMA" or "Quad EMA" setup to filter trends across different timeframes while looking for precise entry triggers.
Key Features
4 Independent EMAs: Fully customizable length and color for each average.
Horizontal Offsets: Each EMA can be shifted horizontally (left or right) to align with specific market structures or to create "lead" indicators.
Crossover Detection: The script automatically monitors EMA 1 and EMA 2 for crossovers.
Golden Cross (Cross Up): Signals potential bullish momentum.
Death Cross (Cross Down): Signals potential bearish momentum.
Visual Labeling: Includes intuitive on-chart shapes (Triangle Up/Down) and text labels to ensure you never miss a crossover event.
Alert Integration: Native support for TradingView alerts. You can set notifications for Bullish and Bearish crossovers with a single click.
How to Use
Trend Filtering: Use the 4th EMA (default 200) as your "Trend Filter." Only take Long signals when price is above this line and Short signals when below.
Signal Generation: Use the first two EMAs (default 21 and 30) to generate entry signals. When they cross in the direction of the higher-order trend, it indicates a high-probability entry point.
Offset Tuning: Use the Offset feature to shift your signal EMAs forward (positive values) if you want to avoid "whipsaws" in a sideways market.
Settings
EMA 1 & 2: Primary signal lines. Crossovers are calculated based on these two inputs.
EMA 3 & 4: Secondary trend lines for support/resistance and trend direction.
Offset: Adjusts the horizontal placement of the line (positive for right, negative for left).
Bitcoin Leverage Indicator📊 Bitcoin Leverage Indicator
A disciplined, VWAP-based leverage trading system for Bitcoin
🔍 What This Indicator Does
The Bitcoin Leverage Indicator is a professional-grade TradingView overlay designed to identify high-confidence long and short opportunities for Bitcoin, especially when trading with leverage (10–20x).
Instead of flooding the chart with signals, this indicator focuses on market structure, momentum, and regime control to help traders:
• Enter only when a clear directional move is present
• Avoid counter-trend and chop trades
• Exit with structure-based logic, not emotion
This tool is built for traders who value precision over frequency.
⸻
🧠 Core Logic (How It Thinks)
⚪ VWAP = Market Regime Filter
• Above VWAP → Long-only environment
• Below VWAP → Short-only environment
This prevents dangerous counter-trend trades and helps protect leveraged positions from squeezes.
⸻
📈 Entry Signals
The indicator plots one clear entry per trade:
🟢 BUY LONG
• Price above VWAP
• Bullish EMA structure
• Momentum confirms continuation
🔴 BUY SHORT
• Price below VWAP
• Bearish EMA structure
• Momentum confirms downside continuation
No duplicate entries. No spam.
⸻
💰 Take Profit Signal
🔵 TAKE PROFIT
• Appears when momentum begins to fade
• Designed to help lock gains before reversals
• Does not force an exit — it’s an early profit-protection signal
⸻
🟡 Exit Signals
🟡 EXIT LONG / EXIT SHORT
• Printed only once per trade
• Triggered by confirmed structure or momentum loss
• Prevents late exits and emotional over-holding
⸻
🛑 Over-Trading Protection
• Built-in cooldown logic
• Prevents rapid re-entries
• Ensures clean trade cycles:
Entry → Manage → Exit → Reset
⸻
🎯 Designed For
✔ Bitcoin leverage trading
✔ Intraday & swing trading
✔ Traders using VWAP + EMA structure
✔ Clean charts and decisive signals
✔ 24/7 markets (crypto-native logic)
⸻
🚫 What This Indicator Does NOT Do
• No prediction
• No martingale logic
• No repainting
• No signal spam
• No counter-trend gambling
Every signal is structure-confirmed and rule-based.
⸻
⚠️ Risk Disclaimer
This indicator is a decision-support tool, not financial advice.
Leverage trading carries significant risk. Always use proper risk management and confirm signals with your own trading plan.
⸻
🧭 Final Note
This indicator is built with one philosophy:
We don’t trade every move — we trade the right moves.
If you value discipline, clarity, and structure in leveraged Bitcoin trading, the Bitcoin Leverage Indicator is designed for you.
Reversal SMC Suite ProThe Reversal SMC Suite is an intraday Smart Money Concepts toolkit designed to help traders visually analyze structure, imbalances, and displacement during trending or volatile sessions. This script combines multiple SMC elements—reversals, order blocks, FVGs, HTF bias, and pivot-based support/resistance—into one organized framework to support decision-making.
This indicator does not generate buy or sell signals and does not guarantee results. It is strictly a charting and visualization tool intended to help traders study market behavior.
🔍 Key Features
1. Reversal Detection
Swing Failure Pattern (SFP)
Bullish/Bearish Engulfing
Momentum candle detection (ATR-based)
Optional unified “reversal” signal
Visual arrows and reversal blocks
These are designed to highlight potential turning points based on price behavior—not to predict or guarantee outcomes.
2. HTF Trend Filter
Optional higher timeframe EMA/SMA filter
Customizable HTF resolution
Bias modes: Long only / Short only / Both
This helps you align lower-timeframe reversals with broader market context.
3. Dynamic Order Blocks
Automated OB detection (Body, Wick, or Hybrid)
Smart mitigation logic (body-based or wick-based)
Configurable lookback and OB count
Optional ATR body-size filter for OB quality
Real-time mitigation removal
These tools help visualize areas of interest where price previously showed displacement.
4. Fair Value Gaps (FVG)
Automatic gap detection
Optional FVG extension until filled
Per-side max FVG limit
Useful for identifying imbalance zones and measuring how price revisits inefficiencies.
5. Support / Resistance
Pivot-based S/R with left/right bar settings
Auto-drawing with customizable line counts
Optional S/R visibility toggle
🎛 Presets Included
Several visual configurations are included for convenience:
Custom / Manual (default)
Intraday ORB 5–15m (optimized for fast futures charts)
Clean SMC (Trend + OB)
FVG + OB Combo
Presets adjust inputs automatically to give new users cleaner starting points.
🧠 How To Use
This script is meant to be paired with any strategy or workflow that benefits from:
visual structure analysis,
HTF/LTF alignment,
OB + FVG context, or
intraday trend identification.
It does not replace risk management, strategy rules, or trade planning.
⚠️ Important Notes / Disclaimer
This indicator does not generate trading signals.
No part of this script guarantees profitable outcomes.
It is for educational and informational purposes only.
Always perform your own analysis and use proper risk management.
Past market behavior does not guarantee future results.
Context Pro SuiteContext Pro Suite
**VWAP • EMA Cloud • Session High/Low (NY / London / Asia)
The Context Pro Suite is a *decision-making overlay*, not a signal spam indicator.
It’s designed to help traders clearly see **value, trend, and liquidity levels** across **New York, London, and Asia sessions** — all in one clean, customizable tool.
Built for **NQ, ES, Gold, and FX pairs**, with a focus on **5–15-minute execution charts**.
---
## 🔹 What This Indicator Shows
### ✅ VWAP + ATR Bands
* Session VWAP (fair value)
* ATR-based extension bands (1x / 2x)
* Helps identify **overextension, mean reversion zones, and trend pullbacks**
### ✅ EMA 9 / 21 Cloud
* Visual trend and momentum filter
* Custom colors + opacity
* Identifies **trend continuation vs chop**
### ✅ Session High / Low Levels
* **New York RTH**
* **London**
* **Asia (midnight-safe)**
* Optional previous session highs/lows
* Adjustable line styles, widths, colors, and extensions
### ✅ Anchored VWAP (Optional)
* Reset by:
* Daily
* NY session start
* London session start
* Asia session start
* Useful for tracking **session-specific value shifts**
---
## 🔹 How Traders Use It
This indicator is meant to answer:
* *Are we trading at value or extension?*
* *Is the market trending or rotating?*
* *Where is liquidity likely sitting right now?*
Common use cases:
* Trend pullbacks into VWAP or EMA cloud
* Reversal setups at session highs/lows
* Session breakout + retest confirmation
* Overnight context for London and Asia sessions
---
## 🔹 Customization & Flexibility
Every component can be toggled and styled:
* Colors, widths, line styles
* Cloud up/down colors + opacity
* Session visibility and extensions
* VWAP band multipliers and ATR length
Members can adapt it to **their own style**, market, and timeframe.
The system visually blocks entries when the signal candle is too large relative to ATR, helping traders avoid statistically unfavorable risk-to-reward scenarios.
🔑 Key Notes:
The ❌ is an ENTRY filter only
It does not signal exits or reversals
It does not invalidate trend or structure
It simply prevents late participation
If a valid entry already occurred, the ❌ should be ignored and trade management continues as planned.
This is intended to improve discipline, consistency, and execution quality, especially during high-volatility environments.
Disclaimer:
As always, this indicator is a context and decision-support tool, not financial advice. Users should apply proper risk management and confirm signals with their own trading plan.
DEMA20 + VWAP200 + CHoCH BigBeluga + Daily Candle de NatantiaTo simplify things for traders like me who are just starting out with limited resources, I'm offering this indicator that aggregates other well-known and configurable indicators:
- 2 DEMA 20,
- 1 VWAP 200,
- BigBeluga's Choch Pattern indicator,
- Nanantia's Daily Candle indicator.
I recommend combining this indicator with an RSI divergence that displays 30%, 50%, and 70%, as well as a kill zone indicator for those trading Asian reversal or OPR.
This indicator is particularly powerful when the candles are displayed in Heikin Ashi mode.
Happy trading, and thanks to the community of passionate developers and to chatGPT.
DEBZ EMAsDEBZ EMAs
Customizable Multi-Timeframe EMA Suite
A clean and flexible EMA indicator featuring six commonly used exponential moving averages (9, 20, 50, 100, 200, 800) with individual toggle controls and automatic end-of-line labeling.
Features:
- Six EMAs with individual show/hide checkboxes for clean chart customization
- Color-coded labels at the end of each EMA line for easy identification
- Fully customizable colors for each EMA
- Clean 1px line thickness for minimal chart clutter
- Perfect for multi-timeframe trend analysis and confluence zones
- Labels automatically update and move with price action
Ideal for traders who use EMAs for trend direction, support/resistance levels, and multi-timeframe analysis. Toggle only the EMAs you need for your strategy to keep your chart clean and focused.
EMA Slope CheckerWhat it does: Shows slope/angle of EMA 9, 20, and 50 simultaneously on separate lines.
What it tells you:
EMA 50 slope = Trend direction (bullish/bearish)
EMA 20 slope = Setup strength at FVG zones
EMA 9 slope = Entry timing/momentum
Key feature: Table with arrows showing if each EMA is rising (↑) or falling (↓).
For your FVG system: Tells you if all 3 EMAs are aligned before entering a trade.
Triple EMA IndicatorSimple EMA with 3 indicators in 1 so you don't occupy 3 indicator space in one place
NVentures January TrifectaA comprehensive implementation of the January Trifecta methodology, combining three proven seasonal indicators into a unified scoring system with institutional context layers.
🎯 WHAT THIS INDICATOR DOES
This indicator tracks and scores three well-documented January seasonality patterns that have historically predicted full-year market direction:
Santa Claus Rally — Measures performance during the last 5 trading days of December + first 2 trading days of January. This 7-day window has shown a historical tendency toward positive returns. When it fails significantly, it often warns of trouble ahead.
First Five Days — Tracks the first 5 trading days of January. Historically, when these days show gains ≥2%, full-year returns have been positive with high consistency.
January Barometer — "As January goes, so goes the year" - This classic market adage tracks full-month January performance as a predictor for the remaining 11 months.
⚙️ HOW IT WORKS
Trifecta Scoring (0-3):
Each component adds +1 to the score when positive:
Santa Rally > 0% → +1
First Five Days > 0% → +1
January Barometer > 0% → +1
Context Layer Scoring (0-3):
Additional confirmation signals:
Price above 200-day MA → +1 (trend confirmation)
YTD performance positive → +1 (momentum)
Prior year was negative + Trifecta bullish → +1 (mean reversion multiplier)
Total Score: 0-6 points combining both layers for a complete market regime assessment.
📊 UNIQUE FEATURES
What sets this implementation apart from basic seasonal indicators:
Real-Time Dashboard — Live tracking of all three components with status updates, return percentages, and completion states. No manual calculations needed.
Automatic Trading Day Counting — Correctly counts actual trading days (not calendar days) for accurate window detection across all markets.
Context Layer Integration — Goes beyond the basic trifecta by adding trend regime (200 MA), momentum (YTD), and mean-reversion context (prior year performance).
Post-Bear Market Detection — Automatically identifies when a 3/3 bullish trifecta follows a negative prior year - historically the highest conviction setup.
Visual Zones — Background highlighting shows when Santa Rally and First Five Days windows are active.
Multi-Index Support — Optimized display for S&P 500, NASDAQ 100, Dow Jones, Russell 2000, and DAX with automatic instrument detection.
Configurable Alerts — Set alerts for Santa failures, trifecta completion, and special high-conviction signals.
📈 HISTORICAL CONTEXT (S&P 500, 1950-2024)
The January indicators have been documented in the Stock Trader's Almanac and studied extensively:
Trifecta 3/3 Bullish: ~90% of years saw positive full-year returns
Post-Bear Trifecta: When 3/3 bullish follows a down year, historical accuracy has been exceptionally high
Santa Failure Warning: Significant Santa declines have often preceded challenging years
First Five ≥2%: Strong early January gains have correlated with positive years
Base Rate Reminder: US equity markets have been positive approximately 70% of all years regardless of January signals. Always consider this when interpreting results.
🔧 HOW TO USE
Apply to DAILY timeframe (required for accurate calculations)
Best used on major indices (SPX, NDX, DJI, RUT, DAX)
Monitor dashboard during late December through January
Watch for component completion and score updates
Use context layer for additional confirmation
Consider setting alerts for key signals
Settings:
First 5 Days Threshold: Adjust the "strong signal" percentage (default 2%)
Show/hide 200 MA and YTD reference lines
Dashboard position and size customization
Alert toggles for different signal types
⚠️ IMPORTANT DISCLAIMERS
Historical statistics are based on S&P 500 data and may not apply equally to other instruments
Past performance does not guarantee future results
Seasonal patterns can and do fail — always use proper risk management
This indicator is for informational purposes and does not constitute financial advice
Always combine with other analysis methods and your own due diligence
📚 METHODOLOGY CREDITS
The January Trifecta concept builds on seasonal market research popularized through the Stock Trader's Almanac . The individual components (Santa Claus Rally, First Five Days, January Barometer) are well-established in market literature.
This implementation adds original features including the dual-layer scoring system , context integration , real-time tracking dashboard , and automated signal detection .
NVentures. Unconventional Alpha.
ZahavZahav is a simplified trend and breakout indicator designed for intraday gold trading. It focuses exclusively on exponential moving average structure and momentum alignment, removing volatility filters, RSI constraints, higher timeframe logic, and trade management components present in the full Zahav framework. This version is built to provide clear and objective signals during moments when price transitions from consolidation into directional expansion.
The indicator uses three exponential moving averages, a fast 7 period EMA, a slow 21 period EMA, and a long term 55 period EMA. The 55 EMA serves as the primary trend anchor, while the 7 and 21 EMAs represent short term and medium term structure. All EMAs are plotted directly on the chart to allow direct visual confirmation of trend alignment and structural shifts.
Primary signals are generated only when both the fast and slow EMAs cross the 55 EMA on the same candle. A long signal occurs when the 7 and 21 EMAs cross above the 55 EMA simultaneously, while a short signal occurs when they cross below it simultaneously. This strict alignment requirement is intended to filter out staggered crosses and reduce noise commonly produced during ranging or low momentum conditions.
Momentum confirmation is provided by the MACD. A valid long signal requires a bullish MACD crossover on the same bar as the EMA structure alignment, while a valid short signal requires a bearish MACD crossover. This ensures that signals are triggered only when momentum confirms the structural transition rather than during corrective or low energy price movement.
In addition to the primary signals, the indicator also marks instances where the 55 EMA itself crosses above or below both the 7 and 21 EMAs on the same candle. These events are displayed as separate visual markers and are not filtered by the MACD. They are intended to provide additional context around broader trend transitions and structural regime shifts rather than act as standalone trade entries.
Zahav is intended for application on gold markets only, with performance optimized on the fifteen minute timeframe for intraday execution and momentum capture. It is not designed for countertrend trading, mean reversion strategies, or adaptation across equity, index, or cryptocurrency markets without modification. The indicator does not include any form of risk management logic. Users are required to implement their own stop loss placement, position sizing, and capital control rules. Zahav functions strictly as a directional confirmation and timing tool rather than a complete trading system.
Zahav is authored by JD Harmelin, with a focus on clean EMA structure alignment and momentum based confirmation for intraday gold trading. The current release is Version 1.0, first published in 2025, representing the simplified implementation of the Zahav framework with an emphasis on clarity, timing precision, and structural confirmation. All rights are reserved. Redistribution or commercial use of this script without explicit written permission is prohibited. Use of this indicator constitutes acknowledgment and acceptance of full responsibility for any trading outcomes resulting from its application.
This indicator does not provide financial advice or trading recommendations. It is offered solely for educational and informational purposes. Futures and derivatives trading involve significant risk, including the potential for substantial financial loss. No guarantee of accuracy, profitability, or trading performance is expressed or implied. Users accept full responsibility for all trade execution decisions, including risk evaluation and capital exposure.
Aurora Volatility Bands [JOAT]Aurora Volatility Bands - Dynamic ATR-Based Envelope System
Introduction and Purpose
Aurora Volatility Bands is an open-source overlay indicator that creates multi-layered volatility envelopes around price using ATR (Average True Range) calculations. The core problem this indicator solves is that static bands (like fixed percentage envelopes) fail to adapt to changing market conditions. During high volatility, static bands are too tight; during low volatility, they're too wide.
This indicator addresses that by using ATR-based dynamic bands that automatically expand during volatile periods and contract during quiet periods, providing contextually appropriate support/resistance levels at all times.
Why These Components Work Together
The indicator combines three analytical approaches:
1. Triple-Layer Band System - Inner (1x ATR), Outer (2x ATR), and Extreme (3x ATR) bands provide graduated levels of significance
2. Volatility State Detection - Compares current ATR to historical average to classify market regime
3. Multiple MA Types - Allows customization of the center line calculation method
These components complement each other:
The triple-layer system gives traders multiple reference points - inner bands for normal moves, outer for significant moves, extreme for rare events
Volatility state detection tells you WHEN bands are expanding or contracting, helping anticipate breakouts or mean-reversion
MA type selection lets you match the indicator to your trading style (faster EMA vs smoother SMA)
How the Calculation Works
The bands are calculated using ATR multiplied by configurable factors:
float atr = ta.atr(atrPeriod)
float innerUpper = centerMA + (atr * innerMult)
float outerUpper = centerMA + (atr * outerMult)
float extremeUpper = centerMA + (atr * extremeMult)
Volatility state is determined by comparing current ATR percentage to its historical average:
float atrPercent = (atr / close) * 100
float avgAtrPercent = ta.sma(atrPercent, volatilityLookback)
float volatilityRatio = atrPercent / avgAtrPercent
bool isExpanding = volatilityRatio > 1.2 // 20%+ above average
bool isContracting = volatilityRatio < 0.8 // 20%+ below average
Signal Types
Band Touch - Price reaches inner, outer, or extreme bands
Mean Reversion - Price returns to center after touching outer/extreme bands
Breakout - Sustained move beyond outer bands during volatility expansion
Dashboard Information
Volatility - Current state (EXPANDING/CONTRACTING/NORMAL)
Vol Ratio - Current volatility vs average (e.g., 1.5x = 50% above average)
ATR - Current ATR value
ATR % - ATR as percentage of price
Zone - Current price position (EXTREME HIGH/UPPER ZONE/CENTER ZONE/etc.)
Position - Price position as percentage within band structure
Width - Total band width as percentage of price
Using SMA in settings:
How to Use This Indicator
For Mean-Reversion Trading:
1. Wait for price to touch outer or extreme bands
2. Check that volatility state is NORMAL or CONTRACTING (not expanding)
3. Look for reversal candlestick patterns at the band
4. Enter toward center MA with stop beyond the band
For Breakout Trading:
1. Wait for volatility state to show EXPANDING
2. Look for price closing beyond outer bands
3. Enter in direction of breakout
4. Use the band as trailing stop reference
For Volatility Analysis:
1. Monitor volatility ratio for regime changes
2. CONTRACTING often precedes large moves (squeeze)
3. EXPANDING confirms trend strength
Using VWMA and Mean Reversion Signal/MR:
Input Parameters
ATR Period (14) - Period for ATR calculation
Inner/Outer/Extreme Multipliers (1.0/2.0/3.0) - Band distance from center
MA Type (EMA) - Center line calculation method
MA Period (20) - Period for center line
Volatility Comparison Period (20) - Lookback for volatility state
Timeframe Recommendations
15m-1H: Good for intraday mean-reversion
4H-Daily: Best for swing trading and breakout identification
Weekly: Useful for position trading and major level identification
Limitations
ATR-based bands lag during sudden volatility spikes
Mean-reversion signals can fail in strong trends
Breakout signals may whipsaw in ranging markets
Works best on liquid instruments with consistent volatility patterns
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Band touches do not guarantee reversals. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
ADR/ATR/EMA%ADR%
ATR%
Daily EMA 5% distance
Daily EMA 10% distance
2 Hour EMA 20% distance
20-Day price control
XU100 Index 5/20 control on 4-hour
Crypto Professional Suite V2.0 [R2D2]Here is the complete professional documentation and strategy guide for your Crypto Pro Suite indicator. This guide is designed to help you install the tool correctly, understand its features, and utilize it to maximize your trading returns.
Crypto Pro Suite: The Professional Crypto Trader's All-In-One Toolkit
1. Introduction
The Crypto Pro Suite is a high-performance TradingView indicator designed to consolidate the five most critical technical analysis tools into a single, clean overlay.
Instead of cluttering your screen with multiple sub-charts (panes), this suite integrates Moving Averages, Bollinger Bands, and Fibonacci Levels directly onto the price action. It transforms "oscillator" data (RSI and MACD) into actionable Buy/Sell signals on your candles and a real-time Status Dashboard.
Key Features:
Zero Clutter: No bottom panes required; maximizes screen real estate for price analysis.
Real-Time Dashboard: Instant readout of Trend, RSI status, and MACD momentum.
Dynamic Overlay: Indicators move fluidly with your candles.
2. Installation Instructions
Follow these steps precisely to ensure the "Overlay" feature functions correctly.
Clean Slate: If you have any previous version of this script on your chart, remove it now (click the 'X' next to the indicator name).
Open Editor: Click the Pine Editor tab at the bottom of your TradingView screen.
Paste Code: Delete any existing text and paste the Final Polished Script provided in the previous response.
Save & Add: Click Save, then click Add to chart.
Note: By adding it fresh, TradingView forces the script to lock onto the price candles rather than a separate pane.
Verify: You should see colored lines (MAs, Bollinger Bands) directly on top of your candlesticks and a Dashboard in the top right.
3. Using the Script: Settings & Customization
Access the settings by clicking the Gear Icon next to the indicator name.
Dashboard: You can toggle the info panel On/Off or change its size (Tiny to Large) to fit your screen resolution.
Toggle Control: Each of the 5 indicators has a "Show" checkbox. You can turn off noise (e.g., hide Bollinger Bands) when you only want to focus on Trend (MAs).
Inputs:
MAs: Defaults are 50/200 (Classic Golden Cross setup).
RSI: Default is 14 length, 70/30 limits.
Fibs: Default lookback is 200 bars. Increase this number to find Support/Resistance over a longer timeframe.
4. Maximizing Returns: Strategy & Examples
To maximize returns, professionals do not use indicators in isolation. They look for Confluence—where multiple indicators signal the same direction simultaneously.
A. Moving Averages (Trend Filter)
The Setup: The script plots a Fast MA (Yellow) and Slow MA (Blue).
Strategy:
Golden Cross (Buy): When the Yellow line crosses above the Blue line. This signals the start of a long-term bull trend.
Death Cross (Sell): When the Yellow line crosses below the Blue line.
Pro Tip: Never go long (Buy) if price is significantly below the Blue (Slow) MA.
B. Relative Strength Index (RSI)
The Setup: Instead of a line graph, you will see labels on the candles: "RSI Buy" (Green) or "RSI Sell" (Red).
Strategy:
Mean Reversion: If you see an "RSI Sell" label, the asset is Overbought. This is often a signal to take profit, not necessarily to short.
The Dip Buy: Look for an "RSI Buy" label occurring during a general uptrend (price above Slow MA). This indicates a healthy pullback that is ready to bounce.
C. MACD (Momentum)
The Setup: Green Triangles (Buy) and Red Triangles (Sell) appear above/below candles.
Strategy:
Trend Confirmation: Use MACD to confirm the Moving Average. If price crosses above the MA and you get a Green MACD Triangle, the breakout has high momentum and is likely to succeed.
Exit Signal: If you are in a Long trade and see a Red MACD Triangle, momentum is fading. Consider tightening your stop-loss.
D. Bollinger Bands (Volatility)
The Setup: A shaded teal channel surrounding the price.
Strategy:
The Squeeze: When the bands get very narrow, a massive move is coming. Wait for the breakout.
Walking the Bands: In a strong crypto bull run, price will hug the Upper Band. If price closes outside the band and then immediately closes inside it, it is a reversal signal (Sell).
E. Fibonacci Retracement (Support/Resistance)
The Setup: Dynamic horizontal lines (0%, 23.6%, 38.2%, 50%, 61.8%, 100%) based on recent highs/lows.
Strategy:
The Golden Pocket: The most powerful buy zone in crypto is between the 0.5 and 0.618 lines.
Execution: If price falls to the 0.618 line and you see an "RSI Buy" or MACD Green Triangle appear at that exact level, this is a high-probability entry.
5. The "Perfect Trade" Example
Putting it all together for maximum profit.
Context: The Dashboard says "MA Trend: Bullish."
Trigger: Price pulls back down and touches the 0.618 Fibonacci line.
Confirmation 1: Price is also touching the Lower Bollinger Band (acting as dynamic support).
Confirmation 2: An "RSI Buy" label appears on the candle.
Action: BUY.
Stop Loss: Place just below the 100% Fib line.
Take Profit: Sell half at the 0% Fib line (recent high) and let the rest ride.
Master Crypto Overlay [R2D2]The Gemini Master Crypto Overlay: User Guide
1. Introduction
The Gemini Master Crypto Overlay is a professional-grade TradingView script designed to consolidate six powerful institutional indicators into a single, clean "heads-up display" (HUD).
Instead of cluttering your chart with multiple sub-windows (which shrinks your view of the price), this script uses smart overlays and a data dashboard to provide actionable data instantly. It is optimized for the Daily timeframe as requested, but functions on all timeframes.
Included Indicators:
Ichimoku Cloud: Identifies the primary trend and support/resistance zones.
MACD (Custom Crypto Settings): Optimized (3-10-16) for catching fast crypto moves.
WaveTrend Oscillator: Visual signals for Overbought/Oversold entries.
Supertrend: A trailing stop-loss line to keep you in profitable trades.
Ultimate RSI (MTF): Multi-timeframe analysis to ensure you are trading with the higher trend.
Volume Reference (VWAP): An on-chart proxy for Volume Profile to spot fair value.
2. Installation Instructions
Step 1: Open Pine Editor
Launch your chart on TradingView.
At the bottom of the screen, click the tab labeled Pine Editor.
Step 2: Paste the Code
Delete any text currently in the editor window.
Copy the code block at the bottom of this response.
Paste it into the editor.
Step 3: Save and Add
Click "Save" (top right of the editor) and name it "Master Crypto Overlay".
Click "Add to chart".
Note: You may hide the "Pine Editor" panel now by clicking the arrow at the bottom center of the screen.
3. How to Use the Interface
The script is designed to be intuitive. Here is what you are looking at:
A. The Dashboard (Bottom Right)
This is your "Confluence Checker." It summarizes the status of the major indicators in real-time.
GREEN: Bullish (Buy/Hold)
RED: Bearish (Sell/Short)
GRAY: Neutral/Choppy (Stay out)
Pro Tip: Do not enter a trade unless at least 3 out of 4 signals on the dashboard match your direction.
B. On-Chart Signals
Clouds (Red/Green): If the cloud is Green and rising, only look for Long trades. If Red, only look for Short trades.
Supertrend Line: This continuous line trails the price. If price is above it (Green line), you are safe. If price closes below it, the trend has reversed.
MACD Labels: Small "MACD" text appears when momentum flips.
WaveTrend Circles:
Blue Circle (Bottom): Price is "Oversold." Good time to buy if the trend is up.
Orange Circle (Top): Price is "Overbought." Good time to take profit.
4. Strategy: Maximizing Trading Returns
To make money with this script, you need a rule-based system. Do not just blindly click when you see a label. Use this "Trend & Trigger" strategy:
The "Golden Entry" (High Probability Long)
Trend Check: Ensure price is ABOVE the Ichimoku Cloud.
Dashboard Check: Verify the RSI Status says "BULL (>50)".
The Trigger: Wait for a pullback where price touches the Supertrend Line (Green) or the top of the Cloud.
The Entry: Enter the trade when a Blue WaveTrend Circle appears OR a MACD Buy Label prints.
Stop Loss: Place your stop loss slightly below the Supertrend line.
The "Exit Strategy" (Protecting Profits)
Conservative: Sell half your position when an Orange WaveTrend Circle appears.
Trend Follower: Hold the rest of your position until the Supertrend Line turns RED.
Crypto Swing Pro [All-in-One] v2 [R2D2]1. Introduction
Crypto Swing Pro (CSP) is a professional-grade technical analysis suite designed for high-volatility cryptocurrency markets. It consolidates the top five institutional-grade indicators—RSI, EMAs, OBV, MACD, and Bollinger Bands—into a single overlay.
New in v2.0: The script now includes a fully integrated Alert System. You no longer need to stare at the chart all day. You can set the script to email you or ping your phone exactly when a MACD Cross occurs or when Volatility Squeezes, ensuring you never miss a move.
2. Installation
1. Open TradingView: Go to your chart.
2. Open Pine Editor: Click the tab at the bottom of the screen.
3. Paste Code: Delete existing code and paste the v2.0 script above.
4. Save: Name it CSP v2.
5. Add to Chart: Click "Add to Chart".
3. How to Set Up Alerts
This is the most powerful feature of v2.0. You can set alerts for specific conditions without needing to write code.
1. Click the "Alert" Button: Located on the top menu bar of TradingView (looks like an alarm clock).
2. Condition: In the "Condition" dropdown menu, select CSP v2.
3. Select Trigger: A second dropdown will appear. Choose the specific signal you want to track:
MACD Buy Signal: Triggers when MACD crosses bullish.
RSI Oversold (<30): Triggers when price is mathematically cheap.
Volatility Squeeze: Triggers when a big move is imminent.
Price Cross Over 200 EMA: Triggers on major trend reversals.
4. Options: Select "Once Per Bar Close" (Recommended to avoid false signals during the candle fluctuation).
5. Notify: Check "Notify in App" or "Send Email".
6. Create: Click Create. You will now be notified even if you are asleep.
4. The Dashboard (HUD)
The on-screen table gives you an instant "Health Check" of the asset.
Indicator Status Meaning
RSI (14) Green (<30) Oversold. Look for long entries.
Red (>70) Overbought. Look to take profit.
MACD BULLISH Momentum is up.
TREND UPTREND Price is above the 200 EMA (White Line).
VOLATILITY SQUEEZE CRITICAL: Market is coiling. A breakout is coming soon.
VOLUME ACCUMULATION Whales are buying (OBV is rising).
5. Configuration & Visuals
Hover over the indicator name on the chart and click the Settings (Gear) icon.
Toggle Indicators: Uncheck any indicator (like Bollinger Bands or EMA 20) to hide them if you want a cleaner view. The Dashboard will still calculate them in the background.
Dashboard Position: Move the table to any corner or turn it off entirely if it blocks your price view.
Color Themes: Adjust the RSI background colors or EMA colors to fit your chart theme (Light/Dark mode).
6. Best Practices
The "Squeeze" Play: If you get a Volatility Squeeze alert, do not enter immediately. Wait for the price to break out of the Bollinger Bands. The squeeze is the "Get Ready" signal; the breakout is the "Go" signal.
The "Trend" Filter: If the 200 EMA (White Line) is above the price (Downtrend), ignore all "MACD Buy" alerts. Trade with the macro trend, not against it.
Quantum Reversal Detector [JOAT]
Quantum Reversal Detector - Multi-Factor Reversal Probability Analysis
Introduction and Purpose
Quantum Reversal Detector is an open-source overlay indicator that combines multiple reversal detection methods into a unified probability-based framework. The core problem this indicator addresses is the unreliability of single-factor reversal signals. A price touching support means nothing without momentum confirmation; an RSI oversold reading means nothing without price structure context.
This indicator solves that by requiring multiple independent factors to align before generating reversal signals, then expressing the result as a probability score rather than a binary signal.
Why These Components Work Together
The indicator combines five analytical approaches, each addressing a different aspect of reversal detection:
1. RSI Extremes - Identifies momentum exhaustion (overbought/oversold)
2. MACD Crossovers - Confirms momentum direction change
3. Support/Resistance Proximity - Ensures price is at a significant level
4. Multi-Depth Momentum - Analyzes momentum across multiple timeframes
5. Statistical Probability - Quantifies reversal likelihood using Bayesian updating
These components are not randomly combined. Each filter catches reversals that others miss:
RSI catches momentum exhaustion but misses structural reversals
MACD catches momentum shifts but lags price action
S/R proximity catches structural levels but ignores momentum
Multi-depth momentum catches divergences across timeframes
Probability scoring combines all factors into actionable confidence levels
How the Detection System Works
Step 1: Pattern Detection
The indicator first identifies potential reversal conditions:
// Check if price is at support/resistance
float lowestLow = ta.lowest(low, period)
float highestHigh = ta.highest(high, period)
bool atSupport = low <= lowestLow * 1.002
bool atResistance = high >= highestHigh * 0.998
// Check RSI conditions
float rsi = ta.rsi(close, 14)
bool oversold = rsi < 30
bool overbought = rsi > 70
// Check MACD crossover
float macd = ta.ema(close, 12) - ta.ema(close, 26)
float signal = ta.ema(macd, 9)
bool macdBullish = ta.crossover(macd, signal)
bool macdBearish = ta.crossunder(macd, signal)
// Combine for reversal detection
if atSupport and oversold and macdBullish
bullishReversal := true
Step 2: Multi-Depth Momentum Analysis
The indicator calculates momentum across multiple periods to detect divergences:
calculateQuantumMomentum(series float price, simple int period, simple int depth) =>
float totalMomentum = 0.0
for i = 0 to depth - 1
int currentPeriod = period * (i + 1)
float momentum = ta.roc(price, currentPeriod)
totalMomentum += momentum
totalMomentum / depth
This creates a composite momentum reading that smooths out noise while preserving genuine momentum shifts.
Step 3: Bayesian Probability Calculation
The indicator uses Bayesian updating to calculate reversal probability:
bayesianProbability(series float priorProb, series float likelihood, series float evidence) =>
float posterior = evidence > 0 ? (likelihood * priorProb) / evidence : priorProb
math.min(math.max(posterior, 0.0), 1.0)
The prior probability starts at 50% and updates based on:
RSI extreme readings increase likelihood
MACD crossovers increase likelihood
S/R proximity increases likelihood
Momentum divergence increases likelihood
Step 4: Confidence Intervals
Using Monte Carlo simulation concepts, the indicator estimates price distribution:
monteCarloSimulation(series float price, series float volatility, simple int iterations) =>
float sumPrice = 0.0
float sumSqDiff = 0.0
for i = 0 to iterations - 1
float randomFactor = (i % 10 - 5) / 10.0
float simulatedPrice = price + volatility * randomFactor
sumPrice += simulatedPrice
float avgPrice = sumPrice / iterations
// Calculate standard deviation for confidence intervals
This provides 95% and 99% confidence bands around the current price.
Signal Classification
Signals are classified by confirmation level:
Confirmed Reversal : Pattern detected for N consecutive bars (default 3)
High Probability : Confirmed + Bayesian probability > 70%
Ultra High Probability : High probability + PDF above average
Dashboard Information
The dashboard displays:
Bayesian Probability - Updated reversal probability (0-100%)
Quantum Momentum - Multi-depth momentum average
RSI - Current RSI value with overbought/oversold status
Volatility - Current ATR as percentage of price
Reversal Signal - BULLISH, BEARISH, or NONE
Divergence - Momentum divergence detection
MACD - Current MACD histogram value
S/R Zone - AT SUPPORT, AT RESISTANCE, or NEUTRAL
95% Confidence - Price range with 95% probability
Bull/Bear Targets - ATR-based reversal targets
Visual Elements
Quantum Bands - ATR-based upper and lower channels
Probability Field - Circle layers showing probability distribution
Confidence Bands - 95% and 99% confidence interval circles
Reversal Labels - REV markers at confirmed reversals
High Probability Markers - Star diamonds at high probability setups
Reversal Zones - Boxes around confirmed reversal areas
Divergence Markers - Triangles at momentum divergences
How to Use This Indicator
For Reversal Trading:
1. Wait for Bayesian Probability to exceed 70%
2. Confirm price is at S/R zone (dashboard shows AT SUPPORT or AT RESISTANCE)
3. Check that RSI is in extreme territory (oversold for longs, overbought for shorts)
4. Enter when REV label appears with high probability marker
For Risk Management:
1. Use the 95% confidence band as a stop-loss reference
2. Use Bull/Bear Targets for take-profit levels
3. Higher probability readings warrant larger position sizes
For Filtering False Signals:
1. Increase Confirmation Bars to require more consecutive signals
2. Only trade when probability exceeds 70%
3. Require divergence confirmation for highest conviction
Input Parameters
Reversal Period (21) - Lookback for S/R and momentum calculations
Quantum Depth (5) - Number of momentum layers for multi-depth analysis
Confirmation Bars (3) - Consecutive bars required for confirmation
Detection Sensitivity (1.2) - Band width and target multiplier
Bayesian Probability (true) - Enable probability calculation
Monte Carlo Simulation (true) - Enable confidence interval calculation
Normal Distribution (true) - Enable PDF calculation
Confidence Intervals (true) - Enable confidence bands
Timeframe Recommendations
1H-4H: Best for swing trading reversals
Daily: Fewer but more significant reversal signals
15m-30m: More signals, requires higher probability threshold
Limitations
Statistical concepts are simplified implementations for Pine Script
Monte Carlo uses deterministic pseudo-random factors, not true randomness
Bayesian probability uses simplified prior/likelihood model
Reversal detection does not guarantee actual reversals will occur
Confirmation bars add lag to signal generation
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. The source code is fully visible and can be studied to understand how each component works.
This indicator does not constitute financial advice. Reversal detection is probabilistic, not predictive. The probability scores represent statistical likelihood based on historical patterns, not guaranteed outcomes. Past performance does not guarantee future results. Always use proper risk management, position sizing, and stop-losses.
- Made with passion by officialjackofalltrades
TEZ COMMUNITY TESTPHASE# TEZ COMMUNITY TESTPHASE
## Overview
TEZ is a trend-following indicator based on Moving Average crossovers with advanced filtering mechanisms. It generates BUY/SELL signals when fast and slow MAs cross, but only after validating the signal against multiple filters to reduce false entries.
**Key Features:**
- MA Cross signals with swing validation
- Magnet Zone logic for optimal entry timing
- Re-entry system after stop-loss
- Built-in backtesting with PnL tracking
- Multiple trend filters (Big Trend + Local Trend)
---
## How It Works
### Signal Generation
1. **Cross Detection:** Fast MA crosses Slow MA
2. **Swing Validation:** Price must be near a swing high/low
3. **Trend Filter:** Signal direction should align with trend (configurable)
4. **Entry Mode:** Based on distance to Trend MA, the indicator chooses:
- **SOFORT (Immediate):** Far from trend → Enter immediately
- **ATTENTION:** In magnet zone → Wait for confirmation candle
- **WAIT_FOR_TREND:** Outside magnet zone → Wait for price to return to trend
### Entry Modes Explained
| Mode | Distance to Trend MA | Entry Timing |
|------|---------------------|--------------|
| SOFORT | > Swing Distance % | Next candle at Open |
| ATTENTION | ≤ Magnet Zone % | After confirmation in zone |
| WAIT_FOR_TREND | Between Magnet & Swing | When price returns to zone |
---
## Settings Guide
### 📊 Signal MAs (Fast/Slow MA)
| Setting | Default | Description |
|---------|---------|-------------|
| **Source** | Close | Price source for MA calculation |
| **Fast MA Type** | HMA | Type of fast moving average (SMA/EMA/WMA/HMA) |
| **Fast MA Length** | 20 | Period for fast MA |
| **Slow MA Type** | HMA | Type of slow moving average |
| **Slow MA Length** | 50 | Period for slow MA |
**Tip:** HMA (Hull MA) is recommended for faster response with less lag.
---
### 📈 Swing / Movement
| Setting | Default | Description |
|---------|---------|-------------|
| **Swing Lookback (Bars)** | 20 | How many bars to look back for swing high/low |
| **Swing Threshold %** | 0.0 | Minimum % distance from swing to validate signal |
| **Max Bars Beyond Threshold** | 5 | Max bars price can stay beyond threshold before signal invalidates |
| **Min Move % before TP** | 1.0 | Minimum favorable move before take-profit activates |
| **Stop-Loss Active** | true | Enable/disable stop-loss |
---
### 🧲 Entry Mode Settings
| Setting | Default | Description |
|---------|---------|-------------|
| **Magnet Zone %** | 0.5 | Zone around Trend MA considered "at trend" |
| **Max SL %** | 0.5 | Maximum stop-loss distance from entry |
| **Swing Distance %** | 2.0 | Distance from Trend MA to classify as "swing" (far from trend) |
**How Entry Modes Work:**
```
Price Distance from Trend MA:
├── > 2.0% (Swing Distance) → SOFORT (immediate entry)
├── 0.5% - 2.0% → WAIT_FOR_TREND
└── ≤ 0.5% (Magnet Zone) → ATTENTION (wait for confirmation)
```
---
### 🚫 Range Filter
| Setting | Default | Description |
|---------|---------|-------------|
| **Min Swing Distance % (Range Filter)** | 0.5 | Minimum swing size to avoid ranging markets |
**Purpose:** Filters out signals when swing highs and lows are too close together (sideways/ranging market).
---
### 💰 Backtest Parameters
| Setting | Default | Description |
|---------|---------|-------------|
| **Start Capital** | 2000 | Initial capital for PnL calculation |
| **Fee per Trade (%)** | 0.05 | Round-trip trading fee |
| **Slippage per Entry/Exit (%)** | 0.0 | Simulated slippage |
---
### 🎨 Display & Colors
| Setting | Default | Description |
|---------|---------|-------------|
| **Show Labels** | true | Display BUY/SELL/TP/SL labels |
| **Show Signal MAs** | true | Display Fast & Slow MA lines |
| **Show Trend MA** | true | Display the big Trend MA |
| **Color Potential Cross Candles** | true | Highlight candles where cross might occur |
| **Potential Bars after Far Swing** | 3 | Bars to show potential entry after swing signal |
**Candle Colors:**
- 🟢 **Green:** BUY signal / Confirmed BUY
- 🔴 **Red:** SELL signal / Confirmed SELL
- 🟡 **Yellow:** EXIT (counter-cross)
- 🟣 **Purple:** Invalidation
- 🟠 **Orange:** RANGE (filtered out)
- ⚪ **Silver:** Far from swing (potential)
---
### 🔄 Flip Behavior
| Setting | Default | Description |
|---------|---------|-------------|
| **Allow Flip after EXIT** | false | Allow immediate reversal after exit |
| **Flip only from next candle** | true | If flip allowed, wait for next candle |
---
### ⚠️ Invalidation Guard
| Setting | Default | Description |
|---------|---------|-------------|
| **Entry Invalidation by MA Order** | true | Cancel entry if MAs cross back |
| **Protection Duration (Bars)** | 1 | Bars after entry where invalidation is blocked |
| **Show Invalidation** | true | Display purple INV markers |
---
### 📊 Trend Settings (Big Trend MA)
| Setting | Default | Description |
|---------|---------|-------------|
| **Use Trend Info** | true | Enable trend filtering |
| **Trend MA Type** | HMA | Type of trend MA |
| **Trend MA Length** | 100 | Period for trend MA |
| **Trend Lookback for Angle** | 2 | Bars to calculate trend angle |
| **Trend Angle Threshold (Deg)** | 15.0 | Minimum angle to classify as trending |
**Trend Filter Modes:**
- **Off:** No trend filtering
- **Strict:** Only allow signals in trend direction
- **Smart:** Allow counter-trend near reversals
---
### 📈 Local Trend Settings
| Setting | Default | Description |
|---------|---------|-------------|
| **Local Trend MA Type** | HMA | Type of local trend MA |
| **Local Trend MA Length** | 30 | Shorter period for local trend |
| **Local Trend Angle Threshold** | 5.0 | Lower threshold for local trend |
| **Show Local Trend MA** | true | Display local trend line |
---
### 📉 Trend Visualization
| Setting | Default | Description |
|---------|---------|-------------|
| **Show Trend Background** | true | Color background based on trend |
| **BG Uptrend** | Light Green | Background color in uptrend |
| **BG Downtrend** | Light Red | Background color in downtrend |
---
### 📊 Stats Panel
| Setting | Default | Description |
|---------|---------|-------------|
| **Stats Lookback (Bars)** | 2190 | Bars for statistics calculation (~6 months on 4H) |
| **Max Confirmation Candles** | 5 | Max candles to wait for confirmation in magnet zone |
---
## Signal Labels
| Label | Meaning |
|-------|---------|
| **BUY** | Long entry signal |
| **SELL** | Short entry signal |
| **BUY WAIT** | Waiting for confirmation (long) |
| **SELL WAIT** | Waiting for confirmation (short) |
| **REBUY WAIT** | Re-entry preparation (long) |
| **RESELL WAIT** | Re-entry preparation (short) |
| **REBUY** | Re-entry after SL (long) |
| **RESELL** | Re-entry after SL (short) |
| **TP** | Take-profit reached |
| **SL** | Stop-loss hit |
| **EXIT** | Exit by counter-cross |
| **INV** | Invalidated signal |
| **RANGE** | Filtered (ranging market) |
| **X** | Against trend |
---
## Stats Panel (Bottom Right)
| Stat | Description |
|------|-------------|
| **Trades (Window)** | Number of trades in lookback period |
| **Win Rate %** | Percentage of winning trades |
| **Total PnL %** | Cumulative profit/loss |
| **End Capital** | Final capital after all trades |
| **Last Signal** | Most recent signal type |
| **Trend (Big)** | Current big trend direction + angle |
| **LocalTrend (Deg)** | Current local trend angle |
---
## Recommended Settings by Timeframe
### 4H (Default)
- Fast MA: 20, Slow MA: 50, Trend MA: 100
- Magnet Zone: 0.5%, Swing Distance: 2.0%
- Stats Lookback: 2190 bars
### 1H
- Fast MA: 20, Slow MA: 50, Trend MA: 100
- Magnet Zone: 0.3%, Swing Distance: 1.5%
- Stats Lookback: 4380 bars
### Daily
- Fast MA: 10, Slow MA: 25, Trend MA: 50
- Magnet Zone: 1.0%, Swing Distance: 3.0%
- Stats Lookback: 365 bars
---
## Alerts Available
- BUY / SELL
- REBUY WAIT / RESELL WAIT (preparation alert)
- REBUY / RESELL
- SL / TP HIT / EXIT
- CROSS BUY live / CROSS SELL live
---
## Important Notes
⚠️ **This indicator is for educational purposes only. Always do your own research and manage your risk appropriately.**
- Past performance does not guarantee future results
- Backtest results may differ from live trading
- Always use proper position sizing and risk management
- Test on demo account before live trading
---
## Version
**TEZ COMMUNITY TESTPHASE**
Based on TEZ TRUE INDICATOR v20.4
Created by TEZ
EMA Slope Checker CareExtendedEMA 50 Slope > +0.10 = Uptrend (long bias)
EMA 50 Slope < -0.10 = Downtrend (short bias)
All 3 positive = Strong bullish alignment
Mixed directions = Conflict (avoid or reduce size)






















