Analog Flow [KedArc Quant]🧭Overview
AnalogFlow is an advanced analogue-based market projection engine that reconstructs future price tendencies by matching current price behavior to historical analogues in the same instrument. Instead of using traditional indicators (moving averages, RSI, or regression), AnalogFlow applies pattern vector similarity analysis — a data-driven technique that identifies historically similar sequences and aggregates their subsequent movements into a smooth, forward-looking curve.
Think of it as a market memory system:
If the current pattern looks like one we’ve seen before, how did price move afterward?
💡 Why AnalogFlow Is Unique
- Pattern-centric — it doesn’t rely on any standard indicator formula; it directly analyzes price movement vectors.
- Adaptive — it learns from the same instrument’s past behavior, making it self-calibrating to volatility and regime shifts.
- Non-repainting — the projection is generated on the latest completed bar and remains fixed until new data is available.
- Noise-resistant — the EMA-Blend engine smooths the projected trajectory, reducing random variance between analogues.
This isn’t a combination of existing tools — it’s an original implementation of analogue-based projection theory
⚙️ Inputs & Configuration
Pattern Bars
Number of bars in the reference pattern window 40
Projection Bars
Number of bars forward to project 30
Search Depth
Number of bars back to look for matching analogues 600
Distance Metric
Comparison method: `Euclidean`, `Manhattan`, or `Cosine` Euclidean
Matches
Number of top analogues to blend (1–5) Top-3
Build Mode
Projection type: `Cumulative`, `MeanStep`, or `EMA-Blend` EMA-Blend
EMA Blend Length
Smoothness of the projected path 15
Normalize Pattern
Enable Z-score normalization for shape matching true
Dissimilarity Mode
If true, finds inverse analogues (mean-reversion analysis) false
Line Color / Width
Style settings for projection curve Blue / 2
📈 How It Works with Past Data
- The system builds a memory bank of patterns from the last N bars
- It compares the latest Pattern Bars segment to each historical segment.
- It selects the Top-K most similar (or dissimilar) analogues.
- For each analogue, it retrieves what happened after that pattern historically.
- It averages or smooths those forward moves into a single composite forecast curve.
- The forecast (blue line) is drawn ahead of the current candle.
🔍 Output Explained
Blue Path:
The weighted mean future trajectory based on historical analogues.
Smoother when EMA-Blend mode is on.
Flat Section:
Indicates low directional consensus or equilibrium across analogues.
Upward / Downward Slope:
Historical tendency toward continuation or reversal following similar conditions.
📆 Recommended Timeframes
Scalping / Short-term
1m–5m --> Short `winLen` (20–30), small `ahead` (10–15)
Swing Trading
15m–1h --> Balanced settings (winLen=40–60, ahead=20–30)
Positional / Multi-Day
4h–1D --> Large windows (winLen=80–120, ahead=30–50)
🌍 Instrument Compatibility
✅ Works seamlessly on:
- Stocks / ETFs
- Indices
- Cryptocurrency
- Commodities (Gold, Crude, etc.)
- Futures & F&O (both intraday and positional)
- Forex
No symbol-specific calibration needed — it self-adapts to volatility.
🧭 How Traders Can Use It
Use Case
Forecast Context
- Identify likely short-term price path or drift direction.
Reversal Detection
- Flip `seekOpp` to true for mean-reversion pattern analysis.
Scenario Comparison
- Observe whether current regime tends to continue or stall.
Momentum Confirmation
- Combine with trend tools (e.g., EMA or MACD) for direction bias.
Backtesting Support
- Compare projected path vs. realized price to evaluate reliability.
❓ FAQ
Q1. Does AnalogFlow repaint?
→ No. It calculates only once per completed bar and projects forward. Future path remains static until a new bar closes.
Q2. Is it a neural network or AI model?
→ Not in the ML sense — it’s a deterministic analogue-matching engine using statistical distance metrics.
Q3. Why does the projection sometimes flatten?
→ That means similar historical setups had no clear consensus in direction (neutral expectation).
Q4. Can I use it for live trading signals?
→ AnalogFlow is not a signal generator. It provides *probabilistic context* for upcoming movement.
Q5. Does higher `scanDepth` improve accuracy?
→ Up to a point. More depth gives more analogues, but too much can dilute recency. Try 400–800.
📘 Glossary
Analogue
A past pattern similar to the current price behavior.
Distance Metric
Mathematical formula for pattern similarity.
Step Vector
Difference between consecutive closing prices.
EMA-Blend
Exponential smoothing of projected path.
Cumulative Mode
Adds sequential historical deltas directly.
Z-Score Normalization
Rescaling to mean 0, variance 1 for shape comparison.
🧩 Summary
AnalogFlow converts the market’s historical echoes into a structured, statistically weighted forward projection. It gives traders a contextual roadmap — not a signal — showing how similar past setups evolved, allowing better-informed entries, exits, and scenario planning across all asset classes.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Üstel Hareketli Ortalama (EMA)
Volume Spike & RSI | Buy/Sell SignalsThis indicator is designed for intraday traders who seek clean, actionable buy and sell signals using a blend of momentum (RSI) and volume analysis. It automatically detects momentum bursts based on the RSI crossing user-defined levels with a simultaneous volume spike—helping filter out weak or late signals. Signals are highlighted by discrete, color-coded arrows and non-overlapping labels for easy chart interpretation without clutter.
How it works
Buy signal: Generated when the RSI crosses above your chosen “Buy Threshold” (default 60) AND the volume on that bar is above its 20-period average. This suggests strong momentum with real volume support.
Sell signal: Generated when the RSI crosses below your chosen “Sell Threshold” (default 40) AND the volume on that bar is above average, signaling momentum loss or bearish pressure.
Visuals:
Buy signals are illustrated by green upward labels/arrows beneath candles.
Sell signals feature red downward labels/arrows above candles.
All signals adjust spacing dynamically, so they never overlap the price bar.
Bars are colored lime when momentum and volume are both high.
Customization
Fully adjustable RSI “Buy” and “Sell” levels.
Customizable sensitivity for the volume spike via the SMA period input.
Label spacing can be tuned in settings so signals always remain visible, regardless of volatility.
Alerts
Built-in alert conditions for both buy and sell events, compatible with TradingView’s native alerting system.
How to use
1. Add the indicator to your intraday chart (works on any timeframe).
2. When a buy or sell label/arrow appears, it marks a technical momentum burst with real volume conviction. Use these as actionable entries or exits—always manage risk with your personal trading plan.
3. Adjust parameters in the script’s settings as needed for your market or style.
Originality & credits
The logic and code were developed specifically for this script, combining classic RSI levels with volume confirmation and careful non-overlapping visual presentation to ensure clarity for intraday trading.
This tool is for educational and informational purposes only. It is not financial advice or a guarantee of performance. Always test on demo before using in live trading.
KD-NewAutoTrade for Future Trading - Heikin Ashi candles The KD-NewAutoTrade strategy is a dynamic trend-following indicator designed for scalping and swing trading across crypto, forex, and index futures. It combines the precision of EMA crossovers, RSI momentum, and ADX trend strength to deliver clear Buy/Sell signals with high reliability.
🔹 Core Logic
EMA Fast & Slow Crossover – Identifies short-term and long-term trend shifts.
RSI Confirmation – Filters out false signals by requiring RSI to cross custom Buy/Sell thresholds.
ADX Filter – Ensures trades only trigger when market trend strength exceeds your chosen ADX minimum.
🔹 Key Features
Visual Buy/Sell triangles directly on the chart.
Customizable inputs for EMA, RSI, and ADX lengths.
Works efficiently on all timeframes and all markets (Crypto, Indices, Stocks, Commodities).
Optional background highlights for active trade zones.
Alert conditions for both BUY and SELL setups – ready to use in automated strategies or alert bots.
🔹 Recommended Usage
Use Heikin Ashi candles
Works best on 1M - 5M timeframes.
Combine with volume or higher-timeframe trend confirmation for stronger signals.
Intraday Multi-Signal Dashboard + Dynamic SignalsThis indicator provides a clean visual dashboard summarizing multiple intraday signals on a single chart.
It plots key trend and momentum metrics — EMA alignment, RSI zone, MACD histogram, and Volume vs. average — along with a compact dashboard table for quick decision support.
What It Does
EMA Trend Monitor: Plots 9-, 21-, and 50-period EMAs and detects when they align strongly up or down.
RSI Zone Analysis: Highlights overbought / oversold conditions based on configurable RSI thresholds.
MACD Momentum: Reads MACD histogram strength and directional bias (bullish/bearish).
Volume Check: Compares current volume against its moving average to spot above-average participation.
Dashboard Summary: Displays all current signal states in a color-coded table (green = bullish, red = bearish, orange = caution).
Dynamic Markers: Small floating circles plotted near candles (ATR-based offset) that move with price when zooming/panning.
⚙️ Inputs & Customization
Adjustable EMA lengths (default 9/21/50).
RSI length, overbought/oversold/neutral thresholds.
MACD parameters (fast, slow, signal).
Volume moving average length and threshold multiplier.
ATR-based marker offset for zoom scaling.
Compact mode toggle for the dashboard table.
Table anchor position selectable (top/bottom corners).
📈 How to Use
Add the script to your intraday chart (5 min – 1 hour works best).
Observe the dashboard table for quick signal consensus.
Use it as a visual aid alongside your existing strategy or confirmations.
Color cues:
🟢 Green → bullish alignment
🔴 Red → bearish alignment
🟠 Orange → caution / overbought or oversold
⚪ Gray → neutral
⚠️ Important Notes (Compliance)
This script is for informational and educational purposes only.
It does not generate buy/sell signals or financial advice.
All calculations use bar-close data and are non-repainting.
Past performance is not indicative of future results.
You may freely modify or adapt it for your personal use.
Original author: @darshakssc
🧠 Recommended Use
Ideal for traders who want a quick sentiment snapshot without clutter — works well as an overlay on intraday setups or alongside volume profile and order flow indicators
ALMA & EMA Ribbon by zdmreThis indicator combines a unique trend-following signal with a classic EMA ribbon to provide a clear view of the market trend.
The main signal line is not based on a typical ATR. Instead, it uses an Arnaud Legoux Moving Average (ALMA) as its baseline and calculates support/resistance bands using Standard Deviation. This creates a responsive trend line that adapts well to volatility. This is paired with a simple EMA Ribbon to help confirm momentum.
What It Does
ALMA + SD Trend Line: This is the core of the indicator. It uses an ALMA as the baseline (instead of a simple MA) and Standard Deviation for the bands. This tends to be more responsive than many traditional trend-following indicators.
Buy/Sell Signals: Simple "B" and "S" labels appear on your chart when the trend is calculated to have changed direction.
EMA Ribbon: A standard Fast/Slow EMA ribbon is plotted to give you a secondary confirmation of momentum. The fill between the EMAs changes color (green for bull, red for bear).
On-Screen Dashboard: A clean info panel in the corner shows you the current status of all components at a glance:
Current Signal (Long/Short)
Price vs. Trend Line (Above/Below)
Trend Strength (%)
EMA Trend (Bullish/Bearish)
Momentum
Fully Customizable: You can toggle every visual element on or off (the signals, the ribbon, the bar coloring, the dashboard) to keep your chart clean.
Settings
Trend Settings:
Factor: This is the main setting. It's the Standard Deviation multiplier. A higher value makes the line less sensitive (fewer signals). A lower value makes it more sensitive (more signals).
SD Length: The lookback for the Standard Deviation.
ALMA Settings:
ALMA Length, Sigma, Offset: Standard controls for the ALMA's smoothness and responsiveness.
EMA Ribbon:
Fast EMA & Slow EMA: Set the lengths for your ribbon.
Visual Settings:
Checkboxes to toggle all visual components (signals, ribbon, dashboard, etc.).
You can set up alerts in TradingView for the following events:
🟢 Long Signal: Triggers on a new "B" (Buy) signal.
🔴 Short Signal: Triggers on a new "S" (Sell) signal.
⚠️ Price Crossed Trend: Triggers any time the price closes across the main trend line.
#DYOR
MTC – Multi-Timeframe Trend ConfirmatorMTC – Multi-Timeframe Trend Confirmator
The Ultimate Multi-Timeframe Trend Analysis Tool
MTC v6 is a comprehensive trend confirmation indicator that analyzes market conditions across multiple timeframes simultaneously. It combines six powerful technical indicators to give you a clear, visual representation of trend strength and direction.
🎯 Key Features
Visual Trend Gauge
Real-time trend strength display for 3 customizable timeframes
Progressive bar visualization (fills from left to right)
Color-coded signals: 🟢 Green (Bullish) | 🔴 Red (Bearish) | 🟡 Yellow (Ranging)
Score range: -10 to +10 for precise trend measurement
Multi-Indicator Analysis
The indicator combines 6 proven technical tools:
EMA 200 – Long-term trend direction
SMA 50/200 – Golden/Death cross signals
RSI 14 – Momentum confirmation
MACD – Trend strength validation
ADX (>25) – Trend intensity measurement (2x weight)
Supertrend – Dynamic support/resistance (2x weight)
⚙️ Customization Options
Flexible Timeframes: Set any timeframes you prefer (default: 15M, 1H, 4H)
Adjustable Gauge Size: Small, Medium, or Large display
Toggle Indicators: Enable/disable any of the 6 technical indicators
Supertrend Settings: Customize factor and ATR period
Built-in Alerts: Get notified when trends confirm
📈 How to Use
Score Interpretation:
Score > +2 = Bullish trend
Score < -2 = Bearish trend
Score between -2 and +2 = Ranging/Neutral
Multi-Timeframe Confirmation:
Look for alignment across timeframes for strongest signals
Higher timeframes confirm the overall trend direction
Lower timeframes help with precise entry timing
Visual Background:
Green background = Confirmed uptrend (Higher + Mid TF aligned)
Red background = Confirmed downtrend (Higher + Mid TF aligned)
💡 Perfect For
Swing traders seeking trend confirmation
Day traders analyzing multiple timeframes
Position traders validating long-term trends
Anyone who wants clear, visual trend analysis
Trade with confidence. Trade with confirmation. Trade with MTC
-Natantia
SA_EMA Combo + UT BotEMA Combo + UT Bot is an indicator designed to make it easier to track trend direction and momentum reversals on the same chart.
The indicator combines multiple EMA lines (50/100/150/200) with a short- and medium-term EMA cloud. This cloud visually shows whether the market is in a bullish or bearish trend through color changes.
In addition, it uses the UT Bot algorithm to generate buy and sell signals adapted to market volatility. These signals are triggered when the price crosses the ATR-based trailing stop level.
Users can choose to use Heikin Ashi candles and adjust signal sensitivity via the Key Value parameter. This allows traders to follow overall trends and potential reversal zones using a single tool.
Disclaimer: This indicator is for technical analysis purposes only and should not be considered financial advice.
Developed for Future Alpha Club.
EMA Bounce · CCI + MACD Filters - By author (PDK1977)3 EMA Bounce – Dual-Stack Edition by PDK1977
Script is inspired by this youtube strategy by Trading DNA
www.youtube.com
A price-action tool that spots “kiss-and-rebound” moves off fast / mid / slow EMAs, with separate buy- and sell-stacks.
Signals are cleared through CCI and MACD filters for confidence, an optional slow-EMA trend filter, and a spacing rule to reduce noise.
Plots 3 or 6 color-coded EMAs directly on the chart (if buy and sell is equal only 3 lines) and paints compact BULL (lime) / BEAR (red) triangles at qualifying bars for buy and sell.
ADJUST EMA as explained in the video for YOUR choosen assets and learn to use EMA correct on each assets.
Disclaimer: this script is provided strictly for educational purposes; the author accepts no liability for any trading decisions made with it.
Have fun!
Best regard Patrick
EMA21The indicator includes 5x the EMA, which can be freely selected. The default settings are 5 min, 10 min, 15 min, 1 h, and 4 h. If a candle crosses an EMA, the wick of the candle is longer than that of the EMA, and if the candle body is above the EMA, it indicates a buy or sell accordingly.
Goldencrossover - ema 5 over 13&26Goldencrossover - ema 5 over ema13& ema26 over the same candle.
Both up and down. If there is any such crossover during the same candle, then the indicator will highlight.
EMA6 or SMA6 Touch AlertThis script monitors the market and notifies you whenever the price touches either the 6-period EMA or the 6-period SMA.
It helps identify potential pullbacks, reaction points, or entry zones, as price interaction with these moving averages often signals short-term market shifts.
What the script does:
Calculates the EMA 6 and SMA 6
Detects if price touches either moving average within the candle
Plots both lines on the chart for visibility
Allows you to set alerts to receive automatic notifications
Best suited for:
Scalping
Day Trading
Pullback Entries
Short-term trend reactions
Better DEMAThe Better DEMA is a new tool designed to recreate the classical moving average DEMA, into a smoother, more reliable tool. Combining many methodologies, this script offers users a unique insight into market behavior.
How does it work?
First, to get a smoother signal, we need to calculate the Gaussian filter. A Gaussian filter is a smoothing filter that reduces noise and detail by averaging data with weights following a Gaussian (bell-shaped) curve.
Now that we have the source, we will calculate the following:
n2 = n/2 (half of the user defined length)
a = 2/(1+n)
ns
Now that we have that out of the way, it is time to get into the core.
Now we calculate 2 EMAs:
slow EMA => EMA over n
fast EMA => EMA over n2 period
Rather then now doing this:
DEMA = fast EMA * 2 - slow EMA
I found this to be better:
DEMA = slow EMA * (1-a) + fast EMA * a
As a last touch I took a little something from the HMA, and used a EMA with period of √n to smooth the entire the thing.
The Trend condition at base is the following (but feel free to FAFO with it):
Long = dema > dema yesterday and dema < src
Short = dema < dema yesterday and dema > src
Methodology
While the DEMA is an amazing tool used in many great indicators, it can be far too noisy.
This made me test out many filters, out of which the Gaussian performed best.
Then I tried out the non subtractive approach and that worked too, as it made it smoother.
Compacting on all I learned and smoothing it bit by bit, I think I can say this is worth looking into :).
Use cases:
Following Trends => classic, effective :)
Smoothing sources for other indicators => if done well enough, could be useful :)
Easy trend visualization => Added extra options for that.
Strategy development => Yes
Another good thing is it does not a high lookback period, so it should be better and less overfit.
That is all for today Gs,
Have fun and enjoy!
Kalman Exponential SuperTrendThe Kalman Exponential SuperTrend is a new, smoother & superior version of the famous "SuperTrend". Using Kalman smoothing, a concept from the EMA (Exponential Moving Average), this script leverages the best out of each and combines it into a single indicator.
How does it work?
First, we need to calculate the Kalman smoothed source. This is a kind of complex calculation, so you need to study it if you want to know how it works precisely. It smooths the source of the SuperTrend, which helps us smooth the SuperTrend.
Then, we calculate "a" where:
n = user defined ATR length
a = 2/(n+1)
Now we calculate the ATR over "n" period. Classical calculation, nothing changed here.
Now we calculate the SuperTrend using the Kalman smoothed source & ATR where:
kalman = kalman smoothed source
ATR = Average True Range
m = Factor chosen by user.
Upper Band = kalman + ATR * m
Lower Band = kalman - ATR * m
Now we just smooth it a bit further using the "a" and a concept from the EMA.
u1 = Upper Band a bar ago
l1 = Lower Band a bar ago
u = Upper Band
l = Lower Band
Upper = u1 * (1-a) + u * a
Lower = l1 * (1-a) + u * a
When the classical (not Kalman) source crosses above the Upper, it indicates an uptrend. When it crosses below the Lower, it indicates a downtrend.
Methodology & Concepts
When I took a look at the classical SuperTrend => It was just far too slow, and if I made it faster it was noisy as hell. So I decided I would try to make up for it.
I tried the gaussian, bilateral filter, but then I tried kalman and that worked the best, so I added it. Now it was still too noisy and unconsistent, so I revisited my knowledge of concepts and picked the one from the EMA, and it kinda solved it.
In the core of the indicator, all it does is combine them in a really simple way, but if you go more deeply you see how it fits the puzzlé really well.
It is not about trying out random things´=> but about seeking what it is missing and trying to lessen its bad side.
That is the entire point of this indicator => Offer a unique approach to the SuperTrend type, that lessen the bad sides of it.
I also added different plotting types, this is so everyone can find their favorite
Enjoy Gs!
ema200 plus Description:
This advanced indicator displays Exponential Moving Averages (EMA) across multiple timeframes to help traders identify trend direction and strength across different market perspectives.
Key Features:
Multi-Timeframe EMA Analysis:
Plots 200-period EMA on four different timeframes: 30-minute, 1-hour, 4-hour, and Daily
Each timeframe is displayed with distinct colors for easy visual identification
Visual Elements:
Chart Lines: Four colored EMA lines plotted directly on the price chart
Price Labels: Clear labels showing each EMA's current value at the latest bar
Color-coded Table: Comprehensive data table showing price position relative to each EMA
Trend Identification:
Bullish Signal: When price closes above an EMA (green background in table)
Bearish Signal: When price closes below an EMA (dark background in table)
Helps identify confluence when multiple timeframes align in direction
Customizable Settings:
Adjustable EMA length (default: 200 periods)
Customizable line width and offset
Flexible table positioning (top/middle/bottom, left/center/right)
Configurable table cell size and text appearance
Swing traders analyzing multiple timeframes
Position traders looking for trend confirmation
Technical analysts seeking confluence across time horizons
This indicator provides a comprehensive view of market trends across different time perspectives, helping traders make more informed decisions based on multi-timeframe analysis.
This indicator does not provide trading advice. It is for educational and informational purposes only.
**指标名称:多时间框架200 EMA**
**描述:**
这款高级指标在多个时间框架上显示指数移动平均线(EMA),帮助交易者识别不同市场视角下的趋势方向和强度。
**主要特点:**
1. **多时间框架EMA分析:**
- 在四个不同时间框架上绘制200周期EMA:30分钟、1小时、4小时和日线
- 每个时间框架使用独特颜色显示,便于视觉识别
2. **视觉元素:**
- **图表线:** 在价格图表上直接绘制四条彩色EMA线
- **价格标签:** 清晰显示最新K线处各EMA的当前值
- **颜色编码表格:** 综合数据表格显示价格相对于各EMA的位置
3. **趋势识别:**
- **看涨信号:** 当价格收于EMA上方时(表格中显示绿色背景)
- **看跌信号:** 当价格收于EMA下方时(表格中显示深色背景)
- 帮助识别多个时间框架方向一致时的共振信号
4. **可自定义设置:**
- 可调整EMA长度(默认:200周期)
- 可自定义线宽和偏移量
- 灵活的表格定位(上/中/下,左/中/右)
- 可配置表格单元格大小和文本外观
**适合人群:**
- 分析多时间框架的摆动交易者
- 寻求趋势确认的头寸交易者
- 寻找不同时间维度共振信号的技术分析师
MarketMonkey-Indicator-Set-1 - GMMA open 🧠 MarketMonkey-Indicator-Set-1 — GMMA Open
GMMA (Guppy Multiple Moving Average) Toolkit for Trend Clarity & Timing
The MarketMonkey GMMA Open indicators brings a clean, high-performance visual of trend strength and direction using multiple exponential moving averages (EMAs) across short- and long-term time frames.
Designed for traders who want to see momentum shifts and market transitions as they happen, this version overlays directly on the price chart for quick and confident reads.
🔍 How It Works
* Short-term EMAs (3–15) track trader sentiment and momentum.
* Long-term EMAs (30–60) show investor trend commitment.
* The indicator dynamically colors the long-term EMAs:
* 🔵 Blue : Upward momentum
* 🔴 Red : Downward momentum
When the short-term group expands above the long-term group, it signals strength and potential continuation. Tightening or compression may warn of pauses or reversals.
💡 Features
* 12 adjustable EMA periods (customize your GMMA spacing)
* Automatic color shifts for trend clarity
* Live price flag for easy reference
* Compact ticker/date display in the top-right corner
* Minimalist, overlay-based design — no clutter, just clarity
📈 Best Used For
* Spotting early trend changes
* Confirming continuation or breakout setups
* Identifying compression zones before reversals
* Overlaying on ASX, S&P, FX, Gold, or Crypto charts
🔔 Part of the MarketMonkey Indicator Set series — tools built for real-world trend recognition and momentum trading.
EMA Cloud + AlertsThe only EMA indicator you'll ever need.
- Flexible EMAs: Customize EMA lengths (e.g., 9, 21) to match your trading style.
- Dynamic Cloud: Auto-shades bullish (green) or bearish (red) clouds between EMAs for clear trend signals.
- Trend Change Alerts: Auto-alerts that signal when a trend change (EMA crossover) happens on the timeframe you're currently viewing.
- Timeframe Lock: Lock EMAs to a specific timeframe (e.g., 5m on a 1m chart) for consistent analysis.
- Personalized Design: Adjust EMA colors, thickness, and cloud transparency for optimal visibility.
A friendly reminder that no tool or indicator guarantees success. Integrate this into a robust trading plan.
SMC + CRT Gold Flow PRO — Fixed RGB ColorsSCRIPT FOR GOLD. I used SMC + CRT strategies. I analyze in H4 timeframe and enter in m15 time frame.
20 EMA Undercut Bounce - M4v3r1ck💎 The "EMA Undercut Bounce" Bullish Scanner
This indicator is designed to identify high-conviction continuation patterns where price makes a temporary dip for liquidity before resuming a powerful, established uptrend. It specifically looks for a bullish rejection off the 20-period Exponential Moving Average (EMA).
🎯 Strategy Logic
The signal is generated only on the Daily (1D) timeframe when the following five precise conditions are met on the most recent completed bar:
1. Price Action (The Undercut Bounce)
• Undercut: The bar's low price must have touched or temporarily traded below the 20-Day EMA.
• Rejection: The bar's close price must have fully recovered and closed above the 20-Day EMA. This is the classic sign of strong buying pressure defending a key support level.
2. Strong Trend Hierarchy (The Bullish Stack)
The moving averages must be perfectly stacked, confirming a robust multi-timeframe uptrend structure:
• 10-Day EMA > 20-Day EMA
• 20-Day EMA > 50-Day SMA
• 50-Day SMA > 200-Day SMA
3. Momentum Confirmation (The Upward Slope)
Both the 10-Day EMA and the 20-Day EMA must be rising from the previous day. This ensures that the short-term trend momentum is positive, ruling out signals during flat or turning markets.
💡 How to Use This Indicator
1. Timeframe: Ensure your chart is set to the Daily (1D) timeframe for accurate results.
2. Signal: A Green Background highlight and an Up-Arrow below the bar mark a confirmed signal.
3. Alerts: Use the built-in alert condition to set up notifications for stocks on your watchlist, allowing you to catch these high-quality setups without constantly monitoring charts.
This script is ideal for trend-following traders looking to enter a position after a healthy shakeout and confirmation of continued bullish commitment.
[LTS] Marubozu Candle StrategyOVERVIEW
The Marubozu Candle Strategy identifies and trades wickless candles (Marubozu patterns) with dynamic take-profit and stop-loss levels based on market volatility. This indicator combines traditional Japanese candlestick pattern recognition with modern volatility-adjusted risk management and includes a comprehensive performance tracking dashboard.
A Marubozu candle is a powerful continuation pattern characterized by the complete absence of wicks on one side, indicating strong directional momentum. This strategy specifically detects:
- Bullish Marubozu: Close > Open AND Low = Open (no lower wick)
- Bearish Marubozu: Close < Open AND High = Open (no upper wick)
When price returns to test these levels, the indicator generates trading signals with predefined risk-reward parameters.
CORE METHODOLOGY
Detection Logic:
The script scans each bar for Marubozu formations using precise price comparisons. When a wickless candle appears, a horizontal line extends from the opening price, marking it as a potential support (bullish) or resistance (bearish) level. These levels remain active until price touches them or until the maximum line limit is reached.
EMA Filter (Optional):
An exponential moving average filter enhances signal quality by requiring proper trend alignment. For bullish signals, price must be above the EMA when touching the level. For bearish signals, price must be below the EMA. This filter reduces counter-trend trades and improves win rates in trending markets. Users can disable this filter for range-bound conditions.
Dynamic Risk Management:
The strategy employs ATR-based (Average True Range) position sizing rather than fixed point values. This approach adapts to market volatility automatically:
- In low volatility: Tighter stops and targets
- In high volatility: Wider stops and targets proportional to market movement
Default settings use a 2:1 reward-to-risk ratio (1x ATR for take-profit, 0.5x ATR for stop-loss), but users can adjust these multipliers to match their trading style.
HOW IT WORKS
Step 1 - Pattern Detection:
On each bar, the indicator evaluates whether the candle qualifies as a Marubozu by comparing the high, low, open, and close prices. When detected, the opening price becomes the key level.
Step 2 - Level Management:
Horizontal lines extend from each Marubozu's opening price. The indicator maintains two separate arrays: one for unbroken levels (actively extending) and one for broken levels (historical reference). Users can configure how many of each type to display, preventing chart clutter while maintaining relevant context.
Step 3 - Signal Generation:
When price returns to touch a Marubozu level, the indicator evaluates the EMA filter condition. If the filter passes (or is disabled), the script draws TP/SL boxes showing the expected profit and loss zones based on current ATR values.
Step 4 - Trade Tracking:
Each valid signal enters the tracking system, which monitors subsequent price action to determine outcomes. The script identifies whether the take-profit or stop-loss was hit first (discarding trades where both trigger on the same candle to avoid ambiguous results).
PERFORMANCE DASHBOARD
The integrated dashboard provides real-time strategy analytics to automatically convert results to dollar values for any instrument:
Tracked Metrics:
- Total Trades: Complete count of closed positions
- Wins/Losses: Individual counts with color coding
- Win Rate: Success percentage with dynamic color (green >= 50%, red < 50%)
- Total P&L: Cumulative profit/loss in dollars
- Avg Win: Mean dollar amount per winning trade
- Avg Loss: Mean dollar amount per losing trade
NOTE: The dollar values shown in the dashboard are for trading only a single share/contract/etc. You will need to manually multiply those numbers by the amount of shares/contracts you are trading to get a true value.
The dollar conversion works automatically across all markets:
- Futures contracts (ES, NQ, CL, etc.) use their contract specifications
- Forex pairs use standard lot calculations
- Stocks and crypto use their respective point values
This eliminates manual calculation and provides immediate performance feedback in meaningful currency terms.
CUSTOMIZATION OPTIONS
ATR Settings:
- ATR Period: Lookback length for volatility calculation (default: 14)
- TP Multiplier: Take-profit distance as multiple of ATR (default: 3.0)
- SL Multiplier: Stop-loss distance as multiple of ATR (default: 1.5)
EMA Settings:
- EMA Length: Period for trend filter calculation (default: 9)
- Use EMA Filter: Toggle trend confirmation requirement (default: enabled)
Visual Settings:
- Bullish Color: Color for long signals and wins (default: green)
- Bearish Color: Color for short signals and losses (default: red)
- EMA Color: Color for trend filter line (default: orange)
- Line Width: Thickness of Marubozu level lines (1-5, default: 2)
- EMA Width: Thickness of EMA line (1-5, default: 2)
Line Management:
- Max Unbroken Lines: Limit for active extending lines (default: 10)
- Max Broken Lines: Limit for historical touched lines (default: 5)
Dashboard Settings:
- Show Dashboard: Toggle performance display on/off
- Dashboard Position: Corner placement (4 options)
- Dashboard Size: Text size selection (Tiny/Small/Normal/Large)
HOW TO USE
1. Add the indicator to your chart
2. Adjust ATR multipliers based on your risk tolerance (higher values = more conservative)
3. Configure the EMA filter based on market conditions (enable for trending, disable for ranging)
4. Set line limits to match your visual preference and chart timeframe
5. Monitor the dashboard to track strategy performance in real-time
6. Use the TP/SL boxes as reference levels for manual trades or automation
Best Practices:
- Enable EMA filter in strongly trending markets
- Disable EMA filter if you want more trade signals but at lower quality
- Increase ATR multipliers in highly volatile markets
- Decrease ATR multipliers for tighter, more frequent trades
- Review avg win/loss ratio to ensure positive expectancy
UNIQUE FEATURES
Unlike basic Marubozu detectors, this strategy provides:
1. Automatic level tracking with memory management
2. Volatility-adjusted risk parameters instead of fixed values
3. Optional trend confirmation via EMA filter
4. Real-time performance analytics with automatic dollar conversion
5. Separate tracking of wins/losses with individual averages
6. Configurable visual display to prevent chart clutter
7. Complete transparency with all logic visible in open-source code
Distance % from sma/ema + Percentile BandsThis script is breadth indicator for long term bull and bear markets.
Default settings:
AU:
- 200m SMA
- Percentile Lookback: 99%
- Lookback Period: 240 M
AG: TBD
SPX: TBD
Moving Averages: 09-21-55-200 - Multiple Times Frames v2This is a multi-timeframe 9ema, 21ema, 55ema and the 200 SMA for the 1 minute, 2minute, 5 minute and 15 minute timeframes. SO when you are on any of these time-frames it will show the EMAs and SMAs for the other levels.
Multi-Timeframe EMA Trend Dashboard with Volume and RSI Filters═══════════════════════════════════════════════════════════
MULTI-TIMEFRAME EMA TREND DASHBOARD
═══════════════════════════════════════════════════════════
OVERVIEW
This indicator provides a comprehensive view of trend direction across multiple timeframes using the classic EMA 20/50 crossover methodology, enhanced with volume confirmation and RSI filtering. It aggregates trend information from six timeframes into a single dashboard for efficient market analysis.
The indicator is designed for educational purposes and to assist traders in identifying potential trend alignments across different time horizons.
═══════════════════════════════════════════════════════════
FEATURES
═══════════════════════════════════════════════════════════
MULTI-TIMEFRAME ANALYSIS
• Monitors 6 timeframes simultaneously: 1m, 5m, 15m, 1H, 4H, 1D
• Each timeframe analyzed independently using request.security()
• Non-repainting implementation with proper lookahead settings
• Calculates overall trend strength as percentage of bullish timeframes
EMA CROSSOVER SYSTEM
• Fast EMA (default: 20) and Slow EMA (default: 50)
• Bullish: Fast EMA > Slow EMA
• Bearish: Fast EMA < Slow EMA
• Neutral: Fast EMA = Slow EMA (rare condition)
• Visual EMA plots with optional fill area
VOLUME CONFIRMATION
• Optional volume filter for crossover signals
• Compares current volume against moving average (default: 20-period SMA)
• Categorizes volume as: High (>1.5x average), Normal (>average), Low (70), oversold (<30), and neutral zones
• Used in quality score calculation
• Optional display toggle
SUPPORT & RESISTANCE DETECTION
• Automatic detection using highest/lowest over lookback period (default: 50 bars)
• Plots resistance (red), support (green), and mid-level (gray)
• Step-line style for clear visualization
• Optional display toggle
QUALITY SCORING SYSTEM
• Rates trade setups from 1-5 stars
• Considers: MTF alignment, volume confirmation, RSI positioning
• 5 stars: 4+ timeframes aligned + volume confirmed + RSI 50-70
• 4 stars: 4+ timeframes aligned + volume confirmed
• 3 stars: 3+ timeframes aligned
• 2 stars: Exactly 3 timeframes aligned
• 1 star: Other conditions
VISUAL DASHBOARD
• Clean table display (position customizable)
• Color-coded trend indicators (green/red/yellow)
• Extended statistics panel (toggleable)
• Shows: Trends, Strength, Quality, RSI, Volume, Price Distance
═══════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════
CALCULATIONS
Trend Determination per Timeframe:
• request.security() fetches EMA values with gaps=off, lookahead=off
• Compares Fast EMA vs Slow EMA
• Returns: 1 (bullish), -1 (bearish), 0 (neutral)
Trend Strength:
• Counts number of bullish timeframes
• Formula: (bullish_count / 6) × 100
• Range: 0% (all bearish) to 100% (all bullish)
Price Distance from EMA:
• Formula: ((close - EMA) / EMA) × 100
• Positive: Price above EMA
• Negative: Price below EMA
• Warning when absolute distance > 5%
ANTI-REPAINTING MEASURES
• All request.security() calls use lookahead=barmerge.lookahead_off
• Dashboard updates only on barstate.islast
• Historical bars remain unchanged
• Crossover signals finalize on bar close
═══════════════════════════════════════════════════════════
USAGE GUIDE
═══════════════════════════════════════════════════════════
INTERPRETING THE DASHBOARD
Timeframe Rows:
• Each row shows individual timeframe trend status
• Look for alignment (multiple timeframes same direction)
• Higher timeframes generally more significant
Strength Indicator:
• >66.67%: Strong bullish (4+ timeframes bullish)
• 33.33-66.67%: Mixed/choppy conditions
• <33.33%: Strong bearish (4+ timeframes bearish)
Quality Score:
• Higher stars = better confluence of factors
• 5-star setups have strongest multi-factor confirmation
• Lower scores may indicate weaker or conflicting signals
SUGGESTED APPLICATIONS
Trend Confirmation:
• Check if multiple timeframes confirm current chart trend
• Higher agreement = stronger trend confidence
• Use for position sizing decisions
Entry Timing:
• Wait for EMA crossover on chart timeframe
• Confirm with higher timeframe alignment
• Volume above average preferred
• RSI not in extreme zones
Divergence Detection:
• When lower timeframes diverge from higher
• May indicate trend exhaustion or reversal
• Requires additional confirmation
CUSTOMIZATION
EMA Settings:
• Adjust Fast/Slow lengths for different sensitivities
• Shorter periods = more responsive, more signals
• Longer periods = smoother, fewer signals
• Common alternatives: 10/30, 12/26, 50/200
Volume Filter:
• Enable for higher-quality signals (fewer false positives)
• Disable in always-liquid markets or for more signals
• Adjust MA length based on typical volume patterns
Display Options:
• Toggle EMAs, S/R levels, extended stats as needed
• Choose dashboard position to avoid chart overlap
• Adjust colors for visibility preferences
═══════════════════════════════════════════════════════════
ALERTS
═══════════════════════════════════════════════════════════
AVAILABLE ALERT CONDITIONS
1. Bullish EMA Cross (Volume Confirmed)
2. Bearish EMA Cross (Volume Confirmed)
3. Strong Bullish Alignment (4+ timeframes)
4. Strong Bearish Alignment (4+ timeframes)
5. Trend Strength Increasing (>16.67% jump)
6. Trend Strength Decreasing (>16.67% drop)
7. Excellent Trade Setup (5-star rating)
Alert messages use standard placeholders:
• {{ticker}} - Symbol name
• {{close}} - Current close price
• {{time}} - Bar timestamp
═══════════════════════════════════════════════════════════
LIMITATIONS & CONSIDERATIONS
═══════════════════════════════════════════════════════════
KNOWN LIMITATIONS
• Lower timeframe data may not be available on all symbols
• 1-minute data typically limited to recent history
• request.security() subject to TradingView data limits
• Dashboard requires screen space (may overlap on small screens)
• More complex calculations may affect load time on slower devices
NOT SUITABLE FOR
• Highly volatile/illiquid instruments (many false signals)
• News-driven markets during announcements
• Automated trading without additional filters
• Markets where EMA strategies don't perform well
DOES NOT PROVIDE
• Exact entry/exit prices
• Stop-loss or take-profit levels
• Position sizing recommendations
• Guaranteed profit signals
• Market predictions
═══════════════════════════════════════════════════════════
BEST PRACTICES
═══════════════════════════════════════════════════════════
RECOMMENDED USAGE
✓ Combine with price action analysis
✓ Use appropriate risk management
✓ Backtest on historical data before live use
✓ Adjust settings for specific market characteristics
✓ Wait for higher-quality setups in important trades
✓ Consider overall market context and fundamentals
NOT RECOMMENDED
✗ Using as standalone trading system without confirmation
✗ Trading every signal without discretion
✗ Ignoring risk management principles
✗ Trading without understanding the methodology
✗ Applying to unsuitable markets/timeframes
═══════════════════════════════════════════════════════════
EDUCATIONAL BACKGROUND
═══════════════════════════════════════════════════════════
EMA CROSSOVER STRATEGY
The Exponential Moving Average crossover is a classical trend-following technique:
• Golden Cross: Fast EMA crosses above Slow EMA (bullish signal)
• Death Cross: Fast EMA crosses below Slow EMA (bearish signal)
• Widely used since the 1970s in various markets
• More responsive than SMA due to exponential weighting
MULTI-TIMEFRAME ANALYSIS
Analyzing multiple timeframes helps traders:
• Identify alignment between short and long-term trends
• Reduce false signals from single-timeframe noise
• Understand market context across different horizons
• Make informed decisions about trade duration
VOLUME ANALYSIS
Volume confirmation adds reliability:
• High volume suggests institutional participation
• Low volume signals may indicate false breakouts
• Volume precedes price in many market theories
• Helps distinguish genuine moves from noise
═══════════════════════════════════════════════════════════
TECHNICAL IMPLEMENTATION
═══════════════════════════════════════════════════════════
CODE STRUCTURE
• Organized in clear sections with proper commenting
• Uses explicit type declarations (int, float, bool, color, string)
• Constants defined at top (BULLISH=1, BEARISH=-1, etc.)
• Functions documented with @function, @param, @returns
• Follows PineCoders naming conventions (camelCase variables)
PERFORMANCE OPTIMIZATION
• var keyword for table (created once, not every bar)
• Calculations cached where possible
• Dashboard updates only on last bar
• Minimal redundant security() calls
SECURITY IMPLEMENTATION
• Proper gaps and lookahead parameters
• No future data leakage
• Signals finalize on bar close
• Historical bars remain static
═══════════════════════════════════════════════════════════
VERSION INFORMATION
═══════════════════════════════════════════════════════════
Current Version: 2.0
Pine Script Version: 5
Last Updated: 2024
Developed by: Zakaria Safri
═══════════════════════════════════════════════════════════
SETTINGS REFERENCE
═══════════════════════════════════════════════════════════
EMA SETTINGS
• Fast EMA Length: 1-500 (default: 20)
• Slow EMA Length: 1-500 (default: 50)
VOLUME & MOMENTUM
• Use Volume Confirmation: true/false (default: true)
• Volume MA Length: 1-500 (default: 20)
• Show RSI Levels: true/false (default: true)
• RSI Length: 1-500 (default: 14)
PRICE ACTION FEATURES
• Show Price Distance: true/false (default: true)
• Show Key Levels: true/false (default: true)
• S/R Lookback Period: 10-500 (default: 50)
DISPLAY SETTINGS
• Show EMAs on Chart: true/false (default: true)
• Fast EMA Color: customizable (default: cyan)
• Slow EMA Color: customizable (default: orange)
• EMA Line Width: 1-5 (default: 2)
• Show Fill Between EMAs: true/false (default: true)
• Show Crossover Signals: true/false (default: true)
DASHBOARD SETTINGS
• Position: Top Left/Right, Bottom Left/Right
• Show Extended Statistics: true/false (default: true)
ALERT SETTINGS
• Alert on Multi-TF Alignment: true/false (default: true)
• Alert on Trend Strength Change: true/false (default: true)
═══════════════════════════════════════════════════════════
RISK DISCLAIMER
═══════════════════════════════════════════════════════════
This indicator is provided for educational and informational purposes only. It should not be considered financial advice or a recommendation to buy or sell any security.
IMPORTANT NOTICES:
• Past performance does not indicate future results
• All trading involves risk of capital loss
• No indicator guarantees profitable trades
• Always conduct independent research and analysis
• Use proper risk management and position sizing
• Consult a qualified financial advisor before trading
• The developer assumes no liability for trading losses
By using this indicator, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
═══════════════════════════════════════════════════════════
SUPPORT & CONTRIBUTIONS
═══════════════════════════════════════════════════════════
FEEDBACK WELCOME
• Constructive comments appreciated
• Bug reports help improve the indicator
• Feature suggestions considered for future versions
• Share your experience to help other users
OPEN SOURCE
This code is published as open source for the TradingView community to:
• Learn from the implementation
• Modify for personal use
• Understand multi-timeframe analysis techniques
If you find this indicator useful, please consider:
• Leaving a thoughtful review
• Sharing with other traders who might benefit
• Following for future updates and releases
═══════════════════════════════════════════════════════════
ADDITIONAL RESOURCES
═══════════════════════════════════════════════════════════
RECOMMENDED READING
• TradingView Pine Script documentation
• PineCoders community resources
• Technical analysis textbooks on moving averages
• Multi-timeframe trading strategy guides
• Risk management principles
RELATED CONCEPTS
• Trend following strategies
• Moving average convergence/divergence
• Multiple timeframe analysis
• Volume-price relationships
• Momentum indicators
═══════════════════════════════════════════════════════════
Thank you for using this indicator. Trade responsibly and continue learning!
═══════════════════════════════════════════════════════════
ORBs, EMAs, SMAs, AVWAPThis is an update to a previously published script. In short the difference is the added capability to adjust the length of EMAs. Also added 3 customizable SMAs. Enjoy! Let me know what you think of the script please. This is only second one I have ever done. Through practice and people like @LuxAlgo and other Pinescripters this isn't possible. Tedious hrs with ChatGPT to correct nuances, who doesnt seem to learn from (insert pronoun) mistakes
This all-in-one indicator combines key institutional tools into a unified framework for intraday and swing trading. Designed for traders who use multi-session analysis and dynamic levels, it automatically maps out global session breakouts, moving averages, and volume-weighted anchors with high clarity.
Features include:
🕓 Tokyo, London, and New York ORBs (Opening Range Breakouts) — 30-minute configurable range boxes that persist until the next New York open.
📈 Anchored VWAP with Standard Deviation Bands — dynamically anchorable to session, week, or month for institutional-grade price tracking.
📊 Exponential Moving Averages (9, 20, 113, 200) — for short-, mid-, and long-term momentum structure.
📉 Simple Moving Averages (20, 50, 100) — fully customizable lengths, colors, and visibility toggles for trend confirmation.
🏁 Prior High/Low Levels (PDH/PDL, PWH/PWL, PMH/PML) — automatically plotted from previous day, week, and month, with labels placed at each session’s midpoint.
🎛️ Session-Aligned Time Logic — all time calculations use New York session anchors with DST awareness.
💡 Clean Visualization Options — every component can be toggled on/off, recolored, or customized for your workflow.
Best used for:
ORB break-and-retest setups
VWAP and EMA rejections
Confluence-based trading around key session levels
Multi-session momentum tracking






















