MP Master VWAP [BackQuant]MP Master VWAP
Overview
MP Master VWAP is an, volume-weighted average price suite. It re-anchors automatically to any time partition you select—Day, Week, Month, Quarter or Year—and builds an adaptive standard-deviation envelope, optional pivot clusters and context-aware candle colouring so you can read balance, imbalance and auction edges in a single glance. We use private methods on calculating key levels, making them adaptive and more responsive. This is not just a plain VWAP.
Key Components
• Anchored VWAP core – The engine resets VWAP the instant a new session for the chosen anchor begins. Separator lines and a live high–low box make those rotations obvious.
• Dynamic sigma bands – Three upper and three lower bands, scaled by real-time standard deviation. 1-σ filters noise, 2-σ marks momentum, 3-σ flags exhaustion.
• Previous-period memory – The prior session’s VWAP and bands stay on-screen in a muted style so you can trade retests of last month’s value without clutter.
• High-precision price labels – VWAP and every active band print their prices on the hard right edge; labels vanish if you want a cleaner chart.
• Pivot package – Choose Traditional, Fibonacci or Camarilla calculations on a Daily, Weekly or Monthly look-back. Levels plot as subtle circles that complement, not compete with, the VWAP map.
• Context candles – Bars tint relative to their location: vivid red above U2, soft red between U1-U2, neutral grey inside value, soft green between L2-L1, vivid green below L2.
Customisation Highlights
Period section
• Anchor reset drop-down
• Toggles for separator lines and period high/low
Band section
• Independent visibility for L1/U1, L2/U2, L3/U3
• Individual multipliers to fit any volatility profile
• Optional real-time price labels
Pivot section
• Three formula choices
• Independent timeframe—mix a Monthly VWAP with Weekly Camarilla for confluence
Visual section
• Separate switches for current vs previous envelopes
• Candle-colour toggle for traders who prefer raw price bars
Colour section
• Full palette selectors to match dark or light themes instantly
Some Potential Ways it can be used:
Mean-reversion fade – Price spikes into U2 or U3 and stalls (especially at a pivot). Fade back toward VWAP; scale out at U1 and VWAP.
Trend continuation – Close above U1 on rising volume; trail a stop behind U1. Mirror setup for shorts under L1.
Breakout validation – Session gaps below previous VWAP but quickly reclaims it. Use the cross-above alert to automate entry and target U1 / U2.
Overnight inventory flush – Globex extremes that tag L2 / U2 often reverse at the cash open; scalp rotations back to VWAP.
Risk framing – Let the gap between VWAP and L2 / U2 dictate position size, keeping reward-to-risk consistent across assets.
Alerts Included
• Cross above / below current VWAP
• Cross first sigma bands (U1 / L1)
• Break above second sigma bands (U2) or below L2
• Touch of third sigma bands (U3 / L3)
• Cross of previous-period VWAP
• New period high or low
Best Practices
• Tighten sigma multipliers on thin-liquidity symbols; widen them on index futures or high-cap crypto.
• Pair the envelope with order-flow or footprint tools to confirm participation at band edges.
• On intraday charts, anchor a higher-timeframe VWAP (e.g., Monthly on a 15-minute) to reveal institutional accumulation.
• Treat the previous period’s VWAP as yesterday’s fair value—gaps that never revisit it often morph into trend days.
Final Notes
MP Master VWAP condenses auction-market theory into one readable overlay: automatic period resets, adaptive deviation bands, historical memory, multi-style pivots and self-explanatory colour coding. You can deploy it on equities, futures, crypto or FX—wherever volume meets time, VWAP remains the benchmark of true price discovery.
Göstergeler ve stratejiler
FxCult BOT Pro+💎 FxCult BOT Pro+ – The Ultimate Smart Money Companion for XAU/USD
FxCult BOT Pro+ is a premium invite-only indicator designed for serious traders who want to trade like institutions, not retail. Built specifically for XAU/USD scalping and intraday strategy, this tool combines Smart Money Concepts (SMC), volume footprints, and real-time price structure to deliver high-accuracy entries with confidence.
🔍 Key Features:
✅ Validated Fair Value Gaps (FVG)
✅ Order Blocks (OB) with mitigation cleanup
✅ CHoCH (Change of Character)
✅ Volume-based MCMP footprints & low-volume zones
✅ Auto-removal of invalidated zones
✅ Entry + Exit marker plotting
✅ Trailing stop logic (ATR-based)
✅ Branded chart visuals (Dark + Light themes)
✅ Perfect Setup snapshots for marketing
📈 Built for Traders Who Demand:
• Precision entries during high-liquidity moments
• Institutional logic for navigating smart money moves
• Clarity in structure – no clutter, just zones that matter
• Backtest support + real-time trading compatibility
💼 Access Tiers:
🔹 $99/month – Subscription
🔸 $299 – Lifetime License
🧪 7-Day Free Trial (Limited Slots)
🔐 Invite-only access – message us to apply
📲 Contact & Onboarding:
📍 Telegram: @FxCultSupport
📤 DM for brochure, previews & access code
📎 PDF Brochure + Chart Samples Available
Note: This script is protected and distributed only to approved users. For onboarding or partnership, contact us directly via Telegram.
uk100_funThis strategy is long only and works on the UK100 hourly chart only. It is designed to find ideal entry points based off of pivot points and the hourly 8 ema.
us100_fun_1This strategy works on the US100 only and is designed to trade entries points based off of the 4-hourly 8 ema.
TrailingPE//@version=6
indicator("TrailingPE", shorttitle="TPE", overlay=true)
// === USER INPUTS ===
pos_x = input.string("Right", "Horizontal Position", options= )
pos_y = input.string("Top", "Vertical Position", options= )
text_color = input.color(color.white, "Text Color")
bg_color = input.color(color.new(color.blue, 80), "Background Color")
text_size = input.string("Normal", "Font Size", options= )
// === POSITION MAPPING ===
get_position_y() =>
switch pos_y
"Top" =>
switch pos_x
"Left" => position.top_left
"Center" => position.top_center
"Right" => position.top_right
"Middle" =>
switch pos_x
"Left" => position.middle_left
"Center" => position.middle_center
"Right" => position.middle_right
"Bottom" =>
switch pos_x
"Left" => position.bottom_left
"Center" => position.bottom_center
"Right" => position.bottom_right
get_text_size() =>
switch text_size
"Tiny" => size.tiny
"Small" => size.small
"Normal" => size.normal
"Large" => size.large
"Huge" => size.huge
// === PE CALCULATION ===
eps_ttm = request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE_DILUTED", "TTM")
if na(eps_ttm)
eps_ttm := request.financial(syminfo.tickerid, "EARNINGS_PER_SHARE_BASIC", "TTM")
current_price = close
pe_ratio = eps_ttm > 0 ? current_price / eps_ttm : na
is_data_valid = not na(pe_ratio) and eps_ttm > 0
// === COMPACT SINGLE-LINE DISPLAY ===
if barstate.islast
var table pe_table = table.new(get_position_y(), 1, 1,
bgcolor=bg_color,
border_width=1,
border_color=color.gray)
table.clear(pe_table, 0, 0, 0, 0)
if is_data_valid
// Single line: "PE : Value" - removed text_style parameter
pe_rounded = math.ceil(pe_ratio)
pe_text = "PE : " + str.tostring(pe_rounded)
table.cell(pe_table, 0, 0, pe_text,
text_color=text_color,
text_size=get_text_size(),
bgcolor=bg_color)
else
table.cell(pe_table, 0, 0, "PE : N/A",
text_color=color.red,
text_size=get_text_size(),
bgcolor=bg_color)
Second Candle High/Low TrackerThis is a modified version of Tom Hougard's SRS. This has been optimised to work on custom time frames on Indian Market timing. So beware of that, and select a lower timeframe chart than the timeframe you select for your system indicator. Same timeframes work as well. On a higher timeframe, the indicator goes random. So avoid.
Anyways most back testing entry and exit will be more accurate on lower timeframes. Hope this will help anyone who follows Tom.
Multi Averages - CustomizableThis script adds up to 5 moving averages to your plot!
Both type and length are customizable.
Auto AVWAP (Anchored-VWAP) with Breakout ScreenerAuto AVWAP (Anchored-VWAP) with Breakout Screener. fINAL VERSION
Wx2 Treasure Box – Institutional Entry🧩 Indicator Overview: Wx2 Treasure Box – Institutional Entry
Designed to detect Institutional Bars (IBs) and visualize high-probability entry zones, this script helps traders align with potential smart-money activity.
Institutional Bars are defined as Entry of Smart Money
⚙️ How It Works
20-period and 200-period Simple Moving Averages are plotted to show short‑ and long‑term trend direction.
On identification of an IB:
A label “IB” is placed above the bar.
A rectangular box is drawn around its high–low range, extending several bars to the right to mark the trade zone
Trade Signals & Setup Guidelines
Buy Entry:
Trigger: Price breaks above the box.
Stop Loss (SL): Set just below the box bottom.
Sell Entry:
Trigger: Price piercing below the box.
SL: Placed above the box top.
Risk-to-Reward Ratio (RRR):
Target RRR of 1:2 is recommended
Best Execution Zone:
Treasure Box is the best with 20SMA+200 SMA+Price in it.
📽️ Video Link
You’ve linked a YouTube video for explanation:
Watch Here
Momentum Buy/Sell signals (Nikko) v1.0📊 Momentum Volume Box Range Buy/Sell Signals (Nikko) v1.0
This indicator is a multi-factor momentum-based tool that helps identify potential Buy and Sell signals:
🔍 What it does
It combines several well-known indicators into a hybrid signal system and displays heatmaps, momentum lines, and Buy/Sell labels.
📈 How to use it
Buy Signals are shown when the hybrid K line crosses above D line in strong downward zones (oversold).
Sell Signals appear when K crosses below D, but only if a minimum profit % is reached since the last Buy.
The background heatmap color changes based on combined RSI and Vortex intensity:
Greenish = Bullish strength
Reddish = Bearish weakness
🟢 Buy/Sell Labels
Buy Labels: Triggered when strong downward momentum reverses (or price drops deeply).
Sell Labels: Only shown if price has moved up by the user-defined % profit since the last Buy.
🔧 Customization Options
You can toggle on/off:
Heatmap
Hybrid signal lines
Buy/Sell labels
Stochastic RSI area plot
Volume range and profile
EMA overlays (20, 50, 100, 200)
All major color elements are adjustable for visual clarity.
💡 Best Practices
Use on any timeframe, but it works best with higher timeframes (1H+).
Look for convergence between strong heatmap color and hybrid signal crossover.
Combine with price action or EMA trend context for better accuracy.
Note: This indicator is designed as a trading companion, not a standalone strategy. It combines multiple timeframes and parameters that would be difficult to monitor manually. Its purpose is to visually simplify complex signals, helping reduce the risk of poor entries.
However, it's essential to also consider macroeconomic factors, news events, and overall market sentiment, as they can significantly impact price action. Always use proper risk management and do your own research (DYOR).
Simple Trading ChecklistCustomisable Simple Trading Checklist
This script overlays a fully customizable trading checklist directly onto your chart, providing an at-a-glance reminder of key trading steps and conditions before entering a position.
It is especially useful for discretionary or rule-based traders who want a consistent on-screen process to follow.
Modular Range-Trading Strategy (V9.2)# 模块化震荡行情策略 (V9.2)
# Modular Range-Trading Strategy (V9.2)
## 策略简介 | Strategy Overview
该策略基于布林带 (Bollinger Bands)、RSI、MACD、ADX 等经典指标的组合,通过多逻辑模块化结构识别震荡区间的价格反转机会,支持多空双向操作,并在相同逻辑下允许智能加仓,适用于震荡市场的回测和研究。
This strategy combines classic indicators such as Bollinger Bands, RSI, MACD, and ADX to identify price reversal opportunities within ranging markets. It features a modular multi-logic structure, allowing both long and short trades with intelligent pyramiding under the same logic. It is designed for backtesting and research in range-bound conditions.
---
## 功能特点 | Key Features
- **多逻辑结构**:支持多套震荡逻辑(动能确认均值回归、布林带极限反转等)。
- **加仓与仓位互斥**:同逻辑下可智能加仓,不同逻辑间自动互斥,避免冲突。
- **回测可调时间范围**:可自定义回测起止时间,精准评估策略表现。
- **指标可视化**:布林带、RSI、MACD 及动态 ATR 止损线实时绘图。
- **K线收盘确认信号**:通过 `barstate.isconfirmed` 控制信号,避免未收盘的虚假信号。
- **Multi-logic structure**: Supports multiple range-trading logics (e.g., momentum-based mean reversion, Bollinger Band reversals).
- **Pyramiding with mutual exclusion**: Allows intelligent pyramiding within the same logic while preventing conflicts between different logics.
- **Adjustable backtesting range**: Customizable start and end dates for accurate performance evaluation.
- **Visual indicators**: Real-time plotting of Bollinger Bands, RSI, MACD, and dynamic ATR stop lines.
- **Close-bar confirmation**: Uses `barstate.isconfirmed` to avoid false signals before bar close.
---
## 使用说明 | Usage
1. 将该脚本添加到 TradingView 图表。
2. 在参数中设置回测时间段和指标参数。
3. 仅用于学习与策略研究,请勿直接用于实盘交易。
1. Add this script to your TradingView chart.
2. Configure backtesting dates and indicator parameters as needed.
3. For educational and research purposes only. **Not for live trading.**
---
## ⚠️ 免责声明 | Disclaimer
本策略仅供学习和研究使用,不构成任何形式的投资建议。
作者不参与任何实盘交易、资金管理或收益分成,也不保证策略盈利能力。
严禁将本脚本用于任何非法集资、私募募资或与虚拟货币相关的金融违法活动。
使用本策略即表示您自行承担所有风险与法律责任。
This strategy is for educational and research purposes only and does not constitute investment advice.
The author does not participate in live trading, asset management, or profit sharing, nor guarantee profitability.
The use of this script in illegal fundraising, private placements, or cryptocurrency-related financial activities is strictly prohibited.
By using this strategy, you accept all risks and legal responsibilities.
---
Perfect Triple EMA Cross (15min Only)//@version=5
indicator("Perfect Triple EMA Cross (15min Only)", overlay=true)
// ==== Inputs ====
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// ==== Timeframe Check ====
is15min = (timeframe.period == "15")
// ==== Conditions ====
buyCond = is15min and ta.crossover(ema20, ema50) and ema20 > ema50 and ema50 > ema200
sellCond = is15min and ta.crossunder(ema20, ema50) and ema20 < ema50 and ema50 < ema200
// ==== Plots ====
plot(ema20, title="EMA 20", color=color.orange, linewidth=1)
plot(ema50, title="EMA 50", color=color.blue, linewidth=1)
plot(ema200, title="EMA 200", color=color.red, linewidth=2)
plotshape(buyCond, title="BUY", location=location.belowbar, style=shape.labelup, color=color.green, size=size.normal, text="BUY")
plotshape(sellCond, title="SELL", location=location.abovebar, style=shape.labeldown, color=color.red, size=size.normal, text="SELL")
// ==== Alerts ====
alertcondition(buyCond, title="BUY Signal", message="Triple EMA BUY Signal (15min)")
alertcondition(sellCond, title="SELL Signal", message="Triple EMA SELL Signal (15min)")
KairosAlgo V2 [Alpha]- Indicator Name: "Kairos Algo V2 (Alpha)"
- Type: "Indicator"
- Language: Pine Script v6
Step 3: Multi-Timeframe Trading SessionsFor editing purposes,
This is for editing purposes for developer to edit it before publishing.
ZenAlgo - DeltaThis indicator visualizes cumulative delta volume across multiple exchanges and trading pairs, with optional moving averages, divergence detection, and contextual labeling. It aggregates buy and sell volume from both spot and perpetual markets, applying normalization and visual encoding to highlight volume flow dynamics over time.
Volume Aggregation Logic
The script starts by collecting volume data from up to nine exchanges. It distinguishes between spot (e.g., USDT, USD) and perpetual markets (e.g., USDT.P, USD.P) using dynamically constructed tickers based on the asset's base currency. For each enabled exchange, it fetches volume using request.security , filtering out invalid or zero-volume responses.
Each set of volume data (spot1, spot2, perp1, perp2) is then processed through a reducer function that combines the values using a selected method—sum, average, median, or variance. These processed volumes are further categorized and summed into total spot and perp volume streams, forming the basis for downstream delta computations.
Delta Calculation
For each bar, the script decomposes the candlestick into wick and body proportions, calculating how much of the total volume might be attributed to upward or downward pressure. This estimation weights the volume by the visual structure of the candle—larger bodies and upper wicks in bullish candles suggest buying pressure; inverse logic applies for bearish candles.
These estimated buy and sell volumes are then subtracted to derive per-bar delta. A cumulative delta series is computed by summing this bar-by-bar delta across a user-defined window length.
Divergences on Delta
Fractal logic is applied to detect local highs and lows in the cumulative delta series. These points serve as anchors for divergence comparisons:
Regular divergences identify price making higher highs (or lower lows) while delta makes lower highs (or higher lows).
Hidden divergences look for the opposite (price pullback vs delta continuation).
The same logic is applied independently to:
Raw cumulative delta
A primary delta moving average
A secondary, slower moving average
Each can be configured with different lookback lengths and moving average types (SMA, EMA, WMA, HMA, RMA).
The divergence logic gains additional value when used in tandem with the delta moving averages and contextual temperature state. For example, a divergence detected on the slower delta average while the temperature band is in an “Extreme Hot” or “Cold” zone may indicate a more meaningful exhaustion event. This layered approach allows users to filter weaker divergences and focus on those that align with broader delta context.
Gradient and Temperature Context
A third moving average (e.g., WMA(50)) is used to provide a contextual "temperature" state of the delta environment. Based on deviations from its own mean and standard deviation, this third MA is classified into zones:
"Extreme Hot", "Hot", "Warm"
"Neutral"
"Cool", "Cold", "Extreme Cold"
These zones are encoded using color and transparency gradients in the chart’s background. This helps identify periods where delta conditions are statistically stretched or compressed relative to recent history.
EMA Cross Conditions
The script tracks crossover events between the short and long EMAs of delta, especially when these align with a directional shift in cumulative delta (e.g., zero-line cross). If confirmed by volume skew (more buy than sell or vice versa), specific visual markers are plotted.
Labels and Informational Lines
Dynamic labels are rendered on the latest bar showing:
Cumulative delta and last divergence
EMA values and associated divergence
"Slow MA" value and its temperature state
These labels float next to the latest values, using thematic or neutral colors based on user preference.
Buy/Sell Pressure Tables
Two optional tables display breakdowns of:
Buy vs Sell volume
Their percentage contribution
Net delta value
Market condition label (e.g., "Full Bull", "Bearish")
These are calculated over the selected lookback period and color-coded accordingly.
An experimental table compares raw and aggregated spot/perpetual volume contributions and their percentage skew.
Background Highlight Logic
Background colors are conditionally rendered based on buy/sell volume dominance. Several thresholds exist:
2x or 3x buy volume dominance → greenish tones
2x or 3x sell volume dominance → reddish tones
Combined with temperature overlays, this highlights areas of potentially high conviction from either side.
Cross Conditions
The script detects situations where cumulative delta crosses under buy/sell volume thresholds. Visual dots mark:
Negative delta intersecting rising sell volume
Positive delta intersecting rising buy volume
This provides additional cues when short-term volume shifts might contradict recent cumulative flow.
How to Interpret Values
Cumulative Delta (AggDelta): Tracks net buy vs sell pressure over time. A rising delta suggests persistent buying pressure, and vice versa.
Temperature State: Places delta flow into historical context. “Extreme Hot” implies sustained positive flow, possibly overextended; “Cold” signals inverse.
EMA Lines: Short- and long-term smoothing of delta for trend and divergence detection.
Cross Events: Represent moments when short EMA crosses over delta or long EMA, often signaling a directional momentum change.
Tables and Labels: Quantify volume dominance and flow state, helping assess if flow aligns with price structure.
How to Best Use
For context: Observe overall slope and temperature of the third MA. High deviations often precede cooling or reversal.
For confluence: Look for alignment between price structure (e.g., higher highs) and delta divergence to identify exhaustion or continuation.
For short-term timing: Watch EMA crosses and volume conditions (e.g., buy volume increasing while delta crosses above zero).
Added Value Compared to Other Free Indicators
Multi-exchange Aggregation: Includes spot and perp data across major exchanges with flexible inclusion settings.
Granular Delta Estimation: Uses candle body/wick proportions rather than simple up/down tick assumptions.
Context-Aware Visualization: Integrates volume gradient, statistical deviation zones, and divergence overlays in one compact view.
Highly Customizable: Users can fine-tune divergence, moving average, color scheme, and table display independently.
Integrated View with Synergistic Logic: Unlike using several isolated scripts, this indicator unifies delta flow, divergence, volume dominance, and statistical context into one coherent framework. This synergy reduces the need to reconcile signals from different sources and allows for clearer judgment when multiple conditions align.
Limitations and Disclaimers
Delta Approximation: Calculated using heuristic candle shape assumptions; not a tick-level order book delta.
Exchange Coverage: Relies on availability of correct tickers and historical volume data via TradingView’s request.security .
Visual Lag: Cumulative delta and divergence patterns may develop over several bars and are not predictive on their own.
No Entry Signals: This indicator does not provide trading signals, nor does it evaluate risk or price targets.
Additional Limitations
This indicator estimates delta from candle shape and volume distribution heuristics. In low-liquidity markets or on lower timeframes, this estimation may misrepresent actual flow dynamics, especially during volatile spikes or news-driven moves. Divergence patterns may appear with delay or persist without price reaction, particularly in ranging or algorithmically driven markets. Users should combine these tools with broader context and price action awareness rather than relying on isolated delta events.
RTH High/Low with LabelsKey Features: Previous Day High and Low Lines: See the previous day's highest and lowest prices. You can change the color, style, and thickness of these lines. Lines extend into the current day for better viewing.
Current Day High and Low Lines: View today's high and low prices during trading hours. These lines also have customizable colors, styles, and widths. You can choose how far the lines extend.
Customizable Input Options: Easily adjust settings for both previous and current day lines. Set your preferred trading hours (default is 3:30 AM to 2:30 AM). Turn lines on or off for either day as needed.
Automatic Reset for New Days: The script saves the previous day's values. It then clears old lines and labels automatically. This keeps your chart tidy for the new trading day.
Dynamic Updates: See current day high and low lines update in real-time. Previous day lines adjust based on your set extension.
Session-Based Filtering: Calculations only use data from your defined trading hours. This ensures accuracy for your specific sessions.
Code Logic: Inputs are grouped for easy setup. Lines and labels are managed to avoid clutter. A session check limits activity to trading hours. The code tracks daily highs and lows within these hours. It detects new days to refresh previous day values.
Applications: Intraday Trading: Find key support and resistance levels. Trend Analysis: See price movements over days. Custom Visualization: Match the indicator to your trading style. This script is very flexible for many trading strategies.
HMA Strategy HMA Strat (Hull Moving Average Strategy) Indicator Description
The HMA Strat is a trend-following strategy that uses a dual Hull Moving Average system. It helps identify continuation and high-probability reversal signals in both bullish and bearish market conditions. The strategy aims to reduce noise while maintaining sensitivity to changes in price momentum by comparing the standard Hull Moving Average (HMA) to a smoothed version.
This strategy is ideal for traders who focus on systematic backtesting, momentum entry, and simple charts. It features integrated plotting, color-zoning, and strategic actions based on TradingView's strategy engine. The system provides dynamic long and short signals based on crossover logic.
Key Features
Dual HMA Framework: To improve signal quality and reduce choppy trend identification, it compares a regular HMA with a smoothed version (HMA3).
Entries Based on Crossover
RSI Z‑Score + TableRSI Z-Score + Table
This script calculates the Z-Score of the RSI (Relative Strength Index), which standardizes RSI based on its own recent history.
What It Shows:
RSI Z-Score = (Current RSI - Mean RSI) / Standard Deviation
This tells you how extreme the current RSI is compared to its historical values.
A table displays:
Current RSI
Rolling Mean
RSI Z-Score
How to Use:
Z-Score > +2 = Statistically overbought
Z-Score < -2 = Statistically oversold
Use it to time reversals or overextension in RSI behavior.
🔒 Based on rolling lookback window — fully customizable.
Author:
Tags: #RSI #ZScore #Momentum #StatisticalEdge #MeanReversion #Crypto
ICT OTE Market MakerICT OTE Market Maker
Implementing ICT and automatically identifies OTE zones to minimize drawdowns.
Multi EMA & SMA IndicatorDraws EMA 5/20/50/100 and SMA 200 in different colors and thickness in a single indicator
Kairi Trend Oscillator [T3][T69]📌 Overview
The Kairi Trend Oscillator is a Japanese-inspired hybrid oscillator combining Heikin-Ashi trend clarity with the Kairi (乖離率) indicator — a measure of price deviation from a moving average. This dual-layer system gives you both trend direction and trend strength/health, designed to highlight trend maturity and avoid overextended entries.
✨ Features
Heikin-Ashi or normal candlestick input modes
Multiple moving average options: SMA, EMA, DEMA, VWMA, and Kijun
Visual color-coded trend zones: overbought, oversold, healthy, weak, and reversal conditions
Full Kairi column plot with dynamic coloring
Adaptive logic for trend detection (linear regression or Heikin-Ashi structure)
Built-in reversal detection based on divergence between Kairi and trend direction
⚙️ How to Use
Choose Candle Type: Select Heiken Ashi or Normal Candlesticks via the Candle Mode dropdown.
Select Source: Choose open, high, low, or close as the input for Kairi computation.
Set MA Type & Length: Configure the moving average mode and its length under Moving Average Settings.
Interpret the Plot:
Green/Red bars: Show Kairi oscillator values above/below 0
Background color: Shows current trend (green = uptrend, red = downtrend)
Candle color overlays:
🟩 Teal = Overextended Bulls
🟥 Maroon = Overextended Bears
✅ Green = Healthy Uptrend
🔻 Red = Healthy Downtrend
🟨 Light tones = Weak trends
🔄 Blue/Fuchsia = Possible reversal detected
🔧 Configuration
Inputs:
Candle Mode: Heiken Ashi or Normal Candle Sticks
Source: Open, High, Low, Close
MA Mode: SMA, EMA, DEMA, VWMA, or Kijun
MA Length: Default is 29
🧪 Advanced Tips
Use Heikin-Ashi mode for better trend smoothing.
Kairi divergence (e.g., bullish Kairi in a downtrend) may signal upcoming reversal — watch for blue or fuchsia bars.
Combine with momentum indicators (e.g. RSI or MACD) for confluence-based setups.
For mean reversion strategies, fade extreme Kairi readings (> ±5%).
⚠️ Limitations
Not suited for ranging markets without trend.
Kairi extremes may remain elevated in strong trends — avoid early counter-trend entries.
Reversal logic is not a confirmation signal; use with caution.
📌 Disclaimer
This script is educational and illustrative. Always backtest thoroughly before using in live markets.