PPAO - Propagator Price Action Oscillator
How PPAO works in one cycle (what it does every candle)
PPAO has 3 moving parts that run every bar:
1) It measures new candle pressure (the โpushโ)
This is the forcing term.
Return (ret): did price go up or down from last close?
Body: did the candle close above or below its open?
CLV: did the candle close near the high or near the low of its range?
With Option B, the โprice action pushโ is directional:
Body is positive on bullish candles, negative on bearish candles.
CLV is:
near +1 if the candle closes near the high (buying strength),
near -1 if it closes near the low (selling strength).
So a candle that closes weak (near the low) pushes PPAO downward even if the candle range is large.
2) It decides how much to remember vs forget (the โfrictionโ)
This is damping / decay.
High volatility (noisy market) โ forget faster
Low volatility (cleaner market) โ remember longer
So PPAO adapts: in chop it wonโt hold bias for long; in smooth trends it will.
3) It updates a hidden โmomentum engineโ (state)
Internally it keeps two numbers (p and q) that store the marketโs impulse with memory.
Every candle:
it shrinks the old state (decay),
rotates it a bit (momentum/volatility creates oscillation),
then adds the candle push (forcing).
Finally, it converts that hidden state into a 0โ100 line:
> 50 means the state is aligned bullish,
< 50 means itโs aligned bearish.
The image below will give you an example of a deep analysis using the Propagator Price Action Oscillator (PPAO).
PPAO below 30
What that means mechanically
Below 30 = bearish impulse extreme.
It happens when the recent candles are consistently โbearish pressureโ according to the forcing inputs:
returns are negative and/or
candles close weak inside their range (CLV negative) and/or
bodies are bearish (close < open)
Also, if volatility is elevated, damping can make this flip faster and stay extreme during a strong impulse.
What it means behaviorally
PPAO < 30 is not โprediction.โ It is diagnosis:
โRecent candle pressure has been strongly bearish.โ
This can show up in two common market contexts:
Continuation context
Price is breaking structure down, and candles keep closing weak โ PPAO stays < 30.
Distribution / hidden weakness context (important)
Price may look stable or near a high, but candles are repeatedly closing poorly inside their ranges (negative CLV).
That makes PPAO drop under 30 even if price hasnโt collapsed yet.
That second case is exactly why Option B (Body + CLV) is useful: it can flag weak closes / selling absorption earlier than โprice-onlyโ oscillators.
PPAO above 70
What that means mechanically
Above 70 = bullish impulse extreme.
It occurs when the forcing inputs are strongly positive:
returns are positive and/or
candles close strong inside their range (CLV positive) and/or
bodies are bullish (close > open)
If volatility is not exploding, damping wonโt erase the accumulated bullish state quickly, so PPAO can stay above 70 during sustained buying pressure.
What it means behaviorally
Again: not a prophecy, but an impulse read:
โRecent candle pressure has been strongly bullish.โ
Two common contexts:
Trend continuation
Price is pushing higher and closes are strong โ PPAO remains > 70.
Exhaustion risk
If price is hitting major resistance/liquidity and you start seeing weaker closes (CLV drops) while PPAO stops making new highs โ thatโs where reversals begin to appear.
The key takeaway using both images
PPAO extremes are best understood as:
Below 30: โSellers are currently dominating candle pressure.โ
Above 70: โBuyers are currently dominating candle pressure.โ
Whether that dominance leads to continuation or reversal depends on what price does next (structure + where you are on the chart). PPAO is measuring pressure, not guaranteeing outcome.
Search in scripts for "bear"
Kalman Hull Bands For Loop | RakoQuant Kalman Hull Bands For Loop | RakoQuant
RakoQuant | Kalman Hull Bands For Loop is a trend-following breakout + regime tool built to keep you on the right side of the market with clean structure and minimal noise. It combines a Kalman Filter (noise reduction), a Hull Moving Average baseline (responsive trend anchor), and a standard deviation envelope computed via a for-loop (robust rail bands) to define actionable bullish and bearish regimes.
What it does
This indicator builds a dynamic โrail systemโ around price:
Kalman Filtered Source โ reduces measurement noise in the input series.
Hull Baseline (HMA) โ fast trend baseline built on the Kalman-filtered source.
Deviation Bands (โRailsโ) โ upper/lower rails based on a loop-calculated standard deviation.
Regime Breakout Logic โ trend regime flips only when price breaks out beyond the rails:
Bullish regime when close crosses above the upper rail
Bearish regime when close crosses below the lower rail
Once a regime is established, the tool highlights the active rail in bright neon and fades the inactive rail (optional), giving you a clear โtrend corridorโ and a strong visual state.
Key Features
1) Kalman Noise Filtering (R & Q)
The Kalman filter smooths the selected source using:
R (Measurement Noise) โ how noisy you assume the observations are
Q (Process Noise) โ how quickly the model is allowed to adapt
This helps reduce chop without turning the indicator into a laggy moving average.
2) Hull Baseline (fast + smooth)
The baseline is a Hull Moving Average applied to the Kalman-filtered source:
responsive in trend,
cleaner during transitions,
ideal for breakout regime detection.
3) Deviation Envelope with Two Modes
Deviation rails are calculated using a for-loop standard deviation (population stdev), with two choices:
Residual vs Baseline (default): deviation of (src - baseline)
โ focuses on โdistance from fair valueโ instead of raw price volatility
Raw Source: deviation of the source itself
โ classic volatility envelope behavior
Then bands are formed by:
upper = baseline + mult * sd
lower = baseline - mult * sd
4) Regime Rails + Candle Painting (RakoQuant Neon)
Bull regime: active lower rail plotted in Neon Aqua
Bear regime: active upper rail plotted in Neon Magenta
Candles are painted to match the current state (optional)
Inactive rails can be shown faintly for context.
5) Alerts for Breakouts
Built-in alerts trigger exactly on regime flips:
Bull Breakout (close crosses above upper rail)
Bear Breakout (close crosses below lower rail)
How to Use It
Trend-following approach
Stay with the active regime until a breakout flip occurs.
In bull regime, the lower rail behaves like an adaptive trend support guide.
In bear regime, the upper rail behaves like an adaptive trend resistance guide.
Breakout confirmation
Use the breakout as a confirmation layer with your other confluences:
take longs only after a bull breakout,
take shorts only after a bear breakout,
filter mean-reversion trades by the regime state.
Inputs Summary
Source: select what the model tracks (default: high)
Kalman: R / Q controls smoothing vs responsiveness
Baseline: Hull length
Deviation: loop length, mode (Residual vs Baseline / Raw Source), multiplier
Visuals: candle painting, baseline visibility, inactive rails
Disclaimer
Backtests are based on historical data and are not indicative of future performance.
:
SuperBands: Smart Pullback StrategyIndicator Name: SuperBands (Smart Pullback Strategy)
1. Core Concept (The Philosophy)
This indicator represents a smart fusion of two powerful trading methodologies: Trend Following and Mean Reversion. Instead of trying to predict market tops or bottoms, it focuses on joining an established trend at a "Discount Price."
In short: "Buy the dips in an Uptrend, and Sell the rallies in a Downtrend."
2. Technical Components
The indicator consists of two main engines working in harmony:
First: The Trend Filter (Supertrend):
Settings: (ATR 20 / Factor 6.0).
Function: Identifies the long-term market direction. The high Factor (6.0) is deliberately used to filter out noise and minor fluctuations, ensuring the trend direction only changes when there is a significant market shift.
Rule: If the line is Green, only Long trades are allowed. If Red, only Short trades are allowed.
Second: The Sniper (Bollinger Bands):
Settings: (Length 20 / StdDev 2.0).
Function: Identifies temporary Overbought and Oversold zones within the trend.
Rule: The Lower Band acts as a "Value Zone" for buying, while the Upper Band acts as a "Premium Zone" for selling.
3. Signal Logic (How it Works)
The indicator scans the market for specific, high-probability conditions:
A. Buy Signal (Green Triangle):
Appears only when both conditions are met:
Trend is Bullish: Supertrend is Green.
Price is "Cheap": Price drops to touch or break the Lower Bollinger Band.
Logic: The general trend is Up, and the price has pulled back to a dynamic support level. This is a buying opportunity.
B. Sell Signal (Red Triangle):
Appears only when both conditions are met:
Trend is Bearish: Supertrend is Red.
Price is "Expensive": Price rises to touch or break the Upper Bollinger Band.
Logic: The general trend is Down, and the price has rallied to a dynamic resistance level. This is a selling opportunity.
4. User Guide (How to Trade It)
To achieve the best results, consider the following approach when a signal appears:
A. Entry:
Enter the trade immediately upon the close of the candle where the triangle appears (or place a pending order slightly above/below the signal candle for confirmation).
B. Stop Loss (SL):
Conservative: Place the SL at the Supertrend line (if this line breaks, the trend is invalid).
Aggressive: Place the SL slightly below the signal candle's low or the most recent Swing Low.
C. Take Profit (TP):
Target 1: The Bollinger Bands Middle Line (Basis/SMA 20).
Target 2: The Opposite Band (Upper Band for Buy signals, Lower Band for Sell signals).
5. Key Strengths & Limitations
Main Advantage: This indicator prevents a common trader mistake: "FOMO" (Fear Of Missing Out). It stops you from buying at the top or selling at the bottom. It psychologically forces you to wait for the price to come to you.
Best Use Case: The wide Supertrend settings make this highly effective for Crypto and Volatile Stocks where trends are strong and pullbacks are deep.
Limitation: In tight, ranging markets (choppy markets), the price might not touch the bands often, or it might generate a signal followed by sideways movement.
Summary for the Trader:
This indicator tells you: "The trend is Up, but don't chase the price... wait for it to drop to the Lower Band, then strike."
ุงุณู
ุงูู
ุคุดุฑ: SuperBands (Smart Pullback Strategy)
1. ุงูููุฑุฉ ุงูุฃุณุงุณูุฉ (ุงูููุณูุฉ ูุฑุงุก ุงูู
ุคุดุฑ)
ูุฐุง ุงูู
ุคุดุฑ ูู ุฏู
ุฌ ุฐูู ุจูู ุงุณุชุฑุงุชูุฌูุชูู ุดููุฑุชูู: ุชุชุจุน ุงูุงุชุฌุงู (Trend Following) ู ุงูุชูุงุต ุงูุงุฑุชุฏุงุฏุงุช (Mean Reversion). ูู ูุง ูุญุงูู ุงูุชูุจุค ุจูู
ุฉ ุฃู ูุงุน ุงูุณููุ ุจู ูุญุงูู ุงูุฏุฎูู ู
ุน ุงูุงุชุฌุงู ุงูุนุงู
ุงูููู ูููู ู
ู "ููุทุฉ ุณุนุฑูุฉ ู
ุฎูุถุฉ" (Discount Price).
ุจุงุฎุชุตุงุฑ: "ุงุดุชุฑู ุงูุงูุฎูุงุถุงุช ูู ุงูุงุชุฌุงู ุงูุตุงุนุฏุ ูุจุน ุงูุงุฑุชูุงุนุงุช ูู ุงูุงุชุฌุงู ุงููุงุจุท".
2. ุงูู
ูููุงุช ุงูุชูููุฉ
ูุชููู ุงูู
ุคุดุฑ ู
ู ุฌุฒุฃูู ุฑุฆูุณููู ูุนู
ูุงู ููุฑูู ูุงุญุฏ:
ุฃููุงู: ุงูุญุงุฑุณ (Supertrend):
ุงูุฅุนุฏุงุฏุงุช: (ATR 20 / Factor 6.0).
ุงููุธููุฉ: ุชุญุฏูุฏ ุงูุงุชุฌุงู ุงูุนุงู
"ุทููู ุงูู
ุฏู". ุงุณุชุฎุฏุงู
ุงูุนุงู
ู 6.0 (ููู ุฑูู
ูุจูุฑ) ูุฌุนู ุงูู
ุคุดุฑ ูุชุฌุงูู ุงูุชุฐุจุฐุจุงุช ุงูุตุบูุฑุฉ ููุง ูุบูุฑ ูููู ุฅูุง ุฅุฐุง ุชุบูุฑ ุงูุงุชุฌุงู ุงูุญูููู ููุณูู ุจููุฉ.
ุงููุงุนุฏุฉ: ุฅุฐุง ูุงู ุงูุฎุท ุฃุฎุถุฑุ ููุณู
ุญ ุจุงูุดุฑุงุก ููุท. ุฅุฐุง ูุงู ุฃุญู
ุฑุ ููุณู
ุญ ุจุงูุจูุน ููุท.
ุซุงููุงู: ุงูููุงุต (Bollinger Bands):
ุงูุฅุนุฏุงุฏุงุช: (Length 20 / StdDev 2.0).
ุงููุธููุฉ: ุชุญุฏูุฏ ู
ูุงุทู ุฐุฑูุฉ ุงูุจูุน ูุงูุดุฑุงุก ุงูู
ุคูุชุฉ (Overbought/Oversold) ุฏุงุฎู ุงูุงุชุฌุงู.
ุงููุงุนุฏุฉ: ุงูุญุฏ ุงูุณููู ูุนุชุจุฑ ู
ูุทูุฉ "ุฑุฎูุตุฉ" ููุดุฑุงุกุ ูุงูุญุฏ ุงูุนููู ู
ูุทูุฉ "ุบุงููุฉ" ููุจูุน.
3. ููู ุชุชููู ุงูุฅุดุงุฑุฉ (ุขููุฉ ุงูุนู
ู)
ูููู
ุงูู
ุคุดุฑ ุจู
ุณุญ ุงูุณูู ุจุญุซุงู ุนู ุดุฑูุท ู
ุญุฏุฏุฉ ุจุฏูุฉ:
A. ุฅุดุงุฑุฉ ุงูุดุฑุงุก (ุงูู
ุซูุซ ุงูุฃุฎุถุฑ):
ุชุธูุฑ ููุท ุนูุฏ ุชุญูู ุงูุดุฑุทูู ู
ุนุงู:
ุงูุงุชุฌุงู ุตุงุนุฏ: ุงูุณูุจุฑ ุชุฑููุฏ ูููู ุฃุฎุถุฑ.
ุณุนุฑ ู
ุบุฑู: ุงูุณุนุฑ ูุจุท ูููุงู
ุณ ุฃู ููุณุฑ ุงูุญุฏ ุงูุณููู ููุจูููุฌุฑ ุจุงูุฏ (Lower Band).
ุงูู
ูุทู: ุงูุงุชุฌุงู ุงูุนุงู
ุตุงุนุฏุ ูุงูุณุนุฑ ูุงู
ุจุนู
ู ุชุตุญูุญ (Pullback) ูู
ุณุชูู ุฏุนู
ุฏููุงู
ูููุ ุฅุฐู ูู ูุฑุตุฉ ููุดุฑุงุก ุจุณุนุฑ ุฃูุถู.
B. ุฅุดุงุฑุฉ ุงูุจูุน (ุงูู
ุซูุซ ุงูุฃุญู
ุฑ):
ุชุธูุฑ ููุท ุนูุฏ ุชุญูู ุงูุดุฑุทูู ู
ุนุงู:
ุงูุงุชุฌุงู ูุงุจุท: ุงูุณูุจุฑ ุชุฑููุฏ ูููู ุฃุญู
ุฑ.
ุณุนุฑ ู
ุฑุชูุน: ุงูุณุนุฑ ุตุนุฏ ูููุงู
ุณ ุฃู ูุฎุชุฑู ุงูุญุฏ ุงูุนููู ููุจูููุฌุฑ ุจุงูุฏ (Upper Band).
ุงูู
ูุทู: ุงูุงุชุฌุงู ุงูุนุงู
ูุงุจุทุ ูุงูุณุนุฑ ูุงู
ุจุนู
ู ุชุตุญูุญ ุตุนูุฏู ูู
ูุงูู
ุฉ ุฏููุงู
ูููุฉุ ุฅุฐู ูู ูุฑุตุฉ ููุจูุน ู
ู ู
ูุงู ู
ุฑุชูุน.
4. ููููุฉ ุงูุงุณุชูุงุฏุฉ ู
ูู (ุฏููู ุงูู
ุณุชุฎุฏู
)
ูุชุญููู ุฃูุถู ูุชุงุฆุฌุ ูููุตุญ ุจุงุชุจุงุน ุงูุฎุทูุงุช ุงูุชุงููุฉ ุนูุฏ ุธููุฑ ุงูุฅุดุงุฑุฉ:
ุฃ. ููุงุท ุงูุฏุฎูู (Entry):
ุงุฏุฎู ุงูุตููุฉ ุจู
ุฌุฑุฏ ุฅุบูุงู ุงูุดู
ุนุฉ ุงูุชู ุธูุฑ ุนูููุง ุงูู
ุซูุซ (ุฃู ุถุน ุฃู
ุฑ ู
ุนูู ููู/ุชุญุช ุงูุดู
ุนุฉ ูุชุฃููุฏ ุงูุญุฑูุฉ).
ุจ. ููู ุงูุฎุณุงุฑุฉ (Stop Loss):
ุงูุฎูุงุฑ ุงูุขู
ู: ุถุน ุงูููู ุนูุฏ ุฎุท ุงูุณูุจุฑ ุชุฑููุฏ (ูุฃูู ุฅุฐุง ููุณุฑ ุงูุฎุทุ ูุนูู ุฃู ุงูุงุชุฌุงู ุชุบูุฑ).
ุงูุฎูุงุฑ ุงูู
ุบุงู
ุฑ: ุถุน ุงูููู ุฃุณูู ูุงุน ุงูุดู
ุนุฉ ุงูุณุงุจูุฉ ุจู
ุณุงูุฉ ุจุณูุทุฉุ ุฃู ุฃุณูู ุขุฎุฑ ูุงุน (Swing Low).
ุฌ. ุฌูู ุงูุฃุฑุจุงุญ (Take Profit):
ุงููุฏู ุงูุฃูู: ุฎุท ุงูู
ูุชุตู ููุจูููุฌุฑ ุจุงูุฏ (ุงูุฎุท ุงูุจุฑุชูุงูู ุงูุฎูู ุฃู ู
ุชูุณุท 20).
ุงููุฏู ุงูุซุงูู: ุงูุญุฏ ุงูู
ุนุงูุณ ููุจูููุฌุฑ ุจุงูุฏ (ุงูุญุฏ ุงูุนููู ูู ุญุงูุฉ ุงูุดุฑุงุกุ ูุงูุณููู ูู ุญุงูุฉ ุงูุจูุน).
5. ู
ู
ูุฒุงุช ูุนููุจ ูุฌุจ ุงูุงูุชุจุงู ููุง
ุงูู
ูุฒุฉ ุงููููุฉ: ูู
ูุนู ูุฐุง ุงูู
ุคุดุฑ ู
ู ุงุฑุชูุงุจ ุฎุทุฃ ุดุงุฆุน ููู "ุงูุดุฑุงุก ูู ุงููู
ุฉ" ุฃู "ุงูุจูุน ูู ุงููุงุน". ูู ูุฌุจุฑู ููุณูุงู ุนูู ุงูุชุธุงุฑ ุงูุณุนุฑ ููุฃุชู ุฅููู ูู ู
ูุงุทู ุงูุชุตุญูุญ.
ููุทุฉ ุงูููุฉ: ุฅุนุฏุงุฏุงุช ุงูุณูุจุฑ ุชุฑููุฏ (6.0) ุชุฌุนู ุงูุฅุดุงุฑุงุช ูููุฉ ุฌุฏุงู ูู ุงูุนู
ูุงุช ุงูุฑูู
ูุฉ (Crypto) ูุงูุฃุณูู
ุฐุงุช ุงูุงุชุฌุงู ุงููุงุถุญ (Trending Markets).
ููุทุฉ ุงูุถุนู: ูู ุงูุฃุณูุงู ุงูุนุฑุถูุฉ ุงูู
ู
ูุฉ (Ranging Markets) ุฐุงุช ุงููุทุงู ุงูุถูู ุฌุฏุงูุ ูุฏ ูุง ุชูู
ุณ ุงูุฃุณุนุงุฑ ุญุฏูุฏ ุงูุจูููุฌุฑ ูุซูุฑุงูุ ุฃู ูุฏ ูุนุทู ุฅุดุงุฑุงุช ุฏุฎูู ูุงูุณูู ูุง ูุชุญุฑู ุจุนุฏูุง ุจููุฉ.
ู
ูุฎุต ููู
ุชุฏุงูู:
ูุฐุง ุงูู
ุคุดุฑ ูููู ูู: "ุงูุณูู ุตุงุนุฏุ ููู ูุง ุชุทุงุฑุฏ ุงูุณุนุฑ.. ุงูุชุธุฑ ุญุชู ููุจุท ุงูุณุนุฑ ุฅููู ุนูุฏ ุงูุฎุท ุงูุณููู ุซู
ุงุดุชุฑู".
Smart Trader, Episode 04, by Ata Sabanci, Candles and Z ScoresSmart Trader, Episode 04
Candles and Z-Scores: A Statistical Approach to Market Analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
OVERVIEW
This indicator applies Z-Score statistical analysis to measure how unusual current market conditions are compared to historical norms. It simultaneously analyzes five key metrics: Price, Total Volume, Buy Volume, Sell Volume, and Delta (Buy minus Sell) . The system detects 60 academically-researched market scenarios and provides visual feedback through Z-Lines (support/resistance levels), Event Markers, Trend Channels, and a comprehensive Dashboard.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CORE CONCEPT: WHY Z-SCORE?
A Z-Score measures how many standard deviations a value is from its mean. In financial markets, extreme Z-Scores indicate statistically rare events that often precede significant price movements.
Mathematical Formula:
Z = (Current Value - Mean) / Standard Deviation
Interpretation:
โข Z โฅ +2.0: Extremely high (occurs approximately 2.5% of the time)
โข Z โฅ +1.0: Above average
โข Z โ 0: Normal (near the mean)
โข Z โค -1.0: Below average
โข Z โค -2.0: Extremely low (occurs approximately 2.5% of the time)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ACADEMIC FOUNDATION
This indicator is inspired by / grounded in market microstructure literature (abbreviated citations in-script) from market microstructure literature:
โข Price-Volume Relationship - Karpoff (1987), Journal of Financial and Quantitative Analysis, Cambridge
Volume is positively correlated with price change magnitude
โข Order Flow Imbalance - Cont, Kukanov, Stoikov (2014), Journal of Financial Econometrics
Order imbalance drives price more reliably than raw volume
โข Informed Trading (PIN Model) - Easley, Kiefer, O'Hara, Paperman (1996), Journal of Finance
Buy/Sell imbalance reveals informed trader activity
โข Mixture of Distributions - Tauchen & Pitts (1983), Clark (1973)
Volume clusters with volatility regimes
โข Volume Predictability - Gervais, Kaniel, Mingelgrin (2001)
Volume shocks predict future returns
โข Liquidity & Order Imbalance - Chordia, Roll, Subrahmanyam (2002)
Order imbalance affects short-term returns
โข Volume-Return Dynamics - Llorente, Michaely, Saar, Wang (2002)
Speculation vs. risk-sharing patterns
โข Reversal vs. Continuation - Campbell, Grossman, Wang (MIT)
High volume predicts lower autocorrelation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
VOLUME ENGINE
The indicator offers two methods for decomposing total volume into Buy and Sell components:
Method 1: Geometry (Approximation)
Uses candle structure to estimate buying and selling pressure:
Buy Volume = Total Volume ร (Close - Low) / (High - Low)
Sell Volume = Total Volume ร (High - Close) / (High - Low)
โข Works on all instruments without additional data requirements
โข Fast calculation
โข Less precise than intrabar method
Method 2: Intrabar (Precise)
Uses Lower Timeframe (LTF) tick/second data to aggregate actual up-ticks versus down-ticks:
โข More accurate volume decomposition
โข Requires LTF data availability
โข Configurable LTF: 1T (tick), 1S, 15S, 1M
Delta Calculation:
Delta = Buy Volume - Sell Volume
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-SCORE SYSTEM
The system calculates Z-Scores for five metrics simultaneously, using a configurable lookback period (default: 20 bars):
โข Zp (Price Z-Score): Measures price deviation from its mean
โข Zv (Volume Z-Score): Measures total volume deviation
โข Zbuy (Buy Volume Z-Score): Measures buying pressure deviation
โข Zsell (Sell Volume Z-Score): Measures selling pressure deviation
โข Zฮ (Delta Z-Score): Measures order flow imbalance deviation
Threshold Constants:
โข ZH (Z High) = 2.0: Extreme threshold
โข ZM (Z Medium) = 1.0: Moderate threshold
โข Z0 (Z Zero) = 0.5: Near-zero threshold
Group System:
The analysis window is divided into groups (default: 5 groups ร 20 bars = 100 bar total window). Group numbers (1, 2, 3...) are displayed above candles when enabled, helping identify the relative age of detected levels.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Z-LINES (SUPPORT/RESISTANCE LEVELS)
When any metric reaches an extreme Z-Score, the system marks that price level as a significant support or resistance zone.
Detection Logic:
โข Upper Z-Line: Drawn from the HIGH when Z โฅ upper threshold (default +2.0)
โข Lower Z-Line: Drawn from the LOW when Z โค lower threshold (default -2.0)
Multi-Metric Detection:
Z-Lines can be triggered by any of the five metrics (Price, Volume, Buy, Sell, Delta). When multiple metrics trigger at similar price levels, they are clustered together into a single combined label showing all contributing metrics.
Persistence:
Z-Lines persist for the entire analysis window (Period ร Groups bars) and are NOT removed when price touches them. This allows traders to see historical support/resistance levels that may still be relevant.
Anti-Overlap System:
Labels are automatically repositioned to prevent overlap. The "Label Min Gap (%)" setting controls minimum vertical separation between ALL labels (both upper and lower), ensuring readability even when multiple levels cluster together.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
EVENT DETECTION ENGINE (60 SCENARIOS)
The system analyzes 60 distinct market scenarios based on Z-Score combinations. Each scenario is derived from academic research and assigned a confidence score based on signal strength and alignment.
Notation:
โข Zp = Price Z-Score
โข Zv = Total Volume Z-Score
โข Zbuy = Buy Volume Z-Score
โข Zsell = Sell Volume Z-Score
โข Zฮ = Delta Z-Score
โข dirP = Price direction (+1 if Zp > 0.5, -1 if Zp < -0.5, else 0)
โข = Previous bar value
โข ZH = 2.0 (High threshold)
โข ZM = 1.0 (Medium threshold)
โข Z0 = 0.5 (Zero threshold)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY A: PRICE-VOLUME (Events 1-10)
Based on: Karpoff (1987), Tauchen-Pitts (1983), Clark (1973)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 1: Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Bullish/Bearish (follows price direction)
Event 2: Trend Strength Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 3: Fragile Move
|Zp| โฅ ZH AND Zv โค -ZM
Direction: Warning (price move without volume support)
Event 4: Weak Rally
Zp โฅ ZH AND Zv โค -ZH
Direction: Warning (price up without volume)
Event 5: Weak Selloff
Zp โค -ZH AND Zv โค -ZH
Direction: Warning (price down without volume)
Event 6: Momentum Build
ZM โค |Zp| < ZH AND Zv โฅ ZH
Direction: Follows price direction
Event 7: Churn
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (high volume, low price movement)
Event 8: Quiet Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (low volume, low price movement)
Event 9: High Volume Regime
Zv โฅ ZH
Direction: Neutral
Event 10: Low Volume Regime
Zv โค -ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY B: ORDER-FLOW / DELTA (Events 11-16)
Based on: Cont, Kukanov, Stoikov (2014), Easley, Kiefer, O'Hara, Paperman (1996)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 11: Imbalance Drives Price
|Zฮ| โฅ ZH AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (dirP), with delta alignment required
Event 12: Divergence Top
Zp โฅ ZH AND Zฮ โค -ZH
Direction: Warning (distribution at top)
Event 13: Divergence Bottom
Zp โค -ZH AND Zฮ โฅ ZH
Direction: Warning (accumulation at bottom)
Event 14: Absorption Positive
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โฅ ZH
Direction: Bullish (buy absorption, support forming)
Event 15: Absorption Negative
|Zp| โค Z0 AND Zv โฅ ZH AND Zฮ โค -ZH
Direction: Bearish (sell absorption, resistance forming)
Event 16: Depth Wall
Zv โฅ ZH AND |Zฮ| โฅ ZH AND |Zp| โค Z0
Direction: Neutral (market depth absorbing)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY C: BUY VS SELL (Events 17-23)
Based on: Easley, Kiefer, O'Hara, Paperman (1996), Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 17: Aggressive Buy Dominance
Zbuy โฅ ZH AND Zฮ โฅ ZH AND Zsell โค -ZM
Direction: Bullish
Event 18: Aggressive Sell Dominance
Zsell โฅ ZH AND Zฮ โค -ZH AND Zbuy โค -ZM
Direction: Bearish
Event 19: Two-Sided Battle
Zbuy โฅ ZH AND Zsell โฅ ZH AND |Zฮ| โค Z0
Direction: Neutral (buyers and sellers equally strong)
Event 20: Battle with Buy Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND ZM โค Zฮ < ZH
Direction: Bullish
Event 21: Battle with Sell Edge
Zbuy โฅ ZH AND Zsell โฅ ZH AND -ZH < Zฮ โค -ZM
Direction: Bearish
Event 22: Hidden Accumulation
Zbuy โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bullish (buy shock without price movement)
Event 23: Hidden Distribution
Zsell โฅ ZH AND |Zp| โค Z0 AND Zv โฅ ZH
Direction: Bearish (sell shock without price movement)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY D: PREDICTABILITY (Events 24-26)
Based on: Gervais, Kaniel, Mingelgrin (2001), Karpoff (1987)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 24: Volume Shock Positive Drift
Zv โฅ ZH AND |Zp| โค ZM
Direction: Follows price direction
Event 25: Volume Shock Negative Drift
Zv โค -ZH AND |Zp| โค ZM
Direction: Opposite to price direction
Event 26: Abnormal Volume Info Arrival
Zv โฅ ZH
Direction: Neutral
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY E: REVERSAL VS CONTINUATION (Events 27-30)
Based on: Campbell, Grossman, Wang (MIT), Llorente, Michaely, Saar, Wang (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 27: High Vol Reversal Risk
Zv โฅ ZH
Direction: Warning (high volume implies lower positive autocorrelation)
Event 28: Low Vol Continuation Risk
Zv โค -ZH
Direction: Follows price direction (trend likely continues)
Event 29: Speculation Continuation
Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 30: Risk Sharing Reversal
Zv โฅ ZH AND |Zฮ| โค Z0
Direction: Warning (potential reversal)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY F: IMBALANCE LAG (Events 31-33)
Based on: Chordia, Roll, Subrahmanyam (2002)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 31: Persistent Imbalance Push
|Zฮ| โฅ ZM AND |Zฮ | โฅ ZM AND sign(Zฮ) = sign(Zฮ )
Direction: Follows delta direction (persistent pressure)
Event 32: Imbalance Pressure Decay
(Zฮ โฅ ZM AND Zฮ โค -ZM) OR (Zฮ โค -ZM AND Zฮ โฅ ZM)
Direction: Warning (imbalance sign flip)
Event 33: Intraday Imbalance Predicts
|Zฮ| โฅ ZM
Direction: Follows delta direction
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY G: SUPPORT/RESISTANCE (Events 34-36)
Based on: Peskir (Manchester)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 34: SR Barrier Event
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (price stalls with high volume)
Event 35: Volume Backed SR Level
|Zp| โค Z0 AND Zv โฅ ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction
Event 36: Volume Poor SR Level
|Zp| โค Z0 AND Zv โค -ZM
Direction: Warning (weak S/R without volume)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY H: EXTENDED ANALYSIS (Events 37-50)
Based on: Extended market microstructure analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 37: Climax Buy
Zbuy โฅ ZH AND Zp โฅ ZH AND Zv โฅ ZH
Direction: Warning (extreme buying exhaustion, potential top)
Event 38: Climax Sell
Zsell โฅ ZH AND Zp โค -ZH AND Zv โฅ ZH
Direction: Warning (extreme selling exhaustion, potential bottom)
Event 39: Stealth Accumulation
Zbuy โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bullish (quiet buying)
Event 40: Stealth Distribution
Zsell โฅ ZM AND |Zp| โค Z0 AND Zv โค Z0
Direction: Bearish (quiet selling)
Event 41: Volume Divergence Bull
Zp โค -ZM AND Zv โค -ZM
Direction: Bullish (price down but volume declining)
Event 42: Volume Divergence Bear
Zp โฅ ZM AND Zv โค -ZM
Direction: Bearish (price up but volume declining)
Event 43: Delta Price Alignment
|Zp| โฅ ZM AND |Zฮ| โฅ ZM AND sign(Zp) = sign(Zฮ)
Direction: Follows price direction (strong trend confirmation)
Event 44: Extreme Compression
|Zp| โค Z0 AND Zv โค -ZH
Direction: Neutral (very low volatility)
Event 45: Volatility Expansion
|Zp| โฅ ZH AND Zv โฅ ZH
Direction: Follows price direction (breakout from compression)
Event 46: Buy Exhaustion
Zbuy โฅ ZH AND Zp โค Z0
Direction: Warning (high buy but price fails)
Event 47: Sell Exhaustion
Zsell โฅ ZH AND Zp โฅ -Z0
Direction: Warning (high sell but price holds)
Event 48: Trend Acceleration
|Zp| โฅ ZM AND |Zp| > |Zp | AND Zv โฅ ZM
Direction: Follows price direction (increasing momentum)
Event 49: Trend Deceleration
|Zp| โฅ ZM AND |Zp| < |Zp | AND sign(Zp) = sign(Zp )
Direction: Warning (decreasing momentum)
Event 50: Multi Divergence
(Zp โฅ ZM AND Zฮ โค -ZM) OR (Zp โค -ZM AND Zฮ โฅ ZM) + |Zp| โฅ ZM AND Zv โค -ZM
Direction: Warning (multiple divergence signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CATEGORY I: TREND-INTEGRATED (Events 51-60)
Based on: Combined price-volume-delta trend analysis
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Event 51: Trend Breakout Confirmed
|Zp| โฅ ZH AND Zv โฅ ZH AND |Zฮ| โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction
Event 52: Trend Support Test
Zp โฅ ZM AND Z0 โค Zp < ZM AND Zฮ โฅ Z0
Direction: Bullish (pullback in uptrend)
Event 53: Trend Resistance Test
Zp โค -ZM AND -ZM < Zp โค -Z0 AND Zฮ โค -Z0
Direction: Bearish (rally in downtrend)
Event 54: Trend Reversal Signal
sign(Zp) โ sign(Zp ) AND |Zp| โฅ ZM AND |Zp | โฅ ZM
Direction: Follows new price direction (momentum flip)
Event 55: Channel Absorption
|Zp| โค Z0 AND Zv โฅ ZH
Direction: Neutral (range-bound with volume)
Event 56: Trend Continuation Volume
|Zp| โฅ ZM AND Zv โฅ ZM AND sign(Zฮ) = dirP AND dirP โ 0
Direction: Follows price direction (healthy trend with volume)
Event 57: Trend Exhaustion
|Zp| โฅ ZM AND Zv โค -ZM AND |Zp| < |Zp |
Direction: Warning (trend losing steam)
Event 58: Range Breakout Pending
|Zp| โค Z0 AND Zv โค -ZH AND |Zฮ| โฅ ZM
Direction: Follows delta direction (compression with imbalance)
Event 59: Trend Quality High
|Zp| โฅ ZM AND sign(Zฮ) = dirP AND Zv โฅ Z0 AND dirP โ 0
Direction: Follows price direction (strong aligned signals)
Event 60: Trend Quality Low
|Zp| โฅ ZM AND sign(Zฮ) โ dirP AND dirP โ 0
Direction: Warning (conflicting signals)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TREND CHANNEL SYSTEM
The trend channel system is adapted from Smart Trader Episode 03 to provide consistent visual context for price action analysis.
How It Works:
โข Divides the chart into blocks based on Z-Score groups
โข Calculates OHLC (Open, High, Low, Close) for each block
โข Detects Higher Highs/Higher Lows (uptrend) or Lower Highs/Lower Lows (downtrend) patterns
โข Draws channel lines connecting block extremes
โข Classifies by angle: steep angles indicate trends, flat angles indicate ranges
Channel Classifications:
โข UPTREND: Higher highs and higher lows detected
โข DOWNTREND: Lower highs and lower lows detected
โข RANGE: Channel angle below threshold (default 10 degrees)
Label Information:
โข Trend direction (UPTREND/DOWNTREND/RANGE)
โข Channel boundary prices
โข Distance from current price (absolute and percentage)
โข Channel angle in degrees
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DASHBOARD
The dashboard provides a comprehensive real-time view of all Z-Score metrics and detected events.
Dashboard Sections:
1. Header Row
Displays indicator name and current calculation mode (CLOSED or LIVE).
2. Metric Rows (Price, Total Volume, Buy Volume, Sell Volume, Delta)
Each row displays:
โข Value: Current metric value
โข Z: Calculated Z-Score
โข Visual: Graphical Z-bar showing position relative to mean
โข Status: Interpretation (Extreme High, Above Avg, Normal, Below Avg, Extreme Low)
โข Upper: Oldest active upper Z-Line in window (Label Mirror)
โข Lower: Oldest active lower Z-Line in window (Label Mirror)
3. Event Detection Section
โข Count of triggered events out of 60 total scenarios
โข Market Bias: Bull/Bear/Neutral percentage with visual bar
โข Strongest Event: Highest confidence event currently triggered
โข #2 Event: Second highest confidence event
4. Footer
Shows engine type (Geometry/Intrabar), Z-Score period, calculation basis, and number of valid bars.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ALERT SYSTEM
The indicator uses native alertcondition() functions, keeping the settings menu clean while providing comprehensive alert options in TradingView's alert dialog.
Available Alert Categories:
โข Master Alerts: Any event, Any bullish, Any bearish, Any warning
โข Single Event Alerts: Individual alerts for key events (Breakout, Climax, Divergence, etc.)
โข Category Alerts: Alerts by event category (Price-Volume, Order-Flow, etc.)
โข Confluence Alerts: 2+, 3+, 4+, or 5+ aligned events
โข Bias Shift Alerts: 10%, 20%, or 30% shifts in market bias
โข High Confidence Alerts: Events with 60%+, 70%+, 80%+, or 90%+ confidence
โข Divergence Alerts: Price vs Volume or Price vs Delta divergences
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
DATA ACCURACY AND LIMITATIONS
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations when using the Intrabar method.
Data Accuracy Levels:
โข 1T (Tick): Most accurate, real volume distribution per tick
โข 1S (1 Second): Reasonably accurate approximation
โข 15S (15 Seconds): Good approximation, longer historical data available
โข 1M (1 Minute): Rough approximation, maximum historical data range
Backtest and Replay Limitations:
โข Replay mode results may differ from live trading due to data availability
โข For longer backtest periods, use higher LTF settings (15S or 1M)
โข Not all symbols/exchanges support tick-level data
โข Crypto and Forex typically have better LTF data availability than stocks
A Note on Data Access:
Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable calculations.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
LANGUAGE SUPPORT (TRI-LINGUAL UI)
This indicator includes a built-in language switch with three interface languages :
โข English (EN)
โข Tรผrkรงe (TR)
โข ํ๊ตญ์ด (KO)
The selected language updates key interface text such as the Dashboard headers/rows , tooltips , and the Event Engine outputs (event names, category names, and direction labels). Turkish diacritics and Korean Hangul are supported for clean, native readability.
Why only three languages?
Each additional language requires duplicating strings throughout the code, which increases script size/memory usage and compilation time. To keep the indicator optimized and responsive, language options are intentionally limited to three.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ DISCLAIMER
FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY
This indicator is designed as an educational and research tool based on academic market microstructure literature. It is NOT financial advice and should NOT be used as the sole basis for trading decisions.
Important Notices:
โข Past performance does not guarantee future results
โข All trading involves risk of substantial loss
โข The indicator's signals are statistical probabilities, not certainties
โข Always conduct your own research and consult qualified financial advisors
โข The creator assumes no responsibility for trading losses
Research Sources:
This indicator is built upon peer-reviewed academic research from:
โข Journal of Financial and Quantitative Analysis (Cambridge University Press)
โข Journal of Finance
โข Journal of Financial Econometrics
โข MIT Working Papers
โข arXiv Financial Mathematics
CSS Reversal - VAThis indicator identifies a price action reversal pattern known as CSS (Candle Stop Setup). Unlike standard 3-candle patterns, this logic is dynamic and "hunts" for the true peak or valley before confirming a shift in momentum.
Core Logic & Rules
The script follows a specific sequence of "Initiation, Waiting, and Triggering" to ensure it captures high-probability reversals:
1. Initiation (The Sweep): The process starts when a candle (the Pivot) sweeps the liquidity of the previous candle.
Bearish: Candle 2 makes a higher high than Candle 1.
Bullish: Candle 2 makes a lower low than Candle 1.
2. Identifying the Extreme: The script tracks the absolute highest high (for bearish) or lowest low (for bullish) during the setup. If a subsequent candle goes higher/lower without triggering a close, the "mark" moves to that new extreme candle.
3. The Waiting Room (Inside Bars): The setup remains active even if several candles follow that do not break out of the Pivot's range. The script can wait indefinitely (e.g., 3, 4, or 5+ candles) as long as the original extreme is not breached.
4. The Trigger (The Confirmation): A signal is only confirmed when a candle closes past the opposite side of the extreme candle's body.
Bearish Trigger: A candle closes below the Low of the highest candle.
Bullish Trigger: A candle closes above the High of the lowest candle.
5. Retrospective Marking: Once the trigger close occurs, the script automatically places a visual marker (arrow) on the actual extreme candle (the peak or valley), even if that candle occurred several bars ago.
Visual Indicators
Red Arrow (โ): Placed at the high of the highest candle in a confirmed bearish reversal.
Green Arrow (โ): Placed at the low of the lowest candle in a confirmed bullish reversal.
Use Cases
This script is designed for traders who look for Liquidity Sweeps and Market Structure Shifts. It filters out "fake" reversals where price merely wicks past a level without a solid closing confirmation, and it specifically accounts for "inside bar" periods where price consolidates before making its move.
Smart TrendSmart Trend โ TradingView Indicator Documentation
ยฉ 2026 Arup Sarkar
Indicator Name: Smart Trend
Version: 1.0
What It Does
Smart Trend is a trend detection and momentum analysis indicator for TradingView. It identifies high-probability trend flips, strong momentum moves, volatility expansions, and short-term counter-trend signals.
It combines:
- Current timeframe trend lines (EMA + SMA)
- Higher timeframe EMA context (1H + 4H + Daily)
- ATR-based dynamic exits
- Volume confirmation
Smart Trend is designed to:
- Detect trend changes early
- Confirm momentum strength
- Highlight weakening trends before reversals
- Keep charts clean and actionable
How It Works
1. Trend Detection: Trend Line (EMA21 + SMA50): represents current trend direction
2. Higher Timeframe EMA (HTF EMA 1H): confirms alignment
Trend Conditions:
- Uptrend: candle closes above trend line and HTF EMA
- Downtrend: candle closes below trend line and HTF EMA
- Choppy / Flat: neither uptrend nor downtrend
2. Momentum Strength
- Calculated using slope of trend line EMA
- Candle colors indicate momentum:
* Bullish: green, opacity based on strength
* Bearish: red, opacity based on strength
* Neutral / Choppy: grey
3. Alerts
- Smart Trend sends alerts once per confirmed condition on candle close:
- Uptrend Flip (U) โ 2-candle confirmation, trend turns bullish
- Downtrend Flip (D) โ 2-candle confirmation, trend turns bearish
- Strong Bullish Momentum โ trend up + ATR breakout + volume confirmation
- Strong Bearish Momentum โ trend down + ATR breakout + volume confirmation
- Volatility Expansion โ ATR rising
- Volatility Expansion After Squeeze โ breakout after low-volatility period
- Counter-Trend Up โ short-term uptrend vs HTF downtrend
- Counter-Trend Down โ short-term downtrend vs HTF uptrend
4. ATR Dynamic Exits
- ATR (Average True Range) over last 50 days is used to calculate dynamic stop levels
- Plots longExit and shortExit levels
- Helps traders manage risk dynamically based on market volatility
5. Visuals
- Trend Line: colored by direction (green/red/gray)
- Smoothed 4H+1D EMA: thin orange line for higher timeframe context
- Labels: โUโ for uptrend flips, โDโ for downtrend flips
- Counter-trend signals: small triangles above/below bars
- ATR exit lines: semi-transparent for clean chart
Benefits
- Detects trend reversals early
- Confirms strong momentum moves
- Highlights weakening trends using volume and ATR
- Provides dynamic exit levels for risk management
- Keeps chart clean and readable
- Alerts are actionable and trigger once per pattern confirmation
Conclusion
Smart Trend is an all-in-one trend and momentum tool for traders who want:
- Early detection of trend flips
- High-probability momentum signals
- Volatility-aware trade management
- Minimal visual clutter with maximum actionable insights
Smart Trend can be combined with support/resistance levels, higher timeframe analysis, and other indicators to increase confidence and improve trade decisions.
[CT] MoBo BandsThis script is the TradingView Pine Script version of MoBo Bands, the Momentum Breakout indicator, and the original creator credited in the code is NPR21, who also notes it was based on an original Thinkorswim concept and then modified and converted to Pine Script by NPR21.
At its core, MoBo Bands is a volatility envelope built from a simple moving average and standard deviation, but itโs not meant to be used like a normal Bollinger Band โtouch = reversalโ tool. Itโs designed to identify when price has pushed far enough away from its recent average to qualify as a breakout regime, and then to keep you biased in that regime until a true opposite breakout occurs. The indicator calculates a midline using a simple moving average of your chosen price source over the selected length. It then measures how spread out price has been over that same lookback using standard deviation. From there it builds an upper and lower band by taking the midline and adding or subtracting a user-defined multiple of standard deviation. In this script those multipliers are โNum Dev Upโ and โNum Dev Down.โ They default to ยฑ0.8, which is tighter than traditional Bollinger settings, meaning the bands are closer to price and the indicator is more willing to declare a breakout state. The โDisplaceโ input simply shifts the plotted bands forward or backward by bars for visual alignment; functionally, the breakout comparisons are being made against the displaced band values, so if you use displacement you are intentionally changing where signals occur in time.
The key concept in MoBo is that it separates โwhere price is right nowโ from โwhat state we are in.โ First it assigns a raw status called MoboStatus: if the close is above the upper band it becomes bullish breakout state, if the close is below the lower band it becomes bearish breakout state, and if the close is between the bands it is neutral. If the script stopped there, youโd only see signals on the exact bars that closed outside the bands. Instead, it adds a second layer called BreakStatus, which is a persistent regime variable. BreakStatus changes only when a true breakout happens, and it does not reset to neutral when price returns inside the bands. That is the entire purpose of the โrecursionโ line: once BreakStatus flips bullish, it stays bullish through the inside-band chop until a bearish breakout flips it the other way, and vice versa. This is why the band colors and the band fill behave the way they do. When BreakStatus is bullish, the bands plot green and the filled area between them is green. When BreakStatus is bearish, the bands plot red and the fill becomes red. If price is simply oscillating inside the bands, BreakStatus stays whatever it last was, which is the whole โstay with the breakout biasโ philosophy.
Because of that design, the most straightforward way to trade it is to treat MoBo as a regime/bias indicator first, and an entry tool second. A bullish regime begins when you get a bullish breakout condition, meaning you had a close above the upper band and BreakStatus flips to bullish. In this script that flip is also where the โBreak Outโ arrow prints. That event is telling you volatility expansion has pushed price into an upside breakout state, so your default expectation becomes continuation or at least holding above the midline with higher odds of higher highs. A common execution approach is to take the breakout as your initial trigger, then use the band structure to manage the trade: if you want a more aggressive style, you enter on the breakout bar close or on the next bar if it confirms. If you want a more conservative style, you wait for the first pullback after the breakout and enter when price holds above the midline or reclaims the upper band area. Your risk can be framed in a few ways depending on instrument and timeframe: the most โindicator-pureโ protective logic is that the bullish regime is invalidated only when price later breaks below the lower band and flips BreakStatus bearish. That is a very wide stop concept, but it reflects the indicatorโs intent to ride trends. A tighter, more practical stop for active trading is to use the midline or a recent swing low as the risk point while still respecting the MoBo bias; the idea is you are using MoBo to keep you from fading the move, while your stop is based on structure rather than waiting for a full opposite breakout.
A bearish regime is the exact mirror. It begins when a close is below the lower band and BreakStatus flips bearish, which is when the red โBreak Downโ arrow prints. From that point, you treat rallies into the midline/band area as potential short opportunities as long as the regime remains bearish. More aggressive traders will short the initial breakdown; more conservative traders wait for a bounce that fails back below the midline or for a retest of the lower band zone. Exits can be handled either as โregime exits,โ meaning you hold until BreakStatus flips the other way, or as โtrade exits,โ meaning you scale or exit into targets while staying aligned with the regime until it ends. On trend days, the regime exit can keep you in the move much longer than typical oscillators. On choppy days, a tighter risk plan is needed because a tight band setting can flip more often.
The candle coloring addition you asked for simply mirrors the fill state so you can read the regime without looking at the bands. When the fill is green (BreakStatus bullish), the candles are tinted green; when the fill is red (BreakStatus bearish), the candles are tinted red; when neither fill is active, it leaves the candles unchanged. This doesnโt change the logic or signals, it just makes the โstateโ visually obvious.
Where traders usually get the most out of MoBo is by using it in the context it was designed for: volatility expansion and trend participation. If you try to trade it like a mean-reversion Bollinger Band system, youโll often do the opposite of what itโs signaling. Here, a close outside the band is not โoverbought/oversold,โ itโs the condition that defines a breakout regime. The best trades tend to come when the breakout occurs in alignment with a higher-timeframe trend or after a compression period, because the band break is then capturing a genuine shift in volatility and direction. If you want it to trigger fewer, higher-quality regimes, increase the length and/or increase the deviation multipliers, because that widens the envelope and demands a more significant move to flip state. If you want earlier, more frequent signals, reduce the length and/or reduce the multipliers, understanding youโll also increase whipsaw risk.
Mean Deviation Loop | Lyro RSThe MAD Bollinger Bands + Loops is a sophisticated technical analysis tool designed to identify and quantify market trends by combining dynamic moving averages with robust statistical dispersion measures. This indicator employs a multi-model approach, integrating Bollinger-style MAD bands, for-loop momentum scoring, and a hybrid signal system to provide traders with adaptive insights across varying market conditions.
Indicator Modes
Bollinger-Style MAD Bands
This mode calculates dynamic volatility bands around price using Mean Absolute Deviation (MAD) instead of standard deviation or RMSE. MAD offers a smoother and more outlier-resistant measure of price dispersion.
Upper Band = Dynamic Moving Average + (MAD ร Multiplier)
Lower Band = Dynamic Moving Average โ (MAD ร Multiplier)
These bands expand and contract with market volatility, helping to identify potential breakout and breakdown zones with reduced sensitivity to extreme price spikes.
For-Loop Momentum Scoring
Momentum is evaluated by analyzing recent price behavior through a loop-based comparison system applied to a MAD-weighted price series.
A rising momentum score indicates strengthening bullish pressure
A declining momentum score signals increasing bearish dominance
This method emphasizes directional consistency rather than short-term noise.
Hybrid Combined Signal
This mode combines the outputs of the MAD Bands and For-Loop Momentum Scoring into a unified directional signal.
+1 indicates bullish conditions (green)
โ1 indicates bearish conditions (red)
An average of these scores is calculated to generate a combined signal, providing a clearer and more reliable indication of overall market trend.
Practical Application
Signal Interpretation
A buy signal is generated when both the MAD Bands and For-Loop Momentum align bullishly.
A sell signal is generated when both components align bearishly.
Trend Confirmation
The Hybrid Combined Signal serves as a confirmation layer, helping traders validate trend direction and reduce the likelihood of false signals during choppy or low-volatility conditions.
โ ๏ธ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals.
SMA Squeeze Oscillatorโ OVERVIEW
SMA Squeeze Oscillator is a momentum oscillator based on the relationship between multiple SMA moving averages. It combines volatility compression analysis (Squeeze), wave-style momentum structure, trend filtering, breakout signals, and divergence detection.
The indicator is designed to identify periods of market compression (low volatility), which are often followed by dynamic price moves. Additionally, it visualizes momentum and trend structure in a clean and readable way, without using a classic histogram.
โ CONCEPT
The core of the indicator is built on three SMA moving averages with different lengths. The distance between them (spread) is compared to ATR, which allows the detection of volatility compression (Squeeze).
- When the SMA spread is smaller than ATR ร multiplier, the market is considered to be in Squeeze
- When the spread expands beyond this threshold, the market exits the Squeeze โ often signaling the beginning of an impulse
Momentum is calculated from the relationship between the faster SMA and the slower SMAs, then smoothed. Instead of a traditional histogram, the indicator displays continuous momentum waves above and below the zero line, making changes in momentum structure easier to read.
An optional SMA trend filter can be used to limit signals to the direction of the current trend.
โ FEATURES
Calculations
- three SMA moving averages
- ATR as a volatility measure
- Squeeze detection based on SMA spread
- wave-based momentum oscillator with smoothing
- optional SMA trend filter
Visualization
- momentum waves above / below the zero line
- bullish / bearish trend fills
- separate fill and color for Squeeze phases
- thick zero line reflecting current trend
- wave-style candle coloring based on momentum
- first wave markers after exiting Squeeze
- bullish and bearish divergence visualization
Signals
- momentum zero-line cross (Bull / Bear Cross)
- first momentum wave after Squeeze
- classic bullish and bearish divergences
Alerts
- Bull Cross
- Bear Cross
- First Bullish after Squeeze
- First Bearish after Squeeze
- Bullish Divergence
- Bearish Divergence
โ HOW TO USE
Adding the indicator
Paste the code into Pine Editor or search for โSMA Squeeze Oscillatorโ on TradingView.
Main settings
- SMA 1 / 2 / 3 โ lengths of SMAs used for Squeeze and momentum
- ATR Length / Multiplier โ Squeeze detection sensitivity
- ATR Multiplier = 0 โ the indicator does not display Squeeze zones
- Momentum Smoothing โ smoothing of momentum waves
- Enable SMA Filter โ trend filter
- the current trend is reflected by the zero-line color
- price below SMA โ bearish trend
- price above SMA โ bullish trend
- when enabled, it filters Bull / Bear Cross and First Bullish / Bearish after Squeeze signals, allowing only those aligned with the trend
- Enable candle coloring โ wave-style candle coloring
- Enable Divergence โ divergence detection
โ APPLICATION
Squeeze & Breakout
Squeeze phases indicate low volatility and energy accumulation. A breakout from Squeeze often leads to a strong directional move.
The SMA filter is not required โ instead, users may apply:
- a more advanced trend filter
- structural confirmation (level break, correction completion)
- additional price-action tools
Momentum trading
The direction and slope of momentum waves help assess impulse strength and loss of momentum.
A momentum reversal can act as an early signal of a correction or potential trend change, often before it becomes visible on price.
Divergences
The indicator detects classic bullish and bearish divergences.
Important notes:
- divergences appear with a delay equal to the pivot length required for detection, by default, this delay is two candles
- divergences forming on small momentum waves or inside a Squeeze are often misleading and should be treated with caution
โ NOTES
- the indicator works best when used in market context
- Squeeze reflects volatility, not direction
- it is not a standalone trading system
Futures Trend SignalerWhat this indicator is
Futures Trend Signaler is a compact trend/bias dashboard built for futures (and any liquid symbol) that combines:
EMA trend alignment (EMA9 vs EMA21), and
Micro price positioning versus a higherโtimeframe EMA (e.g., 15s and 1s price relative to the 1m EMA9),
plus crossover markers on the chart to timestamp regime shifts.
Itโs designed to answer, in seconds:
โIs the market in a bullish or bearish EMA structure?โ
โAre the lower timeframes aligned with the higher timeframe?โ
โWhen was the most recent bull/bear crossover?โ
What it shows (table)
The table includes:
1m EMA9 vs EMA21
State: EMA9 > EMA21 / EMA9 < EMA21 / neutral
Bias: Bullish / Bearish / Neutral
โLast crossโ context (so you know what the most recent regime shift was)
15s EMA9 vs EMA21
Same state/bias logic as the 1m row
1s EMA9 vs EMA21
Same state/bias logic as the 1m row
15s Price vs 1m EMA9
Shows whether micro price is above or below the 1m EMA9
1s Price vs 1m EMA9
Same, but even more โmicroโ
This structure gives you a quick โstacked timeframeโ view:
1m EMA structure = your baseline regime,
15s/1s EMA structure = your momentum alignment,
15s/1s price vs 1m EMA9 = your immediate pressure/positioning vs the baseline.
What it plots (crossover markers)
For each EMA crossover set (1m, 15s, 1s), the script plots:
Bull cross marker (arrow up)
Bear cross marker (arrow down)
To keep the chart clean:
It keeps only the most recent bull cross and most recent bear cross per tracked timeframe.
When a new bull/bear cross happens, the prior marker of that same type/timeframe is removed.
Markers are differentiated by:
Color and/or a mini label on the marker (e.g., โ1mโ, โ15sโ, โ1sโ), so you can instantly tell which timeframe produced the signal.
Inputs / customization
Typical controls include:
Show/hide table
Table position + text size
Lowerโtimeframe selections (so you can change 15s/1s if your symbol or plan doesnโt support seconds data)
Optional marker sizing / visibility settings (if you decide to expose them)
Recommended usage
Use the 1m EMA9/EMA21 as your baseline bias filter.
Use 15s & 1s EMA alignment to confirm momentum is in agreement before entries.
Use 15s/1s price vs 1m EMA9 as a quick โpressureโ check (continuation vs meanโreversion risk).
Use the most recent crossover markers to avoid trading into a fresh regime change without confirmation.
Limitations / notes
Secondsโbased signals require seconds data availability for your symbol/account. If not supported, switch those inputs to a higher LTF (e.g., 1m / 5m).
Because the indicator uses multiโtimeframe data, responsiveness can depend on your current chart timeframe and how often TradingView updates each series.
Disclaimer
This indicator is for educational/informational purposes only and does not constitute trading or investment advice. Futures trading involves substantial risk and can result in significant losses. Always manage risk and follow your plan.
EMA Fractal Bias"EMA Fractal Bias" overlays on TradingView charts to detect directional bias for scalping on futures like NQ/ES.
It computes three smoothed EMAs (fast 3/2, mid 9/3, slow 20/5, configurable) for stacking checks (bullish: fast > mid > slow; bearish: reverse).
Williams Fractals (period 2 default) identify potential breaks: close above up-fractal high for long, below down-fractal low for short.
Bias logic: Tracks last up/down fractal. On break, if stacked aligns, sets bias (long/short) and resets broken fractal. If no stack, sets pending flag and neutral bias; confirms on later bars if stack turns true.
Shading teal for long, purple for short, orange for neutral, with intra-bar previews.
Debug toggle adds event labels and status on last bar.
Non-repainting, evaluates on close.
PDH/PDL/PMH/PML Dashboard (Key-Levels Style PM Range)๐ฉ 1. SHORT DESCRIPTION
Multi-ticker PDH/PDL/PMH/PML dashboard for intraday traders. Shows premarket range, PDH/PDL breaks, % change and trend classification.
๐ฉ 2. FULL DESCRIPTION (for main body)
Use this for the Description section:
๐ Overview
This indicator provides a real-time dashboard for monitoring multiple tickers relative to key intraday levels including:
Previous Day High (PDH)
Previous Day Low (PDL)
Premarket High (PMH)
Premarket Low (PML)
% Change vs Yesterday Close
Breakout Signals
Trend Classification
Designed for intraday traders who monitor multiple names at once, this tool consolidates market-structure levels into one unified display without switching charts.
๐งฉ Key Features
โ 14-symbol dashboard
โ PDH / PDL / PMH / PML levels
โ Break signal markers (โฒ / โผ / โ)
โ % change column
โ Trend direction column
โ Extended hours premarket logic
โ Automatic light/dark theme adaptation
โ Built for U.S. equities
โ Zero chart clutter โ dashboard only
๐ง Level Logic
Previous Day Levels
PDH = yesterday high
PDL = yesterday low
Premarket Levels
Calculated from extended-hours session before 09:30 (New York time):
PMH = highest premarket price
PML = lowest premarket price
Levels reset daily.
๐ Signals
Break conditions:
Event Signal
Price > PDH โฒ (bullish breakout)
Price < PDL โผ (bearish breakdown)
Price > PMH โ (premarket breakout)
Price < PML โ (premarket breakdown)
๐ Trend Classification
Trend column simplifies direction:
Bullish: price > PDH AND price > PMH
Bearish: price < PDL AND price < PML
Neutral: otherwise
๐งฐ Use Cases
Useful for:
Opening drive monitoring
Liquidity sweeps / stop hunts
Reversal fades vs PDH/PDL
Sector rotation scanning
News trader watchlists
Options flow targeting
Premarket level validation
Great for prop/desk traders watching multiple names intraday.
๐ Usage Guide
Setup:
Enable extended hours for underlying symbols
Use timeframes โฅ1m (1mโ5m recommended)
Premarket values display once premarket prints
Recommended Workflow
Look for leaders clearing PDH/PMH
Watch laggards holding below PDL/PML
Use % change for rotation confirmation
Combine with volume/tape for execution
โ Data Requirements
Works with U.S. equities with extended hours feeds
Premarket not guaranteed for non-US symbols
PMH/PML will show โ-โ until premarket exists
๐ Limitations
Pine Script engine limits:
Request functions limited (40 calls)
Dashboard max 14 symbols (optimized for stability)
๐ Category
Suggested categories:
Indicators โ Volume/Volatility
Indicators โ Trend Analysis
Indicators โ Market Structure
Tools โ Dashboard/Scanner
๐ฉ 3. TAGS (SEO optimized)
Paste these in tags:
PDH, PDL, PMH, PML, premarket, dashboard, scanner, intraday, breakout, liquidity, trend, stocks, equities, scanner, levels, key levels, extended hours, open drive, day trading, order flow, structure, range, opening drive, watchlist
๐ฉ 4. LICENSE LINE (Required)
TradingView requires attribution for open licensing:
This script is published under the Mozilla Public License 2.0 (MPL 2.0).
๐ฉ 5. SCREENSHOT GUIDE
TV moderators care a lot about screenshots.
Suggested screenshots:
โ Dashboard visible on chart
โ Both Light & Dark themes (shows UI adaptability)
โ Example of premarket and PDH/PDL breaks
โ Watchlist-style layout (multiple tickers)
Optional but increases engagement:
Opening drive examples (9:30โ10:00)
Sector rotation examples
Breakout + Fade comparison
๐ฉ 6. MODERATOR COMPLIANCE NOTES
This script:
โ Does NOT generate buy/sell signals
โ Does NOT imply future returns
โ Does NOT perform risk/portfolio management
โ Does NOT give financial advice
โ Does NOT require broker data
โ Does NOT violate the โcommercial intentโ rule
โ Does NOT reference external paid services
โ Does NOT plot protected labels on chart
โ Is fully transparent and readable
This will help it pass without revision.
๐ฉ 7. DISCLAIMER (Required for public scripts)
Add at bottom:
This indicator is for informational and educational purposes only and should not be considered financial advice. Trading involves risk.
๐ฉ 8. OPTIONAL โ โWHY IT WAS BUILTโ SECTION
Adding this boosts publishing engagement & saves moderator time:
This indicator was built to solve a real workflow problem for intraday traders who monitor multiple symbols against structural levels like PDH/PDL/PMH/PML. Instead of switching charts repeatedly, the dashboard consolidates all levels and break conditions into a single view for faster execution and better decision-making.
๐ฉ 9. OPTIONAL โ TRADER PAIN POINTS (Marketing section)
Useful for retail publishing:
Many day traders struggle to track multiple tickers for opening drive setups, PDH/PDL sweeps, and premarket levels. This dashboard removes that friction by visualizing the levels and break signals across a watchlist in real time.
Smart Fear & Greed Index [MarkitTick]๐ก This comprehensive technical tool is designed to quantify market sentiment on an asset-specific basis, translating complex price action into a singular, normalized gauge of "Fear" and "Greed." While traditional Fear & Greed indices rely on macro-economic data (like put/call ratios or junk bond demand) generally applied to the broad S&P 500, this script calculates a localized index for the specific chart you are viewing. It synthesizes Momentum, Volatility, Volume, and Price Positioning into a bounded 0-100 oscillator, aiming to identify psychological extremes where market reversals are statistically more likely to occur.
โจ Originality and Utility
โ Asset-Specific Sentiment Analysis
Most sentiment tools are external to the chart (e.g., news sentiment or broad market indices). The Smart Fear & Greed Index is unique because it internalizes this logic, creating a bespoke psychological profile for any tickerโwhether it is Crypto, Forex, or Stocks. It allows traders to see if *this specific asset* is overheated (Greed) or oversold (Fear) relative to its own recent history.
โ The "Buy the Fear, Sell the Greed" Logic
The script employs a contrarian color-coding philosophy aligned with the famous investment adage: "Be fearful when others are greedy, and greedy when others are fearful."
When the indicator shows Fear (Low values), it colors the zone Green, signaling a potential buying opportunity (discount).
When the indicator shows Greed (High values), it colors the zone Red, signaling potential downside risk (premium).
โ Integrated Divergence Detection
Unlike standard oscillators that leave interpretation entirely to the user, this tool includes an automated divergence engine. It detects discrepancies between the sentiment index and price action, plotting lines and labels to highlight potential exhaustion points before they become obvious on the price chart.
๐ฌ Methodology and Concepts
The calculation is driven by a custom User-Defined Type (UDT) called QuantEngine , which aggregates four distinct technical "pillars" to form the final Composite Index.
โข Pillar 1: Momentum (RSI)
The engine utilizes the Relative Strength Index to measure the velocity and magnitude of directional price movements. High momentum contributes to the "Greed" score, while collapsing momentum contributes to "Fear."
โข Pillar 2: Volatility (Inverted Normalized ATR)
This component interprets volatility through a psychological lens.
Low Volatility is interpreted as complacency or "Greed" (steady uptrends often have low vol).
High Volatility is interpreted as "Fear" (panic selling and erratic ranges often spike volatility).
The script normalizes the Average True Range (ATR) and inverts it so that stability adds to the score, and instability subtracts from it.
โข Pillar 3: Volume Strength
Volume is analyzed relative to its moving average. However, raw volume isn't enough; the engine applies directional logic.
High relative volume on an Up-Close adds to the Greed score.
High relative volume on a Down-Close subtracts, adding to the Fear score.
โข Pillar 4: Price Position (Stochastic)
This calculates where the current close sits relative to the recent High-Low range. Closing near the highs indicates confidence (Greed), while closing near the lows indicates pessimism (Fear).
โข The Composite & Smoothing
These four metrics are averaged to create a raw composite, which is then smoothed via an Exponential Moving Average (EMA) to filter out noise and produce the final, readable "Smart Fear & Greed" line.
๐จ Visual Guide
โ The Oscillator Line
This is the primary fluctuating line that moves between 0 and 100.
Values > 50 suggest positive sentiment.
Values < 50 suggest negative sentiment.
โ Color-Coded Zones
The plot changes color dynamically to reflect the psychological state:
Red (70-100): Extreme Greed. The market may be irrationally exuberant.
Orange (60-70): Greed. Strong bullish conviction.
Yellow (40-60): Neutral. Indecisive or transitionary market.
Light Green (30-40): Fear. Sentiment is turning bearish.
Bright Green (0-30): Extreme Fear. Panic selling, often a precursor to a value bounce.
โ Background Highlights
A semi-transparent Red Background appears when the index breaches 75, warning of a potential "Top."
A semi-transparent Green Background appears when the index drops below 25, highlighting a potential "Bottom."
โ Divergence Elements
Red Lines/Labels ("Bear"): Bearish Divergence. Price makes a Higher High, but the Index makes a Lower High. This suggests momentum is waning despite rising prices.
Green Lines/Labels ("Bull"): Bullish Divergence. Price makes a Lower Low, but the Index makes a Higher Low. This suggests selling pressure is drying up.
๐ How to Use
โข Identifying Reversals
Wait for the oscillator to enter "Extreme" zones. Do not trade immediately upon entry; wait for the line to exit the extreme zone to confirm the reversal. For example, if the line hits 80 (Red) and then crosses back down below 70, it signals that Greed is fading.
โข Trend Continuation
In a strong trend, the indicator may hover in the Greed (Orange) or Fear (Light Green) zones for extended periods. In these cases, use the Neutral (Yellow) zone crosses as re-entry signals in the direction of the trend.
โข Divergence Confirmation
Use the automated divergence lines as high-conviction triggers. If the background turns Green (Extreme Fear) AND a Bullish Divergence label appears, it provides a stronger technical case for a long position than the zone alone.
โ๏ธ Inputs and Settings
โ Calculation Settings
Global Lookback Period (Default: 21): The core lookback window for RSI, ATR, Volume, and Stochastic calculations. Increasing this makes the index slower and less reactive; decreasing it makes it faster.
Smoothing Length (Default: 5): Determines how smooth the final line is. Higher numbers reduce "whipsaws" but add lag.
Color Main Chart Candles : Colors the chart bars based on Fear/Greed sentiment.
โ Divergence Settings
Divergence Lookback (Default: 5): Determines the pivot strength required to register a high or low for divergence checks.
Show Divergence Lines/Labels: Toggles to hide visual clutter if you only want to see the oscillator.
๐ Deconstruction of the Underlying Scientific and Academic Framework
โ Normalization Theory
The core scientific principle here is Min-Max Normalization. The script takes heterogeneous data typesโPrice (Dollars/Cents), Volume (Shares/Contracts), and Volatility (Points)โand standardizes them into a unit-less distribution between 0 and 100. This allows for the summation of disparate market forces into a single vector.
โ Mean Reversion and Oscillator Bounds
The indicator relies on the statistical concept of Mean Reversion. Markets, like elastic bands, can only stretch so far from their average valuation (represented by the 50 line) before snapping back. The "Extreme" zones (Upper and Lower deciles) represent areas of statistical improbability where the likelihood of a continuation decreases and the likelihood of a reversion increases.
โ Divergence and Momentum Theory
The divergence logic is grounded in the principle that momentum precedes price. Mathematically, price is the integral of velocity. When the derivative (momentum/sentiment) approaches zero or reverses while the function (price) continues, it signals a non-sustainable anomaly in the data series, often resolved by a price correction.
โ ๏ธ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Unreached Highs/Lows Oscillator [LuxAlgo]The Unreached Highs/Lows Oscillator highlights the amount of unreached high/low prices as a percentage over time, helping visualize trend strength and momentum from bullish and bearish market participants.
๐ถ USAGE
This indicator measures the strength of directional price movements, helping traders visualize the strength of both the bullish and bearish market participants.
When prices are moving up with strength, the price structure will not come back to retest previous lows. Therefore, unreached lows keep adding up.
When prices are moving down with strength, they will not retest previous highs; therefore, unreached highs keep adding up.
As we can see on the chart, high readings of unreached highs (red) and low readings of unreached lows (green) are considered bearish, and a downtrend in price confirms this bias. Conversely, high readings of unreached lows and low readings of unreached highs are considered bullish. On the chart, this is reflected as an uptrend.
Additionally, the oscillator can reveal significant breakouts on the chart, with unreached highs or lows decreasing rapidly indicating that a large number of highs/lows have been reached.
Due to the oscillator being normalized, overbought and oversold levels are included.
In this gold chart, we have different examples of how to use the tool in conjunction with price behavior to understand the market. Let's dissect it step by step:
1. Uptrend: Bullish readings are above 80, and bearish readings are below 20. The market is trending up.
2. Range: Mixed readings around 50 for both bullish and bearish; the market is ranging.
3. Uptrend: The same as before. Bullish above 80 and bearish below 20.
4. Pullback: A bullish dip below 80 to 50 and a bearish reading below 20 indicates a pullback.
5. Range: Mixed readings. In this case, it is bullish above and below 80 and bearish above and below 20. The market is ranging.
6. Uptrend: Bullish above 80 and bearish below 20; the market keeps moving up.
7. Pullback: Bullish dips below 80 and bearish rises to 50 indicate a pullback.
8. Uptrend: As before, bullish is above 80 and bearish is below 20; the market is trending up.
This Bitcoin chart shows how to use extreme readings of 0 and 100 to detect potential reversals. When both readings are at extreme opposites, we set the threshold level at 100 and 0 instead of the default levels of 80 and 20 to better identify these areas.
As we can see, extreme readings at points 1 and 5 identify major reversals that lead to a change in trend. Extreme readings at points 2, 3, 4, and 6 identify minor reversals that do not lead to a change in trend.
From the settings panel, traders can adjust the length parameter. A smaller value measures smaller price movements, while a larger value measures larger price movements. A length value of 20 is used by default.
The chart shows how different values affect bullish and bearish measures.
๐ถ SETTINGS
Length: Select the maximum number of highs and lows to be used.
๐น Style
Bullish: Select a color for unreached lows.
Bearish: Select a color for unreached highs.
Top Threshold: Select the top threshold level and color. Enable the Auto feature to choose the default color.
Bottom Threshold: Select the bottom threshold level and color. Enable the Auto feature to choose the default color.
SWING ATR BasedWhat does this indicator do?
1. It identifies Market Swings The script monitors price action to detect when a trend changes direction.
It uses ATR (Average True Range) to measure volatility, ensuring it doesn't get tricked by small, insignificant price movements.
To validate a change in direction (from bullish to bearish, or vice versa), it waits for the price to cover a specific distance (defined by the kRange parameter) and requires at least two significant candles.
2. It plots Support and Resistance zones As soon as a new high or low point is confirmed:
In Green (Bull): It draws a support line at the level of the last low.
In Red (Bear): It draws a resistance line at the level of the last high.
Auto-Cleaning: If the price breaks through a support line, the line turns gray and stops. The script only keeps active (unbroken) levels on the screen.
3. It calculates an "SGE Score" (Market State) This is the "brain" of the script. It assigns a rating to the current trend:
+2 (Bullish): The price has broken a resistance.
-2 (Bearish): The price has broken a support.
0 (Neutral): The market is indecisive (for example, after a break that contradicts the previous one).
Key Feature: This score has a "one-candle delay." It waits for the next candle to close before confirming a score change, which helps avoid reacting too quickly to false alerts.
4. It simplifies visual reading To keep your chart clean and readable:
It only highlights the 3 levels closest to the current price (those most likely to be hit soon).
It colors the chart candles directly: Green if the score is +2, Red if the score is -2, and Gray if it is neutral.
5. Dashboard In the top-right corner of your screen, it displays a permanent summary:
The current score (-2, 0, or 2).
The number of active supports and resistances.
Summary: This is a "smart" trend detector. Instead of just looking at whether the price is going up or down, it waits for the price to break important structural levels (confirmed by volatility) to tell you: "Caution, the structure has just shifted from bullish to bearish."
Recommended Settings:
kRange: 1.3 / 1.4
ATR Mult: 0.3 to 0.5
Script created with Claude AI.
HTB Reversal Pattern - RSI DivergenceHow this Script Works
Pivot Points: The script looks for "peaks" and "valleys" in the RSI indicator.
Divergence Logic: * Bullish: If the current price low is lower than the previous low, but the RSI low is higher than the previous RSI low, it indicates the selling pressure is fading despite the price drop.
Bearish: If the current price high is higher than the previous high, but the RSI high is lower than the previous RSI high, it suggests buying momentum is weakening.
The "Lookback" Offset: Because pivot points require a few bars to the right to be confirmed (defined by lbR), the labels will appear on the chart with a small delay (default is 5 bars). This is necessary to prevent "repainting" (signals that disappear after they appear).
A Humbled Trader Strategy + ChecklistHumbled Trader Swing Strategy + Checklist
This indicator is a complete swing trading system based on the high-probability strategies popularized by Humbled Trader. It is designed to help traders identify trend breakouts and low-risk momentum pullbacks on the Daily Timeframe.
The script combines trend filtering, automated resistance lines, and specific entry triggers into a single chart overlay, complete with a real-time Strategy Checklist Dashboard to confirm your setups instantly.
๐ฏ Core Components
Trend Filter (Purple Line): The 200 Simple Moving Average (SMA). This acts as your long-term trend filter. We only look for long trades when the price is above this line.
Momentum Guide (Orange Line): The 8 Exponential Moving Average (EMA). This tracks short-term momentum. In a strong trend, price will "ride" this line. We look to enter when price pulls back to touch this area.
Multi-Month Resistance (Orange Horizontal Line): Automatically plots the highest price over the last X Months (adjustable). This helps you instantly visualize the key level the stock needs to break out from.
Checklist Dashboard: A real-time table that evaluates Trend, Resistance, and Momentum conditions to give you a clear "โ
ENTER", "๐ GAP UP", or "โณ WAIT" signal.
๐ How It Works
This indicator scans for two specific setups:
1. The Daily Gap Up ("GAP" Label) This signal appears when a stock shows strong momentum by gapping up overnight.
Condition: The stock opens at least 3% higher (adjustable) than the previous day's Close AND opens above the previous day's High.
Trend: Must be above the 200 SMA.
Visual: Marked with a green "GAP" label on the chart.
2. The Trend Pullback ("ENTER" Signal) This is a trend-following entry that lets you join an existing move with lower risk.
Condition: The stock is in an uptrend but dips down to touch or test the 8 EMA.
Validation: The candle must show a "dip" (red candle or lower close) to ensure we are buying a pullback, not chasing a top.
Visual: The Dashboard "Action Signal" will turn orange and display "โ
ENTER".
๐ The Checklist Dashboard
Located in the corner of your chart, this table provides a live status report for the current bar:
Trend (> 200 SMA):
๐ข Bullish: Price is in an uptrend. Safe to look for entries.
๐ด Bearish: Price is below the 200 SMA. Stay away.
Above Resistance?:
๐ข Breakout: Price has cleared the multi-month resistance line.
โช ---: Price is currently below the key breakout level.
Near 8 EMA?:
๐ข Yes: Price is near the "value zone" (8 EMA) for a potential pullback entry.
Action Signal:
๐ GAP UP: Strong momentum gap detected.
โ
ENTER: Valid pullback entry detected.
โณ WAIT: No clear setup found.
โ๏ธ Settings
Momentum EMA Length: Default is 8. Controls the sensitivity of the pullback line.
Trend SMA Length: Default is 200. The standard for long-term trend filtering.
Gap Up % Threshold: Default is 3.0%. Minimum overnight gap size required to trigger a signal.
Resistance Lookback (Months): Default is 3. The script will look back this many months to find and draw the key resistance line.
Table Position: Move the checklist to any corner of your screen.
โ ๏ธ Disclaimer
This tool is for educational purposes only and does not constitute financial advice. Always manage your risk and use a stop loss.
Wyckoff Schematic by Kingshuk GhoshThe "Wyckoff Schematic" is a Pine Script indicator that automatically detects and visualizes Wyckoff Method accumulation and distribution patterns in real-time. This professional tool helps traders identify smart money movements, phase transitions, and critical market structure points.
Key Features-
1. Wyckoff Pattern Detection
Auto-detection of all Wyckoff phases (A through E)
Accumulation patterns: SC, AR, Spring, SOS, LPS
Distribution patterns: BC, UTAD, LPSY
Real-time phase identification with color-coded visualization
2. Multi-Timeframe Analysis-
Main chart analysis with customizable lookback period
1M Wave View showing monthly perspective in a compact overlay
Daily data integration for current month analysis
Swing point detection with trend lines
3. Advanced Visualization-
Phase boxes with semi-transparent overlays
Critical event labels with anti-clutter spacing
Horizontal support/resistance lines (dynamic)
Zigzag trend lines for price structure
Comprehensive table showing current status and key events
4. Customizable Parameters-
Adjustable lookback period (20-300 bars)
Configurable volume spike multiplier
Customizable display options (labels, boxes, lines)
Adjustable zigzag sensitivity
Configurable wave view height and swing legs
Display Settings: Event labels, phase boxes, support/resistance lines
Visual Settings: Label size, transparency, offset percentage
Zigzag Settings: High/low length
Wave View Settings: Toggle, height percentage, swing legs
Color Scheme:
Phase A: Red
Phase B: Teal
Phase C: Blue
Phase D: Green
Phase E: Yellow
Bullish: Green
Bearish: Red
Alert System:
Critical event alerts: SC, AR, Spring, SOS, LPS, BC, UTAD, LPSY
Phase transition alerts: Markup phase entry ,Customizable alert conditions
How to Use-
For Beginners:
Apply the indicator to any chart
Enable "Auto-Detect Wyckoff Patterns"
Look for colored phase boxes (A-E)
Watch for critical event labels (SC, AR, Spring, etc.)
Check the table in top-right corner for current status
For Advanced Users:
Adjust lookback period based on trading timeframe
Modify volume multiplier for sensitivity
Customize display to reduce clutter
Use wave view for higher timeframe context
Set alerts for specific Wyckoff events
Unique Selling Points:
Comprehensive Detection: Covers all Wyckoff phases and critical events
Clean Visualization: Anti-overlap labeling, organized display
Multi-Timeframe: Combines current chart with monthly perspective
Educational: Helps learn Wyckoff methodology through visualization
Professional: Suitable for both retail and institutional analysis
Performance Notes:
Uses dynamic requests for multi-timeframe data
Includes max object limits to prevent performance issues
Efficient calculation methods for real-time analysis
Intended Users:
Price action traders
Wyckoff method practitioners
Market structure analysts
Swing traders and position traders
Educational purposes for learning market manipulation patterns
Works best on 4H,Daily,Weekly & Monthly Time frame
Suitable for all markets (stocks, forex, crypto, futures)
Support:
The indicator includes comprehensive tooltips and visual cues to help users understand each Wyckoff event and phase. The table provides quick reference to current market conditions and detected patterns.
This indicator transforms complex Wyckoff methodology into actionable visual signals, making institutional accumulation/distribution patterns accessible to all traders.
Disclaimer: This indicator is for educational purposes only. Always practice proper risk management and combine with your own analysis before making trading decisions. Happy trading.
Daily Trend Scanner Plusโ DAILY TREND SCANNER PLUS
A professional-grade trading indicator designed to help traders quickly identify intraday trend bias across multiple symbols by tracking price relationships to key technical levels: Prior Day High/Low (PDH/PDL) and Pre-Market High/Low (PMH/PML).
โ FEATURES
โบ Single Symbol Table
Compact 5-column table displaying PDH, PMH, PDL, PML, and Trend status for the current chart symbol. Shows green dot (๐ข) when price breaks above high levels and red dot (๐ด) when price breaks below low levels. Progress bars visualize how close price is to breaking key levels.
โบ Multi Symbol Table
Monitor up to 20 tickers simultaneously in a single table. Each row displays ticker name, price, change %, breakout dots, progress bars, and trend status. Optional columns for actual PMH/PML and PDH/PDL price values. Real-time updates for all symbols with color-coded change percentages.
โบ Table Sorting
- None - Displays tickers in input order
- Chg % - Sorts by daily change percentage (highest to lowest)
- Bullish - Prioritizes bullish setups at top
- Bearish - Prioritizes bearish setups at top
โบ PMH/PML Lines (Pre-Market High/Low)
Horizontal lines at pre-market high and low levels (4:00 AM - 9:29 AM ET). Customizable line styles, colors, labels, and optional price display.
โบ PDH/PDL Lines (Prior Day High/Low)
Horizontal lines at previous trading day's high and low. Uses RTH only for stocks (9:30 AM - 4:00 PM ET) and full 24-hour day for non equities.
โบ ORB Lines (Opening Range Breakout)
Captures high and low during the opening period with 5-minute, 10-minute, or 30-minute options. Lines persist from market open until next pre-market session.
โบ EMA Overlays
Three independent EMAs with customizable periods (default: 8, 20, 200). Third EMA can be switched to SMA. Multiple line styles available.
โบ VWAP Overlay
Volume Weighted Average Price with customizable line style, width, and color.
โ TREND LOGIC
- BULLISH: Price above BOTH Prior Day High AND Pre-Market High
Indicates strong upward momentum breaking through two resistance levels
- BEARISH: Price below BOTH Prior Day Low AND Pre-Market Low
Indicates strong downward momentum breaking through two support levels
- NEUTRAL: Price not above both highs or below both lows
Price is consolidating between key levels
โ PROGRESS BARS
Visual 5-block meter showing progress from midpoint toward target level:
โโโโโ (80-100%) โ โโโโโ (60-80%) โ โโโโโ (40-60%) โ โโโโโ (20-40%) โ โโโโโ (0-20%)
Replaced with ๐ข or ๐ด when level is actually broken.
โ ASSET TYPE HANDLING
STOCKS:
- Pre-Market: 4:00 AM - 9:29 AM Eastern
- Prior Day: RTH only (9:30 AM - 4:00 PM Eastern)
NON-EQUITIES:
- Prior Day: Full 24-hour trading day
- Automatically detected via symbol type
โ RECOMMENDED SETTINGS
- Chart Timeframe: 10-minute recommended for multi-table accuracy
- Timeframes 60 minutes or less required for ORB functionality
- Enable extended hours on chart for accurate PMH/PML on stocks
โ USAGE TIPS
- Use Bullish sort to find strongest breakout candidates for long trades
- Use Bearish sort to find weakest stocks for short/put candidates
- Progress bars help anticipate upcoming breakouts before they happen
- Combine with ORB lines to confirm trend direction after market open
- Watch for alignment: Price above all key levels = strongest bullish signal
- PDH/PDL breaks often signal continuation of prior day's trend
- PMH/PML breaks can indicate gap-fill or trend reversal setups
โ INDICATOR SETTINGS
โ EXAMPLE OF FULL MULTI TABLE AND SINGLE TABLE
โ MULTI-TABLE SORTING
โ PMH/PML, PDH/PDL, ORB LINES
โ EMA AND VWAP OVERLAYS
โ CUSTOMIZATION
srd786-Intraday VWAP Price Action IndicatorDISCLAIMER
This Pine Script indicator does not constitute financial advice; it is just intended for educational and informational purposes. It functions as a tool for technical analysis that could help traders spot possible trading opportunities. It is crucial to remember that participating in financial markets has a number of risks that might result in large losses and are not suitable for all investors.
Users are encouraged to conduct their own thorough investigation and analysis prior to using this indicator. Avoiding trading with money that one cannot afford to lose is essential. It is also advised to seek advice from a certified financial expert. Users must use suitable risk management techniques and recognize that past success does not guarantee future outcomes.
Any losses, damages, or other consequences resulting from the usage of this indicator are not the author's responsibility. The user is ultimately responsible for all trading decisions, therefore using this tool is at their own risk.
INTRODUCTION
The โsrd786-Intraday VWAP Price Action Indicatorโ is a sophisticated Pine Script (version 6) trading tool designed for intraday traders who focus on New York session trading hours. This indicator combines multiple technical analysis concepts including Volume Weighted Average Price (VWAP), Average True Range (ATR) for risk management, swing point detection for support/resistance identification, and momentum analysis through RSI. The primary objective is to generate high-probability long and short signals based on price action confluence with trend, momentum, and key structural levels.
1.
VWAP (Volume Weighted Average Price): Shows the "fair" average price based on both price and trading volume.
2.
ATR (Average True Range): Measures how much the price typically moves each day.
3.
Trend Analysis: Identifies whether the market is going up, down, or sideways.
4.
Momentum Indicators: Shows how strong the current price movement is.
5.
Support & Resistance: Identifies key price levels where the price might stop or reverse.
6.
Swing Points: Finds significant turning points in the price.
This indicator is specifically optimized for the New York trading session (9:30 AM to 4:00 PM ET), making it particularly suitable for traders who focus on US market hours. It provides a complete trading framework that includes not only signal generation but also precise trade management levels including entry prices, stop-loss orders, and profit targets based on a configurable reward-to-risk ratio.
The philosophy behind this indicator is confluence-based trading. Rather than relying on a single indicator or condition, it requires multiple factors to align before generating a trade signal. This approach filters out lower-probability setups and focuses only on high-quality opportunities where price action, trend direction, momentum, and key technical levels all point in the same direction.
CORE CONCEPT AND METHODOLOGY
Volume Weighted Average Price (VWAP)
VWAP is the cornerstone of this indicator's trading methodology. Unlike a simple moving average that treats all price bars equally, VWAP incorporates volume data into its calculation, giving more weight to bars with higher trading volume. This makes VWAP a more accurate representation of the true average price where the most significant trading activity occurred.
The calculation of VWAP is performed using the built-in 'ta.vwap()' function, which computes the cumulative volume-weighted average price from the beginning of the session. For intraday traders, VWAP serves as a critical reference point that indicates whether the current price is trading at a premium (above VWAP) or discount (below VWAP) relative to the session's volume-weighted average.
In this indicator, the VWAP source is configurable through the 'vwapSource' parameter, with the default being HLC3 (High + Low + Close / 3). This source selection allows traders to experiment with different price types such as typical price, weighted close, or even custom sources to suit their trading style and market preferences.
Average True Range (ATR) for Risk Management
The Average True Range, calculated using 'ta.atr()', measures market volatility by decomposing the current range of price movement. ATR does not indicate price direction;
instead, it quantifies the degree of price movement or volatility over a specified period. In this indicator, ATR serves dual purposes: determining the distance for limit orders and calculating stop-loss levels.
The 'atrLength' parameter (default: 14) controls the lookback period for the ATR calculation. A shorter length makes the indicator more responsive to recent volatility, while a longer length provides a smoother average that may be more suitable for less volatile markets. The 'atrMultiplier' (default: 1.5) determines how many ATR units away the stop-loss is placed from the entry price, allowing traders to adjust their risk exposure based on current market conditions.
Swing Detection and Support/Resistance
Swing points represent significant turning points in price action where the market has temporarily exhausted its directional momentum. This indicator uses pivot high and pivot low calculations to identify swing highs and swing lows, which then form the basis for dynamic support and resistance levels.
The 'swingLength' parameter (default: 5) defines how many bars to the left and right of a potential pivot point must be lower (for pivot highs) or higher (for pivot lows) to confirm the swing point. This lookback period helps filter out minor price fluctuations and focuses on more significant structural levels.
Support and resistance levels are stored in arrays ('swingHighArray' and 'SwingLowArray'), with the most recent swing points serving as the primary reference levels. The 'srLookback' parameter (default: 20) controls the overall lookback window and also determines how many
swing points to maintain in each array, ensuring that only relevant historical levels are considered.
Breakout Detection
When a price moves past a major support or resistance level, this is known as a price breakout. This price breakout suggests that there is a possibility of a new trend direction heading forward.Breakout detection eliminates noise, as little price fluctuations or volatility may momentarily drive prices past a threshold without authentic conviction.Detection of breakouts affirms robustness when the price above the threshold by 2%, indicating genuine market interest, and mitigates whipsaws to prevent placing trades based on transient price swings.
The Breakout Tolerance parameter, set by default to 2%, regulates the breakout tolerance for the indicator. A price closure above the current high plus a minor tolerance buffer (usually 2%) indicates a potential continuation of upward movement, classified as a Bullish Breakout. Conversely, when the price closes below the recent low plus a minor tolerance buffer (usually 2%), it suggests that the price may continue to decline, which is classified as a Bearish Breakout Down.
Trend Identification
Trend determination is accomplished through an Exponential Moving Average (EMA) with a configurable length ('trendMaLength', default: 9). The indicator classifies trend into three
states: BULLISH (price above EMA with confirmation from the previous bar), BEARISH (price below EMA with confirmation), and SIDEWAYS (price crossing or near the EMA).
The EMA is chosen over simple moving averages because it responds more quickly to recent price changes while still providing enough smoothing to filter out noise. The confirmation requirement (both current and previous bar must be on the same side of the EMA) reduces false signals during periods of choppy price action.
Momentum Analysis
Momentum is measured using the Relative Strength Index (RSI) with a configurable length ('momentumLength', default: 9). RSI values are categorized into five states to provide nuanced momentum readings: STRONG BULL (RSI above 70), BUILDING (RSI between 55 and 70), NEUTRAL (RSI between 45 and 55), WEAKENING (RSI below 45), and STRONG BEAR (RSI below 30).
This momentum categorization allows traders to distinguish between strong trending conditions (STRONG BULL/BEAR) and transitions (BUILDING/WEAKENING), providing context for trade signals and helping to avoid entering positions during momentum divergences.
CONFIGURATION PARAMETERS
VWAP Settings
The 'vwapSource' parameter determines which price value is used in the VWAP calculation. The default value of 'hlc3' (High + Low + Close / 3) provides a balanced representation of each bar's price action. Traders can modify this to use typical price ('high + low + close / 3'), weighted close ('high + low + close + close / 4'), or other price types depending on their analytical preferences.
ATR Settings
The 'atrLength' parameter sets the lookback period for the Average True Range calculation. The default of 14 periods is standard across most trading platforms and timeframes, providing a good balance between responsiveness and smoothness. The 'atrMultiplier' parameter (default: 1.5) scales the ATR value to determine stop-loss distances. A multiplier of 1.5 means the stop-loss is placed 1.5 ATR units away from the entry price, providing enough buffer to accommodate normal volatility while limiting risk.
Trade Settings
The 'rrRatio' parameter (default: 3.0) establishes the reward-to-risk ratio for trade targets. A ratio of 2.0 means the profit target is twice the distance of the stop-loss from the entry price. The 'limitOrderDistance' parameter (default: 0.5) determines how far below (for long trades)
or above (for short trades) the current close the limit order is placed, measured in ATR units. This allows traders to enter positions at better prices while waiting for pullbacks.
Swing Detection Settings
The 'swingLength' parameter (default: 5) controls pivot identification sensitivity. Higher values identify more significant swing points but may miss shorter-term opportunities. The 'showSwings' boolean parameter toggles the visual display of swing high and low points on the chart.
Support & Resistance Settings
The 'srLookback' parameter (default: 20) defines how many bars back to search for swing points and support/resistance levels. The 'breakoutTolerance' parameter (default: 0.02 or 2%) adds a small buffer to breakout detection to account for minor penetration of support/resistance levels due to price spikes or slippage.
Trend & Momentum Settings
The 'trendMaLength' parameter (default: 9) sets the EMA length for trend determination, while 'momentumLength' (default: 9) sets the RSI lookback period. Both should be at least 5 periods for meaningful calculations.
Table Settings
The 'showTable' parameter (default: true) enables the display of two information tables that provide real-time data on Indicator values and trade levels.
SIGNAL GENERATION LOGIC
Long Signal Conditions
A long signal is generated when all the following conditions are simultaneously true:
1.
Session Filter: The trade must occur during New York session hours (9:30 AM - 4:00 PM ET).
2.
Trend Confirmation: The trend must be BULLISH (price above EMA with confirmation).
3.
Price Position: Current price must be above VWAP, indicating bullish price action.
4.
Breakout or No Resistance: Either price is breaking out above resistance level with tolerance, or there is no prior resistance level to overcome.
5.
Momentum Alignment: Momentum must be either STRONG BULL or BUILDING.
This confluence of conditions ensures that long trades are only taken when the market is trending higher, price is confirming strength by trading above VWAP, and momentum is supportive of continued upward movement.
Short Signal Conditions
A short signal is generated when all the following conditions are simultaneously true:
1.
Session Filter: The trade must occur during New York session hours
2.
Trend Confirmation: The trend must be BEARISH (price below EMA with confirmation)
3.
Price Position: Current price must be below VWAP, indicating bearish price action
4.
Breakout or No Support: Either price is breaking down below support level with tolerance, or there is no prior support level to overcome
5.
Momentum Alignment: Momentum must be either STRONG BEAR or WEAKENING
Similar to long signals, short trades require alignment across multiple timeframes and analytical approaches, filtering out counter-trend trades and focusing on high-probability setups.
TRADE MANAGEMENT FRAMEWORK
Entry Price Calculation
For long trades, the limit order price is calculated as: 'Close - (ATR Value ร Limit Order Distance)'. This places the entry price below the current close, allowing traders to buy on dips while maintaining a favorable entry price. For short trades, the limit order is placed above the current close: 'Close + (ATR Value ร Limit Order Distance)'.
The limit order distance is expressed in ATR units, making it adaptive to current volatility conditions. In more volatile markets, the limit order will be placed further from the current price, while in calmer markets, it will be closer.
Stop-Loss Placement
Stop-loss levels are calculated using the ATR multiplier to ensure adaptive risk management. For long trades: 'Entry Price - (ATR Value ร ATR Multiplier)'. For short trades: 'Entry Price + (ATR Value ร ATR Multiplier)'.
This adaptive approach to stop-loss placement means that in volatile markets, stops are wider to avoid being stopped out by normal price fluctuations, while in quieter markets, stops are tighter to limit potential losses. The default multiplier of 1.5 provides approximately 1.5 times the average true range of protection.
Target Price Calculation
Profit targets are determined by the reward-to-risk ratio: 'Entry Price + (ATR Stop Distance ร RR Ratio)' for long trades and 'Entry Price - (ATR Stop Distance ร RR Ratio)' for short trades. The default ratio of 2.0 means the target is twice the distance of the stop-loss, providing a favorable risk-reward profile.
New York Session Tracking
The indicator includes specialized logic for tracking the New York session open price. When a new NY session begins (determined by the 'isNewNySession' variable), the current open price is recorded and maintained throughout the session. This provides a reference point for measuring intraday directional bias from the session's starting level.
INFORMATION TABLES
Indicators Table
This table displays the current price, VWAP value, NY session open price, support level,resistance level, ATR, ATR-scaled stop distance, current trend classification, momentum state with RSI value, and breakout status. All values are color-coded based on their bullish or bearish implications. The VWAP cell is color-coded green if price is above VWAP (bullish) and red if below (bearish), providing instant visual confirmation of price's position relative to this critical level.
Trade Levels Table
This table shows current signal status (LONG, SHORT, or WAIT), limit order distance in ATR units, calculated limit order price, stop-loss level, and target price with the reward-to-risk ratio displayed. The signal cell is highlighted in green for long signals and red for short signals.
ALERT CONDITIONS
The indicator includes four alert conditions that can be configured in TradingView:
1.
LONG Signal: Triggers when a long signal is generated, providing entry price, stop-loss, and target information.
2.
SHORT Signal: Triggers when a short signal is generated with corresponding trade details.
3.
Breakout Up: Notifies when price breaks out above resistance level.
4.
Breakout Down: Notifies when price breaks down below support level.
These alerts enable traders to receive notifications via TradingView's alert system without continuously monitoring the charts.
USAGE EXAMPLES AND TRADING SCENARIOS
Strong Bullish Trend with VWAP Support
In this scenario, price has been trading above the 9-period EMA for multiple bars, confirming a bullish trend. The current price is above VWAP, indicating buyers are willing to pay a premium. A recent swing low has established a support level, and RSI is reading 65, indicating building momentum without being overextended. When price breaks above the recent swing high resistance with a 2% tolerance, the indicator generates a long signal. The trader places a limit order below the current bar's close (0.5 ATR units) and sets the stop-loss 1.5 ATR units below the entry, with a target 2.0 times the stop distance away.
Short Setup During Volatile Session
During a particularly volatile NY session, price gaps down below VWAP early in the day. The 9-period EMA is declining, and both current and previous bars are below it, confirming a bearish trend. The RSI has dropped to 28, indicating strong bearish momentum. A recent swing high serves as resistance, and when price breaks below the swing low support level, the indicator generates a short signal. The trader enters on a limit order placed 0.5 ATR units above the current price, with the stop-loss 1.5 ATR units above the entry and the target at a 2.0 reward-to-risk ratio.
Avoiding Counter-Trend Trades
Consider a scenario where price is above VWAP and the RSI reads 72 (overbought), but the price is below the 9-period EMA and the previous bar was also below the EMA. In this case, the trend is classified as BEARISH (or SIDEWAYS) despite the bullish price position relative to VWAP. The indicator will not generate a long signal because the trend condition is not met, protecting the trader from what could be a bear trap or continuation pattern.
No Prior Levels Scenario
At the beginning of a trading session or after significant volatility has cleared prior swing points, there may be no established support or resistance levels in the lookback window. In this case, the breakout condition 'or na(resistanceLevel)' allows long signals to be generated without requiring a resistance level to be broken, enabling traders to participate in emerging trends without waiting for prior levels to form.
BEST PRACTICES AND TIPS
Timeframe Selection
This indicator is optimized for intraday timeframes (1-minute to 60-minute charts) and specifically for NY session trading. Higher timeframes may produce more reliable signals but fewer opportunities, while lower timeframes will generate more signals but with potentially lower reliability. Traders should backtest on their preferred timeframe before trading live.
Market Conditions
The indicator performs best in trending markets with clear directional bias. During ranging or sideways markets, the trend condition may oscillate frequently, and VWAP may oscillate around price, reducing signal quality. Consider filtering signals or reducing position size during low-volatility, range-bound conditions.
Parameter Optimization
While the default parameters have been selected for general applicability, traders should consider optimizing certain parameters for specific markets or instruments. For highly volatile instruments like crude oil or natural gas, increasing the 'atrMultiplier' to 2.0 or 2.5 may provide more appropriate risk management. For less volatile instruments like certain forex pairs, reducing the multiplier to 1.0 or 1.2 may improve signal quality.
Multiple Timeframe Analysis
For enhanced performance, traders can analyze the trend on a higher timeframe (such as 15-minute or hourly) while taking signals on a lower timeframe (such as 5-minute or 1-minute). This multi-timeframe approach ensures that signals are aligned with the larger trend direction.
Risk Management
While the indicator provides calculated stop-loss levels, traders should consider their overall position sizing and portfolio risk. The ATR-based stops provide a market-adaptive approach, but individual risk tolerance and account size should ultimately determine position sizing. The 2.0 reward-to-risk ratio is fixed but can be adjusted based on personal preferences or the specific characteristics of the instrument being traded.
INTEGRATION WITH TRADINGVIEW
Adding the Indicator
To add this indicator to a TradingView chart, paste the code into the Pine Script editor and click "Add to Chart." The indicator will appear in the chart's sidebar and begin calculating immediately once sufficient historical data is available.
Configuring Alerts
To set up alerts, right-click on any of the alert conditions in the indicator's settings panel (long signal, short signal, breakout up, or breakout down) and select "Add Alert." Configure the alert frequency and notification methods (push notification, email, webhook, etc.) according to your preferences.
Customization
All input parameters can be adjusted through the indicator's settings panel without modifying the source code. Traders can experiment with different VWAP sources, ATR lengths and multipliers, swing detection parameters, and table display options to suit their trading style and market preferences.
LIMITATIONS AND CONSIDERATIONS
Session Dependency
The indicator is specifically designed for NY session trading and will not generate signals outside these hours. Traders focused on other sessions or 24-hour markets may need to modify the session string to match their trading hours.
Historical Data Requirements
The indicator requires sufficient historical data to accurately calculate swing points and support/resistance levels. On lower timeframe charts with limited history, the initial signals may be less reliable until adequate swing points are identified.
Lag in Swing Detection
By definition, swing points are confirmed after the price has moved away from them, introducing some lag into support/resistance identification. Traders should be aware that the most recent swing point may not be confirmed until several bars after it occurs.
Not Financial Advice
This indicator is a technical analysis tool and should not be construed as financial advice. Traders are responsible for their own research and risk management decisions. Past performance of any trading system does not guarantee future results.
SUMMARY
The code follows a logical flow:
โข
Version and Declaration: Pine Script version 6 indicator declaration with overlay enabled
โข
Input Parameters: All user-configurable settings grouped by category
โข
Session Logic: New York session tracking and open price recording
โข
Core Calculations: VWAP, ATR, EMA, RSI, swing points
โข
Support/Resistance Logic: Array-based storage and retrieval of swing levels
โข
Trend and Momentum Classification: Categorization of current market state
โข
Signal Generation: Confluence-based long and short conditions
โข
Trade Level Calculations: Entry, stop-loss, and target pricing
โข
Visual Plots: Hidden plots for alert data access
โข
Information Tables: Real-time display of key values
โข
Alert Conditions: Four configurable alert triggers
This structured approach ensures clarity, maintainability, and extensibility for future modifications or enhancements.
Smart Trader, Episode 02, by Ata Sabanci | Battle of Candles โ ๏ธ CRITICAL: READ BEFORE USING โ ๏ธ
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations. Please understand the following limitations before using:
๐ DATA ACCURACY LEVELS:
โข 1T (Tick) โ Most accurate, real volume distribution per tick
โข 1S (1 Second) โ Reasonably accurate approximation
โข 15S (15 Seconds) โ Good approximation, longer historical data available
โข 1M (1 Minute) โ Rough approximation, maximum historical data range
โ ๏ธ BACKTEST & REPLAY LIMITATIONS:
โข Replay mode results may differ from live trading due to data availability
โข For longer back test periods, use higher LTF settings (15S or 1M)
โข Not all symbols/exchanges support tick-level data
โข Crypto and Forex typically have better LTF data availability than stocks
๐ก A NOTE ON TOOLS:
Successful trading requires proper tools. Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable signals. Consider this when evaluating your trading infrastructure.
๐ OVERVIEW
Smart Trader Episode 02: Battle of Candles is an advanced educational indicator that combines multiple analysis engines to help traders identify market scenarios and understand market dynamics. This is NOT financial advice or a trading signal service โ it's a learning tool designed to help you understand how institutional traders might interpret price action.
The indicator integrates 7 major analysis engines into a unified dashboard, providing real-time insights into volume flow, trend structure, market phases, and potential trade setups.
โก KEY FEATURES
๐ฏ 16-Pattern Scenario Engine
Automatically detects and classifies market conditions into 16 distinct scenarios, from strong continuation moves to potential reversals and traps.
๐ฐ Trade Advisor Panel
Aggregates all signals into actionable suggestions with confidence levels, suggested entry/SL/TP levels, and risk/reward calculations.
๐ Volume Engine
Splits volume into buy/sell components using either Geometry (candle shape) or Intrabar (LTF data) methods for precise delta analysis.
๐ CVD (Cumulative Volume Delta)
Tracks the running total of buying vs selling pressure to identify accumulation, distribution, and divergences.
๐ฏ Stop-Hunt Detection
Identifies potential stop-hunt patterns where price sweeps liquidity levels before reversing.
๐ Pure Structure Trend Engine
Zero-lag trend detection based on swing highs/lows (HH/HL/LH/LL) without any lagging indicators.
โก Effort vs Result Analysis
Measures energy spent (volume) versus ground taken (price movement) to detect stalls, breakthroughs, and exhaustion.
๐ฏ SCENARIO ENGINE โ 16 Market Patterns
The Scenario Engine analyzes multiple factors (candle anatomy, volume, forces, CVD, wick analysis) to classify each candle into one of 16 scenarios:
Continuation Scenarios (1-3)
1. โ๏ธ STRONG MOVE โ Big body candle (>60%) with volume confirming direction. Indicates strong momentum continuation.
2. ๐ก๏ธ ABSORPTION โ One side attacks but the other absorbs the pressure. Price holds despite volume. Continuation expected in the absorbing side's favor.
3. ๐ PULLBACK โ Small move against the trend with low volume. Indicates a healthy retracement before trend continuation.
Reversal Scenarios (4-6, 13-16)
4. ๐ฅ REJECTION โ Big wick (>40%) with small body and high volume. Price was rejected
at a level, potential reversal.
5. ๐ชค TRAP โ Pin direction disagrees with delta. Extreme wick size. Looks bullish/bearish but the opposite may happen.
6. ๐ซ EXHAUSTION โ High energy spent (volume) but low ground taken (price movement). Both sides active but momentum fading.
13. ๐ CVD BULL DIV โ Price falling but CVD rising. Hidden buying detected (accumulation). Potential bullish reversal.
14. ๐ CVD BEAR DIV โ Price rising but CVD falling. Hidden selling detected (distribution). Potential bearish reversal.
15. ๐ฏ STOP HUNT BULL โ Shorts were liquidated below support. Price swept liquidity and reversed. Expect bullish move.
16. ๐ฏ STOP HUNT BEAR โ Longs were liquidated above resistance. Price swept liquidity and reversed. Expect bearish move.
Range/Stalemate Scenarios (7-9)
7. โ๏ธ DEADLOCK โ Market in balance. Force ratio between 0.4-0.6. Low volume. No side winning.
8. ๐ฅ BATTLE โ High volume fight in a range. Both sides attacking. Wicks on both ends of candle.
9. ๐ฏ WAITING โ Building phase with quiet volume. Market is preparing but no trigger yet. Wait for breakout.
Pre-Breakout Scenarios (10-12)
10. ๐ BULL SETUP โ Buyers accumulating in a building phase. Positive delta building. Bullish pressure growing.
11. ๐ฃ BEAR SETUP โ Sellers distributing in a building phase. Negative delta building. Bearish pressure growing.
12. โก BREAKOUT โ Price at boundary with strong candle and volume supporting. Imminent breakout expected.
๐ฐ TRADE ADVISOR ENGINE
The Trade Advisor aggregates all signals from the different engines into a single actionable output. It uses a weighted scoring system:
Scoring Weights:
โข Scenario Signal: 30%
โข Trend Alignment: 20%
โข CVD Momentum: 15% + Divergence Bonus
โข Pin Forces: 15%
โข Liquidity Sweep: 12%
โข Stop-Hunt Detection: 10%
โข Effort vs Result: 10%
Possible Actions:
โข โณ WAIT โ Edge not strong enough (stay patient)
โข ๐ข LONG ENTRY โ Buyers have strong advantage + signals align
โข ๐ด SHORT ENTRY โ Sellers have strong advantage + signals align
โข โ ๏ธ CLOSE LONG/SHORT โ Position at risk (reversal/trend flip)
โข ๐ STOP LOSS โ Price hit risk threshold
โข ๐ฐ TAKE PROFIT โ Target threshold reached
๐ EXTENDED INFO PANEL (Detailed Explanations)
The Extended Info panel is hidden by default (toggle: Show Extended Info in settings). It provides detailed metrics that feed into the main engines:
CVD ANALYSIS
What is CVD?
Cumulative Volume Delta (CVD) is the running total of Buy Volume minus Sell Volume. It reveals the underlying buying/selling pressure that may not be visible in price alone.
CVD Value & Slope:
โข โ Rising: CVD increasing = net buying pressure (bullish)
โข โ Falling: CVD decreasing = net selling pressure (bearish)
โข โ Flat: No clear pressure direction
Accumulation vs Distribution:
โข Accumulation %: Shows buying pressure strength (0-100). High accumulation with CVD rising = strong bullish bias.
โข Distribution %: Shows selling pressure strength (0-100). High distribution with CVD falling = strong bearish bias.
Divergence Alerts:
โข โ ๏ธ BULLISH DIVERGENCE: Price falling but CVD rising. Hidden buying = potential reversal UP.
โข โ ๏ธ BEARISH DIVERGENCE: Price rising but CVD falling. Hidden selling = potential reversal DOWN.
WICK ANALYSIS
Wick Torque:
Torque measures the "rotational force" from wicks. It's calculated from wick length, volume, and body efficiency.
โข Positive Torque (Bullish): Bottom wick power dominates. Buyers defended lower prices.
โข Negative Torque (Bearish): Top wick power dominates. Sellers defended higher prices.
โข โก High Torque (>30): Strong signal, significant wick rejection occurred.
Stop-Hunt Detection:
The engine detects when price has likely swept stop-losses clustered at key levels:
โข Stop Hunt Risk %: Likelihood score (0-100). Above 55% = confirmed hunt.
โข "Shorts hunted": Price swept below support, liquidating shorts, expect bounce UP.
โข "Longs hunted": Price swept above resistance, liquidating longs, expect drop DOWN.
LIQUIDITY SWEEPS
This section appears only when a liquidity sweep is detected. The engine monitors for price sweeping recent highs/lows and then reversing:
โข ๐ฏ LIQUIDITY SWEPT ABOVE: Price broke recent highs but closed back below. Longs trapped, expect DOWN.
โข ๐ฏ LIQUIDITY SWEPT BELOW: Price broke recent lows but closed back above. Shorts trapped, expect UP.
POWER BALANCE
The Power Balance meter shows the real-time strength comparison between buyers and sellers.
Force Ratio:
โข 0% = Complete seller dominance
โข 50% = Perfect balance
โข 100% = Complete buyer dominance
Visual Bar:
โข Left side (โ): Bear territory
โข Right side (โ): Bull territory
โข The bar is smoothed over recent history to reduce noise.
EFFORT vs RESULT
This section measures the efficiency of price movement relative to volume expended.
Energy:
How much volume was spent relative to the average. Energy > 1.0x means above-average volume activity.
Ground:
How much price movement occurred relative to average range. Ground > 1.0x means above-average price movement.
STALL Warning:
A STALL is detected when high energy is spent but low ground is taken (high effort, low result). This often indicates institutional battle, exhaustion, or imminent reversal.
MARKET PHASE
The Phase Engine classifies the current market regime:
RANGE : No clear trend. Price confined to middle of channel. Low ADX. Balanced forces. Trade breakouts with caution.
BUILDING : Compression/preparation phase. Channel tightening or boundary penetration without follow-through. Watch for breakout direction.
TRENDING : Active directional move. Clear slope, good efficiency, price on trending side of channel. Favor pullback entries.
Strength:
0-100% score combining slope, volume validity, and force/efficiency filters.
Bars: How many candles the current phase has persisted.
TRACK RECORD (Validation Panel)
Enable with Show Validation Panel in settings. This section tracks the historical accuracy of scenario predictions:
Accuracy: Percentage of validated predictions that were correct.
Best/Worst Scenario: Shows which scenarios have the highest and lowest accuracy on the current symbol.
Recent Signals: Last 5 predictions with their outcomes. โ = correct, โ = wrong, โณ = pending validation.
โ๏ธ SETTINGS GUIDE
๐ Volume Analysis
Volume Calculation: Choose Geometry (estimates from candle shape) or Intrabar (precise LTF data).
Intrabar Resolution: LTF for precise mode. Try 1S, 15S, or 1T. Must be lower than chart timeframe.
History Depth: Candles stored in memory (5-50). Higher = more context, slower.
Memory Lookback: Bars for moving averages and Z-scores (10-100).
๐ท๏ธ Market Phase
Range Zone Width: How much of channel center is considered "range" (0.1-0.8).
Trend Sensitivity: Minimum slope to detect trending. Lower = more sensitive.
Min Episode Length: Minimum bars before phase can change. Prevents flickering.
๐ฏ Scenarios
Min Confidence to Show: Only display scenarios above this confidence level (30-90).
Bars to Validate: How many bars to wait before checking if prediction was correct.
Success Move %: Minimum price movement to consider prediction successful.
๐ฐ Trade Advisor
Min Confidence for Entry: Minimum confidence to suggest a trade entry (50-90).
Default Risk %: Stop loss distance as % of price (0.5-5.0).
Min Risk/Reward: Minimum acceptable R:R ratio (1.0-5.0).
๐ ALERT CONDITIONS
The indicator provides the following alert conditions you can configure:
โข ๐ข LONG Entry Signal
โข ๐ด SHORT Entry Signal
โข โ ๏ธ Close LONG Signal
โข โ ๏ธ Close SHORT Signal
โข ๐ STOP LOSS Alert
โข ๐ฐ Take Profit Alert
โข ๐จ High Urgency Signal
โ ๏ธ IMPORTANT DISCLAIMER
EDUCATIONAL TOOL ONLY
This indicator is designed for educational purposes to help users identify different market scenarios and understand how various signals might be interpreted.
The Trade Advisor is NOT a recommendation to buy, sell, or invest.
โข Past performance does not guarantee future results
โข All trading involves risk of loss
โข The creator is not a licensed financial advisor
โข Always do your own research (DYOR)
โข Consult a qualified financial advisor before making any investment decisions
By using this indicator, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
Arbitrage Matrix [LuxAlgo]The Arbitrage Matrix is a follow-up to our Arbitrage Detector that compares the spreads in price and volume between all the major crypto exchanges and forex brokers for any given asset.
It provides traders with a comprehensive view of the entire marketplace, revealing hidden relationships among different exchanges for the same asset and offering easy, visual comparisons.
๐ถ USAGE
Arbitrage is the practice of taking advantage of price differences for the same asset across different markets. Arbitrage traders look for these discrepancies to profit from buying where itโs cheaper and selling where itโs more expensive to capture the spread.
For begginers this tool is a clear snapshot of how different markets value the same asset, making global price dynamics easy to grasp.
For advanced traders it is a powerful scanner for arbitrage setups, helping you identify where the biggest opportunities lie in real time.
Arbitrage opportunities are often shortโlived, but they can be highly profitable. By showing you where spreads exist, this tool helps traders:
Understand market inefficiencies
Avoid trading at unfavorable prices
Identify potential profit opportunities across exchanges
By default, the tool searches all the enabled sources for the asset in the chart. It uses crypto exchanges as sources for crypto assets and forex brokers for all other assets.
The data is displayed on a dashboard, which is the tool's only visual element.
Traders can enable or disable any exchange or broker from the settings panel. All are enabled by default.
๐น Displayable Data
Traders can choose from four types of data to display: last price, last volume, average price, and average volume.
Note that price and volume data may not be available for all assets at all sources, and sources without data will not be displayed.
As the image shows, each chart displays a different type of data for the same asset. In this case, the asset is ETHUSDT.
๐น Reading the Matrix
Traders must read the data in a row-by-column format, as shown in the following example.
Assume that we are charting BTCUSDT Daily. In the row, we have Exchange A; in the column, we have Exchange B. The data is the average price, and the value is 100. The default length for the average is 20.
It reads like this: The average BTCUSDT price over the last 20 days is $100 higher on Exchange A than on Exchange B.
If the value were -100, it would mean that the average price is $100 lower in Exchange A than in Exchange B.
๐น Matrix Style
Traders can change the colors and disable the background gradient, which is enabled by default.
They can also fine-tune the location and dashboard size from the settings panel.
๐ถ SETTINGS
Sources: Choose between crypto exchanges, forex brokers, or automatic selection based on the asset in the chart.
Average Length: Select the length for the price and volume averages.
Crypto Exchanges: Enable or disable any available exchange.
Forex Brokers: Enable or disable any available broker.
๐น Dashboard
Data: Select the data to display.
Position: Select the dashboard location.
Size: Select the dashboard size.
๐น Style
Bullish: Select bullish color.
Bearish: Select bearish color.
Background Gradient: Enable background gradient color.
Ichimoku + EMA + RSI [Enhanced]# **Ichimoku + EMA + RSI Strategy - User Instructions**
---
## **๐ TABLE OF CONTENTS**
1. (#installation)
2. (#strategy-overview)
3. (#parameter-configuration)
4. (#understanding-the-dashboard)
5. (#entry--exit-rules)
6. (#best-practices)
7. (#optimization-guide)
8. (#troubleshooting)
---
## **๐ INSTALLATION**
### **Step 1: Add to TradingView**
1. Open TradingView.com
2. Click **Pine Editor** (bottom of screen)
3. Click **"New"** โ Select **"Blank indicator"**
4. Delete all default code
5. **Copy and paste** the complete script
6. Click **"Save"** (give it a name: "Ichimoku EMA RSI Strategy")
7. Click **"Add to Chart"**
### **Step 2: Verify Installation**
โ
You should see:
- Orange **200 EMA** line
- Blue **Tenkan** line
- Red **Kijun** line
- Green/Red **Cloud** (Ichimoku cloud)
- **Dashboard** in top-right corner
- **Strategy Tester** tab at bottom
---
## **๐ STRATEGY OVERVIEW**
### **What This Strategy Does**
Combines three powerful technical indicators to identify high-probability trades:
| Component | Purpose |
|-----------|---------|
| **200 EMA** | Determines overall trend direction |
| **Ichimoku Cloud** | Provides support/resistance and momentum |
| **RSI** | Filters momentum strength |
| **Dashboard** | Real-time signal analysis |
### **Trading Logic**
- **LONG**: Enter when all bullish conditions align
- **SHORT**: Enter when all bearish conditions align
- **EXITS**: Automatic via trailing stops, cloud breach, or TK cross reversal
---
## **โ๏ธ PARAMETER CONFIGURATION**
### **๐ต Trend Filter Settings**
```
EMA Length: 200 (default)
```
- **Lower (100-150)**: More sensitive, faster signals
- **Higher (250-300)**: More stable, slower signals
- **Recommendation**: Keep at 200 for most timeframes
---
### **๐ข RSI Settings**
```
RSI Length: 14 (default)
RSI Long Minimum: 55
RSI Short Maximum: 45
```
**Adjustment Guide:**
- **Aggressive** (more signals): Long=50, Short=50
- **Balanced** (default): Long=55, Short=45
- **Conservative** (fewer signals): Long=60, Short=40
---
### **๐ก Ichimoku Settings**
```
Tenkan Period: 9
Kijun Period: 26
Senkou B Period: 52
Displacement: 26
```
**Standard Configurations:**
| Timeframe | Tenkan | Kijun | Senkou B |
|-----------|--------|-------|----------|
| **1H - 4H** | 9 | 26 | 52 |
| **15m - 1H** | 7 | 22 | 44 |
| **Daily** | 9 | 26 | 52 |
**Filters:**
- โ
**Require Chikou Confirmation**: Adds extra validation (recommended)
- โ
**Require Cloud Position**: Price must be above/below cloud (recommended)
---
### **๐ด Risk Management**
```
ATR Length: 14
ATR Stop Loss Multiplier: 2.0
ATR Take Profit Multiplier: 3.0
Min Bars Between Trades: 3
```
**Risk/Reward Profiles:**
| Profile | SL Multiplier | TP Multiplier | Description |
|---------|---------------|---------------|-------------|
| **Conservative** | 2.5 | 4.0 | Wider stops, higher R:R |
| **Balanced** | 2.0 | 3.0 | Default settings |
| **Aggressive** | 1.5 | 2.5 | Tighter stops, faster exits |
---
### **๐จ Display Settings**
```
Show Dashboard: ON
Show Entry Signals: ON
```
- **Dashboard**: Shows real-time analysis
- **Entry Signals**: Green/Red arrows on chart
---
## **๐ UNDERSTANDING THE DASHBOARD**
### **Dashboard Components**
```
โโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโ
โ Component โ Status โ
โโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโค
โ EMA Trend โ BULL/BEARโ
โ Cloud โ ABOVE/BELOW/INSIDEโ
โ TK Cross โ BULL/BEARโ
โ RSI โ 55.3 โ
โ Chikou โ BULL/BEARโ
โ Signal โ STRONG LONGโ
โโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ
```
### **Signal Interpretation**
| Signal | Score | Meaning | Action |
|--------|-------|---------|--------|
| **STRONG LONG** | 7+ | All conditions aligned | High confidence LONG |
| **LONG** | 4-6 | Most conditions met | Moderate confidence |
| **NEUTRAL** | <4 | Mixed signals | Wait for clarity |
| **SHORT** | 4-6 | Bearish bias | Moderate SHORT |
| **STRONG SHORT** | 7+ | All bearish conditions | High confidence SHORT |
---
## **๐ ENTRY & EXIT RULES**
### **โ
LONG ENTRY CONDITIONS**
All must be TRUE:
1. โ
Price **above** 200 EMA
2. โ
Price **above** Ichimoku Cloud
3. โ
Tenkan **crosses above** Kijun (TK Bull Cross)
4. โ
RSI **above** 55
5. โ
Chikou **above** price 26 bars ago
6. โ
Minimum bars since last trade met
**Visual Confirmation:**
- ๐ข Green triangle **below** candle
- Dashboard shows **"STRONG LONG"**
---
### **โ LONG EXIT CONDITIONS**
Any ONE triggers exit:
1. โ Price closes **below** cloud bottom
2. โ Tenkan **crosses below** Kijun
3. โ ATR trailing stop hit (2.0 ร ATR)
4. โ Take profit hit (3.0 ร ATR)
---
### **โ
SHORT ENTRY CONDITIONS**
All must be TRUE:
1. โ
Price **below** 200 EMA
2. โ
Price **below** Ichimoku Cloud
3. โ
Tenkan **crosses below** Kijun (TK Bear Cross)
4. โ
RSI **below** 45
5. โ
Chikou **below** price 26 bars ago
6. โ
Minimum bars since last trade met
**Visual Confirmation:**
- ๐ด Red triangle **above** candle
- Dashboard shows **"STRONG SHORT"**
---
### **โ SHORT EXIT CONDITIONS**
Any ONE triggers exit:
1. โ Price closes **above** cloud top
2. โ Tenkan **crosses above** Kijun
3. โ ATR trailing stop hit (2.0 ร ATR)
4. โ Take profit hit (3.0 ร ATR)
---
## **๐ก BEST PRACTICES**
### **Recommended Timeframes**
| Timeframe | Trading Style | Signals/Week |
|-----------|---------------|--------------|
| **15m** | Scalping | 20-30 |
| **1H** | Day Trading | 10-15 |
| **4H** | Swing Trading | 5-10 |
| **Daily** | Position Trading | 2-5 |
---
### **Asset Classes**
โ
**Best Performance:**
- Major Forex pairs (EUR/USD, GBP/USD)
- Crypto (BTC/USD, ETH/USD)
- Major indices (SPX, NAS100)
โ ๏ธ **Use Caution:**
- Low liquidity pairs
- Highly volatile altcoins
- Stocks with gaps
---
### **Risk Management Rules**
```
1. Never risk more than 2% per trade
2. Use the built-in ATR stops (don't override)
3. Respect the "Min Bars Between Trades" cooldown
4. Don't trade during major news events
5. Monitor dashboard - only trade STRONG signals
```
---
## **๐ง OPTIMIZATION GUIDE**
### **Step 1: Run Initial Backtest**
1. Open **Strategy Tester** tab (bottom of screen)
2. Set date range (minimum 6 months)
3. Review:
- **Net Profit**
- **Win Rate** (target: >50%)
- **Profit Factor** (target: >1.5)
- **Max Drawdown** (target: <20%)
---
### **Step 2: Optimize Parameters**
**If Win Rate is Low (<45%):**
- Increase RSI thresholds (Long=60, Short=40)
- Enable both Chikou + Cloud filters
- Increase "Min Bars Between Trades" to 5
**If Too Few Signals:**
- Decrease RSI thresholds (Long=50, Short=50)
- Reduce EMA to 150
- Adjust Ichimoku to faster settings (7/22/44)
**If Drawdown is High (>25%):**
- Increase ATR Stop Loss Multiplier to 2.5
- Add longer cooldown period (5+ bars)
- Trade only STRONG signals
---
### **Step 3: Forward Test**
```
1. Paper trade for 2-4 weeks
2. Compare results to backtest
3. Adjust if live results differ significantly
4. Only go live after consistent paper trading success
```
---
## **๐ ๏ธ TROUBLESHOOTING**
### **Problem: No Signals Appearing**
**Solutions:**
- Check RSI levels aren't too restrictive
- Verify timeframe is appropriate (try 1H or 4H)
- Ensure both filters aren't enabled on ranging markets
- Review dashboard - components may be conflicting
---
### **Problem: Too Many Losing Trades**
**Solutions:**
- Enable **both** Chikou + Cloud filters
- Increase RSI thresholds (more conservative)
- Only trade when dashboard shows "STRONG" signals
- Increase cooldown period to avoid overtrading
---
### **Problem: Dashboard Not Showing**
**Solutions:**
- Verify "Show Dashboard" is enabled in settings
- Check chart isn't zoomed out too far
- Refresh chart (F5)
- Re-add indicator to chart
---
### **Problem: Stops Too Tight/Wide**
**Solutions:**
- **Too Tight**: Increase ATR Stop Loss Multiplier to 2.5-3.0
- **Too Wide**: Decrease to 1.5-1.8
- Verify ATR Length is appropriate for timeframe
- Consider asset volatility (crypto needs wider stops)
---
## **๐ QUICK REFERENCE CARD**
```
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
STRATEGY QUICK REFERENCE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
BEST TIMEFRAMES: 1H, 4H, Daily
BEST ASSETS: Major Forex, BTC, ETH, Indices
RISK PER TRADE: 1-2% of capital
LONG ENTRY:
โ Price > 200 EMA
โ Price > Cloud
โ TK Bull Cross
โ RSI > 55
โ Dashboard = STRONG LONG
SHORT ENTRY:
โ Price < 200 EMA
โ Price < Cloud
โ TK Bear Cross
โ RSI < 45
โ Dashboard = STRONG SHORT
EXITS:
ร Cloud breach
ร TK reverse cross
ร ATR trailing stop
ร Take profit (3:1 R:R)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
```
---
## **โ ๏ธ DISCLAIMER**
This strategy is for **educational purposes only**. Always:
- Backtest thoroughly on your specific assets
- Paper trade before going live
- Never risk more than you can afford to lose
- Past performance โ future results
- Consider market conditions and your risk tolerance
---
**Happy Trading! ๐**
TradingView โ Track All Markets
Where the world charts, chats, and trades markets. We're a supercharged super-charting platform and social network for traders and investors. Free to sign up.






















