Divergence MFI[mado]Divergence screener for MFI
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
在腳本中搜尋"bear"
Divergence MACD [mado]Divergence screener for MACD
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Divergence LinerRegressionSlope[mado]Divergence screener for LinerRegressionSlope
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Divergence KlingerVolumeOscillator [mado]Divergence screener for KVO
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Divergence CCI [mado]Divergence screener for CCI
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Divergence Awesome Oscillator [mado]Divergence screener for Awesome Oscillator
Regular Bullish: "D" navy label
Hidden Bullish: "H" navy label
Regular Bearish: "D" red label
Hidden Bearish: "H" red label
Multi Timeframe ADX and DI w/ AlertsThis script is based off the public DMI code and used to get a quick visual of trend and direction across 3 different timeframes. Alert conditions have been setup for trend changes to bull/bear for all 3 timeframes. This script is meant to pull together the concepts of multi-time frame indicators, custom functions, and custom alert conditions.
The primary instructions for this script was to find a version of the ADX Indicator and give it the same treatment as we did with the Heiken Ashi demo (displaying green/red/gray circles to indicate trend and direction) over a configurable time frame. Display a matrix of each timeframe and the corresponding directional color (green=bull, red=bear, gray=non-trending). Have it produce an alert when the state of indicator changes to either bull or bear.
Elder impulse system with double exponential moving average dema
This version of impulse uses the double exponential moving average instead of the typical ema both to calculate macd and the moving slow and fast moving average that are plotted.
The impulse system :
The Impulse System combines two simple but powerful indicators.
One measures market inertia, the other its momentum. When both
point in the same direction, they identify an impulse worth following.
We get an entry signal when both indicators get in gear.
The Impulse System uses an exponential moving average to find
uptrends and downtrends. When the EMA rises, it shows that inertia
favors the bulls. When EMA falls, inertia works for the bears. The sec-
ond component is MACD-Histogram, an oscillator whose slope reflects
changes of power among bulls or bears. When MACD-Histogram rises,
it shows that bulls are becoming stronger. When it falls, it shows that
bears are growing stronger.
The Impulse System flags those bars where both the inertia and the
momentum point in the same direction. When both the EMA and
MACD-Histogram rise, they show that bulls are roaring and the uptrend
is accelerating.
MACD Zero lag impulse systemThis version of impulse uses the double exponential moving average instead of the typical ema.
The impulse system :
The Impulse System combines two simple but powerful indicators.
One measures market inertia, the other its momentum. When both
point in the same direction, they identify an impulse worth following.
We get an entry signal when both indicators get in gear.
The Impulse System uses an exponential moving average to find
uptrends and downtrends. When the EMA rises, it shows that inertia
favors the bulls. When EMA falls, inertia works for the bears. The sec-
ond component is MACD-Histogram, an oscillator whose slope reflects
changes of power among bulls or bears. When MACD-Histogram rises,
it shows that bulls are becoming stronger. When it falls, it shows that
bears are growing stronger.
The Impulse System flags those bars where both the inertia and the
momentum point in the same direction. When both the EMA and
MACD-Histogram rise, they show that bulls are roaring and the uptrend
is accelerating.
Elder impulse system with barcolor + Safezone stops + emasThe impulse system :
The Impulse System combines two simple but powerful indicators.
One measures market inertia, the other its momentum. When both
point in the same direction, they identify an impulse worth following.
We get an entry signal when both indicators get in gear.
The Impulse System uses an exponential moving average to find
uptrends and downtrends. When the EMA rises, it shows that inertia
favors the bulls. When EMA falls, inertia works for the bears. The sec-
ond component is MACD-Histogram, an oscillator whose slope reflects
changes of power among bulls or bears. When MACD-Histogram rises,
it shows that bulls are becoming stronger. When it falls, it shows that
bears are growing stronger.
The Impulse System flags those bars where both the inertia and the
momentum point in the same direction. When both the EMA and
MACD-Histogram rise, they show that bulls are roaring and the uptrend
is accelerating.
The SafeZone Stop :
Once in a trade, where should you put your stop? This is one of the
hardest questions in technical analysis. After answering it, you’ll face
an even harder one—when and where to move that stop with the pas-
sage of time. Put a stop too close and it’ll get whacked by some mean-
ingless intraday swing. Put it too far, and you’ll have very skimpy
protection.
The Parabolic System, described in Trading for a Living, tried to
tackle this problem by moving stops closer to the market each day,
accelerating whenever a stock or a commodity reached a new extreme.
The trouble with Parabolic was that it kept moving even if the market
stayed flat and often got hit by meaningless noise.
SafeZone trails prices with stops tight enough to protect
capital but remote enough to keep clear of most random fluctuations.
Engineers design filters to suppress noise and allow the signal to come
through. If the trend is the signal, then the countertrend motion is the
noise. When the trend is up, we can define noise as that part of each
day’s range that protrudes below the previous day’s low. When the trend
is down, we can define noise as that part of each day’s range that pro-
trudes above the previous day’s high. SafeZone measures market noise
and places stops at a multiple of noise level away from the market.
We can make our lookback period 100 days or so if we want to aver-
age long-term market behavior.
SafeZone offers an original approach to placing stops. It monitors
changes in prices and adapts stops to the current levels of activity. It
places stops at individually tailored distances rather than at obvious
support and resistance levels.
10/5 Weekly/Daily EMAs with ConfirmationsPlots Daily and Weekly 10 & 5 EMAs (but fully customizable to your own).
In addition to plotting the EMAs it color coordinates trend bias and has cross confirmation signals.
Philosophy and how to read:
I use this indicator when trading strictly on the daily timeframe. I have not tested it on other timeframes.
In my trade system I start with both the monthly and weekly charts to define overall bias.
Here’s the general rule of thumb.
10 EMA is direction (bias) and 5 EMA is price.
If 5EMA is below 10EMA there is a bear bias. If 5EMA is above 10EMA there is a bull bias.
This indicator will plot both the daily and weekly 10 & 5 EMAs.
It will also color code the background based on how these EMAs relate to each other.
Light red typically is just the daily is confirmed bear (typically because it could be either or)
Dark red, both daily and weekly in confirmed bear.
Light green, typically just daily is confirmed bull (typically because it could be either or)
Dark green, both daily and weekly in confirmed bull.
In addition to background highlight there is confirmation crosses.
The daily confirmation cross is default yellow triangle.
Down triangle is 5 crossing the 10 downward.
Up triangle is the 5 crossing the 10 upward.
The weekly confirmation is the same only is aqua color.
Generally, on a color change you want to see one or both confirmation in the direction of the bias change.
If you only want to plot the daily bias in the options unclick the setting: Include Weekly Background Plotting. Unclicking this will remove the background coloring for the weekly bias. This might be helpful if you only want to see the strength of what the weekly timeframe is telling you.
Also, I’m primarily a trend trader but I also do have a reversal system I trade with lower R:R parameters.
A good reversal confirmation signal I’ve noticed is the instrument that you are trading should go through a cycle of light color to dark color.
You could also create alerts with this indicator based on just signals. When the signal fires the value will be 1.
Future Updates:
I want to find some way to correlate the distance between these EMAs to enhance the signal. Also to include a velocity component. Plus a few more things.
If you like this indicator please like and leave a comment down below.
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.
Quantum Breakout Sentinel [LuxAlgo + AlgoAlpha Fusion]🛠️ Core Features
🔹 Swing Failure Patterns (SFP)
Bullish SFP (Blue): Price sweeps below a swing low but closes back above confirmation → Potential reversal long.
Bearish SFP (Red): Price sweeps above a swing high but closes back below confirmation → Potential reversal short.
✅ Option to toggle lines, wicks, and confirmation levels.
🎯 Precision-based: Filters out weak or unclear liquidity grabs.
🔸 Range Breakout Zones
Compression Boxes detect consolidation zones with low volatility.
When breakout occurs, volume profile paints:
💚 Bull volume dominance (turquoise highlight)
❤️ Bear volume dominance (red highlight)
These zones represent energy storage areas — once broken, expect strong directional expansion.
🧠 How to Use It Effectively
1. Reversal Entries (Using SFPs)
Look for SFPs that:
Form at key HTF structure (e.g., daily swing highs/lows)
Show a clear ▲ (bull) or ▼ (bear) label after a false breakout
Confluence with demand/supply zones = 💯
2. Breakout Trades (Using Range Boxes)
Wait for a volatility box to form (grey background).
Watch for breakouts with volume imbalance:
Bullish breakout + dominant bull box → Go long
Bearish breakout + dominant bear box → Go short
Target 1.5x to 2x box height for conservative exits.
3. Combining Both
BEST SETUPS:
SFP at the edge of a range box → Follow-through trade
Volume-confirmed breakout after fakeout (SFP) = Smart Money Trap Reversal
⚙️ Customization Options
Toggle SFP components: labels, lines, colors
Adjust range length, confirmation length
Choose your timeframe context (LTF integration)
Color-tune breakout boxes for your visual preference
🧭 Ideal For
Smart Money Traders
Price Action Breakout Traders
Scalpers using HTF confluence
Anyone who wants clean, signal-driven, non-repainting alerts
🔔 Pro Tip
Set alerts on SFP confirmations or volume-confirmed breakout zones to be notified in real time. These signals often precede rapid directional moves.
🙌 Special Thanks
This fusion tool would not be possible without the brilliant open-source contributions from:
🔷 LuxAlgo – For their powerful and widely respected Swing Failure Pattern (SFP) logic, designed to detect stop hunts and liquidity sweeps with precision.
🔶 AlgoAlpha – For their volatility compression breakout detection engine, which forms the foundation of the Range Breakout Boxes in this script.
📢 Massive respect to both teams for their dedication to elevating retail trading tools to institutional-grade standards.
This script is a community-powered blend of two elite systems, harmonized into one high-performance toolkit.
Liquidity Engulfing (Nephew_Sam_)🔥 Liquidity Engulfing Multi-Timeframe Detector
This indicator finds engulfing bars which have swept liquidity from its previous candle. You can use it across 6 timeframes with fibonacci entries.
⚡ Key Features
6 Customizable Timeframes - Complete market structure analysis
Smart Liquidity Detection - Finds patterns that sweep liquidity then reverse
Real-Time Status Table - Confirmed vs unconfirmed patterns with color coding
Fibonacci Integration - 5 customizable fib levels for precise entries
HTF → LTF Strategy - Spot reversals on higher timeframes, enter on lower timeframe fibs
📈 Engulfing Rules
Bullish: Current candle bullish + previous bearish + current low < previous low + current close > previous open
Bearish: Current candle bearish + previous bullish + current high > previous high + current close < previous open
Andean Pulse Oscillator [APO] Andean Pulse Oscillator (APO)
The Andean Pulse Oscillator (APO) is a momentum-based technical indicator designed to detect early shifts in bullish and bearish pressure using adaptive exponential envelopes. Inspired by the original Andean Oscillator concept, this upgraded version maintains the spirit of the tool while improving clarity, responsiveness, and usability.
🧠 Key Features:
Two core components:
🔹 Bullish Component (green) – Measures strength of downward volatility (bullish momentum).
🔻 Bearish Component (red) – Measures strength of upward volatility (bearish momentum).
A Signal Line (orange) smooths the dominant component to help filter out noise.
Background shading provides at-a-glance trend bias: green for bullish dominance, red for bearish.
Optional Buy/Sell Signal Arrows when bullish and bearish lines cross.
⚙️ Inputs:
Length – Controls smoothing sensitivity of the envelope-based momentum calculation.
Signal Length – Controls smoothing of the dominant component (signal line).
Show Buy/Sell Signals – Toggle crossover arrows on or off.
🔍 Usage Tips:
Look for bullish crossovers (green crosses above red) below the zero-line during corrections for potential long setups.
Look for bearish crossunders (red crosses above green) near tops for potential short setups.
Can be combined with price structure, trend filters, or divergence analysis for added confirmation.
👨🎨 Credit:
Originally conceptualized by @Andean, the APO version enhances it with modern visuals, cleaner signals, and modular structure — a tribute to a powerful and underutilized oscillator.
🦌 Horn Pattern - Horn + FT - Ming Joo太棒了!以下是你策略的中英文简介版本,专为 **TradingView 发布页面** 编写,突出你当前唯一的 context filter(基于 EMA20)。
---
## 🇬🇧 English Description — Horn Pattern Strategy with EMA Context Filter
**🦌 Horn Pattern Reversal Strategy (By Ming Joo)**
This strategy is based on a 3-bar reversal pattern known as the **Horn Pattern** (bull-bear-bull for longs, bear-bull-bear for shorts). A confirmation bar (bar\ ) follows the pattern to validate a breakout.
🔍 **Context Filter:**
To ensure high-quality trades, a simple trend filter is applied using EMA(20):
* ✅ **Bullish Horn** signals are valid **only if** the confirmation bar closes **above EMA20**
* ✅ **Bearish Horn** signals are valid **only if** the confirmation bar closes **below EMA20**
This prevents taking counter-trend reversals in weak conditions.
🎯 Entry Logic:
* Long entry: Horn high + 1 tick
* Short entry: Horn low – 1 tick
* Target: 1R
* Stop: Structural extreme (low/high of the horn)
* Optionally shows 0.5R line
This structure-based reversal model is suitable for 5min–1H timeframes, and works best on volatile instruments (e.g. ES1!, NQ1!, BTCUSD, AAPL).
---
## 🇨🇳 中文简介 — Horn 结构反转策略(含 EMA 趋势滤网)
**🦌 Horn 反转策略(By Ming Joo)**
本策略基于经典的 **Horn 形态**(多头为 bull-bear-bull,空头为 bear-bull-bear),由三根结构K线 + 一根确认K线构成,搭配 **EMA20 趋势过滤器** 筛选优质信号。
🔍 **上下文过滤条件(唯一 context filter):**
* ✅ **Bullish Horn** 仅在确认K线的收盘 **高于 EMA20** 时触发
* ✅ **Bearish Horn** 仅在确认K线的收盘 **低于 EMA20** 时触发
防止在弱趋势中逆势进场,提升成功率。
🎯 入场逻辑:
* 多头:Horn 高点 +1 tick 挂多
* 空头:Horn 低点 –1 tick 挂空
* 止盈:1R
* 止损:Horn 的结构极点
* 可选显示 0.5R 虚线
适合用于 5分钟至 1小时图表,特别适用于高波动性品种(如 ES1!, NQ1!, BTCUSD, AAPL 等)。
---
Mariam Ichimoku DashboardPurpose
The Mariam Ichimoku Dashboard is designed to simplify the Ichimoku trading system for both beginners and experienced traders. It provides a complete view of trend direction, strength, momentum, and key signals all in one compact dashboard on your chart. This tool helps traders make faster and more confident decisions without having to interpret every Ichimoku element manually.
How It Works
1. Trend Strength Score
Calculates a score from -5 to +5 based on Ichimoku components.
A high positive score means strong bullish momentum.
A low negative score shows strong bearish conditions.
A near-zero score indicates a sideways or unclear market.
2. Future Cloud Bias
Looks 26 candles ahead to determine if the future cloud is bullish or bearish.
This helps identify the longer-term directional bias of the market.
3. Flat Kijun / Flat Senkou B
Detects flat zones in the Kijun or Senkou B lines.
These flat areas act as strong support or resistance and can attract price.
4. TK Cross
Identifies Tenkan-Kijun crosses:
Bullish Cross means Tenkan crosses above Kijun
Bearish Cross means Tenkan crosses below Kijun
5. Last TK Cross Info
Shows whether the last TK cross was bullish or bearish and how many candles ago it happened.
Helps track trend development and timing.
6. Chikou Span Position
Checks if the Chikou Span is above, below, or inside past price.
Above means bullish momentum
Below means bearish momentum
Inside means mixed or indecisive
7. Near-Term Forecast (Breakout)
Warns when price is near the edge of the cloud, preparing for a potential breakout.
Useful for anticipating price moves.
8. Price Breakout
Shows if price has recently broken above or below the cloud.
This can confirm the start of a new trend.
9. Future Kumo Twist
Detects upcoming twists in the cloud, which often signal potential trend reversals.
10. Ichimoku Confluence
Measures how many key Ichimoku signals are in agreement.
The more signals align, the stronger the trend confirmation.
11. Price in or Near the Cloud
Displays if the price is inside the cloud, which often indicates low clarity or a choppy market.
12. Cloud Thickness
Shows whether the cloud is thin or thick.
Thick clouds provide stronger support or resistance.
Thin clouds may allow easier breakouts.
13. Recommendation
Gives a simple trading suggestion based on all major signals.
Strong Buy, Strong Sell, or Hold.
Helps simplify decision-making at a glance.
Features
All major Ichimoku signals summarized in one panel
Real-time trend strength scoring
Detects flat zones, crosses, cloud twists, and breakouts
Visual alerts for trend alignment and signal confluence
Compact, clean design
Built with simplicity in mind for beginner traders
Tips
Best used on 15-minute to 1-hour charts for short-term trading
Avoid entering trades when price is inside the cloud because the market is often indecisive
Wait for alignment between trend score, TK cross, cloud bias, and confluence
Use the dashboard to support your trading strategy, not replace it
Enable alerts for major confluence or upcoming Kumo twists
Momentum Contour Pulse [ApexLegion]🌊 Momentum Contour Pulse
*Advanced Multi-Layer Momentum Visualization with High-Precision Trend Reversal Detection*
📖 **OVERVIEW**
The **Momentum Contour Pulse** is a sophisticated momentum analysis tool that combines topographic-style visualization with precision trend reversal signals. This indicator creates dynamic "contour maps" of market momentum, similar to elevation maps, where color intensity and gradient effects reveal the strength and direction of underlying market forces.
**Key Innovation:** Unlike traditional momentum indicators that show simple lines or histograms, this system renders momentum as flowing, gradient-based bands that expand and contract with market volatility, providing an intuitive visual representation of market energy.
✨ **KEY FEATURES**
🎨 **Dynamic Contour Visualization**
- **20-Level Gradient System**: Creates smooth topographic-style momentum bands
- **Adaptive Color Intensity**: Glow effects strengthen with momentum conviction
- **Dual-Color Zones**: Cyan for bullish momentum, Purple for bearish momentum
- **Fade Effects**: Smooth visual transitions during momentum changes
⚡ **Precision Pulse Signals**
- **🟢 Bull Pulse**: Triggered at trend reversal to upward momentum + maximum intensity
- **🔴 Bear Pulse**: Triggered at trend reversal to downward momentum + maximum intensity
- **Professional Glow Effects**: Multi-layer plotshape rendering for premium visual quality
- **ATR-Based Positioning**: Signals placed at precise reversal points with volatility-adjusted spacing
🔧 **Advanced Technical Engine**
- **ATG Filter System**: Proprietary dual-timeframe EMA flow analysis with angular separation
- **Adaptive Volatility Bands**: Dynamic expansion/contraction based on market conditions
- **Multi-Condition Confirmation**: Combines trend detection, breakout analysis, and momentum strength
- **Intensity Filtering**: Only top 25% intensity signals qualify for pulse alerts
🚀 **HOW TO USE**
### **For Visual Analysis:**
1. **Contour Reading**: Brighter bands = stronger momentum, darker bands = weaker momentum
2. **Direction Assessment**: Cyan glow = bullish bias, Purple glow = bearish bias
3. **Momentum Tracking**: Watch band intensity changes to gauge momentum shifts
**For Flow Analysis:**
1. **🟢 Bull Pulse**: Monitor for upside pressure when pulse appears at support levels
2. **🔴 Bear Pulse**: Observe downside flow when pulse appears at resistance levels
3. **Confirmation**: Validate momentum expansion with other technical analysis for optimal engagement zones
**For Educational Purpose:**
1. Enable **"Show Debug Table"** to see all internal calculations
2. Enable **"Show Debug Lines"** to visualize trend zones and breakout levels
3. Study how momentum intensity correlates with price movements
⚙️ **CONFIGURATION GUIDE**
**ATG Filter Settings** 🎯
- **Short-Term Flow Length (21)**: Controls fast EMA sensitivity
- **Long-Term Flow Length (55)**: Controls slow EMA baseline
- **Volatility Expansion Multiplier (1.75)**: Adjusts breakout zone sensitivity
- **Trend Angle Threshold (25°)**: Sets minimum slope requirement for trend detection
**Visual Customization** 🎨
- **Upper Band Color**: Customize bullish momentum color (default: Cyan)
- **Lower Band Color**: Customize bearish momentum color (default: Purple)
- **Base Glow Intensity (3.0)**: Controls overall visual brightness
- **Momentum Boost Multiplier (1.3)**: Amplifies visual response to strong moves
**Learning Tools** 🔧
- **Show Debug Table**: Reveals all calculation steps and decision logic
- **Show Debug Lines**: Displays trend zones and breakout thresholds
- **Intensity Smoothing Period (8)**: Controls signal responsiveness vs stability
📚 **EDUCATIONAL VALUE**
This indicator serves as an excellent learning tool for understanding:
**Momentum Analysis Concepts:**
- How dual-timeframe EMA analysis reveals trend structure
- The relationship between volatility and trend confirmation
- Angular measurement techniques for trend strength assessment
**Advanced Pine Script Techniques:**
- Multi-level gradient rendering using fill() functions
- Dynamic color saturation based on calculated intensity
- Sophisticated fade effect systems using historical arrays
- Professional signal visualization with multi-layer plotshape
**Market Psychology:**
- How momentum builds and dissipates in trending markets
- Visual representation of market conviction through color intensity
- The relationship between breakout patterns and momentum confirmation
⚠️ **IMPORTANT NOTES**
**Analysis Guidelines:**
- Use on multiple timeframes for comprehensive momentum assessment
- Combine with support/resistance levels for enhanced flow initiation accuracy
- Consider overall market context when interpreting directional moves
**Important Notes:**
- Disable debug features for optimal chart performance
- Default settings are optimized for most market conditions
**Signal Interpretation:**
- Pulse signals indicate potential flow reversal points, not guaranteed outcomes
- Higher intensity signals generally show better momentum expansion reliability
- Always practice proper risk management regardless of directional move strength
⚠️ **Limitations**
1. **Backtesting Limitations**
This indicator is not a strategy and cannot perform official backtesting on TradingView's engine.
Pulse signals are visual cues only, not verified historical trades.
2. **Regression Band and ATG Filter Inherent Lag**
Linear regression bands are calculated from past data, creating natural lag.
The dual-timeframe EMA analysis (21/55) also requires sufficient data for trend establishment.
3. **High Intensity Threshold May Miss Signals**
The 75% intensity requirement filters for premium signals but may miss moderate opportunities.
In low-volatility periods, pulse signals may become infrequent.
4. **Single Indicator Dependency Risk**
Momentum Contour Pulse works best when combined with support/resistance analysis.
Relying solely on pulse signals without market context may reduce effectiveness.
5. **Parameter Sensitivity**
Modifying ATG filter settings or intensity thresholds should be done carefully.
Excessive sensitivity may produce false signals; excessive filtering may miss valid setups.
🎓 **TECHNICAL METHODOLOGY**
The indicator employs a sophisticated multi-step process:
1. **Flow Analysis**: Calculates dual-timeframe EMA separation and converts to angular measurements
2. **Threshold Adaptation**: Dynamically adjusts trend strength requirements based on historical volatility
3. **Breakout Detection**: Identifies price movements beyond adaptive volatility bands
4. **Intensity Calculation**: Normalizes momentum strength to 0-1 range with smoothing
5. **Visual Rendering**: Applies 20-level gradient system with dynamic transparency
6. **Signal Generation**: Filters for trend changes meeting maximum intensity criteria
**Core Algorithm:**
flowSeparation = math.atan(flowFast_ATG - flowSlow_ATG) * 180 / math.pi
- Converts dual-timeframe EMA separation into precise angular momentum measurement, enabling topographic-style visualization of market flow intensity.
! (i.imgur.com)
🎨 **Visual Features Showcase**
**Multi-Layer Contour Visualization in Action**
**Dynamic Gradient Bands:** Watch how the 20-level gradient system creates topographic-style momentum maps. The **emerald upper contours** represent bullish flow zones, while **violet lower contours** indicate bearish pressure areas. Notice how band intensity **glows brighter** during strong momentum phases and **fades** during consolidation.
**Precision Pulse Signal:** The **🟢 green pulse** (left side) demonstrates perfect trend reversal detection at the momentum flow initiation point. The multi-layer glow effect creates professional-grade signal visualization that stands out without cluttering the chart.
**Adaptive Band Expansion:** Observe how contour bands dynamically **expand during volatility** and **contract during calm periods**, automatically adjusting to market conditions using ATR-based calculations.
📊 **What You're Seeing:**
• **Emerald Glow Zones** → Bullish momentum dominance
• **Violet Flow Areas** → Bearish pressure regions
• **Gradient Intensity** → Real-time momentum strength
• **Pulse Signals** → High-conviction reversal points
• **Smooth Transitions** → Advanced fade effect system
✅ Usage Disclaimer
Momentum Contour Pulse is a visual analytics tool designed for educational and informational purposes only.
It is not financial advice, nor should its signals be interpreted as trading recommendations.
Users are solely responsible for their own trading decisions.
Always practice appropriate risk management and consult with a licensed financial professional when necessary.
The creator of this tool assumes no liability for any financial losses resulting from its use.
Trend Persistence Counter (TPC) by riskcipher🧭 Trend Persistence Counter (TPC) – A Simple Price Action Trend Duration Tool
Trend Persistence Counter (TPC) is a lightweight indicator that counts how long a trend persists after a breakout.
It is entirely based on price action, without using any moving averages or smoothing. The goal is to give a simple, rule-based view of trend continuity.
🧠 How It Works (Logic Overview)
This indicator switches between two modes: bullish and bearish.
If close > previous high, the counter enters bullish mode, and starts at +1
While in bullish mode:
If close >= previous low → continue the uptrend → +1 each bar
If close < previous low → trend ends → reset to 0, switch to bearish mode
If close < previous low, the counter enters bearish mode, and starts at -1
While in bearish mode:
If close <= previous high → continue the downtrend → -1 each bar
If close > previous high → trend ends → reset to 0, switch to bullish mode
This provides a bar-by-bar count of trend persistence based on whether price holds structure.
🎯 Use Cases
Track how long a trend continues after a breakout
Quickly detect when trend structure breaks
Help visually filter “strong” vs “weak” moves
Build logic-based alerts (e.g., trend continues for N bars)
🔍 Why Use This Instead of Traditional Indicators?
This is not meant to replace moving averages or trend filters.
But it offers some advantages for those who prefer structure-based logic:
Feature TPC
Based on Price Action ✅ Yes
Uses Lagging Filters ❌ No moving average or smoothing
Trend Duration Measurement ✅ Counts valid consecutive moves
Complexity ⚪ Very simple and transparent
It’s a simple concept and easy to understand, but still useful when combined with other tools or visualized on its own.
⚙️ Technical Notes
Works on any timeframe or instrument
The value is positive during bullish persistence, negative during bearish
Value resets to 0 when trend structure breaks
All logic is calculated bar-by-bar, in real time
✅ Example Usage Ideas
Highlight candles when TPC value crosses a certain threshold (e.g., strong breakout continuation)
Use the zero-cross as a potential reversal warning
Filter trend signals in your existing strategies
Breakout Scanner with VWAP + RSI + MACD + Volume SpikePRICE & MOVING AVERAGES
🟠 MA(10), MA(50), MA(200)
Purpose: Track price trends over different time horizons
MA10 – Very short-term trend (micro pullbacks)
MA50 – Intermediate trend (support/resistance)
MA200 – Long-term sentiment (bullish or bearish overall)
Use: Crossovers indicate trend reversals. E.g., MA10 < MA50 = bearish.
📉 EMA(9), EMA(12), EMA(34)
EMA = Exponential Moving Average
Reacts faster than MA, used for quick entries/exits
Common Strategy: EMA 9 crossing below EMA 34 → short signal
You’re currently in a downtrend, as all EMAs slope down and price is below them.
🔵 VWAP (Volume Weighted Average Price)
Purpose: Institutional benchmark
Traders use VWAP as a mean reversion level.
If price is below VWAP → bearish control; above → bullish control.
In your chart: QQQ is below VWAP, suggesting institutional selling.
📊 BOLL(20) = Bollinger Bands
Tracks volatility using 20-period MA ± 2 std. dev.
Bands widen when volatility increases.
In your chart: Price is riding the lower band → bearish pressure
🔁 RSI(14) = Relative Strength Index
Measures momentum
Ranges from 0 to 100
Above 70 = Overbought
Below 30 = Oversold
Current RSI is around 30–40, suggesting weak momentum, near oversold
📉 MACD (12, 26, 9)
MACD Line (blue) = 12EMA - 26EMA
Signal Line (red) = 9 EMA of MACD line
Histogram = MACD – Signal
When MACD crosses below Signal line → bearish
Your chart: Histogram is red and increasing → bearish strength increasing
✅ SUMMARY FOR QQQ CHART (LIVE INTERPRETATION)
Indicator Reading Signal
MA/EMA All sloping down ❌ Bearish
VWAP Price below VWAP ❌ Bearish
Bollinger Price hugging lower band ❌ Bearish
RSI(14) ~30-40 ⚠️ Weak
MACD Red histogram growing ❌ Bearish
Would you like me to generate a script-based trade signal system combining EMA + RSI + MACD for QQQ intraday calls/puts?
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“FVG OB” (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1–10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1–100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its “basePoint” (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the “Box Close Color” (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If “Enable FVG OB Midlines” is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingView’s Pine Editor (ensure the library import is included).
- Click “Add to Chart.”
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., “4시간” maps to a 4H timeframe).
- Toggle “Enable FVG OB Boxes” and “Enable FVG OB Midlines.”
- Select colors for bullish and bearish boxes and set transparency.
- Adjust “FVG OB Close Count” to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the “Box Close Color,” signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!
Schmit Trading LiquidityDescription
Schmit Trading Liquidity Marker automatically spots and labels open liquidity sweep levels by detecting classic stop-run patterns (Bull→Bear for highs, Bear→Bull for lows) across multiple timeframes. Lines are drawn exactly at the wick of the triggering candle and removed as soon as price “sweeps” through them, keeping your chart clean and focused on live levels only.
How It Works
1. Pattern Detection
• Liquidity High: When a bullish candle is immediately followed by a bearish candle (Bull→Bear), the script records the higher of the two wicks.
• Liquidity Low: When a bearish candle is immediately followed by a bullish candle (Bear→Bull), the script records the lower of the two wicks.
2. Multi-Timeframe Support
• Choose up to six timeframes (5 min, 15 min, 30 min, 1 h, 4 h, daily) via checkboxes.
• Each timeframe is evaluated independently, and liquidity levels are drawn on your current chart.
3. Precision Wick Placement
• Lines start at bar_index – 1 so they align exactly with the wick of the signal candle, regardless of your chart’s timeframe.
4. Automatic Cleanup
• As soon as price closes beyond a drawn line (sweep), that line is deleted automatically.
Inputs
Input Name Description
Show 5 min. Enable liquidity detection on the 5-minute timeframe.
Show 15 min. Enable liquidity detection on the 15-minute timeframe.
Show 30 min. Enable liquidity detection on the 30-minute timeframe.
Show 1 h. Enable liquidity detection on the 1-hour timeframe.
Show 4 h. Enable liquidity detection on the 4-hour timeframe.
Show 1 D. Enable liquidity detection on the daily timeframe.
High Line Color. Color of Bull→Bear (liquidity high) lines (default: red).
Low Line Color. Color of Bear→Bull (liquidity low) lines (default: blue).
Line Length. How many bars each liquidity line extends to the right.
Usage Tips
• Focus on Live Zones: Combine with volume or order-flow tools to confirm genuine
liquidity sweeps.
• Multiple TFs: Enable higher timeframes for major liquidity clusters; lower timeframes
for fine‐tuning entries.
• Chart Cleanliness: Lines self‐delete on sweep, ensuring no manual cleanup is needed.
⸻
Disclosure & License
This indicator is Open-Source under the Mozilla Public License 2.0. Feel free to review, adapt, and improve the code. No performance guarantees—use responsibly and backtest any strategy before trading live.