Trendlines Oscillator [LuxAlgo]The Trendlines Oscillator helps traders identify trends and momentum based on the normalized distances between the current price and the most recently detected bullish and bearish trend lines.
The indicator features bullish and bearish momentum, a signal line with crossings, and multiple smoothing options.
🔶 USAGE
The indicator displays three lines: two for momentum and one for the signal. When one of the momentum lines (bullish or bearish) crosses the signal line, the tool displays a dot to indicate which momentum is gaining strength.
As a general rule, when the green bullish momentum line is above the red bearish momentum line, it indicates buyer strength. This means that the actual prices are farther from the support trend lines than the resistance trend lines. The opposite is true for seller strength.
To calculate bullish momentum, the tool first identifies bullish trend lines acting as support below the price. Then, it measures the delta between the price and those trend lines and normalizes the reading into the displayed momentum values.
The same process is used for bearish momentum, but with bearish trendlines acting as resistance above the price.
🔹 Length & Memory
Modifying the Length and Memory values will cause the tool to display different momentum values.
Traders can adjust the length to detect larger trendlines and adjust the memory to indicate how many trendlines the tool should consider.
As the chart above shows, smaller values make the tool more responsive, while larger values are useful for detecting larger trends.
🔹 Smoothing
By default, the data is not smoothed, and the signal uses a triangular moving average with a length of 10. Traders can smooth both the data and the signal line.
Traders can choose from up to ten different methods, or none. Some examples are shown on the chart above.
🔶 DETAILS
The steps for the calculations are as follows:
1. Gather the pivots, highs, and lows.
ph = fixnan(ta.pivothigh(lengthInput, lengthInput))
pl = fixnan(ta.pivotlow(lengthInput, lengthInput))
2. Calculate the slope and y-intercept for each trendline between contiguous lower highs (resistance) or higher lows (support).
if ph < ph
slope = (ph - ph )/(n-lengthInput - phx1)
res.unshift(l.new(ph - slope * phx1, slope))
if pl > pl
slope = (pl - pl )/(n-lengthInput - plx1)
sup.unshift(l.new(pl - slope * plx1, slope))
3. Calculate the value of each trendline on the current bar, then calculate the difference with the current price (delta). To calculate the relative sum of deltas, only consider trendlines below the price for support or above the price for resistance.
method get_point(l id, x)=>
id.slope * x + id.intercept
for element in sup
point = element.get_point(n)
if sourceInput > point
sup_sum += sourceInput - point
sup_den += math.abs(sourceInput - point)
for element in res
point = element.get_point(n)
if sourceInput < point
res_sum += point - sourceInput
res_den += math.abs(point - sourceInput)
4. Normalize the value from 0 to 100 by taking the sum of the relative values of the deltas divided by the sum of the absolute values of the deltas.
float supportLine = sup_sum / sup_den * 100
float resistanceLine = res_sum / res_den * 100
5. Smooth both values, then calculate the signal line as the difference between them.
float smoothSupport = smooth(supportLine,dataSmoothingInput,dataSmoothingLengthInput)
float smoothResistance = smooth(resistanceLine,dataSmoothingInput,dataSmoothingLengthInput)
float signal = math.abs(smoothSupport - smoothResistance)
float signalLine = smooth(signal,smoothingInput,smoothingLengthInput)
6. Calculate the crossing signals against the signal line, using only the first signal from each series of bullish or bearish crossings.
bullSignal = smoothSupport > signalLine and smoothSupport < signalLine
bearSignal = smoothResistance > signalLine and smoothResistance < signalLine
lastSignal := bullSignal and lastSignal == BEAR ? BULL : bearSignal and lastSignal == BULL ? BEAR : lastSignal
firstBull = ta.change(lastSignal) > 0
firstBear = ta.change(lastSignal) < 0
🔶 SETTINGS
Length: The size of the market structure used for trendline detection.
Memory: The number of trendlines used in calculations.
Source: The source for the calculations is closing prices by default.
🔹 Smoothing
Data Smoothing: Choose the smoothing method and length
Signal Smoothing: Choose the smoothing method and length
趨勢分析
Tide Tracker ZonesTide Tracker Zones – Advanced Trend & Pullback Visualizer
Overview
Tide Tracker Zones is a sophisticated trading tool designed for traders who require clarity, precision, and actionable insights in real time. The indicator converts price action into dynamic trend zones, allowing users to instantly recognize market direction, potential reversals, and low-risk entry opportunities. By visualizing the market in this way, traders can focus on execution rather than deciphering complex charts.
Unlike static indicators, Tide Tracker Zones adapts to market volatility, providing a clear picture of bullish and bearish pressure across multiple timeframes. Its visual design, including color-coded trend zones, a prominent guide line, and carefully placed signals, ensures that market behavior is easy to interpret, making it suitable for scalping, swing trading, and longer-term strategies alike.
How It Works
The indicator relies on dynamic upper and lower bands derived from recent price ranges and a configurable multiplier. These bands expand during volatile periods and contract when price action stabilizes, creating flexible zones that reflect the dominant market tide.
A guide line tracks the active band, serving as a continuous reference for trend direction. Unlike traditional moving averages, the guide line does not clutter the chart but instead provides a subtle, intuitive indication of whether the market is in a bullish or bearish phase. Background shading reinforces this trend visually, highlighting bullish zones in one color and bearish zones in another, so the prevailing market flow is immediately clear.
The system continuously evaluates price relative to the bands to determine trend direction and detect potential reversals. When price crosses a band and flips the trend, the guide line updates, and signals are generated, providing traders with actionable information without overwhelming the chart.
Signals and Pullbacks
Tide Tracker Zones offers visual cues that make entry points more obvious and less speculative. Trend reversal arrows are plotted when the market changes direction: BUY arrows indicate a shift from bearish to bullish, and SELL arrows indicate a shift from bullish to bearish.
The indicator also highlights first pullbacks within an active trend. These pullback dots mark low-risk opportunities to enter a trend in progress, filtered to ensure that only the most relevant signals are displayed. The system uses ATR-based spacing to place arrows and dots vertically on the chart, preventing visual clutter and ensuring readability even during periods of high volatility.
Color-coded zones enhance situational awareness. Bullish zones are displayed in a customizable orange, while bearish zones are shown in green. Transparency is dynamically adjusted to maintain chart clarity while still providing a clear indication of trend strength.
Strategy Integration
Tide Tracker Zones can be used effectively for both trend-following and pullback strategies. Traders may enter positions in the direction of the guide line and colored zone, using trend reversal arrows for confirmation. First pullback dots offer tactical entries with reduced risk, allowing traders to enter a trend after a brief retracement.
Stop-loss levels can be placed just beyond the opposing trend zone, while take-profit targets may be determined using the width of the bands to account for market volatility. The indicator adapts seamlessly across multiple timeframes. Higher timeframes provide context and filter noise, while lower timeframes allow traders to refine entry timing. This makes it a versatile tool for scalping, swing trading, or longer-term positions.
Advanced Techniques
For traders seeking greater precision, Tide Tracker Zones can be combined with volume or momentum indicators to validate signals. Observing the sequence of trend arrows and pullback dots allows users to develop a systematic approach to entries and exits. Monitoring the width and behavior of the bands over time can also provide insights into periods of expanding or contracting volatility, helping traders anticipate market shifts.
Adjustments to the spread length and multiplier allow the indicator to be tuned for different assets and market conditions. By understanding the interaction between the guide line, trend zones, and pullback signals, traders can create a robust framework for decision-making, reducing guesswork and improving consistency.
Why Use Tide Tracker Zones
Tide Tracker Zones provides instant clarity and actionable insight in any market. Its dynamic zones and guide line give a clear visual understanding of trend direction, while trend reversal arrows and pullback dots highlight potential entry points. Unlike traditional indicators, it adapts to volatility and changing conditions, making it reliable across multiple asset classes and timeframes.
By combining trend detection, pullback analysis, and intuitive visual guidance, Tide Tracker Zones equips traders with a complete framework for disciplined, confident trading, transforming complex price action into a visual map of opportunity.
Trend CandlesTrend Candles
Overview
The Trend Candles indicator is a simple yet effective tool designed to help traders visually identify the prevailing market trend. By combining candle coloring with a trend-based Exponential Moving Average (EMA), it enhances chart readability and makes trend-following strategies easier to apply.
Concepts
Exponential Moving Average (EMA): The EMA is a moving average that places more weight on recent price data. It reacts faster to price changes compared to a Simple Moving Average (SMA), making it well-suited for trend detection.
Trend Determination:
- If the EMA is rising (current EMA > previous EMA), the market is considered bullish.
- If the EMA is falling (current EMA < previous EMA), the market is considered bearish.
- If the EMA is flat (no significant change), no trend color is applied.
Candle Coloring:
- Green candles = Uptrend
- Purple candles = Downtrend
- Default candles = Sideways/Flat EMA
Features
- Trend Visualization: Candles automatically change color based on EMA slope, making it easy to spot bullish and bearish phases.
- Customizable EMA Length: The trader can set the EMA period (default is 50), allowing flexibility for short-term or long-term trend analysis.
- Overlay EMA Line: An orange EMA line is plotted on the chart for additional confirmation of the trend.
- Clean & Minimalist: Focuses on trend clarity without cluttering the chart with unnecessary signals.
How to Use
1. Apply the indicator to your chart.
2. Adjust the EMA Length as per your trading style (shorter = faster signals, longer = smoother trend).
3. Follow the candle color:
- Green = Favor long entries.
- Purple = Favor short entries.
- No color = Stay cautious, as trend is unclear.
4. Use with other confirmation tools (support/resistance, volume, or oscillators).
5. Users are encouraged to experiment with different EMA lengths. The default length is 50, but you can explore other values based on your needs. In particular, try Fibonacci numbers such as 13, 21, 34, 55, 89, 144, and 233 to observe how trends behave differently.
Disclaimer
The information provided by the Trend Candles indicator is for educational purposes only. It should not be considered financial advice. Trading involves substantial risk, and past performance is not necessarily indicative of future results. Always do your own research and use risk management practices.
SmartPlusSmartPlus
Overview
The SmartPlus indicator is a complete framework for intraday traders. It combines key market reference points (VWAP, moving averages, and the first 15-minute high/low range) with predictive levels based on historical daily moves. Together, these elements allow traders to build directional bias, spot breakouts, and manage risk throughout the session.
Key Features
1. VWAP (Volume-Weighted Average Price)
- Plots the intraday VWAP in real time.
- VWAP acts as a central “fair value” reference point for institutional order flow.
- Price trading above VWAP generally suggests bullish bias, while below VWAP leans bearish.
2. Exponential Moving Averages (EMAs)
- Two configurable EMAs are included:
- Fast EMA (default: 21 periods)
- Slow EMA (default: 34 periods)
- Each EMA is plotted with a single, user-selectable color for clarity.
- Crossovers or alignment between price, VWAP, and EMAs help define market structure.
3. Smart Bar Coloring
- Candles automatically change color when conditions align:
- Bull Zone: Price above VWAP, Fast EMA, and Slow EMA.
- Bear Zone: Price below VWAP, Fast EMA, and Slow EMA.
- Fluorescent bar coloring helps highlight momentum zones visually without additional analysis.
4. First 15-Minute High/Low/Mid (Automatic)
- Automatically detects the first 15 minutes of each new trading day (no manual input required).
- Plots horizontal lines for:
- First 15-Minute High (green)
- First 15-Minute Low (red)
- Midpoint of that range (gray)
- Once the initial 15-minute window ends, these levels remain projected throughout the session as breakout or support/resistance zones.
- Alerts trigger when price breaks above the high or below the low after the window.
5. Daily Support/Resistance Forecast
- Uses a rolling lookback of recent daily ranges (default: 126 days).
- Tracks average up moves and down moves from the daily open.
- Optionally incorporates standard deviation for wider confidence bands.
- Plots forecast levels above/below the current day’s open for reference.
Trading Logic (How to Use)
- Bullish Bias:
- Price is above VWAP, above both EMAs, and ideally above the first 15-minute high.
- This setup suggests trend continuation or breakout opportunities on the long side.
- Bearish Bias:
- Price is below VWAP, below both EMAs, and ideally below the first 15-minute low.
- This setup suggests downward pressure or breakout opportunities on the short side.
- Neutral / Caution Zone:
- Price caught between VWAP, EMAs, or inside the 15-minute range often signals indecision.
- Best to wait for confirmation or breakout before committing to trades.
Expectations After Using It
- The script provides context and structure, not trading signals.
- It highlights where price is relative to meaningful market levels so traders can act with greater confidence.
- Combining VWAP, EMAs, and the 15-minute breakout framework helps traders stay aligned with the market’s natural rhythm.
Disclaimer
This script is a tool for market analysis and educational purposes only.
It does not constitute financial advice, trading recommendations, or guaranteed profitability.
Markets are inherently risky, and past patterns do not ensure future results.
Always combine this tool with sound risk management, personal research, and professional guidance before making any trading decisions.
Intellxis Premium InsightUnderstanding the Intellxis - Premium Insight Indicator
This guide provides a way to understand the output of the Premium Insight plugin for TradingView. Its core feature is the "Premium Status" column, which analyzes how an option's premium behaves relative to the underlying asset's price. Use the below guide to decode every status message and leverage this powerful plugin in your trading.
Call Option Statuses
Strong (Spot 🡅): The Call premium is increasing as the underlying asset price rises. This confirms a bullish trend and indicates the option is behaving as expected.
Down (Spot 🡇): The Call premium is decreasing as the underlying asset price falls. This is the normal, expected behavior for a call option in a downtrend.
Down (Spot ⟷): The Call premium is decreasing while the underlying asset price is flat. This erosion of value is due to the passage of time and is an expected behavior.
Weak (Spot 🡅): The Call premium is decreasing slightly even though the underlying asset price is rising. This is an anomaly and suggests weakness in the bullish move.
Flat (Spot 🡅): The Call premium is not changing despite a rise in the underlying asset price. This indicates the premium is not responding to a favorable move, which is a sign of weakness.
Strong (Spot 🡇): The Call premium is increasing even though the underlying asset price is falling. This is a highly counter-intuitive signal and could point to a sharp increase in implied volatility.
MELTDOWN (Spot 🡅): The Call premium is collapsing significantly while the underlying asset price is RISING. This contradicts normal option behavior and may signal an imminent reversal or volatility crush.
MELTDOWN (Spot ⟷): The Call premium is collapsing significantly while the underlying is flat. This suggests a massive drop in implied volatility or other strong selling pressure not related to price direction.
Down Significantly (Spot 🡇): The Call premium is dropping significantly as the underlying spot price is moving down.
Up (Spot ⟷): The Call premium is increasing while the underlying spot price is flat. This is likely due to a sudden increase in volatility.
Flat (Spot ⟷): Normal: The Call premium is flat and the underlying spot price is also flat.
Put Option Statuses
Strong (Spot 🡇): The Put premium is increasing as the underlying asset price falls. This confirms a bearish trend and indicates the option is behaving as expected.
Down (Spot 🡅): The Put premium is decreasing as the underlying asset price rises. This is the normal, expected behavior for a put option in an uptrend.
Down (Spot ⟷): The Put premium is decreasing while the underlying asset price is flat. This erosion of value is due to the passage of time and is an expected behavior.
Weak (Spot 🡇): The Put premium is dropping slightly even though the underlying asset price is falling. This is an anomaly and suggests weakness in the bearish move.
Flat (Spot 🡇): The Put premium is not changing despite a fall in the underlying asset price. This indicates the premium is not responding to a favorable move, which is a sign of weakness.
Strong (Spot 🡅): The Put premium is increasing even though the underlying asset price is rising. This is a highly counter-intuitive signal and could point to a sharp increase in implied volatility.
MELTDOWN (Spot 🡇): The Put premium is collapsing significantly while the underlying asset price is FALLING. This contradicts normal option behavior and may signal an imminent reversal or volatility crush.
MELTDOWN (Spot ⟷): The Put premium is collapsing significantly while the underlying is flat. This suggests a massive drop in implied volatility or other strong selling pressure not related to price direction.
Down Significantly (Spot 🡅): The Put premium is dropping significantly as the underlying spot price is moving up.
Up (Spot ⟷): The Put premium is increasing while the underlying spot price is flat. This is likely due to a sudden increase in volatility.
Flat (Spot ⟷): The Put premium is flat and the underlying spot price is also flat.
Multi-TF Trend Table (Configurable)1) What this tool does (in one minute)
A compact, multi‑timeframe dashboard that stacks eight timeframes and tells you:
Trend (fast MA vs slow MA)
Where price sits relative to those MAs
How far price is from the fast MA in ATR terms
MA slope (rising, falling, flat)
Stochastic %K (with overbought/oversold heat)
MACD momentum (up or down)
A single score (0%–100%) per timeframe
Alignment tick when trend, structure, slope and momentum all agree
Use it to:
Frame bias top‑down (M→W→D→…→15m)
Time entries on your execution timeframe when the higher‑TF stack is aligned
Avoid counter‑trend traps when the table is mixed
2) Table anatomy (each column explained)
The table renders 9 columns × 8 rows (one row per timeframe label you define).
TF — The label you chose for that row (e.g., Month, Week, 4H). Cosmetic; helps you read the stack.
Trend — Arrow from fast MA vs slow MA: ↑ if fastMA > slowMA (up‑trend), ↓ otherwise (down‑trend). Cell is green for up, red for down.
Price Pos — One‑character structure cue:
🔼 if price is above both fast and slow MAs (bullish structure)
🔽 if price is below both (bearish structure)
– otherwise (between MAs / mixed)
MA Dist — Distance of price from the fast MA measured in ATR multiples:
XS < S < M < L < XL according to your thresholds (see §3.3). Useful for judging stretch/mean‑reversion risk and stop sizing.
MA Slope — The fast MA one‑bar slope:
↑ if fastMA - fastMA > 0
↓ if < 0
→ if = 0
Stoch %K — Rounded %K value (default 14‑1‑3). Background highlights when it aligns with the trend:
Green heat when trend up and %K ≤ oversold
Red heat when trend down and %K ≥ overbought Tooltip shows K and D values precisely.
Trend % — Composite score (0–100%), the dashboard’s confidence for that timeframe:
+20 if trendUp (fast>slow)
+20 if fast MA slope > 0
+20 if MACD up (signal definition in §2.8)
+20 if price above fast MA
+20 if price above slow MA
Background colours:
≥80 lime (strong alignment)
≥60 green (good)
≥40 orange (mixed)
<40 grey (weak/contrary)
MACD — 🟢 if EMA(12)−EMA(26) > its EMA(9), else 🔴. It’s a simple “momentum up/down” proxy.
Align — ✔ when everything is in gear for that trend direction:
For up: trendUp and price above both MAs and slope>0 and MACD up
For down: trendDown and price below both MAs and slope<0 and MACD down Tooltip spells this out.
3) Settings & how to tune them
3.1 Timeframes (TF1–TF8)
Inputs: TF1..TF8 hold the resolution strings used by request.security().
Defaults: M, W, D, 720, 480, 240, 60, 15 with display labels Month, Week, Day, 12H, 8H, 4H, 1H, 15m.
Tips
Keep a top‑down funnel (e.g., Month→Week→Day→H4→H1→M15) so you can cascade bias into entries.
If you scalp, consider D, 240, 120, 60, 30, 15, 5, 1.
Crypto weekends: consider 2D in place of W to reflect continuous trading.
3.2 Moving Average (MA) group
Type: EMA, SMA, WMA, RMA, HMA. Changes both fast & slow MA computations everywhere.
Fast Length: default 20. Shorten for snappier trend/slope & tighter “price above fast” signals.
Slow Length: default 200. Controls the structural trend and part of the score.
When to change
Swing FX/equities: EMA 20/200 is a solid baseline.
Mean‑reversion style: consider SMA 20/100 so trend flips slower.
Crypto/indices momentum: HMA 21 / EMA 200 will read slope more responsively.
3.3 ATR / Distance group
ATR Length: default 14; longer makes distance less jumpy.
XS/S/M/L thresholds: define the labels in column MA Dist. They are compared to |close − fastMA| / ATR.
Defaults: XS 0.25×, S 0.75×, M 1.5×, L 2.5×; anything ≥L is XL.
Usage
Entries late in a move often occur at L/XL; consider waiting for a pullback unless you are trading breakouts.
For stops, an initial SL around 0.75–1.5 ATR from fast MA often sits behind nearby noise; use your plan.
3.4 Stochastic group
%K Length / Smoothing / %D Smoothing: defaults 14 / 1 / 3.
Overbought / Oversold: defaults 70 / 30 (adjust to 80/20 for trendier assets).
Heat logic (column Stoch %K): highlights when a pullback aligns with the dominant trend (oversold in an uptrend, overbought in a downtrend).
3.5 View
Full Screen Table Mode: centers and enlarges the table (position.middle_center). Great for clean screenshots or multi‑monitor setups.
4) Signal logic (how each datapoint is computed)
Per‑TF data (via a single request.security()):
fastMA, slowMA → based on your MA Type and lengths
%K, %D → Stoch(High,Low,Close,kLen) smoothed by kSmooth, then %D smoothed by dSmooth
close, ATR(atrLen) → for structure and distance
MACD up → (EMA12−EMA26) > EMA9(EMA12−EMA26)
fastMA_prev → yesterday/previous‑bar fast MA for slope
TrendUp → fastMA > slowMA
Price Position → compares close to both MAs
MA Distance Label → thresholds on abs(close − fastMA)/ATR
Slope → fastMA − fastMA
Score (0–100) → sum of the five 20‑point checks listed in §2.7
Align tick → conjunction of trend, price vs both MAs, slope and MACD (see §2.9)
Important behaviour
HTF values are sampled at the execution chart’s bar close using Pine v6 defaults (no lookahead). So the daily row updates only when a daily bar actually closes.
5) How to trade with it (playbooks)
The table is a framework. Entries/exits still follow your plan (e.g., S/D zones, price action, risk rules). Use the table to know when to be aggressive vs patient.
Playbook A — Trend continuation (pullback entry)
Look for Align ✔ on your anchor TFs (e.g., Week+Day both ≥80 and green, Trend ↑, MACD 🟢).
On your execution TF (e.g., H1/H4), wait for Stoch heat with the trend (oversold in uptrend or overbought in downtrend), and MA Dist not at XL.
Enter on your trigger (break of pullback high/low, engulfing, retest of fast MA, or S/D first touch per your plan).
Risk: consider ATR‑based SL beyond structure; size so 0.25–0.5% account risk fits your rules.
Trail or scale at M/L distances or when score deteriorates (<60).
Playbook B — Breakout with confirmation
Mixed stack turns into broad green: Trend % jumps to ≥80 on Day and H4; MACD flips 🟢.
Price Pos shows 🔼 across H4/H1 (above both MAs). Slope arrows ↑.
Enter on the first clean base‑break with volume/impulse; avoid if MA Dist already XL.
Playbook C — Mean‑reversion fade (advanced)
Use only when higher TFs are not aligned and the row you trade shows XL distance against the higher‑TF context. Take quick targets back to fast MA. Lower win‑rate, faster management.
Playbook D — Top‑down filter for Supply/Demand strategy
Trade first retests only in the direction where anchor TFs (Week/Day) have Align ✔ and Trend % ≥60. Skip counter‑trend zones when the stack is red/green against you.
6) Reading examples
Strong bullish stack
Week: ↑, 🔼, S/M, slope ↑, %K=32 (green heat), Trend 100%, MACD 🟢, Align ✔
Day: ↑, 🔼, XS/S, slope ↑, %K=45, Trend 80%, MACD 🟢, Align ✔
Action: Look for H4/H1 pullback into demand or fast MA; buy continuation.
Late‑stage thrust
H1: ↑, 🔼, XL, slope ↑, %K=88
Day/H4: only 60–80%
Action: Likely overextended on H1; wait for mean reversion or multi‑TF alignment before chasing.
Bearish transition
Day flips from 60%→40%, Trend ↓, MACD turns 🔴, Price Pos “–” (between MAs)
Action: Stand aside for longs; watch for lower‑high + Align ✔ on H4/H1 to join shorts.
7) Practical tips & pitfalls
HTF closure: Don’t assume a daily row changed mid‑day; it won’t settle until the daily bar closes. For intraday anticipation, watch H4/H1 rows.
MA Type consistency: Changing MA Type changes slope/structure everywhere. If you compare screenshots, keep the same type.
ATR thresholds: Calibrate per asset class. FX may suit defaults; indices/crypto might need wider S/M/L.
Score ≠ signal: 100% does not mean “must buy now.” It means the environment is favourable. Still execute your trigger.
Mixed stacks: When rows disagree, reduce size or skip. The tool is telling you the market lacks consensus.
8) Customisation ideas
Timeframe presets: Save layouts (e.g., Swing, Intraday, Scalper) as indicator templates in TradingView.
Alternative momentum: Replace the MACD condition with RSI(>50/<50) if desired (would require code edit).
Alerts: You can add alert conditions for (a) Align ✔ changes, (b) Trend % crossing 60/80, (c) Stoch heat events. (Not shipped in this script, but easy to add.)
9) FAQ
Q: Why do I sometimes see a dash in Price Pos? A: Price is between fast and slow MAs. Structure is mixed; seek clarity before acting.
Q: Does it repaint? A: No, higher‑TF values update on the close of their own bars (standard request.security behaviour without lookahead). Intra‑bar they can fluctuate; decisions should be made at your bar close per your plan.
Q: Which columns matter most? A: For trend‑following: Trend, Price Pos, Slope, MACD, then Stoch heat for entries. The Score summarises, and Align enforces discipline.
Q: How do I integrate with ATR‑based risk? A: Use the MA Dist label to avoid chasing at extremes and to size stops in ATR terms (e.g., SL behind structure at ~1–1.5 ATR).
Round Levels Cross AlertRound Levels Cross Alert
Overview
The Round Levels Cross Alert is a Pine Script v6 indicator for TradingView that detects when the price crosses user-defined round price levels (e.g., 100, 200, 500). It is designed for traders focusing on psychological or key support/resistance levels, providing clear visual markers and real-time alerts with detailed messages.
Features
Custom Round Levels: Set your preferred price interval (e.g., 100 points) using the Round Level Interval input.
Visual Cues: Green triangle-up shapes appear below bars for upward crosses; red triangle-down shapes appear above for downward crosses.
Detailed Alerts: Alerts include the ticker, crossed level, and time in HH:mm AM/PM format, triggered only on confirmed bars for accuracy.
Multi-Level Detection: Captures multiple round-level crosses in a single bar, sending individual alerts for each.
User-Friendly: Easy to set up and integrates with TradingView's alert system for notifications via email, SMS, or other platforms.
How It Works
The script calculates the nearest round level by flooring the closing price divided by the user-defined interval. It detects changes in this level to identify crosses, then:
Plots a shape to visually mark the cross.
Generates an alert with the ticker, crossed level, and current time.
Handles multiple level crosses in one bar, ensuring all are reported.
Ideal For
Swing Traders: Identify key levels for entries/exits.
Day Traders: Monitor real-time price action at round numbers.
Automated Alerts: Stay informed with timely notifications.
Customization
Adjust the Round Level Interval to match your asset or strategy (e.g., 50, 100, 1000).
Configure TradingView alerts to suit your notification preferences.
This indicator is a simple, effective tool for tracking price movements at significant round levels with clear visuals and actionable alerts.
Control Point System📊 Control Zone Strategy - Trading System Summary
🎯 Core Concept
Trade based on control zone breaks where buyers take over seller zones (bullish) or sellers take over buyer zones (bearish).
📍 Key Levels Setup
Seller Control Zones (Resistance)
PMH (Pre Market High) - Where sellers stopped buyers
YDH (Yesterday High) - Where sellers stopped buyers
Buyer Control Zones (Support)
PML (Pre Market Low) - Where buyers stopped sellers
YDL (Yesterday Low) - Where buyers stopped sellers
📈 EMA System
200 EMA (Purple) - Trend Filter: Above = Bullish bias | Below = Bearish bias
48 EMA (Red) - Last line of defense for pullbacks/shorts
13 EMA (Green) - Pullback levels (if above 200) or Short levels (if below 200)
8 EMA (Orange) - Exit indicator
⚡ Entry Signals
BULLISH Setup (Buyers Take Control)
Condition: Price breaks above PMH or YDH (seller zones)
Confirmation: Above 200 EMA for bullish trend
Entry: Use 5-minute timeframe for precise entries
Logic: Buyers have overpowered seller control zones
BEARISH Setup (Sellers Take Control)
Condition: Price breaks below PML or YDL (buyer zones)
Confirmation: Below 200 EMA for bearish trend
Entry: Use 5-minute timeframe for precise entries
Logic: Sellers have overpowered buyer control zones
🚪 Exit Strategy
Main Exit Rule
Exit Signal: Full candle close above 8 EMA on 5 or 10-minute chart
Runners: Take partial profits along the way, let runners ride until 8 EMA exit
Profit Taking
Scale out at key resistance/support levels
Use Daily 13 EMA as potential exit target
Trail stops using 8 EMA
⏰ Timeframes
Entry: 5-minute chart
Exit Monitoring: 5-minute or 10-minute chart for 8 EMA signals
PMH/PML: Calculated from 4:00 AM - 8:29 AM EST premarket session
🎯 Quick Decision Matrix
ScenarioActionBiasBreak above PMH/YDH + Above 200 EMABUYBullishBreak below PML/YDL + Below 200 EMASELLBearishFull candle close above 8 EMAEXITNeutralPrice at 13/48 EMA + Trend intactAdd/ScaleContinue
💡 Key Rules
Trend is king - Always check 200 EMA first
Zone breaks = control shifts - Trade in direction of new control
8 EMA exit - Respect the exit signal to preserve profits
Scale profits - Don't exit everything at once, use runners
Bottom Line: Trade the battle for control between buyers and sellers at key levels, with trend as your guide and 8 EMA as your exit!
Locked 5m 13 EMA & 15m 20 EMA with Mid EMA & SignalsThis indicator overlays the 5-minute 13 EMA and the 15-minute 20 EMA on any chart timeframe up to 15 minutes, along with a mid EMA (5-minute 36-period) for reference.
Features include:
EMA Cross Detection: Shows bullish and bearish cross arrows when the 5m 13 EMA crosses the 15m 20 EMA.
EMA Fill: Highlights the area between the EMAs in green (bullish) or red (bearish).
Mid EMA Buy/Sell Signals: Generates buy signals when price touches the mid EMA in a bullish stack and sell signals in a bearish stack.
Custom Alerts: Alerts for EMA crosses, EMA stack direction, and mid EMA buy/sell triggers.
Timeframe Safety Warning: Alerts if applied on timeframes higher than 15 minutes.
Ideal For:
Traders who want a locked, non-repainting EMA setup for multi-timeframe analysis and clear entry/exit signals based on mid-range EMA interaction.
Inputs:
Show/Hide arrows for EMA crosses
Show/Hide fill between EMAs
Show/Hide mid EMA line
Show/Hide buy/sell signals
Fill transparency adjustment
Malama's Quantum Swing Modulator# Multi-Indicator Swing Analysis with Probability Scoring
## What Makes This Script Original
This script combines pivot point detection with a **weighted scoring system** that dynamically adjusts indicator weights based on market regime (trending vs. ranging). Unlike standard multi-indicator approaches that use fixed weightings, this implementation uses ADX to detect market conditions and automatically rebalances the influence of RSI, MFI, and price deviation components accordingly.
## Core Methodology
**Dynamic Weight Allocation System:**
- **Trending Markets (ADX > 25):** Prioritizes momentum (50% weight) with reduced oscillator influence (20% each for RSI/MFI)
- **Ranging Markets (ADX < 25):** Emphasizes mean reversion signals (40% each for RSI/MFI) with no momentum bias
- **Price Wave Component:** Uses EMA deviation normalized by ATR to measure distance from central tendency
**Pivot-Based Level Analysis:**
- Detects swing highs/lows using configurable left/right lookback periods
- Maintains the most recent pivot levels as key reference points
- Calculates proximity scores based on current price distance from these levels
**Volume Confirmation Logic:**
- Defines "volume entanglement" when current volume exceeds SMA by user-defined factor
- Integrates volume confirmation into confidence scoring rather than signal generation
## Technical Implementation Details
**Scoring Algorithm:**
The script calculates separate bullish and bearish "superposition" scores using:
```
Bullish Score = (RSI_bull × weight) + (MFI_bull × weight) + (price_wave × weight × position_filter) + (momentum × weight)
```
Where:
- RSI_bull = 100 - RSI (inverted for oversold bias)
- MFI_bull = 100 - MFI (inverted for oversold bias)
- Position_filter = Only applies when price is below EMA for bullish signals
- Momentum component = Only active in trending markets
**Confidence Calculation:**
Base confidence starts at 25% and increases based on:
- Market regime alignment (trending/ranging appropriate conditions)
- Volume confirmation presence
- Oscillator extreme readings (RSI < 30 or > 70 in ranging markets)
- Price position relative to wave function (EMA)
**Probability Output:**
Final probability = (Base Score × 0.6) + (Proximity Score × 0.4)
This balances indicator confluence with proximity to identified levels.
## Key Differentiators
**vs. Standard Multi-Indicator Scripts:** Uses regime-based dynamic weighting instead of fixed combinations
**vs. Simple Pivot Indicators:** Adds quantified probability and confidence scoring to pivot levels
**vs. Basic Oscillator Combinations:** Incorporates market structure analysis through ADX regime detection
## Visual Components
**Wave Function Display:** EMA with ATR-based uncertainty bands for trend context
**Pivot Markers:** Clear visualization of detected swing highs and lows
**Analysis Table:** Real-time probability, confidence, and action recommendations for current pivot levels
## Practical Application
The dynamic weighting system helps avoid common pitfalls of multi-indicator analysis:
- Reduces oscillator noise during strong trends by emphasizing momentum
- Increases mean reversion sensitivity during sideways markets
- Provides quantified probability rather than subjective signal interpretation
## Important Limitations
- Requires sufficient historical data for pivot detection and volume calculations
- Probability scores are based on current market regime and may change as conditions evolve
- The scoring system is designed for confluence analysis, not standalone trading decisions
- Past probability accuracy does not guarantee future performance
## Technical Requirements
- Works on all timeframes but requires adequate lookback history
- Volume data required for entanglement calculations
- Best suited for liquid instruments where volume patterns are meaningful
This approach provides a systematic framework for evaluating swing trading opportunities while acknowledging the probabilistic nature of technical analysis.
Malama's KAYCAP Pre-Market Box# Pre-Market Single Candle Range Box
## What Makes This Script Original
While many scripts plot entire pre-market session ranges, this indicator focuses specifically on **a single user-defined candle** within the pre-market period rather than the entire session. This targeted approach allows traders to isolate the most relevant price action from a specific time (default: 4:00 AM EST) that often establishes key levels for the trading day.
## Core Methodology & Technical Implementation
**Single Candle Isolation:**
- Captures OHLC data from one specific minute within pre-market hours (user configurable)
- Differentiates between the candle's body (open/close range) and wicks (high/low extremes)
- Creates four distinct reference levels instead of traditional session high/low boxes
**Dual Box Structure:**
- **Inner Box (Body):** Plots the range between open and close prices of the target candle
- **Outer Boundaries:** Separately plots the high and low of that same candle
- **Visual Differentiation:** Uses different colors and line weights to distinguish body vs. wick levels
**Time-Specific Logic:**
The script uses precise time matching (`hour == boxHour and minute == boxMinute`) to capture data from exactly one candle, rather than aggregating an entire session. This creates four specific price levels:
- Box Top: Higher of open/close (body boundary)
- Box Bottom: Lower of open/close (body boundary)
- Box High: Candle high (wick extreme)
- Box Low: Candle low (wick extreme)
## Why This Approach Differs from Standard Session Boxes
**vs. Full Session Ranges:** Focuses on a single critical minute rather than entire pre-market period
**vs. Traditional S/R:** Creates both body and wick levels from one specific candle
**vs. Opening Range:** Uses pre-market data rather than regular session opening minutes
## Practical Application
The 4:00 AM EST default targets a time when institutional pre-market activity often establishes initial sentiment and key levels. By isolating this specific candle's range:
- **Body levels** often act as initial support/resistance during regular hours
- **Wick extremes** provide broader range boundaries for breakout analysis
- **Precise timing** allows focus on the most statistically relevant pre-market moment
## Technical Considerations
- Requires intraday timeframes (1-minute recommended) to capture specific candle data
- Time settings should match your broker's timezone for accurate candle selection
- Works best on liquid instruments where pre-market activity is meaningful
- The selected candle must exist in your data feed for the levels to plot
## Customization Options
All timing parameters are adjustable:
- Target candle hour and minute
- Pre-market session definition (for context)
- Visual styling for all four level types
This focused approach provides more granular analysis than broad session ranges while maintaining simplicity in execution.
AI Dynamic SR Trend Lines Enhanced# Dynamic Support/Resistance Lines Using Linear Regression
## What Makes This Script Original
This script differs from standard pivot-based support/resistance indicators by applying **linear regression analysis** to clusters of recent pivot points instead of simply connecting the last two pivots. While many scripts plot lines between individual swing points, this approach calculates the "line of best fit" through multiple recent pivots (3-5 points), creating statistically-derived trend lines that better represent the overall price trajectory.
## Core Methodology
**Pivot Collection & Filtering:**
- Detects swing highs and lows using configurable left/right lookback periods
- Applies ATR-based filtering to exclude minor pivots that don't represent significant price structure
- Uses angular filtering to reject excessively steep trend lines (over 45 degrees by default)
**Linear Regression Calculation:**
- Collects the most recent 2-5 valid pivot points (user configurable)
- Applies least-squares linear regression to find the optimal line through these points
- Updates dynamically as new pivots form, maintaining relevance to current market structure
**Enhancement Features:**
- Optional logarithmic price scaling for percentage-based analysis
- EMA confluence detection that increases line "strength" when trend lines align with moving averages
- Automatic line pruning when price moves significantly away (customizable ATR multiples)
- Visual strength indication through line thickness based on pivot count and confluence
## Key Differences from Standard Approaches
**vs. Simple Pivot Connections:** Uses statistical best-fit rather than arbitrary point-to-point lines
**vs. Fixed Trend Lines:** Dynamically adapts as new market structure develops
**vs. Manual Drawing:** Automatically identifies and plots the most statistically relevant levels
## Practical Application
The resulting support and resistance lines represent the mathematical trend through recent price structure rather than subjective line drawing. This creates more consistent and objective trend analysis, particularly useful for:
- Identifying key levels for entries/exits
- Confluence analysis when combined with other technical tools
- Systematic approach to trend line analysis
## Important Limitations
- Lines recalculate as new pivots form (this is intentional for dynamic adaptation)
- Requires sufficient pivot history to generate meaningful regression lines
- Should be used as part of comprehensive analysis, not as standalone signals
- Past performance of trend lines does not guarantee future effectiveness
## Technical Implementation Notes
The script uses arrays to maintain rolling collections of pivot points, applies mathematical linear regression formulas, and includes multiple filtering mechanisms to ensure only statistically significant levels are displayed. All visual elements and calculation parameters are fully customizable to suit different trading styles and timeframes.
[AlbaTherium] Wabi-Sabi Wyckoff Flow Structure Map MTF[1.0.42] Wabi-Sabi Wyckoff Flow Structure Map
Master the Hidden Geometry of Market Campaigns – Accumulation, Distribution, and the Laws That Govern Them
Introduction
The Wabi-Sabi Wyckoff Flow Structure Map is a software-engineered analytical framework that visualizes the flow of institutional market behavior through the lens of the Wyckoff Method. This tool automates the detection of trading ranges, maps the phases of accumulation/distribution, and extrapolates price objectives .
The Wabi-Sabi Wyckoff Flow Structure Map is a meticulous implementation of the principles of Richard D. Wyckoff , interpreted through the lens of market structure and volume dynamics. This tool aims to identify, contextualize, and map out accumulation and distribution zones by interpreting the composite operator's intended path in financial markets.
It is not merely an indicator-it is a structural compass, guiding you through the architecture of smart money campaigns.
Chapter 1: The Architecture of Market Campaigns
1.1 From Noise to Narrative
Markets do not move randomly. They are orchestrated campaigns-methodically executed by informed operators. The identifies these campaigns as they unfold across:
Accumulation
Markup
Distribution
Markdown
Each is grounded in Wyckoff’s structural logic and revealed in real time.
1.2 Who Is the Composite Operator, Composite Man?
The Composite Operator (CO), Composite Man (CM) represents dominant market participants-institutions with the capacity to engineer price movement. By dissecting trading ranges, the script deciphers their behavior through:
Event-based mapping (SC, ST, Spring, AR, UTAD, etc.)
Phase progression (Phase A to E)
PnF-based directional forecasting
The CO leaves footprints. This script reads them.
Chapter 2: Wyckoff’s Core Laws, Brought to Life
2.1 The Law of Supply and Demand
Every price bar reflects this law. The tool highlights where supply is absorbed and demand emerges, revealing the true balance of power behind the chart.
2.2 The Law of Cause and Effect
Accumulation and distribution ranges are not noise-they are preparation. By measuring their width, the script calculates PnF-based targets for the post-breakout phase, offering traders quantified projections rooted in structure.
2.3 The Law of Effort vs. Result
Effort = volume.
Result = price movement.
Discrepancies between the two-expose market turning points.
This script captures those moments within Wyckoff's structural context, not isolated volume spikes.
Chapter 3: Real-Time Interpretation of Trading Ranges
3.1 Automatic Schematic Mapping
The tool auto-generates Wyckoff structures:
Detects and maps Trading Ranges dynamically
Labels Wyckoff events (SC, ST, AR, Spring, UT, LPS, etc.)
Identifies current phase (Phase B, C, D, E) via real-time bias detection
3.1.1.Core Components
a. Structural Framing
The script autonomously detects the boundaries of a trading range (TR), guided by pivot highs and lows derived from Volume Spread Analysis (VSA) dynamics and price behavior.
b. Automatic Rally (AR) & Selling Climax (SC)
These foundational events are systematically computed and highlighted using volume-weighted price interaction. The Selling Climax defines the lower bound of the TR, while the Automatic Rally sets the resistance zone.
c. Secondary Tests (ST)
The algorithm traces the STs to validate demand/supply balance and the structural integrity of the TR. These are tagged with precision to avoid false positives.
d. Spring / Upthrust Actions
Wyckoffian springs and upthrusts are flagged using deviations below support (spring) or above resistance (upthrust) coupled with volume exhaustion or climax events.
e. Creek & Ice Visualization
Inspired by Wyckoff’s narrative metaphor, the script maps the 'Creek' (High of the Range flow) and 'Ice' (Low of the Range flow), guiding the observer through breakout or breakdown conditions.
f. Sign of Strength (SOS) / Sign of Weakness (SOW)
These turning points are confirmed via expansion in spread and volume. SOS is a bullish confirmation of accumulation resolution, while SOW indicates bearish continuation.
g. LPS & LPSY
The Last Point of Support (LPS) and Last Point of Supply (LPSY) are precisely mapped post-confirmation of breakout or breakdown. Their presence strengthens the bias of the ongoing structural phase.
h. Phase Annotation
Each zone within the TR is annotated based on Wyckoff’s five-phase logic (A to E). This includes climactic action in Phase A, testing in Phase B, spring/UTAD in Phase C, confirmation in Phase D, and exit in Phase E.
3.2 Multi-Timeframe Tracking
Observe the interplay of nested structures across several timeframes. Whether you’re tracking a micro accumulation on 1-min or macro distribution on the 1H, the script integrates both for a full-spectrum view.
3.3 Point-and-Figure Price Targeting
Using Wyckoff’s Law of Cause and Effect, the tool projects price targets based on the range width. Outputs are displayed directly on the chart, aiding in:
Profit-taking zones
Invalidations
R/R planning with structure-based confidence
Chapter 4: Applying Like a Wyckoffian
4.1 Configuration Best Practices
Timeframes: 1–5min for tactical intraday, 15min–4H for swing campaigns
Detection Radius: Control how deep the script searches for structural pivots
Modes: Choose between Delta (volume shifts) and Normal (price formations)
4.2 Dashboard & Event Tracker
The Bias Dashboard displays:
The current dominant phase (e.g. “Phase C Test” or “Late Phase D”)
Key events (AR, ST, Spring, LPS)
Whether current price action supports a continuation or Climax
4.3 Alerts and Customization
Configure alerts to monitor:
New TR detection across up to 6 timeframes
Key structural events like Spring, UTAD, or SOS
Completion of cause zones with target projection triggered
Chapter 5: Use Cases and Strategic Implementation
5.1 Spotting Reversals Before the Breakout
Use the script to:
Enter near Springs (accumulation) or UTADs (distribution)
Identify retests as Last Points of Support/Resistance
Confirm or invalidate breakout attempts using the schematic context
5.2 Confirming Institutional Engagement
Recognize institutional footprints through:
Multiple STs (Testing for supply)
Strong SOS, SOW / LPS combinations
Absence of follow-through = Absorption
The Flow Map helps distinguish retail chase from professional intent.
Conclusion
The Wabi-Sabi Wyckoff Flow Structure Map is an elite market structure decoder for traders who operate on logic, not emotion. Grounded in Wyckoff’s time-tested methodology and enhanced with modern automation, it transforms the invisible structure of price action into a readable, tradeable roadmap.
“Structure precedes movement. Those who read structure, anticipate motion. Those who chase motion, miss the meaning .
”
- A Wyckoffian Principle
This tool is for traders who understand that preparation is where profits are born-not during the move, but before it."
SigmoidCycle Oscillator [LuminoAlgo]Purpose:
The SineCycle Oscillator measures price momentum using sigmoid function mathematics (S-curve transformation) borrowed from neural network theory. It generates an oscillator that fluctuates around 1.0, identifying momentum shifts and potential reversal points.
Mathematical Foundation:
This indicator applies the sigmoid logistic function concept: y = 1/(1+e^-x) , which creates an S-shaped curve. In financial markets context, this transformation:
- Maps price changes to a bounded range (-1 to +1)
- Provides non-linear sensitivity (high near zero, low at extremes)
- Naturally filters outliers without lag penalty
Calculation Process:
1. Statistical Normalization: Price deviations are measured from a moving average baseline and scaled by recent volatility (standard deviation over N periods)
2. Sigmoid Transformation: Normalized values undergo S-curve transformation, which weights small movements linearly but compresses large movements logarithmically
3. Dual Timeframe Analysis:
• Short window: User-defined period (N)
• Long window: Double period (2N)
• Ratio calculation: Short sigmoid average ÷ Long sigmoid average
4. Volatility-Weighted Smoothing: Final values use exponential smoothing where the smoothing factor adjusts based on the coefficient of variation (volatility/mean ratio)
What Makes This Different:
Unlike linear momentum oscillators (RSI, Stochastic) that use fixed mathematical relationships, the sigmoid transformation creates variable sensitivity zones. This mimics how professional traders mentally weight price movements.
Trading Application:
Signal Types:
- Momentum: Green (>1.0) = bullish, Red (<1.0) = bearish
- Reversals: 1.0 line crosses with volume confirmation
- Divergence: Price makes new high/low, oscillator doesn't
- Exhaustion: Extended readings (>1.2 or <0.8) suggest overextension
Optimal Conditions:
- Works best: Trending markets with clear swings
- Avoid: Low volume, ranging markets under 1% daily movement
- Timeframes: 4H and above for reliability
Parameter Guidelines:
- Length 8-10: Day trading (expect more whipsaws)
- Length 14-20: Swing trading (balanced signals)
- Length 25-30: Position trading (fewer, stronger signals)
Limitations:
- Lag increases with higher length settings
- Can give false signals during news-driven spikes
- Requires additional confirmation in choppy markets
Trading Framework:
Based on momentum persistence theory - assumes trends continue until sigmoid curve flattens (indicating momentum exhaustion). The mathematical model captures both mean reversion (extreme readings) and trend following (mid-range readings) characteristics.
Kio IQ [TradingIQ]Introducing: “Kio IQ ”
Kio IQ is an all-in-one trading indicator that brings momentum, trend strength, multi-timeframe analysis, trend divergences, pullbacks, early trend shift signals, and trend exhaustion signals together in one clear view.
🔶 The Philosophy of Kio IQ
Markets move in trends—and capturing them reliably is the key to consistency in trading. Without a tool to see the bigger picture, it’s easy to mistake a pullback for a breakout, a fakeout for the real deal, or random market noise as a meaningful price move.
Kio IQ cuts through that random market noise—scanning multiple timeframes, analyzing short, medium, and long-term momentum, and telling you on the spot whether a move is strong, weak, a trap, or simply a small move within a larger trend.
With Kio IQ, price action reveals its next move.
You’ll instantly see:
Which way it’s pushing — up, down, or stuck in the middle.
How hard it’s pushing — from fading weakness to full-blown strength.
When the gears are shifting — early warnings, explosive moves, smart pullbacks, or signs it’s running out of steam.
🔶 Why This Matters
Markets move in phases—sometimes they’re powering in one direction, sometimes they’re slowing down, and sometimes they’re reversing.
Knowing which phase you’re in can help you:
Avoid chasing a move that’s about to run out of steam.
Jump on a move when it’s just getting started.
Spot pullbacks inside a bigger trend (good for entries).
See when different timeframes are all pointing the same way.
🔶 What Kio IQ Shows You
Simple color-coded phases: “Strong Up,” “Up,” “Weak Up,” “Weak Down,” “Down,” “Strong Down.”
Clear visual signals
Full Shift: Strong momentum in one direction.
Half Shift: Momentum is building but not full power yet.
Pullback Shift: A small move against the trend that may be ending.
Early Scout / Lookout: First hints of a possible shift.
Exhaustion: Momentum is very stretched and may slow down.
Divergences: When price moves one way but momentum moves the opposite way—often a warning of a change.
Multi-Timeframe Table: See the trend strength for multiple timeframes (5m, current, 30m, 4h, 1D, and optional 1W/1M) all in one place.
Trend Strength %: A single number that tells you how strong the trend is across all timeframes.
Optional meters: A “momentum bar” and “trend strength gauge” for quick checks.
🔶 How It Works Behind the Scenes
Kio IQ measures price movement in different “speeds”:
Slow view: Big picture trend.
Medium view: The main engine for detecting the current phase.
Fast view: Catches recent changes in momentum.
Super-fast view: Finds tiny pullbacks inside the bigger move.
It compares these views to decide whether the market is strong up, weak up, weak down, strong down, or in between. Then it blends data from multiple timeframes so you see the whole picture, not just the current chart.
🔶 What You’ll See on the Chart
🔷 Full Shift Oscillator (FSO)
The image above highlights the Full Shift Oscillator (FSO).
The FSO is the cornerstone of Kio IQ, delivering mid-term momentum analysis. Using a proprietary formula, it captures momentum on a smooth, balanced scale — responsive enough to avoid lag, yet stable enough to prevent excessive noise or false signals.
The Key Upside Level for the FSO is +20, while the Key Downside Level is -20.
The image above shows the FSO above +20 and below -20, and the corresponding price movement.
FSML above +20 confirms sustained upside momentum — the market is being driven by consistent, broad-based buying pressure, not just a price spike.
FSML below -20 confirms sustained downside momentum — sellers are firmly in control across the market.
We do not chase the first sudden price move. Entries are only considered when the market demonstrates persistence, not impulse.
🔷 Half Shift Oscillator (HSO)
The image above highlights the Half Shift Oscillator (HSO).
The HSO is the FSO’s wingman — faster, more reactive, and designed to catch the earliest signs of strength, weakness, or momentum shifts.
While HSO reacts first, it is not a standalone confirmation of a major momentum change or trade-worthy strength.
Using the same proprietary formula as the FSO but scaled down, the HSO delivers smooth, balanced short-term momentum analysis. It is more responsive than the FSO, serving as the scout that spots potential setups before the main signal confirms.
The Key Upside Level for the FSO is +4, while the Key Downside Level is -4.
🔷 PlayBook Strategy: Shift Sync
Shift Sync is a momentum alignment play that triggers when short-term and mid-term momentum lock into the same direction, signaling strong directional control.
🔹 UpShift Sync – Bullish Alignment
HSO > +4 – Short-term momentum is firmly bullish.
FSO > +20 – Mid-term momentum confirms the bullish bias.
When both thresholds are met, buyers are in control and price is primed for continuation higher.
🔹 DownShift Sync – Bearish Alignment
HSO < -4 – Short-term momentum is firmly bearish.
FSO < -20 – Mid-term momentum confirms the bearish bias.
When both thresholds are met, sellers dominate and price is primed for continuation lower.
Execution:
Look for an entry opportunity in the direction of the alignment when conditions are met.
Avoid choppy conditions where alignment is frequently lost.
Why It Works
Think of the market as a tug-of-war between traders on different timeframes. Short-term traders (captured by the HSO) are quick movers — scalpers, intraday players, and algos hunting immediate edge. Mid-term traders (captured by the FSO) are swing traders, funds, and institutions who move slower but carry more weight.
Most of the time, these groups pull in opposite directions, creating chop and fakeouts. But when they suddenly lean the same way, the rope gets yanked hard in one direction. That’s when momentum has the highest chance to drive price further with minimal resistance.
Shift Sync works because it isolates those rare moments when multiple market “tribes” agree on direction — and when they do, price doesn’t just move, it flies.
Best Market Conditions
Shift Sync works best when the higher timeframe trend (daily, weekly, or monthly) is moving in the same direction as the alignment. This higher timeframe confluence increases follow-through potential and reduces the likelihood of false moves.
The image above shows an example of an UpShift Sync signal where the momentum table shows that the 1D momentum is bullish.
The image above shows bonus confluence, where the 1M and 1W momentum are also bullish.
The image above shows an example of a DownShift Sync signal where the momentum table shows that the 1D momentum is bearish. Bonus confluence also exists, where the 1W and 1M chart are also bearish.
Common Mistakes
Chasing late signals – Avoid entering if the Shift Sync trigger has been active for a long time. Instead, wait for a Shift Sync Pullback to look for opportunities to join in the direction of the trend.
Ignoring higher timeframe bias – Taking Shift Sync setups against the daily, weekly, or monthly trend reduces follow-through potential and increases the risk of a failed move.
🔷 Micro Shift Oscillator (MSO)
The image above highlights the Micro Shift Oscillator (MSO)
The MSO is the finishing touch to the FSO and HSO — the fastest and most reactive of the three. It’s built to spot pullback opportunities when the FSO and HSO are aligned, helping traders join strong price moves at the right time.
The MSO may reveal the earliest signs of a momentum shift, but that’s not its primary role. Its purpose is to identify retracement and pullback opportunities within the overarching trend, allowing traders to join the move while momentum remains intact.
🔷 Playbook Strategy: Shift Sync Pullback
Key Levels:
MSO Upside Trigger: +3
MSO Downside Trigger: -3
🔹 UpShift Pullback
Momentum Confirmation:
FSO > +20 – Mid-term momentum is strongly bullish.
HSO > +4 – Short-term momentum confirms alignment with the FSO.
Pullback Trigger:
MSO ≤ -3 – Signals a short-term retracement within the ongoing bullish trend and marks the earliest re-entry opportunity.
Entry Zone:
The blue arrow on the top chart shows where momentum remains intact while price pulls back into a zone primed for a move higher.
Setup Validity: Both FSO and HSO must remain above their bullish thresholds during the pullback.
Invalid Example:
If either the FSO or HSO drop below their bullish thresholds, momentum alignment breaks. No trade is taken.
🔹 DownShift Pullback
Momentum Confirmation:
FSO < -20 – Mid-term momentum is strongly bearish.
HSO < -4 – Short-term momentum aligns with the FSO, confirming seller dominance.
Pullback Trigger:
MSO ≥ +3 – Indicates a short-term retracement against the bearish trend, pointing to possible short-entry opportunities.
Entry Zone:
The purple arrow on the top chart marks valid pullback conditions — all three oscillators meet their bearish thresholds, and price is positioned to continue lower.
Setup Validity: Both FSO and HSO must remain below their bearish thresholds during the pullback.
Invalid Example:
If either oscillator rises above the bearish threshold, momentum alignment is lost and the MSO signal is ignored.
Why It Works
Even in strong trends, price rarely moves in a straight line. Supply and demand dynamics naturally create retracements as traders take profits, bet on reversals, or hedge positions.
While many momentum traders fear these pullbacks, they’re often the fuel for the next leg of the move — offering a “second chance” to join the trend at a more favorable price.
The Shift Sync Pullback pinpoints moments when both short-term (HSO) and mid-term (FSO) momentum remain firmly aligned, even as price moves temporarily against the trend. This alignment suggests the retracement is a pause, not a reversal.
By entering during a controlled pullback, traders often secure better entries, tighter stops, and stronger follow-through potential when the trend resumes.
Best Market Conditions:
Works best when the higher timeframe (daily, weekly, or monthly) is trending in the same direction as the pullback setup.
Consistent momentum is ideal — avoid erratic, news-driven chop.
Following a recent breakout (Gate Breaker setup) when momentum is still fresh.
Common Mistakes
Ignoring threshold breaks – Entering when either HSO or FSO dips through their momentum threshold often leads to taking trades in weakening trends.
Trading against higher timeframe bias – A pullback against the daily or weekly trend is more likely to fail; use higher timeframe confluence as a filter.
🔷 Macro Shift Oscillator (MaSO)
The chart above shows the MaSO in isolation.
While the MaSO is not part of any active Kio IQ playbook strategies, it delivers the clearest view of the prevailing macro trend.
MaSO > 0 – Macro trend is bullish. Readings above +4 signal extreme bullish conditions.
MaSO < 0 – Macro trend is bearish. Readings below -4 signal extreme bearish conditions.
Use the MaSO for context, not entries — it frames the environment in which all other signals occur
🔷 Shift Gates – Kio IQ Momentum Barriers
The image above shows UpShift Gates.
UpShift Gates mark the highest price reached during periods when the FSO is above +20 — moments when mid-term momentum is firmly bullish and buyers are in control.
UpShift Gates are upside breakout levels — key swing highs formed before a pullback during periods of strong bullish momentum. When price reclaims an UpShift Gate with momentum confirmation, it signals a potential continuation of the uptrend.
The image above shows DownShift Gates.
DownShift Gates Mark The Lowest Price Reached During Periods When The FSO Is Below -20 — Moments When Mid-Term Momentum Is Firmly Bearish And Sellers Are In Control.
DownShift Gates are downside breakout levels — key swing lows formed before an upside pullback during periods of strong bearish momentum. When price reclaims a DownShift Gate with momentum confirmation, it signals a potential continuation of the downtrend.
🔷 Playbook Strategy: Gate Breakers
Core Rule:
Long signal when price decisively closes beyond an UpGate (for longs) or DownGate (for shorts). The breakout must show commitment — no wick-only tests.
🔹 UpGate Breaker (UpGate)
Trigger: Price closes above the UpShift Gate level.
Bonus Confluence: MaSO > 0 at the moment of the break — confirms that the macro trend bias is in favor of the breakout.
Invalidation: Avoid taking the signal if the gate level forms part of a DownShift Rift (bearish divergence) — this signals underlying weakness despite the break.
The chart above shows valid UpGate Breakers.
The chart above shows an invalidated UpGate Breaker setup.
🔹 DownGate Breaker (DownGate)
Trigger: Price closes below the DownShift Gate level.
Bonus Confluence: MaSO < 0 at the moment of the break — confirms that the macro trend bias is in favor of the breakdown.
Invalidation: Avoid taking the trade if the gate level forms part of an UpShift Rift (bullish divergence) — this signals underlying strength despite the break.
The chart above shows a valid DownGate Breaker.
Why It Works
Key swing levels like Shift Gates attract a high concentration of resting orders — stop losses from traders caught on the wrong side and breakout orders from momentum traders waiting for confirmation.
When price decisively clears a gate with a strong close, these orders trigger in quick succession, creating a burst of directional momentum.
Adding the MaSO filter ensures you’re breaking gates with the prevailing macro bias, improving the odds that the move will continue rather than stall.
The divergence-based invalidation rule (Rift filter) prevents entries when underlying momentum is moving in the opposite direction, helping avoid “fake breakouts” that trap traders.
Best Market Conditions:
Works best in markets with clear trend structure and visible Shift Gates (not during chop).
Strongest when higher timeframe (1D, 1W, 1M) momentum aligns with the breakout direction.
MaSO > 0 for bullish breakouts, MaSO < 0 for bearish breakouts
Most reliable after a period of consolidation near the gate, where pressure builds before the break.
Common Mistakes
Trading wick-only tests – A breakout without a decisive candle close beyond the gate often fails.
Ignoring MaSO bias – Taking a break in the opposite macro direction greatly reduces follow-through odds.
Skipping the Rift filter – Entering when the gate forms part of a divergence setup exposes you to higher reversal risk.
Chasing extended moves – If price is already far beyond the gate by the time you see it, risk/reward is poor; wait for the next setup or a retest.
🔷 Shift Rifts - Kio IQ Divergences
This chart shows an UpShift Rift — a bullish divergence where price action and momentum part ways, signaling a potential trend reversal or acceleration.
Setup:
Price Action: Price is marking lower lows, indicating short-term weakness.
FSO Reading: The Full Shift Oscillator (FSO) is marking higher lows over the same period, showing underlying momentum strengthening despite falling prices.
The rift between price and the FSO suggests selling pressure is losing force while buyers quietly regain control.
When confirmed by broader trend alignment in Kio IQ’s multi-timeframe momentum table, the UpShift Rift becomes a setup for a bullish move.
This chart shows a DownShift Rift — a bearish divergence where price action and momentum split, signaling a potential downside reversal.
Setup:
Price Action: Price is marking higher highs, suggesting continued strength on the surface.
FSO Reading: The Full Shift Oscillator (FSO) is marking lower highs over the same period, revealing weakening momentum beneath the price advance.
The rift between price and momentum signals that buying pressure is fading, even as price makes new highs. This disconnect often precedes a momentum shift in favor of sellers.
When aligned with multi-timeframe bearish signals in Kio IQ’s momentum table, the DownShift Rift becomes a strong setup for downside continuation or reversal.
🔷 Playbook Strategy: Rift Reversal
The Rift Reversal is a divergence-based reversal play that signals when momentum is fading and an trend reversal is likely. It’s designed to catch early turning points before the broader market catches on.
Trader’s Note:
This strategy is not intended for beginners — it requires confidence in reading divergence and trusting momentum shifts even when price action still appears weak. Best suited for traders experienced in managing reversals, as entries often occur before the broader market confirms the move.
🔹 UpRift Reversal
Core Setup:
Price Action – Forms a lower low.
Momentum Rift – The FSO forms a higher low, signaling bullish divergence and weakening selling pressure.
Trigger:
A confirmed UpRift Reversal signal is printed when:
Bullish Divergence is detected — price makes a new low, but the oscillator fails to confirm.
Momentum begins turning up from the divergence low (marked on chart as ⇝)
The image above shows a valid UpRift Reversal play.
🔹 DownRift Reversal
Core Setup:
Price Action – Forms a higher high.
Momentum Rift – The FSO forms a lower high, signaling bearish divergence and weakening buying pressure.
Trigger
A confirmed DownRift Reversal signal is printed when:
Bearish Divergence is detected — price makes a new high, but the oscillator fails to confirm.
Momentum begins turning down from the divergence high (marked on chart as ⇝).
Why It Works
Shift Rifts work because momentum often fades before a price reverses.
Price is the final scoreboard — it reflects what has already happened. Momentum, on the other hand, is a leading indicator of pressure. When the FSO begins to move in the opposite direction of price, it signals that the dominant side in the market is losing steam, even if the scoreboard hasn’t flipped yet.
In an UpShift Rift, sellers keep pushing price lower, but each push has less force — buyers are quietly building pressure under the surface.
In a DownShift Rift, buyers keep marking new highs, but they’re spending more effort for less result — sellers are starting to take control.
These disconnects happen because large participants often scale into or out of positions gradually, creating momentum shifts before price reflects it. Shift Rifts capture those turning points early.
Best Market Conditions:
Best in markets that have been trending strongly but are starting to show signs of exhaustion.
Works well after a prolonged move into key support/resistance, where large players may take profits or reverse positions.
Higher win potential when the Rift aligns with higher timeframe momentum bias in Kio IQ’s multi-timeframe table.
Common Mistakes
Forcing Rifts in choppy markets – In sideways chop, small oscillations can look like divergences but lack conviction.
Ignoring multi-timeframe bias – Trading an UpShift Rift when higher timeframes are strongly bearish (or vice versa) reduces follow-through odds.
Entering too early – Divergences can extend before reversing; wait for momentum to confirm a turn (⇝) before making a trading decision.
Confusing normal pullbacks with Rifts – Not every dip in momentum is a divergence; the Rift requires a clear and opposing trend between price and FSO.
🔷 Shift Count – Momentum Stage Tracker
Purpose:
Shift Count measures how far a bullish or bearish push has progressed, from its first spark to potential exhaustion.
It tracks momentum in defined steps so traders can instantly gauge whether a move is just starting, picking up steam, fully extended, or at risk of reversing.
How It Works
Bullish Momentum:
Start (1–2) → New momentum emerging, early entry window.
Acceleration (3–4) → Momentum in full swing, best for holding or adding to a position.
Extreme Bullish Momentum / Final Stages (5) → Watch for signs of reversal or take partial profits.
Exhaust – Can only occur after 5 is reached, signaling that the rally may be losing steam.
Bearish Momentum:
Start (-1 to -2) → New selling pressure emerging.
Acceleration (-3 to -4) → Bear trend accelerating.
Extreme Bearish Momentum / Final Stages (-5) → Watch for reversal or scale out.
Exhaust – Can only occur after -5 is reached, signaling that the sell-off may be running out of force.
The chart above shows a full 5-UpShift count.
The chart above shows a full 5-DownShift count.
Why It’s Useful
Markets often move in momentum “steps” before reversing or taking a breather.
Shift Count makes these steps visible, helping traders:
Spot the early stages of a potential move.
Identify when a move is picking up steam.
Identify when a move is mature and vulnerable to reversal.
Combine with other Kio IQ strategies for better-timed entries and exits.
Why This Works
It’s visually obvious where you are in the momentum cycle without overthinking.
You can build rules like:
Only enter in Start phase when higher timeframe agrees.
Manage positions aggressively once in Acceleration phase.
Be ready to exit or fade in Exhaust phase.
Best Market Conditions
Trending markets where pullbacks are shallow.
Works best when combined with Shift Sync Pullback or Gate Breaker triggers to confirm timing.
Higher timeframe direction confluence.
Common Mistakes
Treating Exhaust as always a reversal — sometimes strong markets push past 5/-5 multiple times.
Ignoring higher timeframe bias — a “Start” on a 1-minute chart against a strong daily trend is much riskier.
🔷 Playbook Strategy: Exhaust Flip
Core idea: When Shift Count reaches 5 (or -5) and then prints Exhaust, momentum has likely climaxed, whether temporarily or leading to a full reversal. We take the first qualified signal against the prior move.
Trader’s Note:
This strategy is not intended for beginners — it requires confidence in trusting momentum shifts even when price action still appears strong. Best suited for traders experienced in managing reversals, as entries often occur before the broader market confirms the move.
🔹 UpExhaust Flip (fade a bullish run)
Setup:
Shift Count hits 5, then an Exhaust print occurs.
Invalidation
The local high is broken to the upside.
The chart above explains the UpExhaust Flip strategy in greater detail.
🔹 DownExhaust Flip (fade a bearish run)
Setup:
Shift Count hits -5, then an Exhaust print occurs.
Invalidation
The local low is broken to the downside.
The chart above explains the DownExhaust Flip strategy in greater detail.
Bonus Confluence (optional, not required)
Rift assist: An UpShift Rift (for longs) or DownShift Rift (for shorts) near Exhaust strengthens the flip.
MaSO context: Neutral or opposite-leaning MaSO helps. Avoid flips straight against a strong MaSO bias unless you have a structure break.
Why It Works
Exhaust marks climax behavior: the prior side has pushed hard, then failed to extend after meeting significant pushback. Liquidity gets thin at the edges; aggressive profit-taking meets early contrarians. A small confirmation (micro structure break or HSO turn) is often enough to flip the tape for a snapback.
Best Market Conditions
After extended, one-sided runs (multiple Shift Count steps without meaningful pullbacks).
Near Shift Gates or obvious swing extremes where trapped orders cluster.
When higher-timeframe momentum is neutral or softening (you’re fading the last thrust of a decisive move, not a fresh trend).
Common Mistakes
Fading too early: Taking the trade at 5 without waiting for the Exhaust.
Fading freight trains: Fighting a fresh Shift Sync in the same direction right after Exhaust (often just a pause).
No structure reference: Entering without a clear micro swing to anchor risk.
🔷 MTF Shift Table
The MTF Shift Table table provides a compact, multi-timeframe view of market momentum shifts. Each cell represents the current shift count within a given timeframe, while the classification label indicates whether momentum is strong, weak, or normal.
The chart above further outlines the MTF Shift Table.
Why It Works
Markets rarely move in a perfectly linear fashion — momentum develops, stalls, and transitions at different speeds across different timeframes. This table allows you to:
See momentum alignment at a glance – If multiple higher and lower timeframes show a sustained shift count in the same direction, the move has greater structural support.
Spot divergences early – A shorter timeframe reversing against a longer-term sustained count can warn of potential pullbacks or trend exhaustion before price confirms.
Identify “momentum stacking” opportunities – When shift counts escalate across timeframes in sequence, it often signals a stronger and more durable move.
Avoid false enthusiasm – A single timeframe spike without agreement from other periods may be noise rather than genuine momentum.
The Trend Score provides a concise, at-a-glance evaluation of an asset’s directional strength across multiple timeframes. It distills complex momentum and Shift data into a single, easy-to-read metric, allowing traders to quickly determine whether the prevailing conditions favor bullish or bearish continuation. The Trend Scale scales from -100 to 100.
How to Use It in Practice
Trend Confirmation – Confirm that your intended trade direction is backed by multiple timeframes maintaining consistent momentum.
Risk Timing – Reduce position size or take partial profits when lower timeframes begin shifting against the dominant momentum classification.
Multi-timeframe Confluence – Combine with other system signals (e.g., FSO, HSO) for higher-probability entries.
This table effectively turns a complex multi-timeframe read into a single, glanceable heatmap of momentum structure, enabling quicker and more confident decision-making.
The MTF Shift Table is the confluence backbone of every playbook strategy for Kio IQ.
🔷 Momentum Meter
The Momentum Meter is a composite gauge built from three of Kio IQ’s core momentum engines:
HSO – Short-term momentum scout
FSO – Mid-term momentum backbone
MaSO – Macro trend context
By combining these three readings, the meter provides the most strict and lagging momentum classification in Kio IQ.
It only flips direction when a composite score of all three oscillators reach defined thresholds, filtering out short-lived counter-moves and false starts.
Why It Works
Many momentum tools flip too quickly — reacting to short-lived spikes that don’t represent real directional commitment. The Momentum Meter avoids this by requiring alignment across short, mid, and macro momentum engines before it shifts bias.
This triple-confirmation rule filters out noise, catching only those moments when traders of all speeds — scalpers, swing traders, and long-term participants — are leaning in the same direction. When that happens, price movement tends to be more sustained and less prone to immediate reversal.
In other words, the Momentum Meter doesn’t just tell you “momentum looks good” — it tells you momentum looks good to everyone who matters, across all horizons.
How It Works
Blue = All three engines align bullish.
Pink = All three engines align bearish.
The meter ignores smaller pullbacks or temporary oscillations that might flip the faster indicators — it waits for total alignment before changing state.
Because of this strict confirmation requirement, the Momentum Meter reacts slower but delivers higher-conviction shifts.
How to Interpret Readings
Blue (Bullish Alignment):
Sustained buying pressure across short, mid, and macro views. Often marks the “full confirmation” stage of a move.
Pink (Bearish Alignment):
Sustained selling pressure across all views. Confirms sellers are in control.
Practical Uses
Trend Followers – Use as a “stay-in” confirmation once a position is already open.
Swing Traders – Great for filtering out low-conviction setups; if the Momentum Meter disagrees with your intended direction, conditions aren’t fully aligned.
Confluence and Direction Filter – The Momentum Meter can be used as a form of confluence i.e. blue = longs only, pink = shorts only.
Limitations
Will always turn after the faster oscillators (HSO/MSO). This is intentional.
Works best in trending markets — in choppy conditions it may lag shifts significantly.
Should be used as a bias filter, not a standalone entry signal.
🔷 Trend Strength Meter
The Trend Strength Meter is a compact visual gauge that scores the current trend’s strength on a scale from -5 to +5:
+5 = Extremely strong bullish trend
0 = Neutral, no clear trend
-5 = Extremely strong bearish trend
This is an optional tool in Kio IQ — designed for quick reference rather than as a primary trading trigger.
Why it works
Single-indicator trend reads can be misleading — they might look strong on one metric while quietly weakening on another. The Trend Strength Meter solves this by blending multiple inputs (momentum alignment, structure persistence, and multi-timeframe data) into one composite score.
This matters because trend health isn’t just about direction — it’s about persistence. A +5 or -5 score means the market is not only trending but holding that trend with structural support across multiple timeframes.
By tracking both direction and staying power, the Trend Strength Meter flags when a move is at risk of fading before price action fully confirms it — giving you a head start on adjusting your position or taking profits.
How It Works
The Trend Strength Meter evaluates multiple market inputs — including momentum alignment, price structure, and persistence — to assign a numeric value representing how firmly the current move is holding.
The scoring logic:
Positive values indicate bullish conditions.
Negative values indicate bearish conditions.
Higher magnitude (closer to ±5) = stronger conviction in that direction.
Values near zero suggest the market is in a transition or range.
How to Interpret Readings
+4 to +5 (Strong Up) – Trend is well-established, often with multi-timeframe agreement.
+1 to +3 (Up) – Bullish bias present, but not at maximum conviction.
0 (Neutral) – No dominant trend; could be consolidation or pre-shift phase.
-1 to -3 (Down) – Bearish bias present but moderate.
-4 to -5 (Strong Down) – Trend is firmly bearish, with consistent downside momentum.
Why It Works
A single timeframe or momentum reading can give a false sense of trend health.
The Trend Strength Meter aggregates multiple layers of market data into one simplified score, making it easy to see whether a move has the underlying support to continue — or whether it’s more likely to stall.
Because the score considers both direction and persistence, it can flag when a move is losing strength even before price structure fully shifts.
🔷 Kio IQ – Supplemental Playbook Strategies
These phases are part of the Kio IQ Playbook—situational tools that can help you anticipate potential momentum changes.
While they can be useful for planning and tactical adjustments, they are not primary trade triggers and should be treated as early, lower-conviction cues.
🔹 1. Scouting Phase (Light Early Cue)
Purpose: Provide the earliest possible hint that momentum may be shifting.
Upshift Trigger: FSO crosses above the 0 line.
Downshift Trigger: FSO crosses below the 0 line.
Why It Works
The 0 line in the Full Shift Oscillator (FSO) acts as a neutral momentum boundary.
When the FSO moves above 0, it suggests that medium-term momentum has shifted to bullish territory.
When it moves below 0, it suggests that medium-term momentum has shifted to bearish territory.
This crossover is often the first measurable sign of a momentum reversal or acceleration, well before slower indicators confirm it.
Think of it as "momentum poking its head above water"—you’re spotting the change before it becomes obvious on price alone.
Best Use
Works best when confirmed later by Lookout Phase or other primary Kio IQ signals.
Ideal for scouting in anticipation of potential opportunities.
Helpful when monitoring multiple assets and you want a quick filter for shifts worth watching.
Can act as a trade trigger when the MTF Shift Table shows confluence (i.e., UpShift Scouting Signal + Bullish MTF Table + High Trend Strength Score).
Common Mistakes
Acting on Scouting Phase signals against the MTF Shift Table as a stand-alone trade trigger. Without higher timeframe alignment or additional confirmation, many Scouting Phase crossovers can fade quickly or reverse, leading to premature entries.
Ignoring market context
A bullish Scouting Phase in a strong downtrend can easily fail.
Always check higher timeframe trend alignment.
Overreacting to noise: On lower timeframes, small fluctuations can create false scouting signals.
Best Practices
Filter with trend: Only act on Scouting Phases that align with the dominant higher timeframe trend.
Watch volatility: In low-volatility conditions, false scouting triggers are more likely.
🔹 2. Lookout Phase (Early Momentum Alert)
Purpose:
The Lookout Phase signals an early alert that momentum is potentially strengthening in a given direction. It’s more meaningful than the Scouting Phase, but still considered a preliminary cue.
Triggers:
Upshift: FSO crosses above the HSO.
Downshift: FSO crosses below the HSO.
Why It Works:
The Lookout Phase is designed to identify moments when mid-term momentum (FSO) overtakes short-term momentum (HSO). Since the FSO is smoother and reacts more gradually, its crossover of the faster-reacting HSO can indicate a shift from short-lived fluctuations to a more sustained directional move.
This makes it a valuable early read on momentum transitions—especially when supported by higher-timeframe context.
Best Practices:
Always check the MTF Shift Table for higher-timeframe alignment before acting on a Lookout Phase signal.
Look for confluence with the Momentum Meter
Treat Lookout Phase entries as probing positions—small, exploratory trades that can be scaled into if follow-through develops.
Common Mistakes:
Treating Lookout Phase signals as a definitive trade trigger without context
Entering solely on a Lookout Phase crossover, without considering the MTF Shift Table or broader market structure, can result in chasing short-lived momentum bursts that fail to follow through.
Ignoring prevailing higher-timeframe momentum
Trading a Lookout Phase signal that is counter to the dominant trend or higher-timeframe bias increases the risk of whipsaws and false moves.
🔶 Summary
Kio IQ is an all-in-one trading indicator that combines momentum, trend strength, multi-timeframe analysis, divergences, pullbacks, and exhaustion alerts into a clear, structured view. It helps traders cut through market noise by showing whether a move is strong, weak, a trap, or simply part of a larger trend. With tools like the Full Shift Oscillator, Multi-Timeframe Shift Table, Shift Gates, and Rift Divergences, Kio IQ simplifies complex market behavior into easy-to-read signals. It’s designed to help traders spot early shifts, align with momentum, and recognize when trends are building or losing steam—all in one place.
Smarter Money Concepts - Wyckoff Springs & Upthrusts [PhenLabs]📊Smarter Money Concepts - Wyckoff Springs & Upthrusts
Version: PineScript™v6
📌Description
Discover institutional manipulation in real-time with this advanced Wyckoff indicator that detects Springs (accumulation phases) and Upthrusts (distribution phases). It identifies when price tests support or resistance on high volume, followed by a strong recovery, signaling potential reversals where smart money accumulates or distributes positions. This tool solves the common problem of missing these subtle phase transitions, helping traders anticipate trend changes and avoid traps in volatile markets.
By combining volume spike detection, ATR-normalized recovery strength, and a sigmoid probability model, it filters out weak signals and highlights only high-confidence setups. Whether you’re swing trading or day trading, this indicator provides clear visual cues to align with institutional flows, improving entry timing and risk management.
🚀Points of Innovation
Sigmoid-based probability threshold for signal filtering, ensuring only statistically significant Wyckoff patterns trigger alerts
ATR-normalized recovery measurement that adapts to market volatility, unlike static recovery checks in traditional indicators
Customizable volume spike multiplier to distinguish institutional volume from retail noise
Integrated dashboard legend with position and size options for personalized chart visualization
Hidden probability plots for advanced users to analyze underlying math without chart clutter
🔧Core Components
Support/Resistance Calculator: Scans a user-defined lookback period to establish dynamic levels for Spring and Upthrust detection
Volume Spike Detector: Compares current volume to a 10-period SMA, multiplied by a configurable factor to identify significant surges
Recovery Strength Analyzer: Uses ATR to measure price recovery after breaks, normalizing for different market conditions
Probability Model: Applies sigmoid function to combine volume and recovery data, generating a confidence score for each potential signal
🔥Key Features
Spring Detection: Spots accumulation when price dips below support but recovers strongly, helping traders enter longs at potential bottoms
Upthrust Detection: Identifies distribution when price spikes above resistance but falls back, alerting to possible short opportunities at tops
Customizable Inputs: Adjust lookback, volume multiplier, ATR period, and probability threshold to match your trading style and market
Visual Signals: Clear + (green) and - (red) labels on charts for instant recognition of accumulation and distribution phases
Alert System: Triggers notifications for signals and probability thresholds, keeping you informed without constant monitoring
🎨Visualization
Spring Signal: Green upward label (+) below the bar, indicating strong recovery after support break for accumulation
Upthrust Signal: Red downward label (-) above the bar, showing failed breakout above resistance for distribution
Dashboard Legend: Customizable table explaining signals, positioned anywhere on the chart for quick reference
📖Usage Guidelines
Core Settings
Support/Resistance Lookback
Default: 20
Range: 5-50
Description: Sets bars back for S/R levels; lower for recent sensitivity, higher for stable long-term zones – ideal for spotting Wyckoff phases
Volume Spike Multiplier
Default: 1.5
Range: 1.0-3.0
Description: Multiplies 10-period volume SMA; higher values filter to significant spikes, confirming institutional involvement in patterns
ATR for Recovery Measurement
Default: 5
Range: 2-20
Description: ATR period for recovery strength; shorter for volatile markets, longer for smoother analysis of post-break recoveries
Phase Transition Probability Threshold
Default: 0.9
Range: 0.5-0.99
Description: Minimum sigmoid probability for signals; higher for strict filtering, ensuring only high-confidence Wyckoff setups
Display Settings
Dashboard Position
Default: Top Right
Range: Various positions
Description: Places legend table on chart; choose based on layout to avoid overlapping price action
Dashboard Text Size
Default: Normal
Range: Auto to Huge
Description: Adjusts legend text; larger for visibility, smaller for minimal space use
✅Best Use Cases
Swing Trading: Identify Springs for long entries in downtrends turning to accumulation
Day Trading: Catch Upthrusts for short scalps during intraday distribution at resistance
Trend Reversal Confirmation: Use in conjunction with other indicators to validate phase shifts in ranging markets
Volatility Plays: Spot signals in high-volume environments like news events for quick reversals
⚠️Limitations
May produce false signals in low-volume or sideways markets where volume spikes are unreliable
Depends on historical data, so performance varies in unprecedented market conditions or gaps
Probability model is statistical, not predictive, and cannot account for external factors like news
💡What Makes This Unique
Probability-Driven Filtering: Sigmoid model combines multiple factors for superior signal quality over basic Wyckoff detectors
Adaptive Recovery: ATR normalization ensures reliability across assets and timeframes, unlike fixed-threshold tools
User-Centric Design: Tooltips, customizable dashboard, and alerts make it accessible yet powerful for all trader levels
🔬How It Works
Calculate S/R Levels:
Uses the highest high and the lowest low over the lookback period to set dynamic zones
Establishes baseline for detecting breaks in Wyckoff patterns
Detect Breaks and Recovery:
Checks for price breaking support/resistance, then recovering on volume
Measures recovery strength via ATR for volatility adjustment
Apply Probability Model:
Combines volume spike and recovery into a sigmoid function for confidence score
Triggers signal only if above threshold, plotting visuals and alerts
💡Note:
For optimal results, combine with price action analysis and test settings on historical charts. Remember, Wyckoff patterns are most effective in trending markets – use lower probability thresholds for practice, then increase for live trading to focus on high-quality setups.
Live Trading Metrics DashboardReal-Time Trading Data Table for Chart Analysis
This clean and professional dashboard displays essential trading metrics directly on your chart in an easy-to-read table format. Perfect for traders who need quick access to key volatility and momentum data without cluttering their chart with multiple indicators.
Key Metrics Displayed:
IBD Relative Strength (RS):
Professional Formula: Uses Investor's Business Daily methodology
Multi-Timeframe Analysis: Weighted calculation across 3, 6, 9, and 12-month periods
Performance Indicator: Shows how the instrument performs relative to its historical price action
Real-Time Updates: Values update with each bar for current market conditions
1.5 ATR (Average True Range):
Volatility Measurement: 14-period ATR multiplied by 1.5 for extended range analysis
Stop-Loss Placement: Ideal for setting dynamic stop-loss levels
Risk Management: Helps determine appropriate position sizing based on volatility
Breakout Targets: Useful for setting profit targets on breakout trades
1.5 ATR Percentage:
Relative Volatility: Shows 1.5 ATR as a percentage of current price
Cross-Asset Comparison: Enables volatility comparison across different instruments
Position Sizing: Helps calculate risk per trade as percentage of price
Market Context: Understand volatility relative to instrument value
How to Interpret:
Positive IBD RS: Instrument showing strength relative to historical performance
Negative IBD RS: Instrument showing weakness relative to historical performance
Higher ATR Values: Increased volatility, wider stops needed
Higher ATR %: Greater relative volatility for the instrument's price level
Perfect For:
Day traders needing quick volatility reference
Swing traders using IBD methodology
Position traders managing risk with ATR-based stops
Any trader wanting clean, organized data display
Average True Ranges with IBD RSAdvanced ATR Analysis with IBD Relative Strength
This comprehensive indicator combines Average True Range (ATR) analysis with IBD (Investor's Business Daily) Relative Strength calculation, providing both volatility measurement and momentum analysis in one powerful tool.
Key Features:
ATR Analysis:
Standard ATR: Customizable period (default 14) with multiple smoothing options
1.5x ATR: Extended range for wider stop-loss and target calculations
Smoothing Options: Choose between RMA, SMA, EMA, or WMA for ATR calculation
Customizable Colors: Distinct colors for easy visual identification
IBD Relative Strength:
Professional RS Formula: Uses the same calculation method as Investor's Business Daily
Multi-Timeframe Analysis: Compares current price to 3, 6, 9, and 12-month performance
Weighted Calculation: 40% weight on 3-month, 20% each on 6, 9, and 12-month performance
Zero-Based Scale: Values above 0 indicate outperformance, below 0 indicate underperformance
Trading Applications:
Volatility-Based Stops: Use ATR and 1.5x ATR for dynamic stop-loss placement
Position Sizing: ATR helps determine appropriate position size based on volatility
Relative Strength Analysis: IBD RS identifies stocks with superior momentum
Market Timing: High RS values often precede strong price moves
Risk Management: Combine volatility (ATR) with momentum (RS) for comprehensive analysis
Technical Details:
ATR Calculation: True Range smoothed over selected period with chosen method
IBD RS Formula: (40% × 3M) + (20% × 6M) + (20% × 9M) + (20% × 12M) - 100
Display: Separate pane indicator with customizable colors for each component
How to Interpret:
High ATR: Increased volatility, wider stops needed
Low ATR: Reduced volatility, tighter stops possible
Positive IBD RS: Stock outperforming market over measured periods
Negative IBD RS: Stock underperforming market over measured periods
Customizable Parameters:
ATR calculation length
Smoothing method for ATR
Individual colors for ATR, 1.5x ATR, and IBD RS lines
Perfect for swing traders and position traders who want to combine volatility analysis with relative strength momentum in their decision-making process. Particularly useful for stock selection and risk management.
Market Structure: HH/HL/LH/LL (v6, simple)What it does
Labels swing High/Low and classifies structure as HH / HL / LH / LL after confirmation.
Uses confirmed fractals (pivothigh/pivotlow) → no repaint after confirmation (there is a right-bar confirmation delay).
Optional swing connectors (lines), optional plain H/L when structure label is not applicable.
Plots last confirmed High/Low levels as reference.
Alerts when a new HH/HL/LH/LL is formed.
How it works
Swings are detected with ta.pivothigh() / ta.pivotlow() using user-defined left and right.
A pivot is confirmed only after right bars on the right—this is the only delay. Once confirmed, the label does not repaint.
Inputs
Left bars & Right bars – fractal sensitivity.
Connect swings with lines – draw lines between consecutive swings.
Show bullish (HH/HL) / Show bearish (LH/LL) – filter what to display.
Show plain H/L – draw H/L when classification is not HH/HL/LH/LL yet.
Recommended settings
1H–4H: left=2, right=2 (responsive).
1D+: left=3, right=3 (cleaner swing map).
Alerts provided
HH formed – new Higher High confirmed.
HL formed – new Higher Low confirmed.
LH formed – new Lower High confirmed.
LL formed – new Lower Low confirmed.
Use them to automate structure tracking or feed your strategy rules.
Tips
Trend up: a sequence of HH + HL; Trend down: LH + LL.
Combine with VWAP/EMA, liquidity zones, or volume/CVD to avoid chasing late signals.
The script is intentionally simple and lightweight; BOS/CHoCH can be added in a future update.
Limitations / Notes
Because the tool relies on confirmed pivots, signals are delayed by right bars.
This is not financial advice and not a buy/sell system on its own.
Changelog
v1.0 – Initial public release (Pine v6). Structure labels, swing connectors, last levels, and alert set.
Keywords
market structure, hh hl lh ll, swing, fractal, pivothigh, pivotlow, trend, structure labels, price action
Auto-Fit Growth Trendline# **Theoretical Algorithmic Principles of the Auto-Fit Growth Trendline (AFGT)**
## **🎯 What Does This Algorithm Do?**
The Auto-Fit Growth Trendline is an advanced technical analysis system that **automates the identification of long-term growth trends** and **projects future price levels** based on historical cyclical patterns.
### **Primary Functionality:**
- **Automatically detects** the most significant lows in regular periods (monthly, quarterly, semi-annually, annually)
- **Constructs a dynamic trendline** that connects these historical lows
- **Projects the trend into the future** with high mathematical precision
- **Generates Fibonacci bands** that act as dynamic support and resistance levels
- **Automatically adapts** to different timeframes and market conditions
### **Strategic Purpose:**
The algorithm is designed to identify **fundamental value zones** where price has historically found support, enabling traders to:
- Identify optimal entry points for long positions
- Establish realistic price targets based on mathematical projections
- Recognize dynamic support and resistance levels
- Anticipate long-term price movements
---
## **🧮 Core Mathematical Foundations**
### **Adaptive Temporal Segmentation Theory**
The algorithm is based on **dynamic temporal partition theory**, where time is divided into mathematically coherent uniform intervals. It uses modular transformations to create bijective mappings between continuous timestamps and discrete periods, ensuring each temporal point belongs uniquely to a specific period.
**What does this achieve?** It allows the algorithm to automatically identify natural market cycles (annual, quarterly, etc.) without manual intervention, adapting to the inherent periodicity of each asset.
The temporal mapping function implements a **discrete affine transformation** that normalizes different frequencies (monthly, quarterly, semi-annual, annual) to a space of unique identifiers, enabling consistent cross-temporal comparative analysis.
---
## **📊 Local Extrema Detection Theory**
### **Multi-Point Retrospective Validation Principle**
Local minima detection is founded on **relative extrema theory with sliding window**. Instead of using a simple minimum finder, it implements a cross-validation system that examines the persistence of the extremum across multiple historical periods.
**What problem does this solve?** It eliminates false minima caused by temporal volatility, identifying only those points that represent true historical support levels with statistical significance.
This approach is based on the **statistical confirmation principle**, where a minimum is only considered valid if it maintains its extremum condition during a defined observation period, significantly reducing false positives caused by transitory volatility.
---
## **🔬 Robust Interpolation Theory with Outlier Control**
### **Contextual Adaptive Interpolation Model**
The mathematical core uses **piecewise linear interpolation with adaptive outlier correction**. The key innovation lies in implementing a **contextual anomaly detector** that identifies not only absolute extreme values, but relative deviations to the local context.
**Why is this important?** Financial markets contain extreme events (crashes, bubbles) that can distort projections. This system identifies and appropriately weights them without completely eliminating them, preserving directional information while attenuating distortions.
### **Implicit Bayesian Smoothing Algorithm**
When an outlier is detected (deviation >300% of local average), the system applies a **simplified Kalman filter** that combines the current observation with a local trend estimation, using a weight factor that preserves directional information while attenuating extreme fluctuations.
---
## **📈 Stabilized Extrapolation Theory**
### **Exponential Growth Model with Dampening**
Extrapolation is based on a **modified exponential growth model with progressive dampening**. It uses multiple historical points to calculate local growth ratios, implements statistical filtering to eliminate outliers, and applies a dampening factor that increases with extrapolation distance.
**What advantage does this offer?** Long-term projections in finance tend to be exponentially unrealistic. This system maintains short-to-medium term accuracy while converging toward realistic long-term projections, avoiding the typical "exponential explosions" of other methods.
### **Asymptotic Convergence Principle**
For long-term projections, the algorithm implements **controlled asymptotic convergence**, where growth ratios gradually converge toward pre-established limits, avoiding unrealistic exponential projections while preserving short-to-medium term accuracy.
---
## **🌟 Dynamic Fibonacci Projection Theory**
### **Continuous Proportional Scaling Model**
Fibonacci bands are constructed through **uniform proportional scaling** of the base curve, where each level represents a linear transformation of the main curve by a constant factor derived from the Fibonacci sequence.
**What is its practical utility?** It provides dynamic resistance and support levels that move with the trend, offering price targets and profit-taking points that automatically adapt to market evolution.
### **Topological Preservation Principle**
The system maintains the **topological properties** of the base curve in all Fibonacci projections, ensuring that spatial and temporal relationships are consistently preserved across all resistance/support levels.
---
## **⚡ Adaptive Computational Optimization**
### **Multi-Scale Resolution Theory**
It implements **automatic multi-resolution analysis** where data granularity is dynamically adjusted according to the analysis timeframe. It uses the **adaptive Nyquist principle** to optimize the signal-to-noise ratio according to the temporal observation scale.
**Why is this necessary?** Different timeframes require different levels of detail. A 1-minute chart needs more granularity than a monthly one. This system automatically optimizes resolution for each case.
### **Adaptive Density Algorithm**
Calculation point density is optimized through **adaptive sampling theory**, where calculation frequency is adjusted according to local trend curvature and analysis timeframe, balancing visual precision with computational efficiency.
---
## **🛡️ Robustness and Fault Tolerance**
### **Graceful Degradation Theory**
The system implements **multi-level graceful degradation**, where under error conditions or insufficient data, the algorithm progressively falls back to simpler but reliable methods, maintaining basic functionality under any condition.
**What does this guarantee?** That the indicator functions consistently even with incomplete data, new symbols with limited history, or extreme market conditions.
### **State Consistency Principle**
It uses **mathematical invariants** to guarantee that the algorithm's internal state remains consistent between executions, implementing consistency checks that validate data structure integrity in each iteration.
---
## **🔍 Key Theoretical Innovations**
### **A. Contextual vs. Absolute Outlier Detection**
It revolutionizes traditional outlier detection by considering not only the absolute magnitude of deviations, but their relative significance within the local context of the time series.
**Practical impact:** It distinguishes between legitimate market movements and technical anomalies, preserving important events like breakouts while filtering noise.
### **B. Extrapolation with Weighted Historical Memory**
It implements a memory system that weights different historical periods according to their relevance for current prediction, creating projections more adaptable to market regime changes.
**Competitive advantage:** It automatically adapts to fundamental changes in asset dynamics without requiring manual recalibration.
### **C. Automatic Multi-Timeframe Adaptation**
It develops an automatic temporal resolution selection system that optimizes signal extraction according to the intrinsic characteristics of the analysis timeframe.
**Result:** A single indicator that functions optimally from 1-minute to monthly charts without manual adjustments.
### **D. Intelligent Asymptotic Convergence**
It introduces the concept of controlled asymptotic convergence in financial extrapolations, where long-term projections converge toward realistic limits based on historical fundamentals.
**Added value:** Mathematically sound long-term projections that avoid the unrealistic extremes typical of other extrapolation methods.
---
## **📊 Complexity and Scalability Theory**
### **Optimized Linear Complexity Model**
The algorithm maintains **linear computational complexity** O(n) in the number of historical data points, guaranteeing scalability for extensive time series analysis without performance degradation.
### **Temporal Locality Principle**
It implements **temporal locality**, where the most expensive operations are concentrated in the most relevant temporal regions (recent periods and near projections), optimizing computational resource usage.
---
## **🎯 Convergence and Stability**
### **Probabilistic Convergence Theory**
The system guarantees **probabilistic convergence** toward the real underlying trend, where projection accuracy increases with the amount of available historical data, following **law of large numbers** principles.
**Practical implication:** The more history an asset has, the more accurate the algorithm's projections will be.
### **Guaranteed Numerical Stability**
It implements **intrinsic numerical stability** through the use of robust floating-point arithmetic and validations that prevent overflow, underflow, and numerical error propagation.
**Result:** Reliable operation even with extreme-priced assets (from satoshis to thousand-dollar stocks).
---
## **💼 Comprehensive Practical Application**
**The algorithm functions as a "financial GPS"** that:
1. **Identifies where we've been** (significant historical lows)
2. **Determines where we are** (current position relative to the trend)
3. **Projects where we're going** (future trend with specific price levels)
4. **Provides alternative routes** (Fibonacci bands as alternative targets)
This theoretical framework represents an innovative synthesis of time series analysis, approximation theory, and computational optimization, specifically designed for long-term financial trend analysis with robust and mathematically grounded projections.
Market Outlook Score (MOS)Overview
The "Market Outlook Score (MOS)" is a custom technical indicator designed for TradingView, written in Pine Script version 6. It provides a quantitative assessment of market conditions by aggregating multiple factors, including trend strength across different timeframes, directional movement (via ADX), momentum (via RSI changes), volume dynamics, and volatility stability (via ATR). The MOS is calculated as a weighted score that ranges typically between -1 and +1 (though it can exceed these bounds in extreme conditions), where positive values suggest bullish (long) opportunities, negative values indicate bearish (short) setups, and values near zero imply neutral or indecisive markets.
This indicator is particularly useful for traders seeking a holistic "outlook" score to gauge potential entry points or market bias. It overlays on a separate pane (non-overlay mode) and visualizes the score through horizontal threshold lines and dynamic labels showing the numeric MOS value along with a simple trading decision ("Long", "Short", or "Neutral"). The script avoids using the plot function for compatibility reasons (e.g., potential TradingView bugs) and instead relies on hline for static lines and label.new for per-bar annotations.
Key features:
Multi-Timeframe Analysis: Incorporates slope data from 5-minute, 15-minute, and 30-minute charts to capture short-term trends.
Trend and Strength Integration: Uses ADX to weight trend bias, ensuring stronger signals in trending markets.
Momentum and Volume: Includes RSI momentum impulses and volume deviations for added confirmation.
Volatility Adjustment: Factors in ATR changes to assess market stability.
Customizable Inputs: Allows users to tweak periods for lookback, ADX, and ATR.
Decision Labels: Automatically classifies the MOS into actionable categories with visual labels.
This indicator is best suited for intraday or swing trading on volatile assets like stocks, forex, or cryptocurrencies. It does not generate buy/sell signals directly but can be combined with other tools (e.g., moving averages or oscillators) for comprehensive strategies.
Inputs
The script provides three user-configurable inputs via TradingView's input panel:
Lookback Period (lookback):
Type: Integer
Default: 20
Range: Minimum 10, Maximum 50
Purpose: Defines the number of bars used in slope calculations for trend analysis. A shorter lookback makes the indicator more sensitive to recent price action, while a longer one smooths out noise for longer-term trends.
ADX Period (adxPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Sets the smoothing period for the Average Directional Index (ADX) and its components (DI+ and DI-). Standard value is 14, but shorter periods increase responsiveness, and longer ones reduce false signals.
ATR Period (atrPeriod):
Type: Integer
Default: 14
Range: Minimum 5, Maximum 30
Purpose: Determines the period for the Average True Range (ATR) calculation, which measures volatility. Adjust this to match your trading timeframe—shorter for scalping, longer for positional trading.
These inputs allow customization without editing the code, making the indicator adaptable to different market conditions or user preferences.
Core Calculations
The MOS is computed through a series of steps, blending trend, momentum, volume, and volatility metrics. Here's a breakdown:
Multi-Timeframe Slopes:
The script fetches data from higher timeframes (5m, 15m, 30m) using request.security.
Slope calculation: For each timeframe, it computes the linear regression slope of price over the lookback period using the formula:
textslope = correlation(close, bar_index, lookback) * stdev(close, lookback) / stdev(bar_index, lookback)
This measures the rate of price change, where positive slopes indicate uptrends and negative slopes indicate downtrends.
Variables: slope5m, slope15m, slope30m.
ATR (Average True Range):
Calculated using ta.atr(atrPeriod).
Represents average volatility over the specified period. Used later to derive volatility stability.
ADX (Average Directional Index):
A detailed, manual implementation (not using built-in ta.adx for customization):
Computes upward movement (upMove = high - high ) and downward movement (downMove = low - low).
Derives +DM (Plus Directional Movement) and -DM (Minus Directional Movement) by filtering non-relevant moves.
Smooths true range (trur = ta.rma(ta.tr(true), adxPeriod)).
Calculates +DI and -DI: plusDI = 100 * ta.rma(plusDM, adxPeriod) / trur, similarly for minusDI.
DX: dx = 100 * abs(plusDI - minusDI) / max(plusDI + minusDI, 0.0001).
ADX: adx = ta.rma(dx, adxPeriod).
ADX values above 25 typically indicate strong trends; here, it's normalized (divided by 50) to influence the trend bias.
Volume Delta (5m Timeframe):
Fetches 5m volume: volume_5m = request.security(syminfo.tickerid, "5", volume, lookahead=barmerge.lookahead_on).
Computes a 12-period SMA of volume: avgVolume = ta.sma(volume_5m, 12).
Delta: (volume_5m - avgVolume) / avgVolume (or 0 if avgVolume is zero).
This measures relative volume spikes, where positive deltas suggest increased interest (bullish) and negative suggest waning activity (bearish).
MOS Components and Final Calculation:
Trend Bias: Average of the three slopes, normalized by close price and scaled by 100, then weighted by ADX influence: (slope5m + slope15m + slope30m) / 3 / close * 100 * (adx / 50).
Emphasizes trends in strong ADX conditions.
Momentum Impulse: Change in 5m RSI(14) over 1 bar, divided by 50: ta.change(request.security(syminfo.tickerid, "5", ta.rsi(close, 14), lookahead=barmerge.lookahead_on), 1) / 50.
Captures short-term momentum shifts.
Volatility Clarity: 1 - ta.change(atr, 1) / max(atr, 0.0001).
Measures ATR stability; values near 1 indicate low volatility changes (clearer trends), while lower values suggest erratic markets.
MOS Formula: Weighted average:
textmos = (0.35 * trendBias + 0.25 * momentumImpulse + 0.2 * volumeDelta + 0.2 * volatilityClarity)
Weights prioritize trend (35%) and momentum (25%), with volume and volatility at 20% each. These can be adjusted in code for experimentation.
Trading Decision:
A variable mosDecision starts as "Neutral".
If mos > 0.15, set to "Long".
If mos < -0.15, set to "Short".
Thresholds (0.15 and -0.15) are hardcoded but can be modified.
Visualization and Outputs
Threshold Lines (using hline):
Long Threshold: Horizontal dashed green line at +0.15.
Short Threshold: Horizontal dashed red line at -0.15.
Neutral Line: Horizontal dashed gray line at 0.
These provide visual reference points for MOS interpretation.
Dynamic Labels (using label.new):
Placed at each bar's index and MOS value.
Text: Formatted MOS value (e.g., "0.2345") followed by a newline and the decision (e.g., "Long").
Style: Downward-pointing label with gray background and white text for readability.
This replaces a traditional plot line, showing exact values and decisions per bar without cluttering the chart.
The indicator appears in a separate pane below the main price chart, making it easy to monitor alongside price action.
Usage Instructions
Adding to TradingView:
Copy the script into TradingView's Pine Script editor.
Save and add to your chart via the "Indicators" menu.
Select a symbol and timeframe (e.g., 1-minute for intraday).
Interpretation:
Long Signal: MOS > 0.15 – Consider bullish positions if supported by other indicators.
Short Signal: MOS < -0.15 – Potential bearish setups.
Neutral: Between -0.15 and 0.15 – Avoid trades or wait for confirmation.
Watch for MOS crossings of thresholds for momentum shifts.
Combine with price patterns, support/resistance, or volume for better accuracy.
Limitations and Considerations:
Lookahead Bias: Uses barmerge.lookahead_on for multi-timeframe data, which may introduce minor forward-looking bias in backtesting (use with caution).
No Alerts Built-In: Add custom alerts via TradingView's alert system based on MOS conditions.
Performance: Tested for compatibility; may require adjustments for illiquid assets or extreme volatility.
Backtesting: Use TradingView's strategy tester to evaluate historical performance, but remember past results don't guarantee future outcomes.
Customization: Edit weights in the MOS formula or thresholds to fit your strategy.
This indicator distills complex market data into a single score, aiding decision-making while encouraging users to verify signals with additional analysis. If you need modifications, such as restoring plot functionality or adding features, provide details for further refinement.
VWAP For Loop [BackQuant]VWAP For Loop
What this tool does—in one sentence
A volume-weighted trend gauge that anchors VWAP to a calendar period (day/week/month/quarter/year) and then scores the persistence of that VWAP trend with a simple for-loop “breadth” count; the result is a clean, threshold-driven oscillator plus an optional VWAP overlay and alerts.
Plain-English overview
Instead of judging raw price alone, this indicator focuses on anchored VWAP —the market’s average price paid during your chosen institutional period. It then asks a simple question across a configurable set of lookback steps: “Is the current anchored VWAP higher than it was i bars ago—or lower?” Each “yes” adds +1, each “no” adds −1. Summing those answers creates a score that reflects how consistently the volume-weighted trend has been rising or falling. Extreme positive scores imply persistent, broad strength; deeply negative scores imply persistent weakness. Crossing predefined thresholds produces objective long/short events and color-coded context.
Under the hood
• Anchoring — VWAP using hlc3 × volume resets exactly when the selected period rolls:
Day → session change, Week → new week, Month → new month, Quarter/Year → calendar quarter/year.
• For-loop scoring — For lag steps i = , compare today’s VWAP to VWAP .
– If VWAP > VWAP , add +1.
– Else, add −1.
The final score ∈ , where N = (end − start + 1). With defaults (1→45), N = 45.
• Signal logic (stateful)
– Long when score > upper (e.g., > 40 with N = 45 → VWAP higher than ~89% of checked lags).
– Short on crossunder of lower (e.g., dropping below −10).
– A compact state variable ( out ) holds the current regime: +1 (long), −1 (short), otherwise unchanged. This “stickiness” avoids constant flipping between bars without sufficient evidence.
Why VWAP + a breadth score?
• VWAP aggregates both price and volume—where participants actually traded.
• The breadth-style count rewards consistency of the anchored trend, not one-off spikes.
• Thresholds give you binary structure when you need it (alerts, automation), without complex math.
What you’ll see on the chart
• Sub-pane oscillator — The for-loop score line, colored by regime (long/short/neutral).
• Main-pane VWAP (optional) — Even though the indicator runs off-chart, the anchored VWAP can be overlaid on price (toggle visibility and whether it inherits trend colors).
• Threshold guides — Horizontal lines for the long/short bands (toggle).
• Cosmetics — Optional candle painting and background shading by regime; adjustable line width and colors.
Input map (quick reference)
• VWAP Anchor Period — Day, Week, Month, Quarter, Year.
• Calculation Start/End — The for-loop lag window . With 1→45, you evaluate 45 comparisons.
• Long/Short Thresholds — Default upper=40, lower=−10 (asymmetric by design; see below).
• UI/Style — Show thresholds, paint candles, background color, line width, VWAP visibility and coloring, custom long/short colors.
Interpreting the score
• Near +N — Current anchored VWAP is above most historical VWAP checkpoints in the window → entrenched strength.
• Near −N — Current anchored VWAP is below most checkpoints → entrenched weakness.
• Between — Mixed, choppy, or transitioning regimes; use thresholds to avoid reacting to noise.
Why the asymmetric default thresholds?
• Long = score > upper (40) — Demands unusually broad upside persistence before declaring “long regime.”
• Short = crossunder lower (−10) — Triggers only on downward momentum events (a fresh breach), not merely being below −10. This combination tends to:
– Capture sustained uptrends only when they’re very strong.
– Flag downside turns as they occur, rather than waiting for an extreme negative breadth.
Tuning guide
Choose an anchor that matches your horizon
– Intraday scalps : Day anchor on intraday charts.
– Swing/position : Month or Quarter anchor on 1h/4h/D charts to capture institutional cycles.
Pick the for-loop window
– Larger N (bigger end) = stronger evidence requirement, smoother oscillator.
– Smaller N = faster, more reactive score.
Set achievable thresholds
– Ensure upper ≤ N and lower ≥ −N ; if N=30, an upper of 40 can never trigger.
– Symmetric setups (e.g., +20/−20) are fine if you want balanced behavior.
Match visuals to intent
– Enabling VWAP coloring lets you see regime directly on price.
– Background shading is useful for discretionary reading; turn it off for cleaner automation displays.
Playbook examples
• Trend confirmation with disciplined entries — On Month anchor, N=45, upper=38–42: when the long regime engages, use pullbacks toward anchored VWAP on the main pane for entries, with stops just beyond VWAP or a recent swing.
• Downside transition detection — Keep lower around −8…−12 and watch for crossunders; combine with price losing anchored VWAP to validate risk-off.
• Intraday bias filter — Day anchor on a 5–15m chart, N=20–30, upper ~ 16–20, lower ~ −6…−10. Only take longs while score is positive and above a midline you define (e.g., 0), and shorts only after a genuine crossunder.
Behavior around resets (important)
Anchored VWAP is hard-reset each period. Immediately after a reset, the series can be young and comparisons to pre-reset values may span two periods. If you prefer within-period evaluation only, choose end small enough not to bridge typical period length on your timeframe, or accept that the breadth test intentionally spans regimes.
Alerts included
• VWAP FL Long — Fires when the long condition is true (score > upper and not in short).
• VWAP FL Short — Fires on crossunder of the lower threshold (event-driven).
Messages include {{ticker}} and {{interval}} placeholders for routing.
Strengths
• Simple, transparent math — Easy to reason about and validate.
• Volume-aware by construction — Decisions reference VWAP, not just price.
• Robust to single-bar noise — Needs many lags to agree before flipping state (by design, via thresholds and the stateful output).
Limitations & cautions
• Threshold feasibility — If N < upper or |lower| > N, signals will never trigger; always cross-check N.
• Path dependence — The state variable persists until a new event; if you want frequent re-evaluation, lower thresholds or reduce N.
• Regime changes — Calendar resets can produce early ambiguity; expect a few bars for the breadth to mature.
• VWAP sensitivity to volume spikes — Large prints can tilt VWAP abruptly; that behavior is intentional in VWAP-based logic.
Suggested starting profiles
• Intraday trend bias : Anchor=Day, N=25 (1→25), upper=18–20, lower=−8, paint candles ON.
• Swing bias : Anchor=Month, N=45 (1→45), upper=38–42, lower=−10, VWAP coloring ON, background OFF.
• Balanced reactivity : Anchor=Week, N=30 (1→30), upper=20–22, lower=−10…−12, symmetric if desired.
Implementation notes
• The indicator runs in a separate pane (oscillator), but VWAP itself is drawn on price using forced overlay so you can see interactions (touches, reclaim/loss).
• HLC3 is used for VWAP price; that’s a common choice to dampen wick noise while still reflecting intrabar range.
• For-loop cap is kept modest (≤50) for performance and clarity.
How to use this responsibly
Treat the oscillator as a bias and persistence meter . Combine it with your entry framework (structure breaks, liquidity zones, higher-timeframe context) and risk controls. The design emphasizes clarity over complexity—its edge is in how strictly it demands agreement before declaring a regime, not in predicting specific turns.
Summary
VWAP For Loop distills the question “How broadly is the anchored, volume-weighted trend advancing or retreating?” into a single, thresholded score you can read at a glance, alert on, and color through your chart. With careful anchoring and thresholds sized to your window length, it becomes a pragmatic bias filter for both systematic and discretionary workflows.
Range Percent Histogram📌 Range Percent Histogram – Indicator Description
The Range Percent Histogram is a custom indicator that behaves like a traditional volume histogram, but instead of showing traded volume it displays the percentage range of each candle.
In other words, the height of each bar represents how much the price moved (in percentage terms) within that candle, from its low to its high.
🔧 What it shows
The indicator has two main components:
Component Description
Histogram Bars Columns plotted in red or green depending on the candle direction (green = bullish candle, red = bearish). The height of each bar = (high - low) / low * 100. That means a candle that moved, for example, 1 % from its lowest point to its highest point will show a bar with 1 % height.
Moving Average (optional) A 20-period Simple Moving Average applied directly to the bar values. It can be turned ON/OFF via a checkbox and helps you detect whether current range activity is above or below the average range of the past candles.
⚙️ How it works
Every time a new candle closes, the indicator calculates its range and converts it into a percentage.
This value is drawn as a column under the chart.
If the closing price is above the opening price → the bar is green (bullish range).
If the closing price is below the opening price → the bar is red (bearish range).
When the Show Moving Average option is enabled, a smooth line is plotted on top of the histogram representing the average percentage range of the last 20 candles.
📈 How to use it
This indicator is very helpful for detecting moments of range expansion or contraction.
One powerful way to use it is similar to a volume exhaustion / low-volume pattern:
Situation Interpretation
Consecutive bars with very low height Price is in a period of low volatility → possible accumulation or "pause" phase.
A sudden large bar after a series of small ones Indicates a strong pickup in volatility → often marks the start of a new impulse in the direction of the breakout.