Taintalicious IndicatorThis indicator gathers data from the Weis Wave indicator (thanks to @LazyBear for the original code), and coverts it to something like a VPCI or a Chaikin Oscillator. This indicator is quite versatile. It can be ran with Weis Wave turned on and the Bands + MA turned on together, though I find the scaling becomes an issue. If it is the only indicator you're using, scaling isn't a problem as long as you enlarge it. I prefer to run the Bands + MA + Long MA as one setup, and flip to Weis Wave when I need to see the raw data underneath. You can use this indicator to spot momentum shifts, the strength of bullish or bearish moves, bull/bear divergences, trend reversals, consolidation/squeezes, and even Wyckoff springs. It will take some getting used to though.
Tips for interpretation:
--Bearish/Bearish Divergence: TI diverges from price. TI is making lower highs or higher lows while price is making higher highers or higher lows. You can turn on the setting to highlight some of these divergences, but I find it easier to simply look for them.
--As an Oscillator: TI crossing zero can indicate a shift in momentum. The deeper the initial rise or fall past zero, the stronger the momentum shift.
--Overbought/Oversold: When TI breaches the bands while they are wide--indicating high volatility in the same way Bollinger Bands do--this can be viewed as an overbought or oversold signal. Begin looking for an entry once TI forms a "v" shape, and begins moving back towards the bands. The best entry is typically when TI breaks back into the bands. These breaches are highlighted with either green or red.
--Long MA: This can be used for bull/bear divergence as well as a leading indicator for trend reversals or momentum shifts. TI crossing above or below the Long MA is one signal. Whether the Long MA is above or below zero indicates the market sentiment/trend over the last 100 periods--above zero being bullish and below zero being bearish.
Best setting for Trend Detection Length is 4
Feel free to contact me on Twitter if you have questions: @TheFeralTaint
在腳本中搜尋"bear"
MWho is in ControlWho is in Control.
This study shows who is in control by showing just the Bull side, the Bear side or a combined view. This study follows the same philosophy of simplicity I try to use as much as possible in my studies. The least number of parameters and as understandable as possible.
Len : length of the period
Signal : Signal to show change of trend
Disp Bull : Display/Hide Bull Side
Disp Bear : Display/Hide Bear Side
Disp Differential : Display/Hide the differential between Bulls and Bears.
: Volume Zone Oscillator & Price Zone Oscillator LB Update JRMThis is a simple update of Lazy Bear's " Indicators: Volume Zone Indicator & Price Zone Indicator" Script. PZO plots on the same indicator. The horizontal plot lines are taken primarily from two articles by Wahalil and Steckler "In The Volume Zone" May 2011, Stocks and Commodities and "Entering The Price Zone"June 2011, Stocks and Commodities. With both indicators on the same plot it is easier to see divergences between the indicators. I did add a plot line at 80 and -80 as well because that is getting into truly extreme price/volume territory where one might contemplate a close your eyes and sell or cover particularly if confirmed at a higher time frame with the expectation of some type of corrective move..
The inputs and plot lines can be edited as per Lazy Bear's original script and follows the original format. Many thanks to Lazy Bear.
Inside Candle DivergenceStudy Material: Inside Candle Divergence Indicator (aiTrendview)
1. Introduction
The Inside Candle Divergence Indicator is a custom tool built on TradingView using Pine Script. It is designed to help traders identify potential reversal points or trend continuations using a mix of candlestick analysis, RSI (Relative Strength Index), VWAP (Volume Weighted Average Price), Pivot Points, and Volume analytics. The tool also provides a dashboard table on the chart, summarizing all key values in a single glance for traders and analysts.
This indicator is not just a signal generator but also an educational framework—explaining how different concepts in technical analysis combine to build a systematic approach for market entries and exits.
________________________________________
2. Core Concepts Behind the Tool
A. Inside Candle Pattern
An Inside Candle forms when the current candle’s high is lower than or equal to the previous candle’s high, and the low is higher than or equal to the previous candle’s low.
• This means the entire price action of the current candle is "inside" the range of the previous candle.
• A bullish inside candle occurs when the close is higher than the open.
• A bearish inside candle occurs when the close is lower than the open.
This pattern shows market indecision but also sets up potential breakouts or trend reversals.
________________________________________
B. RSI (Relative Strength Index)
The indicator calculates RSI using the formula from the ta.rsi() function in TradingView. RSI helps measure momentum in the market.
• A low RSI (below 25) signals an oversold zone → possible buy.
• A high RSI (above 75) signals an overbought zone → possible sell.
By combining RSI with the Inside Candle, the indicator ensures that signals are triggered only when momentum and price patterns confirm each other.
________________________________________
C. Buy & Sell Signals
• Buy Signal: Triggered when RSI < Buy Level (default 25) and a bullish inside candle forms.
• Sell Signal: Triggered when RSI > Sell Level (default 75) and a bearish inside candle forms.
When triggered, the chart displays a BUY (green label below candle) or SELL (red label above candle) marker. The indicator also saves the entry price and signal bar for future reference inside the dashboard.
________________________________________
D. VWAP (Volume Weighted Average Price)
VWAP is calculated using the typical price (H+L+C)/3 and weighting it by volume.
• VWAP shows the average trading price weighted by volume, widely used by institutions.
• The tool calculates the distance of price from VWAP in % terms.
• If price is far above VWAP, the market may be overheated (overbought). If far below, it may be undervalued (oversold).
________________________________________
E. Volume Analysis
The tool splits volume into Buy Volume and Sell Volume:
• Buy Volume: If close > open.
• Sell Volume: If close ≤ open.
• Cumulative totals are maintained, and percentages are calculated to show what proportion of total market volume is bullish vs bearish.
• A progress bar style visual (using blocks █) shows the dominance of buyers or sellers.
This allows traders to quickly measure whether buyers or sellers are controlling the market trend.
________________________________________
F. Daily Pivot Points
Pivot Points are calculated using the previous day’s high, low, and close:
• Pivot = (High + Low + Close) / 3
• R1, S1, R2, S2, R3, S3 levels are derived from this pivot.
• These levels act as support and resistance zones.
The script plots Pivot, R1, and S1 lines on the chart for easy reference.
________________________________________
G. Trend Direction
The indicator checks where the price is compared to R1 and S1:
• If price > R1 → Bullish Trend
• If price < S1 → Bearish Trend
• Otherwise → Neutral Trend
The trend direction is displayed in the dashboard with arrows (↑, ↓, →).
________________________________________
H. Price Change Calculation
The tool calculates:
• Price Change = Current Close – Previous Close
• Percentage Change = (Change / Previous Close) × 100
• Displays ▲ (green upward) or ▼ (red downward) with the exact percentage.
This gives traders a quick snapshot of intraday price movement.
________________________________________
I. Dashboard Table
One of the most powerful features is the real-time dashboard table shown on the chart. It contains:
1. Symbol & Price Info (Current ticker, price, change %)
2. RSI Reading (with color coding: green for oversold, red for overbought)
3. VWAP and Distance from VWAP
4. Volume Analysis with Progress Bar (Buy vs Sell %)
5. Pivot Levels (Pivot, R1, S1)
6. Trend Direction (Bullish, Bearish, Neutral)
7. Signal Status (Last Buy/Sell signal with entry price)
This reduces the need for multiple indicators and gives traders a command-center view directly on the chart.
________________________________________
J. Alerts
The tool generates alerts whenever a Buy or Sell condition is met. Traders can set up TradingView alerts to be notified instantly when:
• Buy Signal Alert → RSI oversold + Bullish inside candle
• Sell Signal Alert → RSI overbought + Bearish inside candle
This ensures no opportunity is missed even if you’re not actively monitoring the chart.
________________________________________
K. Background Highlights
The chart background also changes faintly (light green or light red) when a Buy or Sell condition is triggered. This gives traders visual confirmation along with signals and alerts.
________________________________________
3. Practical Use of This Tool
• Scalpers & Intraday Traders can use it for quick momentum-based entries.
• Swing Traders can use the RSI + Inside Candle + Pivot Points to find medium-term reversals.
• Analysts can use the dashboard for real-time summaries in reports.
• Volume Analysis helps understand institutional activity.
Remember: This is not a standalone holy grail. It must be used with proper risk management and confirmation from higher timeframes.
________________________________________
4. Strict Disclaimer (aiTrendview)
⚠️ Disclaimer from aiTrendview:
This indicator is designed for educational and analytical purposes only. It is not financial advice or a guaranteed trading strategy. Markets are inherently risky and unpredictable; past performance of indicators does not ensure future results. Trading involves risk of financial loss, and traders must use proper risk management, stop-loss, and independent judgment.
aiTrendview strictly follows TradingView.com rules and compliance guidelines.
Any misuse of this tool, its code, or analytical features for unauthorized commercial purposes, false promises, or misleading activities is strictly discouraged. The creators of this script and aiTrendview will not be responsible for any losses, damages, or misuse arising from its application. Always trade responsibly and only with money you can afford to lose.
________________________________________
Nexus Trend OS - Confluence Dashboard v1.2 by IndicatorEdgeStop trading blind with single indicators. The Nexus Trend OS is a professional-grade, institutional-style dashboard that acts as the central "Operating System" for your trend analysis. Specifically designed for the dynamic crypto market, it synthesizes over a dozen critical data points—from multi-timeframe technicals to your own fundamental research—into a single, actionable Confluence Score.
This isn't just an indicator; it's a decision-support framework that provides a complete, 360-degree view of the market, helping you trade with clarity and conviction.
Key Features ("10/10" Upgrades)
🏆 Dynamic Confluence Score: The heart of the OS. Instead of a simple "bull" or "bear" signal, the script calculates a numerical score based on the alignment of all factors. A high positive score indicates strong bullish confluence; a high negative score signals strong bearish confluence.
🎯 Actionable On-Candle Signals: Get clear "BULL" and "BEAR" signals plotted directly on your chart the moment the Confluence Score crosses your custom-defined threshold.
📐 Robust Market Structure Engine: Forget simplistic single-bar analysis. The OS uses a proper swing-point (pivot) engine to identify true market structure, telling you if the market is making Higher Highs/Higher Lows (Uptrend) or Lower Lows/Lower Highs (Downtrend).
💯 100% Non-Repainting: All multi-timeframe data is fetched from confirmed historical bars, providing a stable and reliable dashboard that you can trust for your analysis and alerts.
🧠 Hybrid Analysis Model: This is what sets Nexus OS apart. It seamlessly blends quantitative technical data with your own qualitative research. Manually input your bias on:
💡 Fundamentals
⛓️ On-Chain Data
💬 Market Sentiment
🌐 Macro/Regulatory News
...and watch it instantly update your overall Confluence Score!
🔧 Fully Modular & Customizable Dashboard: You are in complete control. Use the settings to show or hide any technical indicator from the dashboard, creating a clean workspace focused only on the data you care about.
🤖 Automation-Ready Alerts: Create alerts that trigger when the Confluence Score crosses your bullish or bearish threshold, perfect for staying on top of the market or integrating with third-party automation tools.
How to Use the Nexus Trend OS
Assess the Confluence Score: Your primary guide is the score at the top of the dashboard. A score of +5 or higher suggests strong bullish alignment, while -5 or lower suggests strong bearish alignment. Scores in between indicate neutrality or chop.
Wait for Signals: Use the on-candle "BULL" / "BEAR" signals as your primary call to action. These signals appear only when a significant shift in confluence occurs.
Use as a Confirmation Tool: The best way to use this OS is to confirm your own trading ideas. For example, if you identify a key support level and then see a "BULL" signal appear as price tests it, your trade has a much higher degree of confluence.
Update Your External Research: Regularly update the "External Market Factors" in the settings. If a major bullish news event occurs, set "Fundamental Analysis" to "Bullish" and see how it impacts the overall score.
Disclaimer: This tool is for educational and analytical purposes only. All trading involves substantial risk. The author, IndicatorEdge By SG, is not liable for any financial losses incurred. Past performance is not indicative of future results. Please trade responsibly.
BOS FVG IndicatorBOS FVG Indicator (Smart Market Structure Tool)
🔎 Overview
The BOS FVG Indicator is a smart price-action–based tool that combines Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), Supertrend, and ADX strength into one powerful indicator.
It helps traders identify market structure shifts, imbalances, and high-probability trade setups while also highlighting no-trade zones (NTZ) where the market is choppy or lacks trend strength.
This indicator is designed for intraday and swing traders who follow ICT-style concepts or price-action based trading.
⚡ Key Features
Break of Structure (BOS) & CHoCH Detection
Labels bullish BOS (📈 BOS↑) and bearish BOS (📉 BOS↓).
Highlights structure shifts for trend confirmation.
Fair Value Gaps (FVG)
Auto-detects bullish and bearish FVGs.
Draws transparent boxes with labels where imbalances appear.
Supertrend Confirmation
Adaptive supertrend line with dynamic coloring (green = bullish, red = bearish).
No Trade Zone (NTZ)
Automatically shades background gray when ADX is weak or no BOS detected.
Helps avoid false signals in sideways/choppy markets.
Multi-Timeframe Context
Previous 4H candle range plotted as a dotted yellow box.
Useful for intraday traders tracking HTF liquidity zones.
Signal Strength
Regular and Strong Buy/Sell signals based on ADX confirmation.
Labels include entry info, RR (2:1), and trend strength.
Market Info Dashboard
Table on chart showing ADX strength, current trend, and trade zone status.
🛠 How to Use
Add to Chart → Apply the indicator to any timeframe (works best on 5m–1H for intraday, 4H–Daily for swing).
Choose Mode
Indicator Mode → Shows visual signals, BOS, FVG, NTZ zones, and dashboard.
Strategy Mode → Displays trade entry labels with RR info for backtesting setups.
Filters
Only trade signals when ADX > threshold and NTZ is inactive.
Confirm with Supertrend direction + BOS + FVG alignment.
Entries & Exits
Long Entry → Bullish BOS + Bullish FVG + Trend bullish.
Short Entry → Bearish BOS + Bearish FVG + Trend bearish.
Stop Loss: Recent swing high/low.
Take Profit: Auto-suggested 2:1 RR.
🔔 Alerts
Set alerts to never miss key signals:
✅ Bullish / Bearish BOS
✅ Bullish / Bearish FVG
✅ Strong Buy / Sell
✅ Regular Buy / Sell
✅ Long / Short Entries
✅ No Trade Zone active
Alerts are pre-configured with clear messages (📈, 📉, 🚀, 🟢, 🔴, ⚪).
📌 Best Use Cases
ICT-style liquidity and FVG traders.
Intraday traders filtering strong vs weak signals.
Swing traders using multi-timeframe confirmation.
Traders who want an all-in-one market structure toolkit.
👉 This script is not financial advice. Always backtest before using in live markets.
ICT HTF Candles + CISD + FVG, by AlephxxiiICT HTF Candles + CISD + FVG
A practical, friendly overlay for ICT-style trading
This indicator gives you three things at once—right on your chart:
HTF Candles Panel (context):
Compact candles from higher timeframes (e.g., 5m, 15m, 1H, 4H, 1D, 1W) appear to the right of price so you always see the higher-timeframe story without switching charts. It includes labels, remaining time for the current HTF candle, and optional open/high/low/close reference lines.
CISD Levels (bias flips):
Automatically plots +CISD and -CISD lines. When price closes above +CISD, the indicator considers bullish delivery. When price closes below -CISD, it considers bearish delivery. An on-chart table (optional) shows the current bias at a glance.
FVG (Fair Value Gaps):
Highlights inefficiency zones (gaps) on your current timeframe and/or a selected higher timeframe. You can choose to mark a gap “filled” when price hits the midpoint (optional).
Quick start (2 minutes)
Add to chart and keep your normal trading timeframe (e.g., 1–5m).
In settings → HTF 1..6, pick the higher timeframes you want to see (e.g., 5m, 15m, 1H, 4H, 1D, 1W).
Turn on FVG (current, HTF or both).
Watch +CISD / -CISD lines and the Current State table.
Close above +CISD → Bullish bias
Close below -CISD → Bearish bias
Trade with the bias and use FVGs as areas to refine entries or targets.
How to read it (the simple way)
Bias (CISD):
Bullish once price closes above the active +CISD level.
Bearish once price closes below the active -CISD level.
The small table (if enabled) says Bullish or Bearish right now.
HTF panel:
Shows higher-timeframe candles next to your current chart.
Labels show the timeframe (e.g., 1H) and a countdown for the current candle.
Optional traces draw HTF Open/High/Low/Close levels—great “magnets” for price.
FVGs:
Shaded boxes = potential inefficiency areas.
If Midpoint Fill is on, a touch of the midline counts as filled.
You can display current TF, HTF, or both.
Suggested workflow (popular ICT-style intraday)
Define bias with CISD
Only look for longs if Bullish, shorts if Bearish.
Check HTF context
Are you trading into a large HTF FVG or key HTF O/H/L/C level? That can be a target or a headwind.
Refine entries with FVGs
On your entry TF (1–5m), use fresh FVGs in the direction of the bias. Avoid fading straight into big HTF imbalances.
Key settings you’ll actually use
HTF 1..6: toggle each strip, select timeframe, and how many candles to show.
Style & layout: adjust offset, spacing, and width of the right-side panels.
Labels & timers: show/hide HTF name and remaining time; place labels at Top/Bottom/Both.
Custom daily open (NY): set the 1D candle to start at Midnight, 08:30, or 09:30 (America/New_York).
Trace lines: optional HTF O/H/L/C lines (style, width, anchor TF).
FVG module (extra): choose Current TF / HTF / Both, enable Midpoint Fill, auto-delete on fill, and show timeframe labels.
CISD lines: customize color, style (solid/dotted/dashed), thickness, and forward extension.
Table: enable/disable and choose its position.
Alerts
When a CISD completes, the script fires an alert (e.g., “Bullish CISD Formed” or “Bearish CISD Formed”).
Tip: Set your TradingView alert once on the indicator, then choose the alert message you want to receive.
Notes & limitations (read me)
“VI” label: The “Volume Imbalance” option marks price imbalances (body non-overlap). It does not read volume data.
Timezone: Daily logic and timers use America/New_York, which aligns with US indices/equities and common ICT practice.
Performance: This tool draws many boxes/lines/labels. If your chart feels heavy, reduce the number of HTFs or candles shown, or narrow panel width.
Repainting: HTF panels are designed to avoid future leakage; FVG logic follows standard 3-bar checks. As usual, wait for candle closes for confirmations.
Level cleanup: If Keep old CISD levels is OFF (default), the script keeps only the current active CISD to reduce clutter.
Liquidity Sweep Pro (HTF + Confirmation) — patchedHow it works (in brief)
Bearish Sweep: High > (PDH/PWH + tolerance) and close < level, plus the selected confirmation.
Bullish Sweep: Low < (PDL/PWL − tolerance) and close > level, plus the selected confirmation.
Confirmation:
ATR: Candlestick range ≥ atrMult × ATR and candlestick direction matching.
MSS: Micro-structure shift: Bear → close below the most recent mini-low, Bull → close above the most recent mini-high.
ATR+MSS (default): both conditions must be met.
Optional session filter: Signals are only generated within the selected time period (exchange time period).
No repainting - no Lookahead: request.security(..., lookahead=barmerge.lookahead_off)
No repainting - no intrabar flutter: Signals only at candle close via barstate.isconfirmed (own _close signals for plot & alerts)
Use Previous Day High/Low
Activates PDH/PDL (previous day's high/low) as external liquidity levels.
These values come from the previous day's completed candlestick (no lookahead).
Use Previous Week High/Low
Activates PWH/PWL (previous week's high/low) as additional, "heavier" liquidity levels.
Also from the previous week's completed candlestick (no lookahead).
Sweep Tolerance (Ticks)
"Safety margin" in ticks around one level to filter out micro-wicks/spread noise.
Internal: tickSize = syminfo.mintick * tickTol.
Guidelines:
FX (majors, H1–H4): 1–5 ticks
Indices (M5–H1): 1–3 ticks
CFDs/volatile/smaller TFs: 5–10 ticks
Crypto: 5–50 ticks depending on the symbol
Larger = stricter (fewer, cleaner sweeps).
ATR Length
Period for ATR (volatility measure). The standard 14 is acceptable; 10–20 depends on the instrument.
Displacement Factor
Minimum "power" of the sweep candle relative to the current ATR.
Internal: rangeRatio = (High–Low)/ATR and we check rangeRatio > atrMult.
Guidelines:
0.6–0.8 → sensitive (more signals)
0.9–1.2 → stricter (only strong candles)
Micro-Structure Shift Lookback
Depth for the MSS check (structural break in the sweep direction):
Bear sweep: close < lowest(low, mssLen)
Bull sweep: close > highest(high, mssLen)
This ensures that we use the completed micro-structure as a reference (stable).
Guidelines: 3–8 (shorter = more, longer = stricter).
Confirmation Mode
None – only sweep at the level (wick back through the level + close).
ATR – sweep + candle must be "large enough" (rangeRatio > atrMult) and close appropriately (bearish/bullish).
MSS – Sweep + small structural break (MSS) in sweep direction.
ATR+MSS (recommended) – both conditions; very clean, but fewer signals.
Only trigger in session
Signals only within the specified session window.
Session Time (Exchange TZ)
Time window in the symbol's exchange time zone, not your local time.
FX/Indices: e.g., 8:00–17:00 (London/NY core time).
Crypto: often deactivated, as it operates 24/7.
Plot HTF Levels
Displays PDH/PDL/PWH/PWL as lines (for visual orientation).
Color Settings
PDH/PDL Color – Color of the daily levels.
PWH/PWL Color – Color of the weekly levels.
Bull/Bear Sweep Marker – Color of the sweep markers (shapes).
Best Practice Recommendations
Backtest setting: Alerts set to "Once per bar close" – your script will ultimately only generate bar close signals → 1:1 consistency.
Filter more strictly: Increase atrMult (e.g., 1.0–1.2) and mssLen 6–8.
More signals: atrMult 0.6–0.7, mssLen 3–4, but don't leave the tick tolerance too small (false sweeps!).
Instrument-specific:
FX H4/Session trading: Session on, tickTol 1–5, atrMult 0.8–1.0, mssLen 5–6.
Crypto: Session off, atrMult slightly higher (0.9–1.1), tickTol higher depending on the symbol.
Indices: Session on, tickTol 1–3, atrMult 0.8–1.0.
The additional filters
Min Body % / Max Wick %
filter out "pin candles" with a mini body and a large wick. These sweeps are often noise-oriented (stop clears without a real shift) → fewer false positives.
Min Close Distance from Level
requires that the closing price noticeably returns to the range. A close "close" to the level is often indecisive → even fewer false signals.
Divergence Confluence OracleOnly Divergences That Matter
Overview
This indicator supercharges RSI divergence with powerful filters: volume, ADX, and support/resistance (S/R) zones. It pinpoints high-probability reversals in the RSI 30–70 "neutral zone", where turnarounds shine. Built for manual traders, it’s your edge for spotting reversals that pack a punch.
🔍 Core Features
1.RSI Divergence Detection
- Bullish: Price lower low, RSI higher low.
- Bearish: Price higher high, RSI lower high.
- Pivot-based logic ensures precise, non-repainting signals.
- Plotted with color-coded lines/labels (green/red for RSI 30–70, gray outside).
2.Volume Confirmation
- Filters for high activity: volume > SMA(volume, 20) × 1.5.
- Why: High volume signals big players are in, boosting divergence reliability—like the market’s vote of confidence.
3.ADX Trend Filter
- ADX < 20 signals range-bound markets where divergences excel, avoiding trend-driven failures.
- Why: Keeps you out of strong trends where divergences often flop.
4.Support/Resistance (S/R) Zones
Built on LonesomeTheBlue’s pivot-channel method, ranking zones by strength (touches).
Why: Divergences near support (bullish) or resistance (bearish) are high-probability, cutting false signals.
🎨 Visualization
- Color-coded lines/labels: Bright green/red for RSI 30–70, muted gray outside.
- Thicker lines for volume/ADX-confirmed setups.
- Subtle background fills (green/red for confirmed, gray for ranges) make setups pop.
- Alerts for RSI 30–70 divergences, with optional volume/ADX filters.
✅ Why This Indicator is Unique
Unlike basic divergence scripts, it asks:
- Is the market engaged? (Volume)
- Is it reversal-friendly? (ADX)
- Is price at a key level? (S/R)
This trio filters out noise, surfacing only divergences with true weight.
📊 How Traders Might Use It
- Signal Filter: Act on divergences with S/R, volume, and ADX alignment.
- Confluence Tool: Pair with manual trendlines, EMAs (e.g., 9/21), or candlestick setups.
- Alert System: Get notified of high-probability setups without endless scanning.
Disclaimer : This indicator is for educational purposes only and is not intended as financial advice. It should be used in conjunction with manual trendlines, EMAs, and other confirmation tools to support your trading decisions. Always conduct your own analysis.
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.
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.
Xmoon – 3 Push Divergence – PremiumWhat the Xmoon Indicator Does and Why It’s Special
The Xmoon Indicator is an advanced and unique analytical tool, built on years of trading experience, research, and development. It is not merely a combination of a few simple indicators; it is a comprehensive, intelligent system that brings together the three main pillars of trading success—strategy, risk management, and trading psychology—into a single integrated tool.
Strategy
• Xmoon’s core algorithm is based on the 3 Push Divergence pattern in the RSI —a pattern not offered in other indicators. Most existing tools only detect divergence between two highs or two lows, whereas Xmoon can identify three consecutive highs or three consecutive lows with a momentum mismatch, which considerably increases the statistical likelihood of a trend reversal.
Risk Management
• Automatically calculates the size of each step entry based on per-step capital allocation, leverage, and entry/exit prices, using precise, weighted calculations.
• These multi-step calculations run in real time and are shown clearly in the Information Box for quick reading.
• A Liquidity Line (risk threshold) is computed for each setup and plotted on the chart so you can see at a glance where the position would be liquidated (futures) or where the analysis is invalidated (spot).
Psychology & Decision-Making
• From the moment a signal is generated, Xmoon plots all key levels— step entries, risk-free levels, targets, and the liquidity line —so the trader knows from the outset:
o where the profitable exit is if the market follows the analysis;
o where the break-even (risk-free) exit is if the market moves against the analysis.
• This approach significantly reduces stress and emotional decision-making, because both favorable and unfavorable scenarios are predefined.
Logic & Workflow of the Xmoon Indicator
1️⃣ Pivot Detection and Classification
Xmoon first detects price pivots on the chart and classifies them— based on the bar distance between consecutive pivot highs/lows—into four tiers: Super Minor, Minor, Mid-Major, and Major .
The greater the distance between pivots, the larger and more reliable the pivot becomes—though signals are generated less frequently.
2️⃣ Detecting the 3 Push Divergence Pattern
At this stage, Xmoon identifies 3 Push Divergence patterns. The pattern forms when price prints three consecutive pivots in the same direction, i.e.:
• Bullish: three successive higher highs
• Bearish: three successive lower lows
Meanwhile, at the corresponding points on the RSI , momentum moves the other way:
• Bullish case: RSI peaks step down each time — weakening buying pressure
• Bearish case: RSI troughs step up each time — weakening selling pressure
This repeated price–momentum disagreement three times in a row can significantly increase the likelihood of a trend reversal.
3️⃣ Plotting the Pattern and Key Levels
After the pattern is detected, Xmoon draws the divergence lines and plots the following levels on the chart:
• Step entry lines based on the user-defined number of steps and allocated capital.
• Risk-free (break-even) lines for exits without profit or loss.
• Target lines indicating minimum profit objectives.
• Liquidity level (risk threshold) marking where equity would be wiped out in futures.
These visuals let the trader see, at a glance, the full picture of the pattern, planned entries/exits, and the risk range.
4️⃣ Information Box
After the pattern is detected, Xmoon can display an on-chart Information Box alongside each detected pattern (when enabled in the settings). It includes:
• Pivot type: Super Minor, Minor, Mid-Major, or Major.
• Confirmation filters:
1. Higher-timeframe trend based on the 200-period moving average (MA200).
2. Higher-timeframe overbought/oversold status based on RSI.
• Suggested entry size: based on actual capital and leverage.
This box helps the trader quickly see the pattern quality, overall market context, and the suggested position size.
ℹ️ Explanation of Confirmation Filters
Using these filters can increase signal accuracy.
This information is built into the Xmoon indicator, so you don’t need to add any extra indicators or tools to the chart. Xmoon performs the comparisons in real time and displays the filter results in the Information Box .
• Higher-timeframe trend filter: If the higher-timeframe trend based on the 200-period moving average (MA200) is bullish, buy/long signals are stronger; if it’s bearish, sell/short signals are stronger.
• Higher-timeframe overbought/oversold filter: If RSI is in the overbought zone, the probability of success for sell/short signals is higher; in the oversold zone, the probability of success for buy/long signals is higher.
🧩 What are the components of the Xmoon indicator, and why are they combined?
• Core strategy: trend-reversal signals via a proprietary 3 Push Divergence algorithm.
• Multi-stage confirmation: higher-timeframe trend based on MA200 , plus higher-timeframe RSI overbought/oversold confirmation.
• Advanced position sizing: step-based sizing and weighted averaging .
• Structured exit management: risk-free levels, targets , and liquidity level.
• Supports fast decision-making: all vital information at a glance.
This combination turns Xmoon into a complete, practical system that has not been implemented in this integrated way in any similar tool on TradingView, and it is precisely the sum of these features in a single indicator that sets Xmoon apart from comparable tools.
How to Use the Xmoon Indicator
1️⃣ Add to chart: Add the indicator to the chart of your chosen symbol.
2️⃣ Configure parameters: In Settings , adjust the following to match your strategy:
• Number of Entry steps: 2 to 10 steps
• Pivot type: Super Minor / Minor / Mid-Major / Major
• Pattern direction: Bullish / Bearish
• Display options: show lines and the Information Box
• Capital per trade
• Higher-timeframe filters: timeframes for Trend and RSI
3️⃣ Enable alerts: Turn on alerts to receive immediate notifications when a 3 Push Divergence pattern is detected.
4️⃣ Review the Information Box: To assess pattern strength and alignment with the market after a signal appears, check:
• Pivot size: Super Minor / Minor / Mid-Major / Major (for gauging pattern strength)
• Confirmation filters:
1. Whether the detected pattern aligns with the higher-timeframe trend
2. Whether the detected pattern aligns with the higher-timeframe RSI overbought/oversold condition
These details help you decide whether to enter the trade.
5️⃣ Step Entries
After reviewing the conditions, open your first position at Step 1 . If price moves against you and reaches the Step 2 level, open a new position there, and continue opening additional positions at each subsequent step level.
Whenever price reverses from any of these levels and moves in the direction of your analysis, all open positions will move into profit .
In Xmoon, the number of entry steps is fully configurable ( 2 to 10 ). Set it according to your strategy—the system automatically calculates the size of each step based on the capital you allocate.
6️⃣ Exit Management
Depending on market conditions, you can choose one of the following:
• ⚖️ Exit at the risk-free level: when the market is uncertain and you prefer to close at break-even.
• 🎯 Exit at the target level: when price has followed your analysis and you want to realize profit.
⚠️ Liquidity Level
• Spot: analysis invalidation point.
• Futures: the price at which a leveraged position’s equity would be wiped out.
Why the Invite-Only Version of Xmoon Is Worth Getting
• Proprietary 3 Push Divergence detection and confirmation that isn’t available in the free version or generic indicators.
• Automatic, precise capital and step sizing, with visual plotting of key levels from the moment a signal is issued.
• Real-time market context and pattern quality shown in the Information Box—no need to switch timeframes or add extra indicators.
• Risk control and psychological support by outlining predefined scenarios from start to finish of the trade.
• Limited access to help prevent misuse and reduce users’ financial risk, with dedicated training before activation.
• Developed through extensive backtesting and live evaluation; outcomes depend on correct use and market conditions.
We sincerely hope you have successful and profitable trades.
📣 If you have any questions or need further guidance, we’ll be happy to hear from you.
It’s our pleasure to assist you anytime.
🔻🔻🔻 Persian Section – بخش فارسی 🔻🔻🔻
اندیکاتور ایکسمون چه کاری انجام میدهد و چرا خاص است
اندیکاتور ایکسمون یک ابزار تحلیلی پیشرفته و منحصربهفرد است که حاصل سالها تجربه ترید، تحقیق و توسعه است. این اندیکاتور صرفاً ترکیب چند اندیکاتور ساده نیست، بلکه یک سیستم جامع و هوشمند است که سه رکن اصلی موفقیت در معاملات یعنی استراتژی، مدیریت سرمایه و روانشناسی معاملهگری را در یک ابزار یکپارچه گردآورده است
در بخش استراتژی
* الگوریتم اصلی ایکسمون بر اساس الگوی سهپوش واگرایی (تری پوش دایورجنس) در آر-اِس-آی طراحی شده است؛ الگویی که در سایر اندیکاتور ها ارائه نشده است، بیشتر ابزارهای موجود تنها واگرایی بین دو قله یا دو کف را تشخیص میدهند، در حالی که ایکسمون توانایی شناسایی سه قله یا سه کف متوالی با تضاد مومنتوم را دارد که این موضوع از نظر آماری احتمال بازگشت روند را بهمراتب افزایش میدهد
در بخش مدیریت سرمایه
* محاسبه خودکار حجم هر پله، بر اساس سرمایه پله ای، لوریج و قیمتهای ورود/خروج بهصورت دقیق و وزنی انجام میشود
* این محاسبات پیچیده برای چندین پله به شکل لحظهای انجام شده و در باکس اطلاعات به سادهترین شکل نمایش داده میشود
* خط لیکوییدیتی (حد ریسک) برای هر الگو محاسبه و روی نمودار بصورت بصری رسم میشود تا کاربر در یک نگاه بداند سرمایهاش کجا صفر میشود (در فیوچرز) یا تحلیلش کجا باطل میشود (در اسپات)
در بخش روانشناسی و تصمیمگیری
* ایکسمون از همان لحظه صدور سیگنال، تمام خطوط کلیدی (ورودی پلهای، ریسکفری، تارگت، لیکوییدیتی) را رسم میکند تا معاملهگر از ابتدا بداند
* اگر بازار طبق تحلیل پیش برود، خروج سودآور کجاست
* اگر بازار بر خلاف تحلیل پیش برود، نقطه خروج بیضرر (ریسکفری) کجاست
* این رویکرد باعث کاهش شدید استرس و تصمیمگیری احساسی میشود، چون سناریوهای خوشبینانه و بدبینانه از پیش مشخص هستند
⚙️ منطق و روش کار اندیکاتور ایکسمون
1️⃣ شناسایی و طبقهبندی پیوتها
اندیکاتور ایکسمون ابتدا پیوتهای قیمتی را روی نمودار شناسایی کرده و بر اساس فاصلهی کندلی بین سقف یا کف ها، آنها را در چهار دسته طبقهبندی میکند : سوپر مینور، مینور، میدماژور و ماژور
هرچه فاصله بین پیوت ها بیشتر باشد، پیوت بزرگتر و معتبرتر است، اما سیگنالها کمتر تولید میشوند
2️⃣ تشخیص الگوی سهپوش واگرایی
اندیکاتور ایکسمون در این مرحله الگوهای سهپوش واگرایی را شناسایی میکند، این الگو زمانی شکل میگیرد که قیمت سه پیوت متوالی همجهت تشکیل دهد، یعنی
* حالت صعودی : سه سقف پیاپی بالاتر از قبلی
* حالت نزولی : سه کف پیاپی پایینتر از قبلی
و همزمان، در نقاط متناظر در آر-اِس-آی حرکت معکوس دیده شود، به این معنا که
* حالت صعودی، قلههای آر-اِس-آی هر بار پایینتر از قبلی قرار گیرند - کاهش قدرت خرید
* حالت نزولی، درههای آر-اِس-آی هر بار بالاتر از قبلی شکل گیرند - کاهش فشار فروش
این تضاد قیمت و مومنتوم، وقتی سه بار پیاپی رخ دهد، احتمال بازگشت روند را بهشدت افزایش میدهد
3️⃣ ترسیم الگو و نمایش سطوح کلیدی
پس از شناسایی الگو، ایکسمون خطوط واگرایی و همچنین خطوط و سطوح زیر را روی نمودار ترسیم میکند، این موارد شامل
* 📍 خطوط ورود پلهای بر اساس تعداد پله و سرمایه تنظیمشده توسط کاربر
* ⚖️ خطوط ریسکفری برای خروج بدون سود و زیان
* 🎯 خطوط تارگت به عنوان سطوح حداقل سود
* 🛡 سطح لیکوییدیتی (حد ریسک) برای مشخصکردن نقطه صفر شدن سرمایه در معاملات فیوچرز
این ترسیمات باعث میشود معاملهگر در یک نگاه تصویر کامل از الگو، سطوح ورود و خروج و محدوده ریسک داشته باشد
4️⃣ باکس اطلاعات
پس از شناسایی الگو، اندیکاتور ایکسمون یک باکس اطلاعات تکمیلی در کنار هر الگو نمایش میدهد، البته با فعالسازی گزینه مربوطه در تنظیمات، باکس اطلاعات در کنار الگو نمایش داده میشود و شامل موارد زیر میباشد
* 🏷 نوع پیوت : سوپر مینور، مینور، میدماژور یا ماژور
* 📋 فیلترهای تأییدی
یک - جهت روند در تایمفریم بالاتر بر اساس میانگین متحرک دویست
دو - وضعیت اشباع خرید/فروش در تایمفریم بالاتر بر اساس اندیکاتور آر-اِس-آی
* 📊 حجم پیشنهادی ورود : بر اساس سرمایه واقعی و لوریج
این باکس به معاملهگر کمک میکند در یک نگاه کیفیت الگو، شرایط کلی بازار و حجم پیشنهادی ورود را بداند
توضیح درباره فیلترهای تأییدی : استفاده از این فیلترها میتواند دقت سیگنالها را افزایش دهد. این اطلاعات در اندیکاتور ایکسمون موجود است و نیازی نیست اندیکاتور یا ابزار اضافه دیگری به چارت اضافه کنید. ایکسمون مقایسه ها را در لحظه انجام میدهد و نتیجه فیلترها را در باکس اطلاعات به شما نشان میدهد
* فیلتر جهت روند در تایمفریم بالاتر : اگر روند بالاتر بر اساس اِم-اِی-دویست صعودی باشد، سیگنالهای خرید/لانگ قویتر هستند و بالعکس
* فیلتر تشخیص نواحی اشباع خرید/فروش در تایمفریم بالاتر : اگر آر-اِس-آی در محدوده اُورباوت باشد، احتمال موفقیت فروش بیشتر است و در محدوده اُورسولد احتمال موفقیت خرید بالاتر میرود
🧩 اجزای اندیکاتور ایکسمون چه هستند و چرا این اجزا با هم ترکیب شدهاند
* استراتژی اصلی : سیگنال بازگشت روند با الگوریتم اختصاصی سهپوش واگرایی
* تأیید چندمرحلهای جهت روند در تایم فریم بالاتر بر اساس اِم-اِی-دویست و تایید وضعیت بیشینه خرید/فروش در تایم فریم بالاتر در اندیکاتور آر-اِس-آی
* مدیریت سرمایه پیشرفته : محاسبه حجم پلهای و میانگین وزنی
* مدیریت خروج ساختاریافته : سطوح ریسکفری، تارگت، لیکوییدیتی
* پشتیبانی از تصمیمگیری سریع : همه اطلاعات حیاتی در یک نگاه
این ترکیب، ایکسمون را به یک سیستم کامل و کاربردی تبدیل کرده که در هیچ ابزار مشابهی در تریدینگویو به این شکل یکپارچه پیادهسازی نشده است و دقیقاً مجموع این ویژگیها در یک اندیکاتور است که ایکسمون را از ابزارهای مشابه متمایز میکند
📖 نحوه استفاده از اندیکاتور ایکسمون
1️⃣ افزودن اندیکاتور به چارت : اندیکاتور را به نمودار نماد دلخواه اضافه کنید
2️⃣ تنظیم پارامترها : از بخش تنظیمات، موارد زیر را بر اساس استراتژی شخصی خودتان مشخص کنید
* تعداد پلههای ورود: از دو تا ده پله
* نوع پیوت ها: سوپر مینور/مینور/مید-ماژور/ماژور
* نوع الگوها: نزولی/صعودی
* نمایش خطوط و باکس اطلاعات
* تعیین سرمایه در هر معامله
* تایمفریمهای فیلتر اِم-اِی-دویست و آر-اِس-آی
3️⃣ فعالسازی هشدارها : برای اطلاع فوری از شناسایی الگوهای سهپوش واگرایی ، آلارمها را فعال کنید
4️⃣ بررسی باکس اطلاعات : برای سنجش قدرت الگو و همجهتی با بازار، پس از صدور سیگنال، اطلاعات زیر را در باکس مشکی اطلاعات بررسی کنید
* 🏷 نوع پیوت : بررسی میزان قدرت الگو - سوپر مینور، مینور، میدماژور یا ماژور
* 📋 فیلترهای تأییدی
یک - بررسی هم جهتی الگوی شناسایی شده با جهت روند در تایمفریم بالاتر
دو - بررسی هم جهتی الگوی شناسایی شده با وضعیت اشباع خرید یا فروش در اندیکاتور آر-اِس-آی در تایمفریم بالاتر
این اطلاعات به شما کمک میکند تصمیم بگیرید که آیا وارد معامله شوید یا خیر
5️⃣ ورود پلهای
اگر پس از بررسی شرایط تصمیم به ورود گرفتید، اولین پوزیشن را در پله اول باز کنید و در صورتی که بازار در خلاف جهت موردنظر شما حرکت کرد و به سطح پله دوم رسید، یک پوزیشن جدید در همان سطح باز کنید و با رسیدن به سطوح بعدی، پوزیشن های بعدی را باز می کنید
هر زمان که بازار از هر یک از این سطوح برگشت و در جهت تحلیل شما حرکت کرد، تمامی پوزیشنهای باز شده وارد سود میشوند
در اندیکاتور ایکسمون، تعداد پلههای ورودی کاملاً قابلتنظیم است (بین دو تا ده پله ) و شما میتوانید بر اساس استراتژی شخصی خود آن را تعیین کنید، سیستم بهطور خودکار حجم هر پله را بر اساس سرمایه واردشده محاسبه میکند
6️⃣ مدیریت خروج
بسته به شرایط بازار، میتوانید یکی از دو روش زیر را انتخاب کنید
* ⚖️ خروج در سطح ریسکفری : زمانی که بازار نامطمئن است و میخواهید بدون سود یا زیان از معامله خارج شوید
* 🎯 خروج در سطح تارگت : زمانی که قیمت طبق تحلیل شما حرکت کرده است و بدنبال کسب سود هستید
⚠️سطح لیکوییدیتی
* اسپات: نقطه ابطال تحلیل
* فیوچرز: نقطه صفر شدن سرمایه پوزیشن با لوریج
💎 چرا نسخه اینوایت اونلی ایکسمون ارزش تهیه دارد
* الگوریتم اختصاصی شناسایی و تأیید سهپوش واگرایی که در نسخه رایگان یا اندیکاتورهای عمومی وجود ندارد
* محاسبات سرمایه و حجم پلهای بهصورت خودکار و دقیق، همراه با رسم بصری سطوح کلیدی از لحظه صدور سیگنال
* نمایش آنی شرایط بازار و کیفیت الگو در باکس اطلاعات بدون نیاز به تغییر تایمفریم یا افزودن اندیکاتورهای اضافی
* کنترل ریسک و پشتیبانی روانی معاملهگر با ارائه سناریوهای مشخص از ابتدا تا انتهای معامله
* دسترسی محدود برای جلوگیری از استفاده نادرست و کاهش ریسک مالی کاربران، همراه با آموزش اختصاصی پیش از فعالسازی
* اثباتشده در تستها و معاملات واقعی با نتایج قابل اتکا، به شرط استفاده صحیح بر اساس آموزش
صمیمانه امیدواریم معاملات موفق و پرسودی داشته باشید
📣 اگر سوالی دارید یا نیاز به راهنمایی بیشتری دارید، خوشحال میشویم از ما بپرسید
با کمال میل در خدمتتان هستیم
Ultimate Webby RSI 2.0 for MNQ 3m
🔎 Introduction
This is a flexible version of Amphibiantrading’s Webby RSI concept, optimized for MNQ 3-minute trading.
It normalizes the distance of price from moving averages (EMA/SMA) using ATR, producing stretch histograms that highlight overextended moves.
I extended it with:
✅ Swing and Scalper presets (instantly switch via dropdown)
✅ Custom mode (type in your own parameters)
✅ Optional HTF (Higher Timeframe) bias filter — e.g., only show longs when 15m trend is up
✅ Alerts for bull/bear stretches and SMA extension
⚙️ Core Logic
Green histogram = low above EMA (normalized by ATR) → bullish stretch
Red histogram = EMA above high → bearish stretch
Orange line = high above SMA → extension (useful for exhaustion / fade plays)
Stretch Level line = threshold (default depends on Swing vs Scalper preset)
📊 Presets
Choose in the Mode dropdown:
Swing (MNQ 3m)
ATR Length = 100
EMA Length = 34
SMA Length = 14
Stretched Level = 3.8
👉 Fewer, cleaner signals (approx 3–6/day).
Scalper (MNQ 3m)
ATR Length = 34
EMA Length = 13
SMA Length = 8
Stretched Level = 2.4
👉 More signals (approx 15–25/day).
Custom
Enter your own ATR/EMA/SMA/Level values.
🧭 HTF Bias Filter (optional)
Enable the toggle to align entries with a higher-timeframe trend.
Example: HTF timeframe = 15m, EMA(34)
If close > EMA → bull bias (only green/orange plots show)
If close < EMA → bear bias (only red plots show)
Optional background tint shows bias (green = bull, red = bear).
This reduces false signals and keeps you trading with the bigger move.
🚀 How to Use
Add the indicator → In settings, choose Mode (Swing/Scalper/Custom).
Leave Computation timeframe = 3 and Override symbol = MNQ1! for MNQ micro futures.
Watch for histogram/extension values crossing your Stretched Level.
Bull stretch above threshold = price stretched to upside.
Bear stretch above threshold = price stretched to downside.
SMA extension = price extended above SMA, often exhaustion.
(Optional) Turn on HTF Bias to only take trades in the main trend direction.
🔔 Alerts Included
Bull Stretch > Level (positive histogram crosses above level)
Bear Stretch > Level (negative histogram crosses above level)
SMA Extension > Level (SMA line crosses above level)
All alerts automatically respect the HTF bias filter if enabled.
⚠️ Notes & Best Practices
Stretched Level is not RSI OB/OS — it’s distance normalized by ATR. Combine with market structure (VWAP, supply/demand, session levels).
If using higher-TF calculations (via HTF bias), remember values finalize at the close of that TF bar.
Swing preset is better for holding through moves; Scalper preset is better for fast in/out trading.
Always combine with risk management — normalized stretch can still extend further in strong trends.
✅ Credits
Original Webby RSI by Amphibiantrading.
Extended by for flexible MNQ swing/scalp use with HTF filters.
⚖️ Disclaimer
This script is provided for educational purposes only. It does not constitute financial advice or an offer to buy or sell any financial instrument.
Trading futures, stocks, forex, and cryptocurrencies involves substantial risk and may not be suitable for every investor.
Past performance is not indicative of future results.
Always do your own research and consult with a licensed financial advisor before making any trading decisions.
Use at your own risk.
Holt-Winters AlchemistHow It Works
The Holt-Winters Alchemist uses eight filters—Holt-Winters trend, Z-Score volatility, Zero-Lag MACD, Trendline Breaks, Squeeze, RSI, ADX, and Volume—plus an optional HTF filter to generate high-probability signals. Buy signals trigger when all conditions align for bullish breakouts or trend continuations, and sell signals target bearish moves. The dashboard provides clear insights into market conditions, making it ideal for traders seeking reliable entries in trending markets.
Advantages and Disadvantages of Disabling Filters
Customize the indicator by toggling filters. Below are the advantages and disadvantages of disabling each:
RSI Filter (use_rsi_filter=false)
Advantages:No filter increases signal frequency by allowing trades in overbought/oversold conditions, useful in strong trends where prices remain extreme.
Disadvantages: Higher risk of false signals at market tops/bottoms.
Z-Score Volatility Filter (use_zscore=false)
Advantages: No filter boosts signal frequency by allowing trades in low-volatility periods, suitable for scalping or ranging markets.
Disadvantages: Increases exposure to choppy markets, reducing win rates due to signals without sufficient volatility.
Volume Filter (use_volume=false)
Advantages: No filter generates more signals by ignoring volume surges, helpful on exchanges with inconsistent volume data.
Disadvantages: Misses breakout strength validation, increasing false signals in low-volume moves.
HTF Trend Filter (useHTFFilter=false)
Advantages: No filter produces more signals by ignoring Higher Timeframe Trends, ideal for intraday trading.
Disadvantages: Risks signals against broader market trends.
Trendline Break Filter (use_trendline_break=false)
Advantages: No filter increases signals by bypassing breakout confirmation, useful in fast-moving markets.
Disadvantages: Higher false breakout risk as signals may trigger without structural price breaks.
Holt-Winters Concept
The Holt-Winters component smooths price data using three parameters:
Level (alpha=0.2): Adjusts the current price level based on recent data, calculated as level_new = alpha * (close / season_prev) + (1 - alpha) * (level + trend).
Trend (beta=0.1): Tracks the price trend’s direction, updated as trend_new = beta * (level_new - level) + (1 - beta) * trend.
Seasonality (gamma=0.3, season length=14): Captures repeating patterns over a 14-bar cycle, computed as season_new = gamma * (close / level_new) + (1 - gamma) * season_prev, stored in an array for cyclic updates.
This smoothing identifies the underlying trend direction (bullish: trend > 0, bearish: trend < 0) to guide signal generation, ensuring trades align with market momentum.
Recommended Use
Timeframes: Optimized for 1H/4H crypto (BTCUSDT, AVAXUSDT), but adjustable for forex, stocks, or other assets.
Customization: Adjust vol_z_threshold, adx_threshold, or bbw_threshold_factor for more/fewer signals. Disable RSI or Volume for scalping, but keep Z-Score and HTF for trending markets.
Why Choose Holt-Winters Alchemist?
The Holt-Winters Alchemist transforms market data into reliable trading signals with smooth trend detection and robust filters. Perfect for traders seeking high-probability entries in trending markets, this tool offers professional-grade performance for all skill levels.
Start trading smarter today!
Disclaimer: This indicator is for educational purposes only and should not be considered financial advice. Always conduct your own analysis and consider using support and resistance lines for optimal trading decisions.
Volatility Zones (VStop + Bands) — Fixed (v2)📝 What this indicator is
This script is called “Volatility Zones (VStop + Bands)”.
It is an ATR-based volatility indicator that combines dynamic volatility bands, a Volatility Stop line (VStop), and volatility spike detection into a single tool.
Unlike moving average–based indicators, this tool does not rely on averages of price direction. Instead, it measures the market’s true volatility and reacts to expansions or contractions in price ranges.
________________________________________
⚙️ How it is built
The indicator uses several volatility-based components:
1. Average True Range (ATR)
o ATR is calculated over a user-defined length.
o It measures how much price typically moves in a given number of bars, making it the foundation of this indicator.
2. Volatility Bands
o Upper band = close + ATR × factor
o Lower band = close - ATR × factor
o The area between them is shaded.
o This gives traders an immediate visual sense of market volatility width — wide bands = high volatility, narrow bands = quiet market.
3. Volatility Stop (VStop)
o A stateful trailing stop based on ATR.
o It tracks the highest (or lowest) price in the current trend and places a stop offset by ATR × multiplier.
o When price crosses this stop, the indicator flips trend direction.
o This creates a dynamic stop-and-reverse mechanism that adapts to volatility.
4. Trend Zones
o When the trend is bullish, the stop is green and the chart background is shaded softly green.
o When bearish, the stop is red and the background is shaded softly red.
o This makes the market’s directional bias visually clear at all times.
5. Flip Signals (Buy/Sell Arrows)
o Whenever the VStop flips, arrows appear:
Green BUY arrows below price when the trend turns bullish.
Red SELL arrows above price when the trend turns bearish.
o These are also tied to built-in alerts for automation.
6. Volatility Spike Detection
o The script compares current ATR to its recent average.
o If ATR suddenly expands above a threshold, a small yellow “VOL” marker appears at the top of the chart.
o This highlights potential breakout phases or unusual volatility events.
7. Stop Labels
o At every trend flip, a small label appears at the bar, showing the exact stop level.
o This makes it easy to use the stop as a reference for risk management.
________________________________________
📊 How it works in practice
• When price is above the VStop line, the market is considered in an uptrend.
• When price is below the VStop line, the market is in a downtrend.
• The bands expand/contract with volatility, helping traders gauge risk and position sizing.
• Flip arrows signal when trend direction changes.
• Volatility spikes warn traders that the market is entering a higher-risk phase, often before strong moves.
________________________________________
🎯 How it may help traders
• Trend following → Helps traders identify whether the market is trending up or down.
• Stop placement → Provides a dynamic stop level that adjusts to volatility.
• Volatility awareness → Shaded bands and spike markers show when the market is likely to become unstable.
• Trade timing → Flip arrows and labels help identify potential entry or exit points.
• Risk management → Wide bands indicate higher risk; narrow bands suggest safer, tighter ranges.
________________________________________
🌍 In what markets it is useful
Because the indicator is based purely on volatility, it works across all asset classes and timeframes:
• Stocks & ETFs → Helps identify breakouts and long-term trends.
• Forex → Very useful in spot FX where volatility shifts frequently.
• Crypto → ATR reacts strongly to high volatility, helping traders adapt stops dynamically.
• Futures & Commodities → Great for tracking trending commodities and managing risk.
Scalpers, swing traders, and position traders can all benefit by adjusting the ATR length and multipliers to suit their trading style.
________________________________________
💡 Originality of this script
This is not just a mashup of existing indicators. It integrates:
• ATR-based Volatility Bands for context,
• A stateful Volatility Stop (adapted and rewritten cleanly),
• Flip arrows and labels for actionable trading signals,
• Volatility spike detection to highlight regime shifts.
The result is a comprehensive volatility-aware trading tool that goes beyond just plotting ATR or trend stops.
________________________________________
🔔 Alerts
• Buy Flip → triggers when the trend changes bullish.
• Sell Flip → triggers when the trend changes bearish.
Traders can connect these alerts to automated strategies, bots, or notification systems.
Volume Profile Grid [Alpha Extract]A sophisticated volume distribution analysis system that transforms market activity into institutional-grade visual profiles, revealing hidden support/resistance zones and market participant behavior. Utilizing advanced price level segmentation, bullish/bearish volume separation, and dynamic range analysis, the Volume Profile Grid delivers comprehensive market structure insights with Point of Control (POC) identification, Value Area boundaries, and volume delta analysis. The system features intelligent visualization modes, real-time sentiment analysis, and flexible range selection to provide traders with clear, actionable volume-based market context.
🔶 Dynamic Range Analysis Engine
Implements dual-mode range selection with visible chart analysis and fixed period lookback, automatically adjusting to current market view or analyzing specified historical periods. The system intelligently calculates optimal bar counts while maintaining performance through configurable maximum limits, ensuring responsive profile generation across all timeframes with institutional-grade precision.
// Dynamic period calculation with intelligent caching
get_analysis_period() =>
if i_use_visible_range
chart_start_time = chart.left_visible_bar_time
current_time = last_bar_time
time_span = current_time - chart_start_time
tf_seconds = timeframe.in_seconds()
estimated_bars = time_span / (tf_seconds * 1000)
range_bars = math.floor(estimated_bars)
final_bars = math.min(range_bars, i_max_visible_bars)
math.max(final_bars, 50) // Minimum threshold
else
math.max(i_periods, 50)
🔶 Advanced Bull/Bear Volume Separation
Employs sophisticated candle classification algorithms to separate bullish and bearish volume at each price level, with weighted distribution based on bar intersection ratios. The system analyzes open/close relationships to determine volume direction, applying proportional allocation for doji patterns and ensuring accurate representation of buying versus selling pressure across the entire price spectrum.
🔶 Multi-Mode Volume Visualization
Features three distinct display modes for bull/bear volume representation: Split mode creates mirrored profiles from a central axis, Side by Side mode displays sequential bull/bear segments, and Stacked mode separates volumes vertically. Each mode offers unique insights into market participant behavior with customizable width, thickness, and color parameters for optimal visual clarity.
// Bull/Bear volume calculation with weighted distribution
for bar_offset = 0 to actual_periods - 1
bar_high = high
bar_low = low
bar_volume = volume
// Calculate intersection weight
weight = math.min(bar_high, next_level) - math.max(bar_low, current_level)
weight := weight / (bar_high - bar_low)
weighted_volume = bar_volume * weight
// Classify volume direction
if bar_close > bar_open
level_bull_volume += weighted_volume
else if bar_close < bar_open
level_bear_volume += weighted_volume
else // Doji handling
level_bull_volume += weighted_volume * 0.5
level_bear_volume += weighted_volume * 0.5
🔶 Point of Control & Value Area Detection
Implements institutional-standard POC identification by locating the price level with maximum volume accumulation, providing critical support/resistance zones. The Value Area calculation uses sophisticated sorting algorithms to identify the price range containing 70% of trading volume, revealing the market's accepted value zone where institutional participants concentrate their activity.
🔶 Volume Delta Analysis System
Incorporates real-time volume delta calculation with configurable dominance thresholds to identify significant bull/bear imbalances. The system visually highlights price levels where buying or selling pressure exceeds threshold percentages, providing immediate insight into directional volume flow and potential reversal zones through color-coded delta indicators.
// Value Area calculation using 70% volume accumulation
total_volume_sum = array.sum(total_volumes)
target_volume = total_volume_sum * 0.70
// Sort volumes to find highest activity zones
for i = 0 to array.size(sorted_volumes) - 2
for j = i + 1 to array.size(sorted_volumes) - 1
if array.get(sorted_volumes, j) > array.get(sorted_volumes, i)
// Swap and track indices for value area boundaries
// Accumulate until 70% threshold reached
for i = 0 to array.size(sorted_indices) - 1
accumulated_volume += vol
array.push(va_levels, array.get(volume_levels, idx))
if accumulated_volume >= target_volume
break
❓How It Works
🔶 Weighted Volume Distribution
Implements proportional volume allocation based on the percentage of each bar that intersects with price levels. When a bar spans multiple levels, volume is distributed proportionally based on the intersection ratio, ensuring precise representation of trading activity across the entire price spectrum without double-counting or volume loss.
🔶 Real-Time Profile Generation
Profiles regenerate on each bar close when in visible range mode, automatically adapting to chart zoom and scroll actions. The system maintains optimal performance through intelligent caching mechanisms and selective line updates, ensuring smooth operation even with maximum resolution settings and extended analysis periods.
🔶 Market Sentiment Analysis
Features comprehensive volume analysis table displaying total volume metrics, bullish/bearish percentages, and overall market sentiment classification. The system calculates volume dominance ratios in real-time, providing immediate insight into whether buyers or sellers control the current price structure with percentage-based sentiment thresholds.
🔶 Visual Profile Mapping
Provides multi-layered visual feedback through colored volume bars, POC line highlighting, Value Area boundaries, and optional delta indicators. The system supports profile mirroring for alternative perspectives, line extension for future reference, and customizable label positioning with detailed price information at critical levels.
Why Choose Volume Profile Grid
The Volume Profile Grid represents the evolution of volume analysis tools, combining traditional volume profile concepts with modern visualization techniques and intelligent analysis algorithms. By integrating dynamic range selection, sophisticated bull/bear separation, and multi-mode visualization with POC/Value Area detection, it provides traders with institutional-quality market structure analysis that adapts to any trading style. The comprehensive delta analysis and sentiment monitoring system eliminates guesswork while the flexible visualization options ensure optimal clarity across all market conditions, making it an essential tool for traders seeking to understand true market dynamics through volume-based price discovery.
Chart-Only Scanner — Pro Table v2.5.1Chart-Only Scanner — Pro Table v2.5
User Manual (Pine Script v6)
What this tool does (in one line)
A compact, on-chart table that scores the current chart symbol (or an optional override) using momentum, volume, trend, volatility, and pattern checks—so you can quickly decide UP, DOWN, or WAIT.
Quick Start (90 seconds)
Add the indicator to any chart and timeframe (1m…1M).
Leave “Override chart symbol” = OFF to auto-use the chart’s symbol.
Choose your layout:
Row (wide horizontal strip), or Grid (title + labeled cells).
Pick a size preset (Micro, Small, Medium, Large, Mobile).
Optional: turn on “Use Higher TF (EMA 20/50)” and set HTF Multiplier (e.g., 4 ⇒ if chart is 15m, HTF is 60m).
Watch the table:
DIR (↑/↓/→), ROC%, MOM, VOL, EMA stack, HTF, REV, SCORE, ACT.
Add an alert if you want: the script fires when |SCORE| ≥ Action threshold.
What to expect
A small table appears on the chart corner you choose, updating each bar (or only at bar close if you keep default smart-update).
The ACT cell shows 🔥 (strong), 👀 (medium), or ⏳ (weak).
Panels & Settings (every option explained)
Core
Momentum Period: Lookback for rate-of-change (ROC%). Shorter = more reactive; longer = smoother.
ROC% Threshold: Minimum absolute ROC% to call direction UP (↑) or DOWN (↓); otherwise →.
Require Volume Confirmation: If ON and VOL ≤ 1.0, the SCORE is forced to 0 (prevents low-volume false positives).
Override chart symbol + Custom symbol: By default, the indicator uses the chart’s symbol. Turn this ON to lock to a specific ticker (e.g., a perpetual).
Higher TF
Use Higher TF (EMA 20/50): Compares EMA20 vs EMA50 on a higher timeframe.
HTF Multiplier: Higher TF = (chart TF × multiplier).
Example: on 3H chart with multiplier 2 ⇒ HTF = 6H.
Volatility & Oscillators
ATR Length: Used to show ATR% (ATR relative to price).
RSI Length: Standard RSI; colors: green ≤30 (oversold), red ≥70 (overbought).
Stoch %K Length: With %D = SMA(%K, 3).
MACD Fast/Slow/Signal: Standard MACD values; we display Line, Signal, Histogram (L/S/H).
ADX Length (Wilder): Wilder’s smoothing (internal derivation); also shows +DI / −DI if you enable the ADX column.
EMAs / Trend
EMA Fast/Mid/Slow: We compute EMA(20/50/200) by default (editable).
EMA Stack: Bull if Fast > Mid > Slow; Bear if Fast < Mid < Slow; Flat otherwise.
Benchmark (optional, OFF by default)
Show Relative Strength vs Benchmark: Displays RS% = ROC(symbol) − ROC(benchmark) over the Momentum Period.
Benchmark Symbol: Ticker used for comparison (e.g., BTCUSDT as a market proxy).
Columns (show/hide)
Toggle which fields appear in the table. Hiding unused fields keeps the layout clean (especially on mobile).
Display
Layout Mode:
Row = a single two-row strip; each column is a metric.
Grid = a title row plus labeled pairs (label/value) arranged in rows.
Size Preset: Micro, Small, Medium, Large, Mobile change text size and the grid density.
Table Corner: Where the panel sits (e.g., Top Right).
Opaque Table Background: ON = dark card; OFF = transparent(ish).
Update Every Bar: ON = update intra-bar; OFF = smart update (last bar / real-time / confirmed history).
Action threshold (|score|): The cutoff for 🔥 and alert firing (default 70).
How to read each field
CHART: The active symbol name (or your custom override).
DIR: ↑ (ROC% > threshold), ↓ (ROC% < −threshold), → otherwise.
ROC%: Rate of change over Momentum Period.
Formula: (Close − Close ) / Close × 100.
MOM: A scaled momentum score: min(100, |ROC%| × 10).
VOL: Volume ratio vs 20-bar SMA: Volume / SMA(Volume,20).
1.5 highlights as yellow (significant participation).
ATR%: (ATR / Close) × 100 (volatility relative to price).
RSI: Colored for extremes: ≤30 green, ≥70 red.
Stoch K/D: %K and %D numbers.
MACD L/S/H: Line, Signal, Histogram. Histogram color reflects sign (green > 0, red < 0).
ADX, +DI, −DI: Trend strength and directional components (Wilder). ADX ≥ 25 is highlighted.
EMA 20/50/200: Current EMA values (editable lengths).
STACK: Bull/Bear/Flat as defined above.
VWAP%: (Close − VWAP) / Close × 100 (premium/discount to VWAP).
HTF: ▲ if HTF EMA20 > EMA50; ▼ if <; · if flat/off.
RS%: Symbol’s ROC% − Benchmark ROC% (positive = outperforming).
REV (reversal):
🟢 Eng/Pin = bullish engulfing or bullish pin detected,
🔴 Eng/Pin = bearish engulfing or bearish pin,
· = none.
SCORE (absolute shown as a number; sign shown via DIR and ACT):
Components:
base = MOM × 0.4
volBonus = VOL > 1.5 ? 20 : VOL × 13.33
htfBonus = use_mtf ? (HTF == DIR ? 30 : HTF == 0 ? 15 : 0) : 0
trendBonus = (STACK == DIR) ? 10 : 0
macdBonus = 0 (placeholder for future versions)
scoreRaw = base + volBonus + htfBonus + trendBonus + macdBonus
SCORE = DIR ≥ 0 ? scoreRaw : −scoreRaw
If Require Volume Confirmation and VOL ≤ 1.0 ⇒ SCORE = 0.
ACT:
🔥 if |SCORE| ≥ threshold
👀 if 50 < |SCORE| < threshold
⏳ otherwise
Practical examples
Strong long (trend + participation)
DIR = ↑, ROC% = +3.2, MOM ≈ 32, VOL = 1.9, STACK = Bull, HTF = ▲, REV = 🟢
SCORE: base(12.8) + volBonus(20) + htfBonus(30) + trend(10) ≈ 73 → ACT = 🔥
Action idea: look for longs on pullbacks; confirm risk with ATR%.
Weak long (no volume)
DIR = ↑, ROC% = +1.0, but VOL = 0.8 and Require Volume Confirmation = ON
SCORE forced to 0 → ACT = ⏳
Action: wait for volume > 1.0 or turn off confirmation knowingly.
Bearish reversal warning
DIR = →, REV = 🔴 (bearish engulfing), RSI = 68, HTF = ▼
SCORE may be mid-range; ACT = 👀
Action: watch for breakdown and rising VOL.
Alerts (how to use)
The script calls alert() whenever |SCORE| ≥ Action threshold.
To receive pop-ups, sounds, or emails: click “⏰ Alerts” in TradingView, choose this indicator, and pick “Any alert() function call.”
The alert message includes: symbol, |SCORE|, DIR.
Layout, Size, and Corner tips
Row is best when you want a compact status ribbon across the top.
Grid is clearer on big screens or when you enable many columns.
Size:
Mobile = one pair per row (tall, readable)
Micro/Small = dense; good for many fields
Large = presentation/screenshots
Corner: If the table overlaps price, change the corner or set Opaque Background = OFF.
Repaint & timeframe behavior
Default smart update prefers stability (last bar / live / confirmed history).
For a stricter, “close-only” behavior (less repaint): turn Update Every Bar = OFF and avoid Heikin Ashi when you want raw market OHLC (HA modifies price inputs).
HTF logic is derived from a clean, integer multiple of your chart timeframe (via multiplier). It works with 3H/4H and any TF.
Performance notes
The script analyzes one symbol (chart or override) with multiple metrics using efficient tuple requests.
If you later want a multi-symbol grid, do it with pages (10–15 per page + rotate) to stay within platform limits (recommended future add-on).
Troubleshooting
No table visible
Ensure the indicator is added and not hidden.
Try toggling Opaque Background or switch Corner (it might be behind other drawings).
Keep Columns count reasonable for the chosen Size.
If you turned ON Override, verify the Custom symbol exists on your data provider.
Numbers look different on HA candles
Heikin Ashi modifies OHLC; switch to regular candles if you need raw price metrics.
3H/4H issues
Use integer HTF Multiplier (e.g., 2, 4). The tool builds the correct string internally; no manual timeframe strings needed.
Power user tips
Volume gating: keeping Require Volume Confirmation = ON filters most fake moves; if you’re a scalper, reduce strictness or turn it off.
Action threshold: 60–80 is typical. Higher = fewer but stronger signals.
Benchmark RS%: great for spotting leaders/laggards; positive RS% = outperformance vs benchmark.
Change policy & safety
This version doesn’t alter your historical logic you tested (no radical changes).
Any future “radical” change (score weights, HTF logic, UI hiding data) will ship with a toggle and an Impact Statement so you can keep old behavior if you prefer.
Glossary (quick)
ROC%: Percent change over N bars.
MOM: Scaled momentum (0–100).
VOL ratio: Volume vs 20-bar average.
ATR%: ATR as % of price.
ADX/DI: Trend strength / direction components (Wilder).
EMA stack: Relationship between EMAs (bullish/bearish/flat).
VWAP%: Premium/discount to VWAP.
RS%: Relative strength vs benchmark.
Markov Chain [3D] | FractalystWhat exactly is a Markov Chain?
This indicator uses a Markov Chain model to analyze, quantify, and visualize the transitions between market regimes (Bull, Bear, Neutral) on your chart. It dynamically detects these regimes in real-time, calculates transition probabilities, and displays them as animated 3D spheres and arrows, giving traders intuitive insight into current and future market conditions.
How does a Markov Chain work, and how should I read this spheres-and-arrows diagram?
Think of three weather modes: Sunny, Rainy, Cloudy.
Each sphere is one mode. The loop on a sphere means “stay the same next step” (e.g., Sunny again tomorrow).
The arrows leaving a sphere show where things usually go next if they change (e.g., Sunny moving to Cloudy).
Some paths matter more than others. A more prominent loop means the current mode tends to persist. A more prominent outgoing arrow means a change to that destination is the usual next step.
Direction isn’t symmetric: moving Sunny→Cloudy can behave differently than Cloudy→Sunny.
Now relabel the spheres to markets: Bull, Bear, Neutral.
Spheres: market regimes (uptrend, downtrend, range).
Self‑loop: tendency for the current regime to continue on the next bar.
Arrows: the most common next regime if a switch happens.
How to read: Start at the sphere that matches current bar state. If the loop stands out, expect continuation. If one outgoing path stands out, that switch is the typical next step. Opposite directions can differ (Bear→Neutral doesn’t have to match Neutral→Bear).
What states and transitions are shown?
The three market states visualized are:
Bullish (Bull): Upward or strong-market regime.
Bearish (Bear): Downward or weak-market regime.
Neutral: Sideways or range-bound regime.
Bidirectional animated arrows and probability labels show how likely the market is to move from one regime to another (e.g., Bull → Bear or Neutral → Bull).
How does the regime detection system work?
You can use either built-in price returns (based on adaptive Z-score normalization) or supply three custom indicators (such as volume, oscillators, etc.).
Values are statistically normalized (Z-scored) over a configurable lookback period.
The normalized outputs are classified into Bull, Bear, or Neutral zones.
If using three indicators, their regime signals are averaged and smoothed for robustness.
How are transition probabilities calculated?
On every confirmed bar, the algorithm tracks the sequence of detected market states, then builds a rolling window of transitions.
The code maintains a transition count matrix for all regime pairs (e.g., Bull → Bear).
Transition probabilities are extracted for each possible state change using Laplace smoothing for numerical stability, and frequently updated in real-time.
What is unique about the visualization?
3D animated spheres represent each regime and change visually when active.
Animated, bidirectional arrows reveal transition probabilities and allow you to see both dominant and less likely regime flows.
Particles (moving dots) animate along the arrows, enhancing the perception of regime flow direction and speed.
All elements dynamically update with each new price bar, providing a live market map in an intuitive, engaging format.
Can I use custom indicators for regime classification?
Yes! Enable the "Custom Indicators" switch and select any three chart series as inputs. These will be normalized and combined (each with equal weight), broadening the regime classification beyond just price-based movement.
What does the “Lookback Period” control?
Lookback Period (default: 100) sets how much historical data builds the probability matrix. Shorter periods adapt faster to regime changes but may be noisier. Longer periods are more stable but slower to adapt.
How is this different from a Hidden Markov Model (HMM)?
It sets the window for both regime detection and probability calculations. Lower values make the system more reactive, but potentially noisier. Higher values smooth estimates and make the system more robust.
How is this Markov Chain different from a Hidden Markov Model (HMM)?
Markov Chain (as here): All market regimes (Bull, Bear, Neutral) are directly observable on the chart. The transition matrix is built from actual detected regimes, keeping the model simple and interpretable.
Hidden Markov Model: The actual regimes are unobservable ("hidden") and must be inferred from market output or indicator "emissions" using statistical learning algorithms. HMMs are more complex, can capture more subtle structure, but are harder to visualize and require additional machine learning steps for training.
A standard Markov Chain models transitions between observable states using a simple transition matrix, while a Hidden Markov Model assumes the true states are hidden (latent) and must be inferred from observable “emissions” like price or volume data. In practical terms, a Markov Chain is transparent and easier to implement and interpret; an HMM is more expressive but requires statistical inference to estimate hidden states from data.
Markov Chain: states are observable; you directly count or estimate transition probabilities between visible states. This makes it simpler, faster, and easier to validate and tune.
HMM: states are hidden; you only observe emissions generated by those latent states. Learning involves machine learning/statistical algorithms (commonly Baum–Welch/EM for training and Viterbi for decoding) to infer both the transition dynamics and the most likely hidden state sequence from data.
How does the indicator avoid “repainting” or look-ahead bias?
All regime changes and matrix updates happen only on confirmed (closed) bars, so no future data is leaked, ensuring reliable real-time operation.
Are there practical tuning tips?
Tune the Lookback Period for your asset/timeframe: shorter for fast markets, longer for stability.
Use custom indicators if your asset has unique regime drivers.
Watch for rapid changes in transition probabilities as early warning of a possible regime shift.
Who is this indicator for?
Quants and quantitative researchers exploring probabilistic market modeling, especially those interested in regime-switching dynamics and Markov models.
Programmers and system developers who need a probabilistic regime filter for systematic and algorithmic backtesting:
The Markov Chain indicator is ideally suited for programmatic integration via its bias output (1 = Bull, 0 = Neutral, -1 = Bear).
Although the visualization is engaging, the core output is designed for automated, rules-based workflows—not for discretionary/manual trading decisions.
Developers can connect the indicator’s output directly to their Pine Script logic (using input.source()), allowing rapid and robust backtesting of regime-based strategies.
It acts as a plug-and-play regime filter: simply plug the bias output into your entry/exit logic, and you have a scientifically robust, probabilistically-derived signal for filtering, timing, position sizing, or risk regimes.
The MC's output is intentionally "trinary" (1/0/-1), focusing on clear regime states for unambiguous decision-making in code. If you require nuanced, multi-probability or soft-label state vectors, consider expanding the indicator or stacking it with a probability-weighted logic layer in your scripting.
Because it avoids subjectivity, this approach is optimal for systematic quants, algo developers building backtested, repeatable strategies based on probabilistic regime analysis.
What's the mathematical foundation behind this?
The mathematical foundation behind this Markov Chain indicator—and probabilistic regime detection in finance—draws from two principal models: the (standard) Markov Chain and the Hidden Markov Model (HMM).
How to use this indicator programmatically?
The Markov Chain indicator automatically exports a bias value (+1 for Bullish, -1 for Bearish, 0 for Neutral) as a plot visible in the Data Window. This allows you to integrate its regime signal into your own scripts and strategies for backtesting, automation, or live trading.
Step-by-Step Integration with Pine Script (input.source)
Add the Markov Chain indicator to your chart.
This must be done first, since your custom script will "pull" the bias signal from the indicator's plot.
In your strategy, create an input using input.source()
Example:
//@version=5
strategy("MC Bias Strategy Example")
mcBias = input.source(close, "MC Bias Source")
After saving, go to your script’s settings. For the “MC Bias Source” input, select the plot/output of the Markov Chain indicator (typically its bias plot).
Use the bias in your trading logic
Example (long only on Bull, flat otherwise):
if mcBias == 1
strategy.entry("Long", strategy.long)
else
strategy.close("Long")
For more advanced workflows, combine mcBias with additional filters or trailing stops.
How does this work behind-the-scenes?
TradingView’s input.source() lets you use any plot from another indicator as a real-time, “live” data feed in your own script (source).
The selected bias signal is available to your Pine code as a variable, enabling logical decisions based on regime (trend-following, mean-reversion, etc.).
This enables powerful strategy modularity : decouple regime detection from entry/exit logic, allowing fast experimentation without rewriting core signal code.
Integrating 45+ Indicators with Your Markov Chain — How & Why
The Enhanced Custom Indicators Export script exports a massive suite of over 45 technical indicators—ranging from classic momentum (RSI, MACD, Stochastic, etc.) to trend, volume, volatility, and oscillator tools—all pre-calculated, centered/scaled, and available as plots.
// Enhanced Custom Indicators Export - 45 Technical Indicators
// Comprehensive technical analysis suite for advanced market regime detection
//@version=6
indicator('Enhanced Custom Indicators Export | Fractalyst', shorttitle='Enhanced CI Export', overlay=false, scale=scale.right, max_labels_count=500, max_lines_count=500)
// |----- Input Parameters -----| //
momentum_group = "Momentum Indicators"
trend_group = "Trend Indicators"
volume_group = "Volume Indicators"
volatility_group = "Volatility Indicators"
oscillator_group = "Oscillator Indicators"
display_group = "Display Settings"
// Common lengths
length_14 = input.int(14, "Standard Length (14)", minval=1, maxval=100, group=momentum_group)
length_20 = input.int(20, "Medium Length (20)", minval=1, maxval=200, group=trend_group)
length_50 = input.int(50, "Long Length (50)", minval=1, maxval=200, group=trend_group)
// Display options
show_table = input.bool(true, "Show Values Table", group=display_group)
table_size = input.string("Small", "Table Size", options= , group=display_group)
// |----- MOMENTUM INDICATORS (15 indicators) -----| //
// 1. RSI (Relative Strength Index)
rsi_14 = ta.rsi(close, length_14)
rsi_centered = rsi_14 - 50
// 2. Stochastic Oscillator
stoch_k = ta.stoch(close, high, low, length_14)
stoch_d = ta.sma(stoch_k, 3)
stoch_centered = stoch_k - 50
// 3. Williams %R
williams_r = ta.stoch(close, high, low, length_14) - 100
// 4. MACD (Moving Average Convergence Divergence)
= ta.macd(close, 12, 26, 9)
// 5. Momentum (Rate of Change)
momentum = ta.mom(close, length_14)
momentum_pct = (momentum / close ) * 100
// 6. Rate of Change (ROC)
roc = ta.roc(close, length_14)
// 7. Commodity Channel Index (CCI)
cci = ta.cci(close, length_20)
// 8. Money Flow Index (MFI)
mfi = ta.mfi(close, length_14)
mfi_centered = mfi - 50
// 9. Awesome Oscillator (AO)
ao = ta.sma(hl2, 5) - ta.sma(hl2, 34)
// 10. Accelerator Oscillator (AC)
ac = ao - ta.sma(ao, 5)
// 11. Chande Momentum Oscillator (CMO)
cmo = ta.cmo(close, length_14)
// 12. Detrended Price Oscillator (DPO)
dpo = close - ta.sma(close, length_20)
// 13. Price Oscillator (PPO)
ppo = ta.sma(close, 12) - ta.sma(close, 26)
ppo_pct = (ppo / ta.sma(close, 26)) * 100
// 14. TRIX
trix_ema1 = ta.ema(close, length_14)
trix_ema2 = ta.ema(trix_ema1, length_14)
trix_ema3 = ta.ema(trix_ema2, length_14)
trix = ta.roc(trix_ema3, 1) * 10000
// 15. Klinger Oscillator
klinger = ta.ema(volume * (high + low + close) / 3, 34) - ta.ema(volume * (high + low + close) / 3, 55)
// 16. Fisher Transform
fisher_hl2 = 0.5 * (hl2 - ta.lowest(hl2, 10)) / (ta.highest(hl2, 10) - ta.lowest(hl2, 10)) - 0.25
fisher = 0.5 * math.log((1 + fisher_hl2) / (1 - fisher_hl2))
// 17. Stochastic RSI
stoch_rsi = ta.stoch(rsi_14, rsi_14, rsi_14, length_14)
stoch_rsi_centered = stoch_rsi - 50
// 18. Relative Vigor Index (RVI)
rvi_num = ta.swma(close - open)
rvi_den = ta.swma(high - low)
rvi = rvi_den != 0 ? rvi_num / rvi_den : 0
// 19. Balance of Power (BOP)
bop = (close - open) / (high - low)
// |----- TREND INDICATORS (10 indicators) -----| //
// 20. Simple Moving Average Momentum
sma_20 = ta.sma(close, length_20)
sma_momentum = ((close - sma_20) / sma_20) * 100
// 21. Exponential Moving Average Momentum
ema_20 = ta.ema(close, length_20)
ema_momentum = ((close - ema_20) / ema_20) * 100
// 22. Parabolic SAR
sar = ta.sar(0.02, 0.02, 0.2)
sar_trend = close > sar ? 1 : -1
// 23. Linear Regression Slope
lr_slope = ta.linreg(close, length_20, 0) - ta.linreg(close, length_20, 1)
// 24. Moving Average Convergence (MAC)
mac = ta.sma(close, 10) - ta.sma(close, 30)
// 25. Trend Intensity Index (TII)
tii_sum = 0.0
for i = 1 to length_20
tii_sum += close > close ? 1 : 0
tii = (tii_sum / length_20) * 100
// 26. Ichimoku Cloud Components
ichimoku_tenkan = (ta.highest(high, 9) + ta.lowest(low, 9)) / 2
ichimoku_kijun = (ta.highest(high, 26) + ta.lowest(low, 26)) / 2
ichimoku_signal = ichimoku_tenkan > ichimoku_kijun ? 1 : -1
// 27. MESA Adaptive Moving Average (MAMA)
mama_alpha = 2.0 / (length_20 + 1)
mama = ta.ema(close, length_20)
mama_momentum = ((close - mama) / mama) * 100
// 28. Zero Lag Exponential Moving Average (ZLEMA)
zlema_lag = math.round((length_20 - 1) / 2)
zlema_data = close + (close - close )
zlema = ta.ema(zlema_data, length_20)
zlema_momentum = ((close - zlema) / zlema) * 100
// |----- VOLUME INDICATORS (6 indicators) -----| //
// 29. On-Balance Volume (OBV)
obv = ta.obv
// 30. Volume Rate of Change (VROC)
vroc = ta.roc(volume, length_14)
// 31. Price Volume Trend (PVT)
pvt = ta.pvt
// 32. Negative Volume Index (NVI)
nvi = 0.0
nvi := volume < volume ? nvi + ((close - close ) / close ) * nvi : nvi
// 33. Positive Volume Index (PVI)
pvi = 0.0
pvi := volume > volume ? pvi + ((close - close ) / close ) * pvi : pvi
// 34. Volume Oscillator
vol_osc = ta.sma(volume, 5) - ta.sma(volume, 10)
// 35. Ease of Movement (EOM)
eom_distance = high - low
eom_box_height = volume / 1000000
eom = eom_box_height != 0 ? eom_distance / eom_box_height : 0
eom_sma = ta.sma(eom, length_14)
// 36. Force Index
force_index = volume * (close - close )
force_index_sma = ta.sma(force_index, length_14)
// |----- VOLATILITY INDICATORS (10 indicators) -----| //
// 37. Average True Range (ATR)
atr = ta.atr(length_14)
atr_pct = (atr / close) * 100
// 38. Bollinger Bands Position
bb_basis = ta.sma(close, length_20)
bb_dev = 2.0 * ta.stdev(close, length_20)
bb_upper = bb_basis + bb_dev
bb_lower = bb_basis - bb_dev
bb_position = bb_dev != 0 ? (close - bb_basis) / bb_dev : 0
bb_width = bb_dev != 0 ? (bb_upper - bb_lower) / bb_basis * 100 : 0
// 39. Keltner Channels Position
kc_basis = ta.ema(close, length_20)
kc_range = ta.ema(ta.tr, length_20)
kc_upper = kc_basis + (2.0 * kc_range)
kc_lower = kc_basis - (2.0 * kc_range)
kc_position = kc_range != 0 ? (close - kc_basis) / kc_range : 0
// 40. Donchian Channels Position
dc_upper = ta.highest(high, length_20)
dc_lower = ta.lowest(low, length_20)
dc_basis = (dc_upper + dc_lower) / 2
dc_position = (dc_upper - dc_lower) != 0 ? (close - dc_basis) / (dc_upper - dc_lower) : 0
// 41. Standard Deviation
std_dev = ta.stdev(close, length_20)
std_dev_pct = (std_dev / close) * 100
// 42. Relative Volatility Index (RVI)
rvi_up = ta.stdev(close > close ? close : 0, length_14)
rvi_down = ta.stdev(close < close ? close : 0, length_14)
rvi_total = rvi_up + rvi_down
rvi_volatility = rvi_total != 0 ? (rvi_up / rvi_total) * 100 : 50
// 43. Historical Volatility
hv_returns = math.log(close / close )
hv = ta.stdev(hv_returns, length_20) * math.sqrt(252) * 100
// 44. Garman-Klass Volatility
gk_vol = math.log(high/low) * math.log(high/low) - (2*math.log(2)-1) * math.log(close/open) * math.log(close/open)
gk_volatility = math.sqrt(ta.sma(gk_vol, length_20)) * 100
// 45. Parkinson Volatility
park_vol = math.log(high/low) * math.log(high/low)
parkinson = math.sqrt(ta.sma(park_vol, length_20) / (4 * math.log(2))) * 100
// 46. Rogers-Satchell Volatility
rs_vol = math.log(high/close) * math.log(high/open) + math.log(low/close) * math.log(low/open)
rogers_satchell = math.sqrt(ta.sma(rs_vol, length_20)) * 100
// |----- OSCILLATOR INDICATORS (5 indicators) -----| //
// 47. Elder Ray Index
elder_bull = high - ta.ema(close, 13)
elder_bear = low - ta.ema(close, 13)
elder_power = elder_bull + elder_bear
// 48. Schaff Trend Cycle (STC)
stc_macd = ta.ema(close, 23) - ta.ema(close, 50)
stc_k = ta.stoch(stc_macd, stc_macd, stc_macd, 10)
stc_d = ta.ema(stc_k, 3)
stc = ta.stoch(stc_d, stc_d, stc_d, 10)
// 49. Coppock Curve
coppock_roc1 = ta.roc(close, 14)
coppock_roc2 = ta.roc(close, 11)
coppock = ta.wma(coppock_roc1 + coppock_roc2, 10)
// 50. Know Sure Thing (KST)
kst_roc1 = ta.roc(close, 10)
kst_roc2 = ta.roc(close, 15)
kst_roc3 = ta.roc(close, 20)
kst_roc4 = ta.roc(close, 30)
kst = ta.sma(kst_roc1, 10) + 2*ta.sma(kst_roc2, 10) + 3*ta.sma(kst_roc3, 10) + 4*ta.sma(kst_roc4, 15)
// 51. Percentage Price Oscillator (PPO)
ppo_line = ((ta.ema(close, 12) - ta.ema(close, 26)) / ta.ema(close, 26)) * 100
ppo_signal = ta.ema(ppo_line, 9)
ppo_histogram = ppo_line - ppo_signal
// |----- PLOT MAIN INDICATORS -----| //
// Plot key momentum indicators
plot(rsi_centered, title="01_RSI_Centered", color=color.purple, linewidth=1)
plot(stoch_centered, title="02_Stoch_Centered", color=color.blue, linewidth=1)
plot(williams_r, title="03_Williams_R", color=color.red, linewidth=1)
plot(macd_histogram, title="04_MACD_Histogram", color=color.orange, linewidth=1)
plot(cci, title="05_CCI", color=color.green, linewidth=1)
// Plot trend indicators
plot(sma_momentum, title="06_SMA_Momentum", color=color.navy, linewidth=1)
plot(ema_momentum, title="07_EMA_Momentum", color=color.maroon, linewidth=1)
plot(sar_trend, title="08_SAR_Trend", color=color.teal, linewidth=1)
plot(lr_slope, title="09_LR_Slope", color=color.lime, linewidth=1)
plot(mac, title="10_MAC", color=color.fuchsia, linewidth=1)
// Plot volatility indicators
plot(atr_pct, title="11_ATR_Pct", color=color.yellow, linewidth=1)
plot(bb_position, title="12_BB_Position", color=color.aqua, linewidth=1)
plot(kc_position, title="13_KC_Position", color=color.olive, linewidth=1)
plot(std_dev_pct, title="14_StdDev_Pct", color=color.silver, linewidth=1)
plot(bb_width, title="15_BB_Width", color=color.gray, linewidth=1)
// Plot volume indicators
plot(vroc, title="16_VROC", color=color.blue, linewidth=1)
plot(eom_sma, title="17_EOM", color=color.red, linewidth=1)
plot(vol_osc, title="18_Vol_Osc", color=color.green, linewidth=1)
plot(force_index_sma, title="19_Force_Index", color=color.orange, linewidth=1)
plot(obv, title="20_OBV", color=color.purple, linewidth=1)
// Plot additional oscillators
plot(ao, title="21_Awesome_Osc", color=color.navy, linewidth=1)
plot(cmo, title="22_CMO", color=color.maroon, linewidth=1)
plot(dpo, title="23_DPO", color=color.teal, linewidth=1)
plot(trix, title="24_TRIX", color=color.lime, linewidth=1)
plot(fisher, title="25_Fisher", color=color.fuchsia, linewidth=1)
// Plot more momentum indicators
plot(mfi_centered, title="26_MFI_Centered", color=color.yellow, linewidth=1)
plot(ac, title="27_AC", color=color.aqua, linewidth=1)
plot(ppo_pct, title="28_PPO_Pct", color=color.olive, linewidth=1)
plot(stoch_rsi_centered, title="29_StochRSI_Centered", color=color.silver, linewidth=1)
plot(klinger, title="30_Klinger", color=color.gray, linewidth=1)
// Plot trend continuation
plot(tii, title="31_TII", color=color.blue, linewidth=1)
plot(ichimoku_signal, title="32_Ichimoku_Signal", color=color.red, linewidth=1)
plot(mama_momentum, title="33_MAMA_Momentum", color=color.green, linewidth=1)
plot(zlema_momentum, title="34_ZLEMA_Momentum", color=color.orange, linewidth=1)
plot(bop, title="35_BOP", color=color.purple, linewidth=1)
// Plot volume continuation
plot(nvi, title="36_NVI", color=color.navy, linewidth=1)
plot(pvi, title="37_PVI", color=color.maroon, linewidth=1)
plot(momentum_pct, title="38_Momentum_Pct", color=color.teal, linewidth=1)
plot(roc, title="39_ROC", color=color.lime, linewidth=1)
plot(rvi, title="40_RVI", color=color.fuchsia, linewidth=1)
// Plot volatility continuation
plot(dc_position, title="41_DC_Position", color=color.yellow, linewidth=1)
plot(rvi_volatility, title="42_RVI_Volatility", color=color.aqua, linewidth=1)
plot(hv, title="43_Historical_Vol", color=color.olive, linewidth=1)
plot(gk_volatility, title="44_GK_Volatility", color=color.silver, linewidth=1)
plot(parkinson, title="45_Parkinson_Vol", color=color.gray, linewidth=1)
// Plot final oscillators
plot(rogers_satchell, title="46_RS_Volatility", color=color.blue, linewidth=1)
plot(elder_power, title="47_Elder_Power", color=color.red, linewidth=1)
plot(stc, title="48_STC", color=color.green, linewidth=1)
plot(coppock, title="49_Coppock", color=color.orange, linewidth=1)
plot(kst, title="50_KST", color=color.purple, linewidth=1)
// Plot final indicators
plot(ppo_histogram, title="51_PPO_Histogram", color=color.navy, linewidth=1)
plot(pvt, title="52_PVT", color=color.maroon, linewidth=1)
// |----- Reference Lines -----| //
hline(0, "Zero Line", color=color.gray, linestyle=hline.style_dashed, linewidth=1)
hline(50, "Midline", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(-50, "Lower Midline", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(25, "Upper Threshold", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(-25, "Lower Threshold", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
// |----- Enhanced Information Table -----| //
if show_table and barstate.islast
table_position = position.top_right
table_text_size = table_size == "Tiny" ? size.tiny : table_size == "Small" ? size.small : size.normal
var table info_table = table.new(table_position, 3, 18, bgcolor=color.new(color.white, 85), border_width=1, border_color=color.gray)
// Headers
table.cell(info_table, 0, 0, 'Category', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
table.cell(info_table, 1, 0, 'Indicator', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
table.cell(info_table, 2, 0, 'Value', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
// Key Momentum Indicators
table.cell(info_table, 0, 1, 'MOMENTUM', text_color=color.purple, text_size=table_text_size, bgcolor=color.new(color.purple, 90))
table.cell(info_table, 1, 1, 'RSI Centered', text_color=color.purple, text_size=table_text_size)
table.cell(info_table, 2, 1, str.tostring(rsi_centered, '0.00'), text_color=color.purple, text_size=table_text_size)
table.cell(info_table, 0, 2, '', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 1, 2, 'Stoch Centered', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 2, str.tostring(stoch_centered, '0.00'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 3, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 3, 'Williams %R', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 3, str.tostring(williams_r, '0.00'), text_color=color.red, text_size=table_text_size)
table.cell(info_table, 0, 4, '', text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 1, 4, 'MACD Histogram', text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 2, 4, str.tostring(macd_histogram, '0.000'), text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 0, 5, '', text_color=color.green, text_size=table_text_size)
table.cell(info_table, 1, 5, 'CCI', text_color=color.green, text_size=table_text_size)
table.cell(info_table, 2, 5, str.tostring(cci, '0.00'), text_color=color.green, text_size=table_text_size)
// Key Trend Indicators
table.cell(info_table, 0, 6, 'TREND', text_color=color.navy, text_size=table_text_size, bgcolor=color.new(color.navy, 90))
table.cell(info_table, 1, 6, 'SMA Momentum %', text_color=color.navy, text_size=table_text_size)
table.cell(info_table, 2, 6, str.tostring(sma_momentum, '0.00'), text_color=color.navy, text_size=table_text_size)
table.cell(info_table, 0, 7, '', text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 1, 7, 'EMA Momentum %', text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 2, 7, str.tostring(ema_momentum, '0.00'), text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 0, 8, '', text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 1, 8, 'SAR Trend', text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 2, 8, str.tostring(sar_trend, '0'), text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 0, 9, '', text_color=color.lime, text_size=table_text_size)
table.cell(info_table, 1, 9, 'Linear Regression', text_color=color.lime, text_size=table_text_size)
table.cell(info_table, 2, 9, str.tostring(lr_slope, '0.000'), text_color=color.lime, text_size=table_text_size)
// Key Volatility Indicators
table.cell(info_table, 0, 10, 'VOLATILITY', text_color=color.yellow, text_size=table_text_size, bgcolor=color.new(color.yellow, 90))
table.cell(info_table, 1, 10, 'ATR %', text_color=color.yellow, text_size=table_text_size)
table.cell(info_table, 2, 10, str.tostring(atr_pct, '0.00'), text_color=color.yellow, text_size=table_text_size)
table.cell(info_table, 0, 11, '', text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 1, 11, 'BB Position', text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 2, 11, str.tostring(bb_position, '0.00'), text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 0, 12, '', text_color=color.olive, text_size=table_text_size)
table.cell(info_table, 1, 12, 'KC Position', text_color=color.olive, text_size=table_text_size)
table.cell(info_table, 2, 12, str.tostring(kc_position, '0.00'), text_color=color.olive, text_size=table_text_size)
// Key Volume Indicators
table.cell(info_table, 0, 13, 'VOLUME', text_color=color.blue, text_size=table_text_size, bgcolor=color.new(color.blue, 90))
table.cell(info_table, 1, 13, 'Volume ROC', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 13, str.tostring(vroc, '0.00'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 14, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 14, 'EOM', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 14, str.tostring(eom_sma, '0.000'), text_color=color.red, text_size=table_text_size)
// Key Oscillators
table.cell(info_table, 0, 15, 'OSCILLATORS', text_color=color.purple, text_size=table_text_size, bgcolor=color.new(color.purple, 90))
table.cell(info_table, 1, 15, 'Awesome Osc', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 15, str.tostring(ao, '0.000'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 16, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 16, 'Fisher Transform', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 16, str.tostring(fisher, '0.000'), text_color=color.red, text_size=table_text_size)
// Summary Statistics
table.cell(info_table, 0, 17, 'SUMMARY', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.gray, 70))
table.cell(info_table, 1, 17, 'Total Indicators: 52', text_color=color.black, text_size=table_text_size)
regime_color = rsi_centered > 10 ? color.green : rsi_centered < -10 ? color.red : color.gray
regime_text = rsi_centered > 10 ? "BULLISH" : rsi_centered < -10 ? "BEARISH" : "NEUTRAL"
table.cell(info_table, 2, 17, regime_text, text_color=regime_color, text_size=table_text_size)
This makes it the perfect “indicator backbone” for quantitative and systematic traders who want to prototype, combine, and test new regime detection models—especially in combination with the Markov Chain indicator.
How to use this script with the Markov Chain for research and backtesting:
Add the Enhanced Indicator Export to your chart.
Every calculated indicator is available as an individual data stream.
Connect the indicator(s) you want as custom input(s) to the Markov Chain’s “Custom Indicators” option.
In the Markov Chain indicator’s settings, turn ON the custom indicator mode.
For each of the three custom indicator inputs, select the exported plot from the Enhanced Export script—the menu lists all 45+ signals by name.
This creates a powerful, modular regime-detection engine where you can mix-and-match momentum, trend, volume, or custom combinations for advanced filtering.
Backtest regime logic directly.
Once you’ve connected your chosen indicators, the Markov Chain script performs regime detection (Bull/Neutral/Bear) based on your selected features—not just price returns.
The regime detection is robust, automatically normalized (using Z-score), and outputs bias (1, -1, 0) for plug-and-play integration.
Export the regime bias for programmatic use.
As described above, use input.source() in your Pine Script strategy or system and link the bias output.
You can now filter signals, control trade direction/size, or design pairs-trading that respect true, indicator-driven market regimes.
With this framework, you’re not limited to static or simplistic regime filters. You can rigorously define, test, and refine what “market regime” means for your strategies—using the technical features that matter most to you.
Optimize your signal generation by backtesting across a universe of meaningful indicator blends.
Enhance risk management with objective, real-time regime boundaries.
Accelerate your research: iterate quickly, swap indicator components, and see results with minimal code changes.
Automate multi-asset or pairs-trading by integrating regime context directly into strategy logic.
Add both scripts to your chart, connect your preferred features, and start investigating your best regime-based trades—entirely within the TradingView ecosystem.
References & Further Reading
Ang, A., & Bekaert, G. (2002). “Regime Switches in Interest Rates.” Journal of Business & Economic Statistics, 20(2), 163–182.
Hamilton, J. D. (1989). “A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle.” Econometrica, 57(2), 357–384.
Markov, A. A. (1906). "Extension of the Limit Theorems of Probability Theory to a Sum of Variables Connected in a Chain." The Notes of the Imperial Academy of Sciences of St. Petersburg.
Guidolin, M., & Timmermann, A. (2007). “Asset Allocation under Multivariate Regime Switching.” Journal of Economic Dynamics and Control, 31(11), 3503–3544.
Murphy, J. J. (1999). Technical Analysis of the Financial Markets. New York Institute of Finance.
Brock, W., Lakonishok, J., & LeBaron, B. (1992). “Simple Technical Trading Rules and the Stochastic Properties of Stock Returns.” Journal of Finance, 47(5), 1731–1764.
Zucchini, W., MacDonald, I. L., & Langrock, R. (2017). Hidden Markov Models for Time Series: An Introduction Using R (2nd ed.). Chapman and Hall/CRC.
On Quantitative Finance and Markov Models:
Lo, A. W., & Hasanhodzic, J. (2009). The Heretics of Finance: Conversations with Leading Practitioners of Technical Analysis. Bloomberg Press.
Patterson, S. (2016). The Man Who Solved the Market: How Jim Simons Launched the Quant Revolution. Penguin Press.
TradingView Pine Script Documentation: www.tradingview.com
TradingView Blog: “Use an Input From Another Indicator With Your Strategy” www.tradingview.com
GeeksforGeeks: “What is the Difference Between Markov Chains and Hidden Markov Models?” www.geeksforgeeks.org
What makes this indicator original and unique?
- On‑chart, real‑time Markov. The chain is drawn directly on your chart. You see the current regime, its tendency to stay (self‑loop), and the usual next step (arrows) as bars confirm.
- Source‑agnostic by design. The engine runs on any series you select via input.source() — price, your own oscillator, a composite score, anything you compute in the script.
- Automatic normalization + regime mapping. Different inputs live on different scales. The script standardizes your chosen source and maps it into clear regimes (e.g., Bull / Bear / Neutral) without you micromanaging thresholds each time.
- Rolling, bar‑by‑bar learning. Transition tendencies are computed from a rolling window of confirmed bars. What you see is exactly what the market did in that window.
- Fast experimentation. Switch the source, adjust the window, and the Markov view updates instantly. It’s a rapid way to test ideas and feel regime persistence/switch behavior.
Integrate your own signals (using input.source())
- In settings, choose the Source . This is powered by input.source() .
- Feed it price, an indicator you compute inside the script, or a custom composite series.
- The script will automatically normalize that series and process it through the Markov engine, mapping it to regimes and updating the on‑chart spheres/arrows in real time.
Credits:
Deep gratitude to @RicardoSantos for both the foundational Markov chain processing engine and inspiring open-source contributions, which made advanced probabilistic market modeling accessible to the TradingView community.
Special thanks to @Alien_Algorithms for the innovative and visually stunning 3D sphere logic that powers the indicator’s animated, regime-based visualization.
Disclaimer
This tool summarizes recent behavior. It is not financial advice and not a guarantee of future results.
Coin Jin Multi SMA+ BB+ SMA forecast Ver 2.0Coin Jin Multi SMA + BB + SMA Forecast 2.0
개요
여러 개의 단순이동평균(SMA: 5/20/60/112/224/448/896 + 사용자 정의 X1/X2), 볼린저 밴드(BB), 그리고 접선 기반 곡선 예측선을 한 번에 표시합니다. 예측선은 선형회귀 기울기와 그 변화율(가속도)을 EMA로 스무딩해 곡선 외삽으로 앞으로 그려지며, 어떤 줌에서도 깔끔하게 보이도록 점선(dotted) 스타일을 강제할 수 있습니다.
스택 마커(정배열/역배열) 안내
조건: 이동평균이 정배열(5>20>60>112>224>448>(896)) 또는 역배열(5<20<60<112<224<448<(896))로 새로 전환되는 순간 삼각형 마커가 생성됩니다.
896일선 포함(with 896): SOLID 마커로 표시, Bull = 초록색, Bear = 빨간색.
896일선 미포함(no 896): HOLLOW(윤곽) 마커로 표시, 시선을 덜 끌도록 투명도 70 적용(Bull = 연두, Bear = 빨강 동일색).
방향: Bull = ▼(위, abovebar) / Bear = ▲(아래, belowbar) 로 배치됩니다.
주요 기능
SMA 7종 기본 + 사용자 정의 SMA 2개(X1/X2) 추가(기본 꺼짐, 길이/색/두께/타입 자유).
BB: 길이/배수/선두께/밴드 채움(기본 90% 투명) 지원.
예측선: Forward bars(1–100, 기본 30), 기울기 산출 길이, 스무딩 강도, 세그먼트 개수, 점/대시 스타일 선택 및 도트 강제.
스택(정/역배열) 전환 마커: with 896=SOLID, no 896=HOLLOW(투명도 70).
처음 사용하는 분들을 위한 팁 (중요)
가격 스케일을 ‘우측’으로 고정하세요.
방법 ① 차트 우측 축을 사용(기본).
방법 ② 지표 레전드의 ‘⋯’ 메뉴 → Move to → Right scale.
예측선이 본선과 어긋나 보이면 스케일이 좌측/양측으로 되어 있거나 자동 합침된 경우이니 Right scale로 맞춰주세요.
입력 요약
MA Source, 각 SMA on/off·길이·색·두께·타입
BB length/mult/width/fill/opacity(기본 90)
Forecast bars ahead(1–100), slope lookback, smoothing, segments, style/opacity, 적용 대상 선택(SMA별)
주의/면책
예측선은 가격 예언 도구가 아니라 시각적 외삽 보조지표입니다. 단독 매매 판단에 사용하지 마세요.
공개 스크린샷은 본 지표만 보이도록 깔끔하게 캡처해 주세요(다른 지표/드로잉 혼합 금지).
변경사항(v2.0)
곡선 예측선 안정화 및 도트 강제 개선.
스택 마커 no 896 상태 HOLLOW 투명도 70 적용(가독성 향상).
사용자 정의 SMA X1/X2 추가(기본 OFF).
Coin Jin Multi SMA + BB + SMA Forecast 2.0 (English)
Overview
This indicator plots multiple Simple Moving Averages (SMA: 5/20/60/112/224/448/896 + two user-defined X1/X2), Bollinger Bands, and a tangent-based curved forecast in one overlay. The forecast extrapolates forward using the linear-regression slope and its rate of change (acceleration) smoothed by EMA, and you can force a dotted look so it stays clean at any zoom level.
Stack Markers (Bullish/Bearish alignment)
Markers appear only when a full bullish stack (5>20>60>112>224>448>(896)) or bearish stack (5<20<60<112<224<448<(896)) is newly formed.
With 896 included: shown as SOLID triangles — Bull = green, Bear = red.
Without 896: shown as HOLLOW (outline) with 70 transparency to reduce visual weight — Bull = lime, Bear = red (same hue).
Orientation: Bull = ▼ abovebar, Bear = ▲ belowbar.
Features
7 standard SMAs + two custom SMAs (X1/X2) (default OFF; fully configurable length/color/width/style).
BB with length/multiplier/width/fill (default fill opacity 90%).
Forecast controls: forward bars (1–100, default 30), slope window, smoothing, segment count, style/opacity, force dotted option.
Stack markers: with 896 = SOLID, without 896 = HOLLOW (70 transparency).
First-time setup (Important)
Pin the indicator to the Right price scale.
Option A: Use the right price axis.
Option B: Indicator legend “⋯” → Move to → Right scale.
If the forecast appears detached from the MA, your series is likely on the left/both scales; switch to Right scale.
Inputs
MA source; per-SMA on/off, length, color, width, style
BB length/multiplier/width/fill/opacity (default 90)
Forecast bars ahead (1–100), slope lookback, smoothing, segments, style/opacity, per-SMA apply switches
Disclaimer
The forecast is a visual extrapolation, not a price prediction. Do not use it alone to make trading decisions.
For publication, please use a clean screenshot that shows only this indicator (no mixed overlays).
What’s new in v2.0
More robust curved forecast with improved “force dotted” rendering.
HOLLOW (no 896) markers now use 70 transparency for better readability.
Added two user-defined SMAs (X1/X2), OFF by default.
Volume Stack with Dollar Volume ScoreThis script is designed to analyze candles for buy/sell pressure, volume flows, and generate intuitive emoji-based signals. Its core function is to help traders visually and quantitatively interpret price and volume behavior for potential bullish, bearish, or neutral market states.
Key Features and Logic
Price Range Analysis: Calculates the candle's price range and determines the proportion of volume attributed to buyers and sellers using buy_percent and sell_percent.
Market State Classification:
Bullish/Bearish/Neutral: Based on buy/sell percentage comparisons.
Strong Signals: Flags when buy/sell pressure exceeds defined thresholds (≥0.75).
Transitions: Detects when states shift sharply (e.g., from bull to strong bear).
Visual Cue System:
Uses different emojis (📈, 📉, 🚀, 🔥, 💎, 💀, ❌) to mark normal, strong, transition, and neutral signals for easy chart interpretation.
Dollar Volume Calculation: Multiplies close price by volume to derive "dollar volume" per bar. Normalizes this with a moving average for context-sensitive spike detection.
Scoring Mechanism:
Dollar Volume Score: Evaluates the normalized change in dollar volume, assigning scores for strong (±2), mild (±1), or neutral (0) changes.
Buy/Sell Pressure Score: Calculates a simple pressure score based on buy/sell proportions for each candle.
Composite Score: Combines both scores to define the overall bullish/bearish/neutral state.
State & Emoji Plotting:
Plots respective emojis at the chart bottom depending on composite score and state (bullish, bearish, strong moves, transitions, neutral).
Alerts:
Sends alerts for key transitions (like bull-to-strong-bear), strong moves, and neutral states, aiding automated signal handling and decision-making.
What This Script Helps You Achieve
Quick Visual Insights: Instantly see important market states and transitions with chart emojis.
Volume Context Awareness: Incorporates both price action and normalized volume changes for more reliable signals.
Automated Alerts: Supports smart trading decisions via pop-up notifications on major shifts or important conditions.
This script provides a layered analysis approach for volume and price action, blending quantifiable scores with intuitive chart markers and automated alerts, making it highly suited for traders who rely on both visual and quantitative cues in their strategy.
Engulfing Pattern[SpeculationLab]Overview
This script detects two types of engulfing / outer bar patterns and marks them directly on the chart:
Body Engulfing – The current candle’s body range (open–close) completely covers the entire range (high–low) of the previous candle.
Range Engulfing – The current candle’s full range (high–low, including wicks) completely covers the entire range (high–low) of the previous candle.
Direction logic:
Bull – The previous candle is bearish and the selected engulfing rule is met.
Bear – The previous candle is bullish and the selected engulfing rule is met.
Optional: Require the current candle to have the opposite color of the previous one.
This is an open-source pattern recognition tool for learning, backtesting, and chart review. It is not financial advice.
Key Features
Two detection modes:
body – Body engulfs previous entire range
range – Wicks engulf previous entire range
Direction detection based on the previous candle’s color, with optional opposite-color confirmation
Chart markers: “BULL” /“BEAR” above bars
Alert-ready: built-in conditions for bullish and bearish engulfing patterns
Parameters
Engulfing Type: body / range
body: Current body must fully cover the previous candle’s high–low range
range: Current full range (high–low) must fully cover the previous candle’s high–low range
Require Opposite Previous Candle (default: off):
When enabled, the engulfing pattern must also have the opposite color from the previous candle to trigger
Usage Tips
Engulfing patterns are price action structures; combine with trend, key levels, and volume for context
Signals confirm on bar close (barstate.isconfirmed) to reduce repainting
Can be used with personal risk management rules (stop-loss, take-profit, filters)
Disclaimer
For educational and research purposes only – not financial advice
Past performance of patterns does not guarantee future results
Trading involves risk; always manage it responsibly
This script is open-source – feel free to learn from or modify it, but credit the original source and author (SpeculationLab)
脚本简介
本脚本用于识别两类包裹/外包形态,并在图表上以标记提示:
Body(实体包裹):当前K线的实体区间(开—收)完全覆盖上一根K线的整个区间(上一根的高—低)。
Range(影线外包):当前K线的影线区间(高—低)完全覆盖上一根K线的整个区间(上一根的高—低)。
方向判定:
Bull(多):上一根为阴线且满足所选包裹规则;
Bear(空):上一根为阳线且满足所选包裹规则;
可选项:要求“当前K线颜色与上一根相反”后再确认(见参数)。
本脚本为开源形态识别工具,适合技术分析学习、回测与复盘,不构成任何投资建议。
主要功能
两种识别模式:body(实体包裹上一根整段) / range(影线包裹上一根整段)。
方向识别:按上一根K线颜色判断多空;可选“当前颜色与上一根相反”的二次确认。
图表提示:plotshape 在K线上方标注 “BULL / BEAR”。
提醒支持:内置 Bullish Engulf / Bearish Engulf 提醒条件。
参数说明
Engulfing Type:body / range
body:当前实体须完全覆盖上一根的高—低整段;
range:当前高—低须完全覆盖上一根的高—低整段。
Require Opposite Previous Candle(默认关闭):
开启后,除满足包裹规则外,还需当前K线颜色与上一根相反才触发标记。
使用建议
包裹/外包是价格行为结构,建议结合趋势、关键价位、成交量等因素综合判断。
信号在收盘时确认(barstate.isconfirmed),以减少重绘干扰。
可与个人风格的风险控制规则(止损、止盈、过滤条件)配合使用。
合规与免责声明
本脚本仅用于技术研究与学习,不构成任何形式的投资建议或收益承诺。
历史形态并不代表未来结果,交易有风险,请自行评估并承担责任。
本脚本开源,欢迎学习与二次开发;转载或改用请注明来源与作者(SpeculationLab / 投机实验室)。
Ichimoku Cloud Signals [sgbpulse] Ichimoku Cloud Signals – Your Advanced Trading Tool
Meet Ichimoku Cloud Signals, the enhanced and interactive version of the classic Ichimoku Cloud indicator, designed specifically for TradingView traders seeking precision and flexibility in their trading decisions. This indicator allows you to maximize the Ichimoku's potential by customizing trend criteria, receiving clear visual signals for entering and exiting positions, and getting alerts to keep you informed.
Introduction to the Ichimoku Cloud
The Ichimoku Cloud, also known as Ichimoku Kinko Hyo, is a comprehensive technical analysis tool developed in Japan. It provides a broad view of the market: trend direction, momentum, and support and resistance levels. "Ichimoku Cloud Signals" takes this power and amplifies it with advanced features.
Key Components of the Ichimoku Cloud
The indicator displays all five familiar Ichimoku lines, along with the "Cloud" (Kumo):
Tenkan-sen (Conversion Line): Calculated as the average of the highest high and lowest low over the past 9 periods. A fast, short-term indicator used as a measure of immediate momentum.
Kijun-sen (Base Line): Calculated as the average of the highest high and lowest low over the past 26 periods. A medium-term reference line serving as a significant support/resistance level.
Senkou Span A (Leading Span A): The average of the Tenkan-sen and Kijun-sen, shifted 26 periods forward into the future.
Senkou Span B (Leading Span B): The average of the highest high and lowest low over the past 52 periods, also shifted 26 periods forward into the future.
Kumo (Cloud): The area between Senkou Span A and Senkou Span B. Its color changes: green for an uptrend (when Senkou Span A is above Senkou Span B) and red for a downtrend (when Senkou Span B is above Senkou Span A). The Cloud serves as a dynamic area of support/resistance and a tool for forecasting future trends.
Chikou Span (Lagging Span): The current closing price, shifted 26 periods backward into the past. It serves as a powerful trend confirmation tool.
How the Ichimoku Cloud Works and How to Interpret It
Trend Identification :
- Uptrend (Bullish): The price is above the Cloud. The higher the price is above the Cloud, the stronger the trend.
- Downtrend (Bearish): The price is below the Cloud. The lower the price is below the Cloud, the stronger the trend.
- Range/Consolidation: The price is within the Cloud. This indicates a market without a clear direction or one that is consolidating.
Support and Resistance:
- The Cloud itself acts as a dynamic area of support and resistance. In an uptrend, the Cloud serves as support. In a downtrend, it serves as resistance.
- A thick Cloud indicates stronger support/resistance levels, while a thin Cloud indicates weaker levels.
The Cloud as a Predictive Indicator:
The uniqueness of the Kumo (Cloud) lies in its ability to be shifted 26 periods forward. This part of the Cloud provides forecasts for future support and resistance levels and even suggests expected trend changes (like a "Kumo Twist" – a change in Cloud color), giving you a planning advantage.
Unique Advantages of Ichimoku Cloud Signals:
Ichimoku Cloud Signals takes the classic Ichimoku principles and gives you unprecedented control:
Focused Trend Selection:
Choose whether you want to analyze a bullish (uptrend) or bearish (downtrend) trend. The indicator will focus on the relevant criteria for your selection.
Customizable Trend Confirmation Criteria (8 Criteria):
The indicator relies on 8 key criteria for clear trend confirmation. You can enable or disable each criterion individually based on your trading strategy and desired risk level. Each criterion plays a vital role in confirming the strength of the trend:
- Price position relative to the Cloud (Kumo) (Default: true): Determines the main trend direction and whether it's bullish or bearish.
- Price position relative to Kijun-sen (Base Line) (Default: true): Indicates the medium-term trend and acts as a critical equilibrium level.
- Price position relative to Tenkan-sen (Conversion Line) (Default: false): Provides quick confirmation of current momentum and short-term market changes.
- Tenkan-sen (Conversion Line) / Kijun-sen (Base Line) Crossover (Default: true): A classic signal for momentum change, crucial for identifying entry points.
- Current Cloud trend (Kumo) (Default: false): Cloud color confirms the main trend direction in real-time.
- Projected Future Cloud trend (Kumo) (Default: true): Indicates an expected future change in the Cloud's trend, providing strong visual insight.
- Chikou Span (Lagging Span) position relative to the Cloud (Kumo) (Default: true): Confirms the current trend strength by comparing the price to the Ichimoku 26 periods ago.
- Chikou Span (Lagging Span) position relative to the Price (Default: false): Additional confirmation of trend strength, indicating buyer/seller dominance.
Full Customization of Ichimoku Parameters:
You can change the period lengths for each Ichimoku component, depending on your strategy:
- Conversion Line Length (Default: 9)
- Base Line Length (Default: 26)
- Leading Span Length (Default: 52)
- Cloud Lagging Length (Default: 26)
- Lagging Span Length (Default: 26)
Visual Criteria Table on the Chart:
Get immediate and clear feedback! A visual table is placed on the chart, showing in real-time which of the 8 criteria you have defined are met for your chosen trend. Criteria you have enabled will be highlighted with a blue color and a "➤" symbol, while disabled criteria will appear in a subtle gray shade. For each criterion, the table shows its real-time status with a "✔" symbol if the condition is met and an "✘" symbol if it is not met. This powerful visual tool provides a quick assessment, helps with learning, and allows for strategy optimization at the click of a button.
Precise Criteria Details in the Data Window:
Beyond the visual table, the indicator provides an additional critical layer of detail: for any point on the chart, you can hover over a candle and see in TradingView's Data Window the precise status and values of all eight criteria. For each criterion, you'll see a clear numerical value (1 or 0) indicating whether it's fully met (1) or not met (0). Additionally, you can inspect the exact numerical values of the Ichimoku lines (Tenkan-sen, Kijun-sen, etc.) at that specific moment. This comprehensive data supports in-depth analysis, strategy debugging, and long-term optimization, providing complete transparency regarding every component of the signal.
Smart and Customizable Alerts:
Ichimoku Cloud Signals provides a powerful alert system to keep you informed of key market movements, so you never miss an opportunity. There are eight unique alerts you can enable in TradingView's alert panel:
Uptrend Entry Alert: Triggers when all of your selected criteria for an uptrend are met on a new candle.
Uptrend Exit Alert: Triggers when one of your selected uptrend criteria is no longer met, signaling a potential exit point.
Downtrend Entry Alert: Triggers when all of your selected criteria for a downtrend are met on a new candle.
Downtrend Exit Alert: Triggers when one of your selected downtrend criteria is no longer met, signaling a potential exit point.
Bullish Crossover Alert: Triggers when the Conversion Line (Tenkan-sen) crosses above the Base Line (Kijun-sen), a classic signal for an upward momentum shift.
Bearish Crossover Alert: Triggers when the Conversion Line (Tenkan-sen) crosses below the Base Line (Kijun-sen), signaling a potential shift to downward momentum.
Bullish Cloud Breakout Alert: Triggers when the price closes above the Ichimoku Cloud (Kumo), indicating a strong bullish trend.
Bearish Cloud Breakout Alert: Triggers when the price closes below the Ichimoku Cloud (Kumo), indicating a strong bearish trend.
Each alert can be independently configured in TradingView's alert panel, allowing you to tailor your notifications to fit your exact trading strategy and risk management preferences.
Summary:
Ichimoku Cloud Signals is an essential tool for TradingView traders seeking control, clarity, and precision. It combines the power of the classic Ichimoku Cloud indicator with advanced customization capabilities, a convenient visual table, and clear signals, empowering you to make informed trading decisions and stay focused on managing your positions.
Important Note: Trading Risk
This indicator is intended for educational and informational purposes only and does not constitute investment advice or a recommendation for trading in any form whatsoever.
Trading in financial markets involves significant risk of capital loss. It is important to remember that past performance is not indicative of future results. All trading decisions are your sole responsibility. Never trade with money you cannot afford to lose.