Advanced Volatility-Adjusted Momentum IndexAdvanced Volatility-Adjusted Momentum Index (AVAMI)
The AVAMI is a powerful and versatile trading index which enhances the traditional momentum readings by introducing a volatility adjustment. This results in a more nuanced interpretation of market momentum, considering not only the rate of price changes but also the inherent volatility of the asset.
Settings and Parameters:
Momentum Length: This parameter sets the number of periods used to calculate the momentum, which is essentially the rate of change of the asset's price. A shorter length value means the momentum calculation will be more sensitive to recent price changes. Conversely, a longer length will yield a smoother and more stabilized momentum value, thereby reducing the impact of short-term price fluctuations.
Volatility Length: This parameter is responsible for determining the number of periods to be considered in the calculation of standard deviation of returns, which acts as the volatility measure. A shorter length will result in a more reactive volatility measure, while a longer length will produce a more stable, but less sensitive measure of volatility.
Smoothing Length: This parameter sets the number of periods used to apply a moving average smoothing to the AVAMI and its signal line. The purpose of this is to minimize the impact of volatile periods and to make the indicator's lines smoother and easier to interpret.
Lookback Period for Scaling: This is the number of periods used when rescaling the AVAMI values. The rescaling process is necessary to ensure that the AVAMI values remain within a consistent and interpretable range over time.
Overbought and Oversold Levels: These levels are thresholds at which the asset is considered overbought (potentially overvalued) or oversold (potentially undervalued), respectively. For instance, if the AVAMI exceeds the overbought level, traders may consider it as a possible selling opportunity, anticipating a price correction. Conversely, if the AVAMI falls below the oversold level, it could be seen as a buying opportunity, with the expectation of a price bounce.
Mid Level: This level represents the middle ground between the overbought and oversold levels. Crossing the mid-level line from below can be perceived as an increasing bullish momentum, and vice versa.
Show Divergences and Hidden Divergences: These checkboxes give traders the option to display regular and hidden divergences between the AVAMI and the asset's price. Divergences are crucial market structures that often signal potential price reversals.
Index Logic:
The AVAMI index begins with the calculation of a simple rate of change momentum indicator. This raw momentum is then adjusted by the standard deviation of log returns, which acts as a measure of market volatility. This adjustment process ensures that the resulting momentum index encapsulates not only the speed of price changes but also the market's volatility context.
The raw AVAMI is then smoothed using a moving average, and a signal line is generated as an exponential moving average (EMA) of this smoothed AVAMI. This signal line serves as a trigger for potential trading signals when crossed by the AVAMI.
The script also includes an algorithm to identify 'fractals', which are distinct price patterns that often act as potential market reversal points. These fractals are utilized to spot both regular and hidden divergences between the asset's price and the AVAMI.
Application and Strategy Concepts:
The AVAMI is a versatile tool that can be integrated into various trading strategies. Traders can utilize the overbought and oversold levels to identify potential reversal points. The AVAMI crossing the mid-level line can signify a change in market momentum. Additionally, the identification of regular and hidden divergences can serve as potential trading signals:
Regular Divergence: This happens when the asset's price records a new high/low, but the AVAMI fails to follow suit, suggesting a possible trend reversal. For instance, if the asset's price forms a higher high but the AVAMI forms a lower high, it's a regular bearish divergence, indicating potential price downturn.
Hidden Divergence: This is observed when the price forms a lower high/higher low, but the AVAMI forms a higher high/lower low, suggesting the continuation of the prevailing trend. For example, if the price forms a lower low during a downtrend, but the AVAMI forms a higher low, it's a hidden bullish divergence, signaling the potential continuation of the downtrend.
As with any trading tool, the AVAMI should not be used in isolation but in conjunction with other technical analysis tools and within the context of a well-defined trading plan.
Cari dalam skrip untuk "market structure"
ICT HTF Liquidity Levels /w Alert [MsF]Japanese below / ๆฅๆฌ่ช่ชฌๆใฏ่ฑๆใฎๅพใซใใใพใใ
-------------------------
*This indicator is based on sbtnc's "HTF Liquidity Levels". It's a very cool indicator. thank you.
It has 3 functions: visualization of HTF liquidity (with alert), candle color change when displacement occurs, and MSB (market structure break) line display.
=== Function description ===
1. HTF liquidity (with alert)
Lines visualize the liquidity pools on the HTF bars. Alerts can be set for each TF's line.
Once the price reaches the line, the line is repaint.
To put it plainly, the old line disappears and a new line appears. The line that disappeared remains as a purged line. (It is also possible to hide the purged line with a parameter)
The alert will be triggered at the moment the line disappears. An alert will be issued when you touch the HTF's liquid pools where the loss is accumulated, so you can notice the stop hunting with the alert.
This alert is an original feature of this indicator.
The timeframe of the HTF can't modify. You can get Monthly, weekly, daily and H1 and H4.
Each timeframe displays the 3 most recent lines. By narrowing it down to 3, it is devised to make it easier to see visually. (This indicator original)
2. Displacement
Change the color display of the candlesticks when a bullish candle stick or bearish candle stick is attached. Furthermore, by enabling the "Require FVG" option, you can easily discover the FVG (Fair Value Gap). It is a very useful function for ICT trading.
3. MSB (market structure break)
Displays High/Low lines for the period specified by the parameter. It is useful for discovering BoS & CHoCH/MSS, which are important in ICT trading.
=== Parameter description ===
- HTF LIQUIDITY
- Daily โฆ Daily line display settings (color, line width)
- Weekly โฆ Weekly line display settings (color, line width)
- Monthly โฆ Monthly line display settings (color, line width)
- INTRADAY LIQUIDITY
- 1H โฆ 1H line display settings (color, line width)
- 4H โฆ 4H line display settings (color, line width)
- PURGED LIQUIDITY โฆ Display setting of the line once the candle reaches
- Show Purge Daily โฆ Daily purged line display/non-display setting
- Show Purge Weekly โฆ Weekly purged line display/non-display setting
- Show Purge Monthly โฆ Monthly purged line display/non-display setting
- Show Purge 1H โฆ 1H purged line display/non-display setting
- Show Purge 4H โฆ 4H purged line display/non-display setting
- MARKET STRUCTURE BREAK - MBS
- Loopback โฆ Period for searching High/Low
- DISPLACEMENT FOR FVG
- Require FVG โฆ Draw only when FVG occurs
- Displacement Type โฆ Displacement from open to close? or from high to low?
- Displacement Length โฆ Period over which to calculate the standard deviation
- Displacement Strength โฆ The larger the number, the stronger the displacement detected
-------------------------
ใใฎใคใณใธใฑใผใฟใฏsbtncใใใฎ"HTF Liquidity Levels"ใใใผในใซไฝๆใใฆใใพใใ
ไธไฝ่ถณๆตๅๆงใฎๅฏ่ฆๅ๏ผใขใฉใผใไปใ๏ผใๅคไฝ็บ็ๆใฎใญใผใฝใฏ่ฒๅคๆดใMSB(market structure break)ใฉใคใณ่กจ็คบใฎ๏ผใคใฎๆฉ่ฝใๆใใพใใ
๏ผๆฉ่ฝ่ชฌๆ๏ผ
โ ไธไฝ่ถณๆตๅๆงใฎๅฏ่ฆๅ
ไธไฝ่ถณใฎๆตๅๆงใฎๅนใๆบใพใ๏ผในใใใใๆบใพใฃใฆใใใจใใ๏ผใใฉใคใณใงๅฏ่ฆๅใใพใใใฉใคใณใซใฏใขใฉใผใใ่จญๅฎใใใใจใๅฏ่ฝใงใใ
ไธๅบฆไพกๆ ผใใฉใคใณใซๅฐ้ใใใจใใฎใฉใคใณใฏๅๆ็ปใใใพใใ
ๅนณใใ่จใใจใไปใพใงใฎใฉใคใณใๆถใใฆๆฐใใใฉใคใณใๅบ็พใใใใจใใไบใงใใ
ๆถใใใฉใคใณใฏpurgeใฉใคใณใจใใฆๆฎใใพใใ๏ผใใฉใกใผใฟใงpurgeใฉใคใณใ้่กจ็คบใซใใใใจใๅฏ่ฝใงใ๏ผ
ใขใฉใผใใฏใฉใคใณใๆถใใ็ฌ้ใซ็บๅ ฑใใพใใไธไฝ่ถณใฎๆๅใๆบใพใฃใฆใใจใใใซใฟใใใใใจใขใฉใผใใ็บๅ ฑใใใฎใงใใขใฉใผใใซใฆในใใใ็ฉใใซๆฐใฅใใใจใใงใใพใใ
ใใฎใขใฉใผใ็บๅ ฑใซใคใใฆใฏๆฌใคใณใธใฑใผใฟใชใชใธใใซใฎๆฉ่ฝใจใชใใพใใ
่กจ็คบๅฏ่ฝใชไธไฝ่ถณใฎใฟใคใ ใใฌใผใ ใฏๅบๅฎใงใใๆ่ถณใ้ฑ่ถณใๆฅ่ถณใใใณH1ใจH4ใ่กจ็คบใใใใจใใงใใพใใ
ๅใฟใคใ ใใฌใผใ ใ็ด่ฟใใ3ใคใฎใฉใคใณใ่กจ็คบใใพใใ3ใคใซ็ตใใใจใง่ฆ่ฆ็ใซ่ฆใใใๅทฅๅคซใใฆใใพใใ๏ผๆฌใคใณใธใฑใผใฟใชใชใธใใซ๏ผ
โ ๅคไฝ็บ็ๆใฎใญใผใฝใฏ่ฒๅคๆด
ๅคงใใช้ฝ็ทใ้ฐ็ทใไปใใๅ ดๅใซใใใฎใญใผใฝใฏ่ถณใใซใฉใผ่กจ็คบใๅคๆดใใพใใ
ใใใซ"Require FVG"ใชใใทใงใณใๆๅนใซใใใใจใงใFVG๏ผFair Value Gap๏ผใๅฎนๆใซ็บ่ฆใใใใจใใงใใพใใICTใใฌใผใใซใ่กใใซใใใๅคงๅคๆ็จใชๆฉ่ฝใจใชใฃใฆใใพใใ
โ MSB(market structure break)ใฉใคใณ่กจ็คบ
ใใฉใกใผใฟใงๆๅฎใใๆ้ใฎHigh/Lowใใฉใคใณ่กจ็คบใใพใใICTใใฌใผใใง้่ฆ่ฆใใฆใใBoS & CHoCH/MSSใฎ็บ่ฆใซๅฝน็ซใกใพใใ
๏ผใใฉใกใผใฟ่ชฌๆ๏ผ
- HTF LIQUIDITY
- Daily โฆ ๆฅ่ถณใฉใคใณ่กจ็คบ่จญๅฎ๏ผ่ฒใ็ทๅน
๏ผ
- Weekly โฆ ้ฑ่ถณใฉใคใณ่กจ็คบ่จญๅฎ๏ผ่ฒใ็ทๅน
๏ผ
- Monthly โฆ ๆ่ถณใฉใคใณ่กจ็คบ่จญๅฎ๏ผ่ฒใ็ทๅน
๏ผ
- INTRADAY LIQUIDITY
- 1H โฆ 1ๆ้่ถณใฉใคใณ่กจ็คบ่จญๅฎ๏ผ่ฒใ็ทๅน
๏ผ
- 4H โฆ 4ๆ้่ถณใฉใคใณ่กจ็คบ่จญๅฎ๏ผ่ฒใ็ทๅน
๏ผ
- PURGED LIQUIDITY โฆ ไธๅบฆๅฐ้ใใใฉใคใณใฎ่กจ็คบ่จญๅฎ
- Show Purge Daily โฆ ๆฅ่ถณใฉใคใณ่กจ็คบ๏ผ้่กจ็คบ่จญๅฎ
- Show Purge Weekly โฆ ้ฑ่ถณใฉใคใณ่กจ็คบ๏ผ้่กจ็คบ่จญๅฎ
- Show Purge Monthly โฆ ๆ่ถณใฉใคใณ่กจ็คบ๏ผ้่กจ็คบ่จญๅฎ
- Show Purge 1H โฆ 1ๆ้่ถณใฉใคใณ่กจ็คบ๏ผ้่กจ็คบ่จญๅฎ
- Show Purge 4H โฆ 4ๆ้่ถณใฉใคใณ่กจ็คบ๏ผ้่กจ็คบ่จญๅฎ
- MARKET STRUCTURE BREAK - MBS
- Loopback โฆ High/Lowใๆข็ดขใใๆ้
- DISPLACEMENT FOR FVG
- Require FVG โฆ FVG็บ็ๆใฎใฟๆ็ปใใ
- Displacement Type โฆ openใใcloseใพใงใฎๅคไฝใ๏ผhighใใlowใพใงใฎๅคไฝใ๏ผ
- Displacement Length โฆ ๆจๆบๅๅทฎใ่จ็ฎใใๆ้
- Displacement Strength โฆ ๅคไฝใฎๅผทใ๏ผๆฐๅญใๅคงใใใปใฉๅผทใๅคไฝใๆคๅบ๏ผ
TM_INTRADAY_LEVELTM_INTRADAY_LEVEL tool shows overall market price structure of market for Intraday Position. It can be used with TM_GANN_LEVELS tool
Terminology Use ==> Price Line, Price Level name and Price level
Timeframe ==> Use proper Signal with swing trend on 15 Min. or lower time frame (Best if Use with 15 Minutes chart or 5 Min. chart).
What to Identify ==> Overall market price structure for the Intraday Period
How to Use ==>
There are Many Line in price level chart
Green/red with Solid for important area of support or resistance
Other dotted lines are for retracement or extension of prices.
Important Structure==> Price behaviors on all lines of possible support and resistance
Use market structure, chart pattern, trend lines for more support..
Entry ==>
Letโs wait the proper area of support or resistance (Area of Value in case of trend pattern use)
Exit ==>
SL of swing high/low out of market structure with proper risk management and target with proper Risk/ Reward Ratio
Use the Below Contacts to Access this Indicator
ICT โ Sweep + FVG + Displacement The ICT (Inner Circle Trader) strategy is a sophisticated trading philosophy rooted in institutional market behavior. It revolves around understanding how large players manipulate price to trigger retail stop-losses, create liquidity, and execute their orders. At its core, ICT focuses on market structure, identifying Higher Highs, Lower Lows, and shifts that signal potential reversals. Key concepts include Order Blocksโzones where institutions placed significant ordersโand Fair Value Gaps (FVG), untraded areas that price tends to return to. The Liquidity Grab is a crucial phase: price sweeps through key levels to trap retail traders before reversing. Traders use higher timeframes (H4/H1) for structure analysis and lower ones (M15/M5) for precise entries. Entries occur after a Market Structure Shift, confirmed by FVG fill or OB retest, with strict risk management. A minimum 3:1 risk-reward ratio ensures long-term profitability. The strategy demands deep market awareness, patience, and discipline. Itโs not about indicators, but about reading the "invisible hand" of the marketโwhere supply and demand meet, and where smart money moves. For advanced traders, ICT offers a window into the true mechanics of price action, transforming trading from speculation into strategic insight. Itโs not just a methodโitโs a mindset.
SMC - Institutional Confidence Oscillator [PhenLabs]๐ Institutional Confidence Oscillator
Version: PineScriptโขv6
๐ Description
The Institutional Confidence Oscillator (ICO) revolutionizes market analysis by automatically detecting and evaluating institutional activity at key support and resistance levels using our own in-house detection system. This sophisticated indicator combines volume analysis, volatility measurements, and mathematical confidence algorithms to provide real-time readings of institutional sentiment and zone strength.
Using our advanced thin liquidity detection, the ICO identifies high-volume, narrow-range bars that signal institutional zone formation, then tracks how these zones perform under market pressure. The result is a dual-wave confidence oscillator that shows traders when institutions are actively defending price levels versus when theyโre abandoning positions.
The indicator transforms complex institutional behavior patterns into clear, actionable confidence percentiles, helping traders align with smart money movements and avoid common retail trading pitfalls.
๐ Points of Innovation
Automated thin liquidity zone detection using volume threshold multipliers and zone size filtering
Dual-sided confidence tracking for both support and resistance levels simultaneously
Sigmoid function processing for enhanced mathematical accuracy in confidence calculations
Real-time institutional defense pattern analysis through complete test cycles
Advanced visual smoothing options with multiple algorithmic methods (EMA, SMA, WMA, ALMA)
Integrated momentum indicators and gradient visualization for enhanced signal clarity
๐ง Core Components
Volume Threshold System: Analyzes volume ratios against baseline averages to identify institutional activity spikes
Zone Detection Algorithm: Automatically identifies thin liquidity zones based on customizable volume and size parameters
Confidence Lifecycle Engine: Tracks institutional defense patterns through complete observation windows
Mathematical Processing Core: Uses sigmoid functions to convert raw market data into normalized confidence percentiles
Visual Enhancement Suite: Provides multiple smoothing methods and customizable display options for optimal chart interpretation
๐ฅ Key Features
Auto-Detection Technology: Automatically scans for institutional zones without manual intervention, saving analysis time
Dual Confidence Tracking: Simultaneously monitors both support and resistance institutional activity for comprehensive market view
Smart Zone Validation: Evaluates zone strength through volume analysis, adverse excursion measurement, and defense success rates
Customizable Parameters: Extensive input options for volume thresholds, observation windows, and visual preferences
Real-Time Updates: Continuously processes market data to provide current institutional confidence readings
Enhanced Visualization: Features gradient fills, momentum indicators, and information panels for clear signal interpretation
๐จ Visualization
Dual Oscillator Lines: Support confidence (cyan) and resistance confidence (red) plotted as percentage values 0-100%
Gradient Fill Areas: Color-coded regions showing confidence dominance and strength levels
Reference Grid Lines: Horizontal markers at 25%, 50%, and 75% levels for easy interpretation
Information Panel: Real-time display of current confidence percentiles with color-coded dominance indicators
Momentum Indicators: Rate of change visualization for confidence trends
Background Highlights: Extreme confidence level alerts when readings exceed 80%
๐ Usage Guidelines
Auto-Detection Settings
Use Auto-Detection
Default: true
Description: Enables automatic thin liquidity zone identification based on volume and size criteria
Volume Threshold Multiplier
Default: 6.0, Range: 1.0+
Description: Controls sensitivity of volume spike detection for zone identification, higher values require more significant volume increases
Volume MA Length
Default: 15, Range: 1+
Description: Period for volume moving average baseline calculation, affects volume spike sensitivity
Max Zone Height %
Default: 0.5%, Range: 0.05%+
Description: Filters out wide price bars, keeping only thin liquidity zones as percentage of current price
Confidence Logic Settings
Test Observation Window
Default: 20 bars, Range: 2+
Description: Number of bars to monitor zone tests for confidence calculation, longer windows provide more stable readings
Clean Break Threshold
Default: 1.5 ATR, Range: 0.1+
Description: ATR multiple required for zone invalidation, higher values make zones more persistent
Visual Settings
Smoothing Method
Default: EMA, Options: SMA/EMA/WMA/ALMA
Description: Algorithm for signal smoothing, EMA responds faster while SMA provides more stability
Smoothing Length
Default: 5, Range: 1-50
Description: Period for smoothing calculation, higher values create smoother lines with more lag
โ
Best Use Cases
Trending market analysis where institutional zones provide reliable support/resistance levels
Breakout confirmation by validating zone strength before position entry
Divergence analysis when confidence shifts between support and resistance levels
Risk management through identification of high-confidence institutional backing
Market structure analysis for understanding institutional sentiment changes
โ ๏ธ Limitations
Performs best in liquid markets with clear institutional participation
May produce false signals during low-volume or holiday trading periods
Requires sufficient price history for accurate confidence calculations
Confidence readings can fluctuate rapidly during high-impact news events
Manual fallback zones may not reflect actual institutional activity
๐ก What Makes This Unique
Automated Detection: First Pine Script indicator to automatically identify thin liquidity zones using sophisticated volume analysis
Dual-Sided Analysis: Simultaneously tracks institutional confidence for both support and resistance levels
Mathematical Precision: Uses sigmoid functions for enhanced accuracy in confidence percentage calculations
Real-Time Processing: Continuously evaluates institutional defense patterns as market conditions change
Visual Innovation: Advanced smoothing options and gradient visualization for superior chart clarity
๐ฌ How It Works
1. Zone Identification Process:
Scans for high-volume bars that exceed the volume threshold multiplier
Filters bars by maximum zone height percentage to identify thin liquidity conditions
Stores qualified zones with proximity threshold filtering for relevance
2. Confidence Calculation Process:
Monitors price interaction with identified zones during observation windows
Measures volume ratios and adverse excursions during zone tests
Applies sigmoid function processing to normalize raw data into confidence percentiles
3. Real-Time Analysis Process:
Continuously updates confidence readings as new market data becomes available
Tracks institutional defense success rates and zone validation patterns
Provides visual and numerical feedback through the oscillator display
๐ก Note:
The ICO works best when combined with traditional technical analysis and proper risk management. Higher confidence readings indicate stronger institutional backing but should be confirmed with price action and volume analysis. Consider using multiple timeframes for comprehensive market structure understanding.
ICT GMMA VegasHigh-Level Summary
This indicator blends:
ICT concepts (Market Structure Shift, Break of Structure, Order Blocks, Liquidity Pools, Fair Value Gaps, Killzones, etc.).
GMMA (Guppy Multiple Moving Averages) to visualize short, medium, and long trend strength.
Vegas Tunnels (EMA channels 144/169 and 576/676, plus optional 288/388 mid-tunnels).
Vegas Touch entry module with candlestick patterns (Pin Bar 40%, Engulfing 60%).
Extra slope EMAs (EMA60 & EMA200 with color change by slope).
It not only shows the structure (OB, Liquidity, FVGs) but also plots entry arrows and alerts when Vegas Touch + GMMA align.
โ๏ธ Script Components
1. GMMA Visualization
Short-term EMAs (3โ15, green).
Medium-term EMAs (30โ60, red).
Long-term EMAs (100โ250, blue).
Used to measure crowd sentiment: short EMAs = traders, long EMAs = investors.
The script counts how many EMAs the close is above/below:
If close above โฅ17 โ possible buy trend.
If close below โฅ17 โ possible sell trend.
Plots arrows for buy/sell flips.
2. Vegas Tunnels
Short-term tunnel โ EMA144 & EMA169.
Long-term tunnel โ EMA576 & EMA676.
Mid-tunnels โ EMA288 & EMA388.
Plotted as orange/fuchsia/magenta bands.
Conditions:
Breakout checks โ if close crosses above/below these EMAs compared to prior bar.
3. ICT Toolkit
Market Structure Shift (MSS) & BOS (Break of Structure): labels & dotted lines when price shifts trend.
Liquidity zones (Buy/Sell): boxes drawn around swing highs/lows with clustering.
Fair Value Gaps (FVG/IFVG): automatic box drawing, showing break status.
Order Blocks (OB): bullish/bearish blocks, breaker OB recognition.
Killzones: highlights NY open, London open/close, Asia session with background shading.
Displacement: plots arrows on large impulse candles.
NWOG/NDOG: Weekly/Monday Open Gaps.
Basically, this section gives a full ICT price action map on the chart.
4. Vegas Touch Entry Module (Pin40/Eng60 + EMA12 switch)
This is the custom entry system you added:
Logic:
If EMA12 > EMA169, use Tunnel (144/169) as reference.
If EMA12 โค EMA169, use Base (576/676).
Hard lock: no longs if EMA12 < EMA676; no shorts if EMA12 > EMA676.
Touch condition:
Long โ price touches lower band (Tunnel/Base).
Short โ price touches upper band (Tunnel/Base).
With ATR/Percent tolerance.
Trend filter:
Must also align with long-term Vegas direction (144/169 vs 576/676 cross).
Close must be on the outer side of the band.
Candlestick filter:
Pin Bar (โฅ40% wick) or
Engulfing (โฅ60% bigger body than previous).
Cooldown: avoids multiple signals in short succession.
Plots:
Green triangle below = Long entry.
Red triangle above = Short entry.
Alerts: triggers once per bar close with full message.
5. Slope EMAs (Extra)
EMA60 and EMA200 plotted as thick lines.
Color:
Green if sloping upward (current > value 2 bars ago).
Red if sloping downward.
๐ก Outputs & Alerts
Arrows for GMMA trend flips.
Arrows for Vegas Touch entries.
Labels for MSS, BOS, FVGs, OBs.
Liquidity/FVG/OB boxes.
Background shading for killzones.
Alerts:
โ๐ก Entry Alert (Long/Short)โ for GMMA.
โVT LONG/SHORTโ for Vegas Touch.
๐ Key Idea
This is not just one system, but a multi-layered confluence tool:
ICT structure & liquidity context.
GMMA trend recognition.
Vegas Tunnel directional bias.
Candlestick-based confirmation (Pin/Engulf).
Alert automation for live trading.
๐ Itโs essentially a traderโs dashboard: structural map + moving averages + entry signals all in one.
Sunmool's Next Day Model FVG AlertNY Killzone FVG Alert - ICT Fair Value Gap Detection Indicator
This comprehensive Pine Script indicator is specifically designed for traders following ICT (Inner Circle Trader) methodology and Smart Money Concepts. The indicator automatically detects Fair Value Gaps (FVG) that occur during the New York Killzone session, providing real-time alerts when these critical market imbalances are identified.
Key Features:
๐ฏ Fair Value Gap Detection
Automatically identifies bullish and bearish Fair Value Gaps using the classic 3-candle pattern
Filters gaps based on customizable minimum size thresholds to avoid insignificant imbalances
Provides visual representation through colored boxes and labels for easy identification
โฐ New York Killzone Focus
Specifically monitors the NY Killzone session (default: 7:00 AM - 10:00 AM EST)
Fully customizable session times to accommodate different trading preferences
Only detects FVGs when all three candles forming the gap occur within the killzone timeframe
๐
ICT Next Day Model Compliance
Automatically excludes Mondays from FVG detection as per ICT Next Day Model principles
Optional Monday exclusion can be toggled on/off based on trading strategy
Ensures alignment with professional ICT trading methodologies
๐ Advanced Alert System
Three distinct alert conditions: Bullish FVG, Bearish FVG, and Combined alerts
Customizable alert messages for different notification preferences
Compatible with TradingView's full alert system including email, SMS, and webhook notifications
๐จ Visual Customization
Adjustable colors for bullish and bearish FVG boxes
Configurable box extension length for better visualization
Optional background highlighting during killzone sessions
Clean, professional chart presentation that doesn't clutter your analysis
๐ Technical Specifications
Works on all timeframes, though most effective on intraday charts (1m, 5m, 15m)
Timezone-aware calculations ensure accurate session detection globally
Efficient code structure minimizes processing load and chart lag
Compatible with other indicators and doesn't interfere with existing chart setups
๐ฏ Ideal For:
ICT methodology traders seeking automated FVG detection
Smart Money Concepts practitioners
Scalpers and day traders focusing on NY session
Traders looking to identify high-probability entry zones
Anyone interested in market structure and liquidity concepts
๐ Trading Applications:
Fair Value Gaps often serve as areas where price may return to "fill" the imbalance, making them excellent zones for:
Potential reversal areas
Take profit targets
Stop loss placement reference points
Market structure analysis
Confluence with other ICT concepts
โ๏ธ Customizable Parameters:
FVG minimum size filter
Killzone session start/end times
Visual display options
Alert preferences
Color schemes and styling options
This indicator brings institutional trading concepts to retail traders, helping identify the same market inefficiencies that smart money targets. By focusing specifically on the New York Killzone - one of the most liquid and volatile trading sessions - it provides high-quality signals during optimal market conditions.
Whether you're new to ICT concepts or an experienced trader looking to automate your FVG detection, this indicator provides the precision and reliability needed for professional trading analysis.
DTC FX+DTC FX+
All in One Indicator for Forex Markets
A comprehensive FX session indicator designed to help traders identify and analyze different trading sessions throughout the day.
This indicator provides real-time detection of major FX trading sessions including New York, London, and Tokyo sessions. It displays session ranges, highs and lows, and includes volume analysis to help identify periods of increased market activity.
Key features include:
โข Real-time FX Session Detection (NY, London, Tokyo)
โข Live Daily Candle Overlay with OHLC tracking
โข Volume Bars for Strong Volume Detection
โข Session Trend Detection
โข Dynamic Session Status Tables
โข Daily Dividers and Session Box Visualization
โข Custom Trading Rules Display
โข Watermark System
โข Moving Averages (EMA, WMA, SMA)
โข Fair Value Gaps (FVG) Detection
โข Support & Resistance Levels (CISD)
โข Gap Violations Analysis
โข Session-specific Volume Analysis
โข Customizable Session Times and Colors
โข Theme-aware Display Options
โข Multiple Watermark Styles
โข Session Range and Extremes Display
โข Professional Session Dashboard
The session dashboard provides a clear overview of current market conditions, while customizable trading rules can be displayed directly on the chart. Session boxes and dividers help visualize different trading periods, making it easier to understand market structure across different time zones.
All session times, colors, and display options are fully customizable to match your trading preferences. The indicator works across multiple timeframes and includes theme-aware display options for both light and dark chart themes.
Whether you're a day trader looking for session-based opportunities or a swing trader analyzing market structure, this indicator provides the tools needed to better understand FX market dynamics across different trading sessions.
ICT Structure Levels (ST/IT/LT) - v7 (by Jonas E)ICT Structure Levels (ST/IT/LT) โ Neighbor-Wick Pivots
This indicator is designed for traders following ICT-style market structure analysis. It identifies Short-Term (ST), Intermediary (IT), and Long-Term (LT) swing highs and lows, but with a stricter filter that reduces false signals.
Unlike standard pivot indicators, this script requires not only that a bar makes a structural high/low, but also that the neighboring barsโ extremes are formed by wicks rather than flat-bodied candles. This wick condition helps confirm that the level is a true liquidity sweep and not just random price action.
How it works (conceptual):
Detects pivots based on user-defined left/right bars.
Validates that extremes on both sides of the pivot are wick-driven (high > body for highs, low < body for lows).
Marks valid STH/STL, ITH/ITL, and LTH/LTL directly on the chart with optional price labels.
Uses ATR offset for better label readability.
Alerts can be enabled to notify when a new structural level is confirmed.
How to use it:
Map market structure across multiple layers (ST/IT/LT).
Identify true liquidity grabs and avoid false highs/lows.
Integrate with Break of Structure (BOS) and Change of Character (CHoCH) strategies.
Combine with other ICT concepts (Order Blocks, Fair Value Gaps, Liquidity Pools).
What makes it unique:
Most pivot indicators mark every high/low indiscriminately. This script filters pivots using wick validation, which significantly reduces noise and focuses only on the levels most relevant to liquidity-based trading strategies.
Changing of the GuardChanging of the Guard (COG) - Advanced Reversal Pattern Indicator
๐ฏ What It Does
The Changing of the Guard (COG) indicator identifies high-probability reversal setups by detecting specific candlestick patterns that occur at key institutional levels. This indicator combines traditional price action analysis with volume-weighted and moving average confluence to filter out noise and focus on the most reliable trading opportunities.
๐ง Key Features
Multi-Timeframe VWAP Analysis
โข Daily VWAP (Gray circles) - Intraday institutional reference
โข Weekly VWAP (Yellow circles) - Short-term institutional bias
โข Monthly VWAP (Orange circles) - Long-term institutional sentiment
Triple EMA System
โข EMA 20 (Blue) - Short-term trend direction
โข EMA 50 (Purple) - Medium-term momentum
โข EMA 200 (Navy) - Long-term market structure
Adaptive COG Pattern Detection
โข 2-Bar Mode: Quick reversal signals for scalping
โข 3-Bar Mode: Balanced approach for swing trading (default)
โข 4-Bar Mode: Conservative signals for position trading
๐ How It Works
The indicator identifies "changing of the guard" moments when:
1. Pattern Formation: 2-4 consecutive bars show exhaustion in one direction
2. Reversal Confirmation: A counter-trend bar appears with strong momentum
3. Confluence Trigger: The reversal bar crosses through a significant VWAP or EMA level
Bullish COG: Green triangle appears below bars when bearish exhaustion meets bullish reversal at key support
Bearish COG: Red triangle appears above bars when bullish exhaustion meets bearish reversal at key resistance
๐ก Trading Applications
Swing Trading: Use 3-bar mode with EMA 50/200 confluence for multi-day holds
Day Trading: Use 2-bar mode with Daily VWAP confluence for intraday reversals
Position Trading: Use 4-bar mode with Monthly VWAP confluence for major trend changes
โ๏ธ Customization Options
โข Toggle VWAP display on/off
โข Toggle EMA display on/off
โข Toggle COG signals on/off
โข Select detection mode (2-bar, 3-bar, 4-bar)
โข Built-in alert system for automated notifications
๐จ Visual Design
Clean, professional interface with:
โข Subtle dotted lines for VWAPs to avoid chart clutter
โข Color-coded EMAs for easy trend identification
โข Clear triangle signals that don't obstruct price action
โข Customizable display options for different trading styles
๐ Best Practices
โข Combine with volume analysis for additional confirmation
โข Use higher timeframe bias to filter trade direction
โข Consider market structure and support/resistance levels
โข Backtest different modes to find optimal settings for your strategy
โ ๏ธ Risk Management
This indicator identifies potential reversal points but should be used with proper risk management. Always consider:
โข Overall market trend and structure
โข Volume confirmation
โข Multiple timeframe analysis
โข Appropriate position sizing
Perfect for traders who want to catch reversals at institutional levels with high-probability setups. The confluence requirement ensures you're trading with the smart money, not against it.
Meta-LR ForecastThis indicator builds a forward-looking projection from the current bar by combining twelve time-compressed โmini forecasts.โ Each forecast is a linear-regression-based outlook whose contribution is adaptively scaled by trend strength (via ADX) and normalized to each timeframeโs own volatility (via that timeframeโs ATR). The result is a 12-segment polyline that starts at the current price and extends one bar at a time into the future (1ร through 12ร the chartโs timeframe). Alongside the plotted path, the script computes two summary measures:
* Per-TF Bias% โ a directional efficiency ร Rยฒ score for each micro-forecast, expressed as a percent.
* Meta Bias% โ the same score, but applied to the final, accumulated 12-step path. It summarizes how coherent and directional the combined projection is.
This tool is an indicator, not a strategy. It does not place orders. Nothing here is trade advice; it is a visual, quantitative framework to help you assess directional bias and trend context across a ladder of timeframe multiples.
The core engine fits a simple least-squares line on a normalized price series for each small forecast horizon and extrapolates one bar forward. That โtrendโ forecast is paired with its mirror, an โanti-trendโ forecast, constructed around the current normalized price. The model then blends between these two wings according to current trend strength as measured by ADX.
ADX is transformed into a weight (w) in using an adaptive band centered on the rolling mean (ฮผ) with width derived from the standard deviation (ฯ) of ADX over a configurable lookback. When ADX is deeply below the lower band, the weight approaches -1, favoring anti-trend behavior. Inside the flat band, the weight is near zero, producing neutral behavior. Clearly above the upper band, the weight approaches +1, favoring a trend-following stance. The transitions between these regions are linear so the regime shift is smooth rather than abrupt.
You can shape how quickly the model commits to either wing using two exponents. One exponent controls how aggressively positive weights lean into the trend forecast; the other controls how aggressively negative weights lean into the anti-trend forecast. Raising these exponents makes the response more gradual; lowering them makes the shift more decisive. An optional switch can force full anti-trend behavior when ADX registers a deep-low condition far below the lower tail, if you prefer a categorical stance in very flat markets.
A key design choice is volatility normalization. Every micro-forecast is computed in ATR units of its own timeframe. The script fetches that timeframeโs ATR inside each security call and converts normalized outputs back to price with that exact ATR. This avoids scaling higher-timeframe effects by the chart ATR or by square-root time approximations. Using โATR-trueโ for each timeframe keeps the cross-timeframe accumulation consistent and dimensionally correct.
Bias% is defined as directional efficiency multiplied by Rยฒ, expressed as a percent. Directional efficiency captures how much net progress occurred relative to the total path length; Rยฒ captures how well the path aligns with a straight line. If price meanders without net progress, efficiency drops; if the variation is well-explained by a line, Rยฒ rises. Multiplying the two penalizes choppy, low-signal paths and rewards sustained, coherent motion.
The forward path is built by converting each per-timeframe Bias% into a small ATR-sized delta, then cumulatively adding those deltas to form a 12-step projection. This produces a polyline anchored at the current close and stepping forward one bar per timeframe multiple. Segment color flips by slope, allowing a quick read of the pathโs direction and inflection.
Inputs you can tune include:
* Max Regression Length. Upper bound for each micro-forecastโs regression window. Larger values smooth the trend estimate at the cost of responsiveness; smaller values react faster but can add noise.
* Price Source. The price series analyzed (for example, close or typical price).
* ADX Length. Period used for the DMI/ADX calculation.
* ATR Length (normalization). Window used for ATR; this is applied per timeframe inside each security call.
* Band Lookback (for ฮผ, ฯ). Lookback used to compute the adaptive ADX band statistics. Larger values stabilize the band; smaller values react more quickly.
* Flat half-width (ฯ). Width of the neutral band on both sides of ฮผ. Wider flats spend more time neutral; narrower flats switch regimes more readily.
* Tail width beyond flat (ฯ). Distance from the flat band edge to the extreme trend/anti-trend zone. Larger tails create a longer ramp; smaller tails reach extremes sooner.
* Polyline Width. Visual thickness of the plotted segments.
* Negative Wing Aggression (anti-trend). Exponent shaping for negative weights; higher values soften the tilt into mean reversion.
* Positive Wing Aggression (trend). Exponent shaping for positive weights; lower values make trend commitment stronger and sooner.
* Force FULL Anti-Trend at Deep-Low ADX. Optional hard switch for extremely low ADX conditions.
On the chart you will see:
* A 12-segment forward polyline starting from the current close to bar\_index + 1 โฆ +12, with green segments for up-steps and red for down-steps.
* A small label at the latest bar showing Meta Bias% when available, or โn/aโ when insufficient data exists.
Interpreting the readouts:
* Trend-following contexts are characterized by ADX above the adaptive upper band, pushing w toward +1. The blended forecast leans toward the regression extrapolation. A strongly positive Meta Bias% in this environment suggests directional alignment across the ladder of timeframes.
* Mean-reversion contexts occur when ADX is well below the lower tail, pushing w toward -1 (or forcing anti-trend if enabled). After a sharp advance, a negative Meta Bias% may indicate the model projects pullback tendencies.
* Neutral contexts occur when ADX sits inside the flat band; w is near zero, the blended forecast remains close to current price, and Meta Bias% tends to hover near zero.
These are analytical cues, not rules. Always corroborate with your broader process, including market structure, time-of-day behavior, liquidity conditions, and risk limits.
Practical usage patterns include:
* Momentum confirmation. Combine a rising Meta Bias% with higher-timeframe structure (such as higher highs and higher lows) to validate continuation setups. Treat the 12th stepโs distance as a coarse sense of potential room rather than as a target.
* Fade filtering. If you prefer fading extremes, require ADX to be near or below the lower ramp before acting on counter-moves, and avoid fades when ADX is decisively above the upper band.
* Position planning. Because per-step deltas are ATR-scaled, the pathโs vertical extent can be mentally mapped to typical noise for the instrument, informing stop distance choices. The script itself does not compute orders or size.
* Multi-timeframe alignment. Each step corresponds to a clean multiple of your chart timeframe, so the polyline visualizes how successively larger windows bias price, all referenced to the current bar.
House-rules and repainting disclosures:
* Indicator, not strategy. The script does not execute, manage, or suggest orders. It displays computed paths and bias scores for analysis only.
* No performance claims. Past behavior of any measure, including Meta Bias%, does not guarantee future results. There are no assurances of profitability.
* Higher-timeframe updates. Values obtained via security for higher-timeframe series can update intrabar until the higher-timeframe bar closes. The forward path and Meta Bias% may change during formation of a higher-timeframe candle. If you need confirmed higher-timeframe inputs, consider reading the prior higher-timeframe value or acting only after the higher-timeframe close.
* Data sufficiency. The model requires enough history to compute ATR, ADX statistics, and regression windows. On very young charts or illiquid symbols, parts of the readout can be unavailable until sufficient data accumulates.
* Volatility regimes. ATR normalization helps compare across timeframes, but unusual volatility regimes can make the path look deceptively flat or exaggerated. Judge the vertical scale relative to your instrumentโs typical ATR.
Tuning tips:
* Stability versus responsiveness. Increase Max Regression Length to steady the micro-forecasts but accept slower response. If you lower it, consider slightly increasing Band Lookback so regime boundaries are not too jumpy.
* Regime bands. Widen the flat half-width to spend more time neutral, which can reduce over-trading tendencies in chop. Shrink the tail width if you want the model to commit to extremes sooner, at the cost of more false swings.
* Wing shaping. If anti-trend behavior feels too abrupt at low ADX, raise the negative wing exponent. If you want trend bias to kick in more decisively at high ADX, lower the positive wing exponent. Small changes have large effects.
* Forced anti-trend. Enable the deep-low option only if you explicitly want a categorical โmarkets are flat, fade movesโ policy. Many users prefer leaving it off to keep regime decisions continuous.
Troubleshooting:
* Nothing plots or the label shows โn/a.โ Ensure the chart has enough history for the ADX band statistics, ATR, and the regression windows. Exotic or illiquid symbols with missing data may starve the higher-timeframe computations. Try a more liquid market or a higher timeframe.
* Path flickers or shifts during the bar. This is expected when any higher-timeframe input is still forming. Wait for the higher-timeframe close for fully confirmed behavior, or modify the code to read prior values from the higher timeframe.
* Polyline looks too flat or too steep. Check the chartโs vertical scale and recent ATR regime. Adjust Max Regression Length, the wing exponents, or the band widths to suit the instrument.
Integration ideas for manual workflows:
* Confluence checklist. Use Meta Bias% as one of several independent checks, alongside structure, session context, and event risk. Act only when multiple cues align.
* Stop and target thinking. Because deltas are ATR-scaled at each timeframe, benchmark your proposed stops and targets against the forward stepsโ magnitude. Stops that are much tighter than the prevailing ATR often sit inside normal noise.
* Session context. Consider session hours and microstructure. The same ADX value can imply different tradeability in different sessions, particularly in index futures and FX.
This indicator deliberately avoids:
* Fixed thresholds for buy or sell decisions. Markets vary and fixed numbers invite overfitting. Decide what constitutes โhigh enoughโ Meta Bias% for your market and timeframe.
* Automatic risk sizing. Proper sizing depends on account parameters, instrument specifications, and personal risk tolerance. Keep that decision in your risk plan, not in a visual bias tool.
* Claims of edge. These measures summarize path geometry and trend context; they do not ensure a tradable edge on their own.
Summary of how to think about the output:
* The script builds a 12-step forward path by stacking linear-regression micro-forecasts across increasing multiples of the chart timeframe.
* Each micro-forecast is blended between trend and anti-trend using an adaptive ADX band with separate aggression controls for positive and negative regimes.
* All computations are done in ATR-true units for each timeframe before reconversion to price, ensuring dimensional consistency when accumulating steps.
* Bias% (per-timeframe and Meta) condenses directional efficiency and trend fidelity into a compact score.
* The output is designed to serve as an analytical overlay that helps assess whether conditions look trend-friendly, fade-friendly, or neutral, while acknowledging higher-timeframe update behavior and avoiding prescriptive trade rules.
Use this tool as one component within a disciplined process that includes independent confirmation, event awareness, and robust risk management.
ICC Trading System# ICC Trading System - Indication, Correction, Continuation
## Overview
The ICC (Indication, Correction, Continuation) Trading System is a comprehensive market structure analysis tool designed to identify high-probability trend continuation setups. This indicator helps traders understand market phases and provides clear entry signals based on institutional trading concepts.
## Key Features
### ๐ฏ **Market Structure Analysis**
- Automatic detection of swing highs and swing lows
- Real-time identification of market trends and reversals
- Dynamic support and resistance zone mapping
- Clear visual representation of market phases
### ๐ **ICC Phase Detection**
- **Indication Phase**: Identifies new higher highs (bullish) or lower lows (bearish)
- **Correction Phase**: Tracks pullbacks and retracements
- **Continuation Phase**: Signals when trends resume after corrections
### ๐ **Entry Signals**
- Precise BUY signals after bullish indications and corrections
- Clear SELL signals after bearish indications and corrections
- Entry points based on price breaking back through key levels
- Eliminates guesswork in trend continuation trades
### ๐จ **Visual Components**
- Swing point markers (triangles) for easy identification
- Color-coded support/resistance zones
- Background highlighting for current market phase
- Information table showing current
Smart Money Breakout Signals [GILDEX]Introducing the Smart Money Breakout Signals, a cutting-edge trading indicator designed to identify key structural shifts and breakout opportunities in the market. This tool leverages a blend of smart money concepts like Break of Structure (BOS) and Change of Character (CHoCH) to provide traders with actionable insights into market direction and potential entry or exit points.
Key Features:
โจ Market Structure Analysis: Automatically detects and labels BOS and CHoCH for trend confirmation and reversals.
๐จ Customizable Visualization: Tailor bullish and bearish colors for breakout lines and signals to suit your preferences.
๐ Dynamic Take-Profit Targets: Displays three tiered take-profit levels based on breakout volatility.
๐ Real-Time Alerts: Stay ahead of the game with notifications for bullish and bearish breakouts.
๐ Performance Dashboard: Monitor signal statistics, including win rates and total signals, directly on your chart.
How to Use:
Add the Indicator: Add the script to your favourites โญ and customize settings like market structure horizon and confirmation type.
XAUUSD Strength Dashboard with VolumeXAUUSD Strength Dashboard with Volume Analysis
๐ Description
This advanced Pine Script indicator provides a multi-timeframe dashboard for XAUUSD (Gold vs. USD), combining price action analysis with volume confirmation to generate high-probability trading signals. It detects:
โ
Break of Structure (BOS)
โ
Fair Value Gaps (FVG)
โ
Change of Character (CHOCH)
โ
Trendline Breaks (9/21 SMA Crossover)
โ
Volume Spikes (Confirmation of Strength)
The dashboard displays strength scores (0-100%) and action recommendations (Strong Buy/Buy/Neutral/Sell/Strong Sell) across multiple timeframes, helping traders identify confluences for better trade decisions.
๐ฏ How It Works
1. Multi-Timeframe Analysis
Fetches data from 1m, 5m, 15m, 30m, 1h, 4h, Daily, and Weekly timeframes.
Compares trend direction, BOS, FVG, CHOCH, and volume spikes across all timeframes.
2. Volume-Confirmed Strength Score
The Strength Score (0-100%) is calculated using:
Trend Direction (25 points) โ 9 SMA vs. 21 SMA
Break of Structure (20 points) โ New highs/lows with momentum
Fair Value Gaps (10 points) โ Imbalance zones
Change of Character (10 points) โ Shift in market structure
Trendline Break (20 points) โ SMA crossover confirmation
Volume Spike (15 points) โ High volume confirms moves
Score Interpretation:
โฅ75% โ Strong Buy (High confidence bullish move)
60-74% โ Buy (Bullish but weaker confirmation)
40-59% โ Neutral (No strong bias)
25-39% โ Sell (Bearish but weaker confirmation)
โค25% โ Strong Sell (High confidence bearish move)
3. Dashboard & Chart Markers
Dashboard Table: Shows Trend, BOS, Volume, CHOCH, TL Break, Strength %, Key Level, and Action for each timeframe.
Chart Markers:
๐ข Green Triangles โ Bullish BOS
๐ด Red Triangles โ Bearish BOS
๐ข Green Circles โ Bullish CHOCH
๐ด Red Circles โ Bearish CHOCH
๐ Green Arrows โ Bullish Trendline Break
๐ Red Arrows โ Bearish Trendline Break
"Volโ" (Lime) โ Bullish Volume Spike
"Volโ" (Maroon) โ Bearish Volume Spike
๐ How to Use
1. Dashboard Interpretation
Higher Timeframes (D/W) โ Show the dominant trend.
Lower Timeframes (1m-4h) โ Help with entry timing.
Strength Score โฅ75% or โค25% โ Look for high-confidence trades.
Volume Spikes โ Confirm breakouts/reversals.
2. Trading Strategy
๐ Long (Buy) Setup:
Higher TFs (D/W/4h) show bullish trend (โ).
Current TF has BOS & Volume Spike.
Strength Score โฅ60%.
Key Level (Low) holds as support.
๐ Short (Sell) Setup:
Higher TFs (D/W/4h) show bearish trend (โ).
Current TF has BOS & Volume Spike.
Strength Score โค40%.
Key Level (High) holds as resistance.
3. Customization
Adjust Volume Spike Multiplier (Default: 1.5x) โ Controls sensitivity to volume spikes.
Toggle Timeframes โ Enable/disable higher/lower timeframes.
๐ Key Benefits
โ Multi-Timeframe Confluence โ Avoids false signals.
โ Volume Confirmation โ Filters low-quality breakouts.
โ Clear Strength Scoring โ Removes emotional bias.
โ Visual Chart Markers โ Easy to spot key signals.
This indicator is ideal for gold traders who follow institutional order flow, market structure, and volume analysis to improve their trading decisions.
๐ฏ Best Used With:
Support/Resistance Levels
Fibonacci Retracements
Price Action Confirmation
๐ Happy Trading! ๐
Gemini Trend Following SystemStrategy Description: The Gemini Trend Following System
Core Philosophy
This is a long-term trend-following system designed for a position trader or a patient swing trader, not a day trader. The fundamental goal is to capture the majority of a stock's major, multi-month or even multi-year uptrend.
The core principle is: "Buy weakness in a confirmed uptrend, and sell only when the uptrend's structure is fundamentally broken."
It operates on the belief that it's more profitable to ride a durable trend than to chase short-term breakouts or worry about daily price fluctuations. It prioritizes staying in a winning trade over frequent trading.
The Three Pillars of the Strategy
The script's logic is built on three distinct pillars, processed in order:
1. The Regime Filter: "Is This Stock in a Healthy Uptrend?"
Before even considering a trade, the script acts as a strict gatekeeper. It will only "watch" a stock if it meets all the criteria of a healthy, long-term uptrend. This is the most important part of the strategy as it filters out weak or speculative stocks.
A stock passes this filter if:
The 50-day Simple Moving Average (SMA) is above the 200-day SMA. This is the classic definition of a "Golden Cross" state, indicating the medium-term trend is stronger than the long-term trendโa hallmark of a bull market for the stock.
The stock's performance over the last year is positive. The Rate of Change (ROC) must be above a minimum threshold (e.g., 15%). This ensures we are only looking at stocks that have already demonstrated significant strength.
The 200-day SMA itself is rising. This is a crucial check to ensure the very foundation of the trend is solid and not flattening out or beginning to decline.
If a stock doesn't meet these conditions, the script ignores it completely.
2. The Entry Trigger: "When to Buy the Dip"
Once a stock is confirmed to be in a healthy uptrend, the script does not buy immediately. Instead, it patiently waits for a point of lower risk and higher potential rewardโa pullback.
The entry trigger is a specific, two-step sequence:
The stock price first dips and closes below its 50-day SMA. This signifies a period of temporary weakness or profit-taking.
The price then recovers and closes back above the 50-day SMA within a short period (10 bars).
This sequence is a powerful signal. It suggests that institutional buyers view the 50-day SMA as a key support level and have stepped in to defend it, overpowering the sellers. The entry occurs at this point of confirmed support, marking the likely resumption of the uptrend. On the chart, this event is highlighted with a teal background.
3. The Exit Strategy: "When is the Trend Over?"
The exit logic is designed to keep you in the trade as long as possible and only sell when the trend's character has fundamentally changed. It uses a dual-exit system:
Primary Exit (Trend Failure): The main reason to sell is a "Death Cross"โwhen the 50-day SMA crosses below the 200-day SMA. This is a robust, albeit lagging, signal that the long-term uptrend is over and a bearish market structure is taking hold. This exit condition is designed to ignore normal market corrections and only trigger when the underlying trend has truly broken. On the chart, this is highlighted with a maroon background.
Safety-Net Exit (Catastrophic Stop-Loss): To protect against a sudden market crash or a company-specific disaster, a "safety-net" stop-loss is placed at the time of entry. This stop is set far below the entry price, typically underneath the 200-day SMA. It is a "just-in-case" measure that should only be triggered in a severe and rapid decline, protecting your capital from an unexpected black swan event.
Who is This Strategy For?
Position Traders: Investors who are comfortable holding a stock for many months to over a year.
Patient Swing Traders: Traders who want to capture large price swings over weeks and months, not days.
Investors using a Rules-Based Approach: Anyone looking to apply a disciplined, non-emotional system to their long-term portfolio.
Ideal Market Conditions
This strategy excels in markets with clear, durable trends. It performs best on strong, leading stocks during a sustained bull market. It will underperform significantly or generate losses in choppy, sideways, or range-bound markets, where the moving averages will frequently cross back and forth, leading to "whipsaw" trades.
Mutanabby_AI | Algo Pro Strategy# Mutanabby_AI | Algo Pro Strategy: Advanced Candlestick Pattern Trading System
## Strategy Overview
The Mutanabby_AI Algo Pro Strategy represents a systematic approach to automated trading based on advanced candlestick pattern recognition and multi-layered technical filtering. This strategy transforms traditional engulfing pattern analysis into a comprehensive trading system with sophisticated risk management and flexible position sizing capabilities.
The strategy operates on a long-only basis, entering positions when bullish engulfing patterns meet specific technical criteria and exiting when bearish engulfing patterns indicate potential trend reversals. The system incorporates multiple confirmation layers to enhance signal reliability while providing comprehensive customization options for different trading approaches and risk management preferences.
## Core Algorithm Architecture
The strategy foundation relies on bullish and bearish engulfing candlestick pattern recognition enhanced through technical analysis filtering mechanisms. Entry signals require simultaneous satisfaction of four distinct criteria: confirmed bullish engulfing pattern formation, candle stability analysis indicating decisive price action, RSI momentum confirmation below specified thresholds, and price decline verification over adjustable lookback periods.
The candle stability index measures the ratio between candlestick body size and total range including wicks, ensuring only well-formed patterns with clear directional conviction generate trading signals. This filtering mechanism eliminates indecisive market conditions where pattern reliability diminishes significantly.
RSI integration provides momentum confirmation by requiring oversold conditions before entry signal generation, ensuring alignment between pattern formation and underlying momentum characteristics. The RSI threshold remains fully adjustable to accommodate different market conditions and volatility environments.
Price decline verification examines whether current prices have decreased over a specified period, confirming that bullish engulfing patterns occur after meaningful downward movement rather than during sideways consolidation phases. This requirement enhances the probability of successful reversal pattern completion.
## Advanced Position Management System
The strategy incorporates dual position sizing methodologies to accommodate different account sizes and risk management approaches. Percentage-based position sizing calculates trade quantities as equity percentages, enabling consistent risk exposure across varying account balances and market conditions. This approach proves particularly valuable for systematic trading approaches and portfolio management applications.
Fixed quantity sizing provides precise control over trade sizes independent of account equity fluctuations, offering predictable position management for specific trading strategies or when implementing precise risk allocation models. The system enables seamless switching between sizing methods through simple configuration adjustments.
Position quantity calculations integrate seamlessly with TradingView's strategy testing framework, ensuring accurate backtesting results and realistic performance evaluation across different market conditions and time periods. The implementation maintains consistency between historical testing and live trading applications.
## Comprehensive Risk Management Framework
The strategy features dual stop loss methodologies addressing different risk management philosophies and market analysis approaches. Entry price-based stop losses calculate stop levels as fixed percentages below entry prices, providing predictable risk exposure and consistent risk-reward ratio maintenance across all trades.
The percentage-based stop loss system enables precise risk control by limiting maximum loss per trade to predetermined levels regardless of market volatility or entry timing. This approach proves essential for systematic trading strategies requiring consistent risk parameters and capital preservation during adverse market conditions.
Lowest low-based stop losses identify recent price support levels by analyzing minimum prices over adjustable lookback periods, placing stops below these technical levels with additional buffer percentages. This methodology aligns stop placement with market structure rather than arbitrary percentage calculations, potentially improving stop loss effectiveness during normal market fluctuations.
The lookback period adjustment enables optimization for different timeframes and market characteristics, with shorter periods providing tighter stops for active trading and longer periods offering broader stops suitable for position trading approaches. Buffer percentage additions ensure stops remain below obvious support levels where other market participants might place similar orders.
## Visual Customization and Interface Design
The strategy provides comprehensive visual customization through eight predefined color schemes designed for different chart backgrounds and personal preferences. Color scheme options include Classic bright green and red combinations, Ocean themes featuring blue and orange contrasts, Sunset combinations using gold and crimson, and Neon schemes providing high visibility through bright color selections.
Professional color schemes such as Forest, Royal, and Fire themes offer sophisticated alternatives suitable for business presentations and professional trading environments. The Custom color scheme enables precise color selection through individual color picker controls, maintaining maximum flexibility for specific visual requirements.
Label styling options accommodate different chart analysis preferences through text bubble, triangle, and arrow display formats. Size adjustments range from tiny through huge settings, ensuring appropriate visual scaling across different screen resolutions and chart configurations. Text color customization maintains readability across various chart themes and background selections.
## Signal Quality Enhancement Features
The strategy incorporates signal filtering mechanisms designed to eliminate repetitive signal generation during choppy market conditions. The disable repeating signals option prevents consecutive identical signals until opposing conditions occur, reducing overtrading during consolidation phases and improving overall signal quality.
Signal confirmation requirements ensure all technical criteria align before trade execution, reducing false signal occurrence while maintaining reasonable trading frequency for active strategies. The multi-layered approach balances signal quality against opportunity frequency through adjustable parameter optimization.
Entry and exit visualization provides clear trade identification through customizable labels positioned at relevant price levels. Stop loss visualization displays active risk levels through colored line plots, ensuring complete transparency regarding current risk management parameters during live trading operations.
## Implementation Guidelines and Optimization
The strategy performs effectively across multiple timeframes with optimal results typically occurring on intermediate timeframes ranging from fifteen minutes through four hours. Higher timeframes provide more reliable pattern formation and reduced false signal occurrence, while lower timeframes increase trading frequency at the expense of some signal reliability.
Parameter optimization should focus on RSI threshold adjustments based on market volatility characteristics and candlestick pattern timeframe analysis. Higher RSI thresholds generate fewer but potentially higher quality signals, while lower thresholds increase signal frequency with corresponding reliability considerations.
Stop loss method selection depends on trading style preferences and market analysis philosophy. Entry price-based stops suit systematic approaches requiring consistent risk parameters, while lowest low-based stops align with technical analysis methodologies emphasizing market structure recognition.
## Performance Considerations and Risk Disclosure
The strategy operates exclusively on long positions, making it unsuitable for bear market conditions or extended downtrend periods. Users should consider market environment analysis and broader trend assessment before implementing the strategy during adverse market conditions.
Candlestick pattern reliability varies significantly across different market conditions, with higher reliability typically occurring during trending markets compared to ranging or volatile conditions. Strategy performance may deteriorate during periods of reduced pattern effectiveness or increased market noise.
Risk management through stop loss implementation remains essential for capital preservation during adverse market movements. The strategy does not guarantee profitable outcomes and requires proper position sizing and risk management to prevent significant capital loss during unfavorable trading periods.
## Technical Specifications
The strategy utilizes standard TradingView Pine Script functions ensuring compatibility across all supported instruments and timeframes. Default configuration employs 14-period RSI calculations, adjustable candle stability thresholds, and customizable price decline verification periods optimized for general market conditions.
Initial capital settings default to $10,000 with percentage-based equity allocation, though users can adjust these parameters based on account size and risk tolerance requirements. The strategy maintains detailed trade logs and performance metrics through TradingView's integrated backtesting framework.
Alert integration enables real-time notification of entry and exit signals, stop loss executions, and other significant trading events. The comprehensive alert system supports automated trading applications and manual trade management approaches through detailed signal information provision.
## Conclusion
The Mutanabby_AI Algo Pro Strategy provides a systematic framework for candlestick pattern trading with comprehensive risk management and position sizing flexibility. The strategy's strength lies in its multi-layered confirmation approach and sophisticated customization options, enabling adaptation to various trading styles and market conditions.
Successful implementation requires understanding of candlestick pattern analysis principles and appropriate parameter optimization for specific market characteristics. The strategy serves traders seeking automated execution of proven technical analysis techniques while maintaining comprehensive control over risk management and position sizing methodologies.
Bitcoin: Pi Cycle Top & Bottom Indicator Z ScoreIndicator Overview
The Pi Cycle Top Indicator has historically been effective in picking out the timing of market cycle highs within 3 days.
It uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2.
Note: The multiple is of the price values of the 350DMA, not the number of days.
For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking.
It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142. In fact, it is the closest we can get to Pi when dividing 350 by another whole number.
It once again demonstrates the cyclical nature of Bitcoin price action over long time frames. However, in this instance, it does so with a high degree of accuracy over Bitcoin's adoption phase of growth.
Bitcoin Price Prediction Using This Tool
The Pi Cycle Top Indicator forecasts the cycle top of Bitcoinโs market cycles. It attempts to predict the point where Bitcoin price will peak before pulling back. It does this on major high time frames and has picked the absolute tops of Bitcoinโs major price moves throughout most of its history.
How It Can Be Used
Pi Cycle Top is useful to indicate when the market is very overheated. So overheated that the shorter-term moving average, which is the 111-day moving average, has reached an x2 multiple of the 350-day moving average. Historically, it has proved advantageous to sell Bitcoin around this time in Bitcoin's price cycles.
It is also worth noting that this indicator has worked during Bitcoin's adoption growth phase, the first 15 years or so of Bitcoin's life. With the launch of Bitcoin ETF's and Bitcoin's increased integration into the global financial system, this indicator may cease to be relevant at some point in this new market structure.
Added the Z-Score metric for easy classification of the value of Bitcoin according to this indicator.
Created for TRW
Cryptokazancev Strategy PackCryptokazancev Strategy Pack
ะะพะผะฟะปะตะบัะฝัะน ะธะฝััััะผะตะฝั ะดะปั ะฐะฝะฐะปะธะทะฐ ััะฝะพัะฝะพะน ััััะบัััั / Comprehensive Market Structure Analysis Tool
๐ท๐บ ะะฟะธัะฐะฝะธะต ะฝะฐ ััััะบะพะผ
Cryptokazancev Strategy Pack by ZeeZeeMon - ััะพ ะผะพัะฝัะน ะฝะฐะฑะพั ะธะฝััััะผะตะฝัะพะฒ ะดะปั ัะตั
ะฝะธัะตัะบะพะณะพ ะฐะฝะฐะปะธะทะฐ, ะฒะบะปััะฐััะธะน:
โข ะัะดะตัะฑะปะพะบะธ (Order Blocks) ั ะฝะฐัััะพะนะบะพะน ะบะพะปะธัะตััะฒะฐ ะธ ัะฒะตัะพะฒ
โข ะะธะฒะพัั (Pivot Points) ัะฐะทะปะธัะฝัั
ัะฐะนะผััะตะนะผะพะฒ
โข ะ ัะฝะพัะฝัั ััััะบัััั ั ะทะพะฝะฐะผะธ ะคะธะฑะพะฝะฐััะธ (0.618, 0.786)
โข ะ ะฐะทะฒะพัะพัะฝัะต ะบะพะฝััััะบัะธะธ (ะฟะธะฝะฑะฐัั ะธ ะฟะพะณะปะพัะตะฝะธั)
โข ะะพะฝั ะธะฝัะตัะตัะฐ ะฝะฐ ะพัะฝะพะฒะต ัะบะพะฟะปะตะฝะธั ัะฒะธะฝะณะพะฒ
๐ ะัะฝะพะฒะฝัะต ััะฝะบัะธะธ:
1. ะัะดะตัะฑะปะพะบะธ
- ะะฒัะพะผะฐัะธัะตัะบะพะต ะพะฟัะตะดะตะปะตะฝะธะต ะฑัััะธั
/ะผะตะดะฒะตะถัะธั
OB
- ะะฐัััะพะนะบะฐ ะผะฐะบัะธะผะฐะปัะฝะพะณะพ ะบะพะปะธัะตััะฒะฐ ะฑะปะพะบะพะฒ (ะดะพ 30)
- ะะฐััะพะผะธะทะฐัะธั ัะฒะตัะพะฒ
2. ะะธะฒะพัั
- ะะพะดะดะตัะถะบะฐ ัะฐะนะผััะตะนะผะพะฒ: ะะฝะตะฒะฝัะต/ะะตะดะตะปัะฝัะต/ะะตัััะฝัะต/ะะฒะฐััะฐะปัะฝัะต/ะะพะดะพะฒัะต
- ะฃัะพะฒะฝะธ Camarilla (P, R1-R4, S1-S4)
3. ะ ัะฝะพัะฝะฐั ััััะบัััะฐ
- ะงะตัะบะพะต ะพะฟัะตะดะตะปะตะฝะธะต ััะตะฝะดะฐ (UP/DOWN)
- ะะปััะตะฒัะต ััะพะฒะฝะธ ะคะธะฑะพ (0.618 ะธ 0.786)
- ะะฐัััะพะนะบะฐ ะณะปัะฑะธะฝั ะฐะฝะฐะปะธะทะฐ (10-1000 ะฑะฐัะพะฒ)
4. ะ ะฐะทะฒะพัะพัะฝัะต ะบะพะฝััััะบัะธะธ
- ะะฑะฝะฐััะถะตะฝะธะต ะฟะธะฝะฑะฐัะพะฒ
- ะะฑะฝะฐััะถะตะฝะธะต ะฟะพะณะปะพัะตะฝะธะน
- ะะฐัััะพะนะบะฐ ััะฒััะฒะธัะตะปัะฝะพััะธ
5. ะะพะฝั ะธะฝัะตัะตัะฐ
- ะะปะณะพัะธัะผ ะบะปะฐััะตัะธะทะฐัะธะธ ัะฒะธะฝะณะพะฒ
- ะะฐัััะพะนะบะฐ ัะตัะตะท ATR-ะผัะปััะธะฟะปะธะบะฐัะพั
- ะะธะผะธั ะพัะพะฑัะฐะถะฐะตะผัั
ะทะพะฝ
๐ฌ๐ง English Description
ZeeZeeMon Pack is a comprehensive market analysis toolkit featuring:
โข Order Blocks with customizable count and colors
โข Pivot Points for multiple timeframes
โข Market Structure with Fibonacci zones
โข Reversal patterns (pinbars and engulfings)
โข Interest Zones based on swing clustering
๐ Key Features:
1. Order Blocks
- Auto-detection of bullish/bearish OB
- Configurable max blocks (up to 30)
- Custom color schemes
2. Pivot Points
- Supports: Daily/Weekly/Monthly/Quarterly/Yearly
- Camarilla levels (P, R1-R4, S1-S4)
3. Market Structure
- Clear trend detection (UP/DOWN)
- Key Fibonacci levels (0.618 & 0.786)
- Adjustable analysis depth (10-1000 bars)
4. Reversal Patterns
- Smart pinbar detection
- ATR-based engulfing filter
- Sensitivity adjustment
5. Interest Zones
- Swing clustering algorithm
- ATR-multiplier configuration
- Display limit (up to 10 zones)
โ๏ธ Technical Highlights:
โข Built with Pine Script v5
โข Performance-optimized
โข Well-commented code
โข Flexible settings system
โ ๏ธ ะะฐะถะฝะพ / Important:
ะะฝะดะธะบะฐัะพั ะฒ ะฑะตัะฐ-ะฒะตััะธะธ. ะขะตััะธััะนัะต ะฟะตัะตะด ะธัะฟะพะปัะทะพะฒะฐะฝะธะตะผ ะฒ ัะตะฐะปัะฝะพะน ัะพัะณะพะฒะปะต.
This is BETA version. Please test before live trading.
๐ฌ ะะพะดะดะตัะถะบะฐ / Support:
ะะพะผะผะตะฝัะฐัะธะธ ะบ ัะบัะธะฟัั / Script comments section
Adaptive Market Profile โ Auto Detect & Dynamic Activity ZonesAdaptive Market Profile is an advanced indicator that automatically detects and displays the most relevant trend channel and market profile for any asset and timeframe. Unlike standard regression channel tools, this script uses a fully adaptive approach to identify the optimal period, providing you with the channel that best fits the current market dynamics. The calculation is based on maximizing the statistical significance of the trend using Pearsonโs R coefficient, ensuring that the most relevant trend is always selected.
Within the selected channel, the indicator generates a dynamic market profile, breaking the price range into configurable zones and displaying the most active areas based on volume or the number of touches. This allows you to instantly identify high-activity price levels and potential support/resistance zones. The โmost active linesโ are plotted in real-time and always stay parallel to the channel, dynamically adapting to market structure.
Key features:
- Automatic detection of the optimal regression period: The script scans a wide range of lengths and selects the channel that statistically represents the strongest trend.
- Dynamic market profile: Visualizes the distribution of volume or price touches inside the trend channel, with customizable section count.
- Most active zones: Highlights the most traded or touched price levels as dynamic, parallel lines for precise support/resistance reading.
- Manual override: Optionally, users can select their own channel period for full control.
- Supports both linear and logarithmic charts: Simple toggle to match your chart scaling.
Use cases:
- Trend following and channel trading strategies.
- Quick identification of dynamic support/resistance and liquidity zones.
- Objective selection of the most statistically significant trend channel, without manual guesswork.
- Suitable for all assets and timeframes (crypto, stocks, forex, futures).
Originality:
This script goes beyond basic regression channels by integrating dynamic profile analysis and fully adaptive period detection, offering a comprehensive tool for modern technical analysts. The combination of trend detection, market profile, and activity zone mapping is unique and not available in TradingView built-ins.
Instructions:
Add Adaptive Market Profile to your chart. By default, the script automatically detects the optimal channel period and displays the corresponding regression channel with dynamic profile and activity zones. If you prefer manual control, disable โAuto trend channel periodโ and set your preferred period. Adjust profile settings as needed for your asset and timeframe.
For questions, suggestions, or further customization, contact Julien Eche (@Julien_Eche) directly on TradingView.
OB/OS adaptative v1.1# OB/OS Adaptative v1.1 - Multi-Timeframe Adaptive Overbought/Oversold Indicator
## Overview
The `tradingview_indicator_emas.pine` script is a sophisticated multi-timeframe indicator designed to identify dynamic overbought and oversold levels in financial markets. It combines EMA (Exponential Moving Average) crossovers and Bollinger Bands across monthly, weekly, and daily timeframes to create adaptive support and resistance levels that adjust to changing market conditions.
## Core Functionality
### Multi-Timeframe Analysis
The indicator analyzes three timeframes simultaneously:
- **Monthly (M)**: Long-term trend identification
- **Weekly (W)**: Intermediate-term trend identification
- **Daily (D)**: Short-term volatility measurement
### Technical Indicators Used
- **EMA 9 and EMA 20**: For trend identification and momentum assessment
- **Bollinger Bands (20-period)**: For volatility measurement and extreme level identification
- **Price action**: For confirmation of level validity and signal generation
## Key Features
### Adaptive Level Calculation
The indicator dynamically determines overbought and oversold levels based on market structure and trend bias:
#### Monthly Level Logic
- **Bullish Bias** (when monthly open > EMA20):
- Oversold = lower of EMA9 or EMA20
- Overbought = upper of EMA9 or Bollinger Upper Band
- **Bearish/Neutral Bias** (when monthly open โค EMA20):
- Oversold = Bollinger Lower Band
- Overbought = upper of EMA20 or EMA9
#### Weekly Level Logic
- **Bullish Bias** (when weekly open > EMA20):
- Oversold = lower of EMA9 or EMA20
- Overbought = Bollinger Upper Band
- **Bearish/Neutral Bias** (when weekly open โค EMA20):
- Oversold = Bollinger Lower Band
- Overbought = upper of EMA20 or EMA9
#### Daily Level Logic
- Simple Bollinger Bands:
- Oversold = Bollinger Lower Band
- Overbought = Bollinger Upper Band
### Final Level Determination
The indicator combines all three timeframes through a weighted averaging process:
1. Calculates initial values as the average of monthly, weekly, and daily levels
2. Ensures mathematical consistency by enforcing overbought_final โฅ oversold_final using min/max functions
3. Calculates a midpoint average level as the center of the range
### Visual Elements
- **Dynamic Lines**: Draws horizontal lines for current and previous period overbought, oversold, and average levels
- **Labels**: Places clear textual labels at the start of each period
- **Color Coding**:
- Red for overbought levels (resistance)
- Green for oversold levels (support)
- Blue for average levels (pivot point)
- **Transparency**: Previous period lines use semi-transparent colors to distinguish between current and historical levels
### Update Mechanism
- **Calculation Day**: User-defined day of the week (default: Monday)
- On the specified calculation day, the indicator:
- Updates all levels based on previous bar's data
- Draws new lines extending forward for a user-defined number of days
- Maintains previous period lines for comparison and trend analysis
- Automatically deletes and recreates lines to ensure clean visualization
### Proximity Detection
- Alerts when price approaches overbought/oversold levels (configurable distance in percentage)
- Helps identify potential reversal zones before actual crossovers occur
- Distance thresholds are user-configurable for both overbought and oversold conditions
### Alert Conditions
The indicator provides four distinct alert types:
1. **Cross below oversold**: Triggered when price crosses below the oversold level
2. **Cross above overbought**: Triggered when price crosses above the overbought level
3. **Near oversold**: Triggered when price approaches the oversold level within the configured distance
4. **Near overbought**: Triggered when price approaches the overbought level within the configured distance
### Debug Mode
When enabled, displays comprehensive debug information including:
- Current values for all levels (oversold, overbought, average)
- Timeframe-specific calculations and raw data points
- System status information (current day, calculation day, etc.)
- Lines existence and timing information
- Organized in multiple labels at different price levels to avoid overlap
## Configuration Parameters
| Parameter | Default Value | Description |
|---------|---------------|-------------|
| Short EMA (9) | 9 | Length for short-term EMA calculation |
| Long EMA (20) | 20 | Length for long-term EMA calculation |
| BB Length | 20 | Period for Bollinger Bands calculation |
| Std Dev | 2.0 | Standard deviation multiplier for Bollinger Bands |
| Distance to overbought (%) | 0.5 | Percentage threshold for "near overbought" alerts |
| Distance to oversold (%) | 0.5 | Percentage threshold for "near oversold" alerts |
| Calculation day | Monday | Day of week when levels are recalculated |
| Lookback days | 7 | Number of days to extend previous period lines backward |
| Forward days | 7 | Number of days to extend current period lines forward |
| Show Debug Labels | false | Toggle for comprehensive debug information display |
## Trading Applications
### Primary Use Cases
1. **Reversal Trading**: Identify potential reversal zones when price approaches overbought/oversold levels
2. **Trend Confirmation**: Use the adaptive nature of levels to confirm trend strength and direction
3. **Position Sizing**: Adjust position size based on distance from key levels
4. **Stop Placement**: Use opposite levels as dynamic stop-loss references
### Strategic Advantages
- **Adaptive Nature**: Levels adjust to changing market volatility and trend structure
- **Multi-Timeframe Confirmation**: Signals are validated across multiple timeframes
- **Visual Clarity**: Clear color-coded lines and labels enhance decision-making
- **Proactive Alerts**: "Near" conditions provide early warnings before crossovers
## Implementation Details
### Data Security
Uses `request.security()` function to fetch data from higher timeframes (monthly, weekly) while maintaining proper bar indexing with ` ` offset for open prices.
### Performance Optimization
- Uses `var` keyword to declare persistent variables that maintain state across bars
- Efficient line and label management with proper deletion before recreation
- Conditional execution of debug code to minimize performance impact
### Error Handling
- Comprehensive NA (not available) checks throughout the code
- Graceful degradation when data is unavailable for higher timeframes
- Mathematical safeguards to prevent invalid level calculations
## Conclusion
The OB/OS Adaptative v1.1 indicator represents a sophisticated approach to identifying market extremes by combining multiple technical analysis concepts. Its adaptive nature makes it particularly useful in trending markets where static levels may be less effective. The multi-timeframe approach provides a comprehensive view of market structure, while the visual elements and alert system enhance its practical utility for active traders.
SMT Divergence x outofoptions๐ SMT Divergence โ Advanced Market Correlation Analysis
This was created with and approved by @outofoptions to bring you smaller SMTs based on his original SMT Divergence indicator
SMT Divergence is a sophisticated technical analysis indicator designed to identify high-probability reversal and continuation signals through intelligent correlation analysis between related markets. This powerful tool reveals hidden market dynamics by comparing price action divergences across correlated instruments, providing traders with institutional-level market insight.
๐ฏ Core Capabilities:
Multi-Market Analysis : Automatically compares your chart with a correlated instrument to identify divergence patterns and market inefficiencies
Smart Liquidity Detection : Advanced algorithms identify key liquidity levels and sweep patterns for enhanced signal accuracy
Dynamic Divergence Mapping : Real-time visualization of bullish and bearish divergences with customizable line styles and colors
Intelligent Signal Validation : Optional candle-based confirmation system to filter high-probability setups from noise
Automated Line Management : Smart removal of invalidated divergences to maintain clean, actionable chart analysis
๐ Professional Features:
The SMT Divergence indicator excels at revealing market structure imbalances that often precede significant price movements. By analyzing the relationship between correlated markets, it identifies when institutional money may be positioned differently than retail sentiment suggests, providing early warning signals for potential reversals.
โ๏ธ Advanced Customization:
Flexible correlation pair selection for any market combination
Customizable visual styling with multiple line types and color schemes
Adjustable validation criteria for different trading styles
Professional alert system with detailed message customization
Automatic cleanup of broken or invalidated divergences
๐จ Visual Excellence:
Clean, professional line drawing with customizable styling
Dynamic labeling system with size and color options
Real-time divergence tracking and management
Institutional-grade chart presentation
Optimized performance for extended analysis periods
๐ Ideal For:
Swing traders seeking high-probability reversal signals
Multi-market analysts comparing correlated instruments
Institutional-style traders using correlation analysis
Advanced technical analysts studying market structure
Those seeking early warning signals for trend changes
๐ Smart Alerts:
Comprehensive alert system with customizable messaging allows you to stay informed of new divergences across multiple timeframes and market sessions, ensuring you never miss critical market developments.
๐ก Market Intelligence:
SMT Divergence transforms complex inter-market relationships into clear, actionable signals, giving you the same analytical edge used by professional trading institutions to identify market turning points before they become obvious to retail traders.
Educational Tool: This indicator is designed for educational and analytical purposes. Divergence analysis requires understanding of market correlation principles. Always combine with proper risk management and additional analysis methods.
Pullback Pro Dow Strategy v7 (ADX Filter)
### **Strategy Description (For TradingView)**
#### **Title:** Pullback Pro: Dow Theory & ADX Strategy
---
#### **1. Summary**
This strategy is designed to identify and trade pullbacks within an established trend, based on the core principles of Dow Theory. It uses market structure (pivot highs and lows) to determine the trend direction and an Exponential Moving Average (EMA) to pinpoint pullback entry opportunities.
To enhance trade quality and avoid ranging markets, an ADX (Average Directional Index) filter is integrated to ensure that entries are only taken when the trend has sufficient momentum.
---
#### **2. Core Logic: How It Works**
The strategy's logic is broken down into three main steps:
**Step 1: Trend Determination (Dow Theory)**
* The primary trend is identified by analyzing recent pivot points.
* An **Uptrend** is confirmed when the script detects a pattern of higher highs and higher lows (HH/HL).
* A **Downtrend** is confirmed by a pattern of lower highs and lower lows (LH/LL).
* If neither pattern is present, the strategy considers the market to be in a range and will not seek trades.
**Step 2: Entry Signal (Pullback to EMA)**
* Once a clear trend is established, the strategy waits for a price correction.
* **Long Entry:** In a confirmed uptrend, a long position is initiated when the price pulls back and crosses *under* the specified EMA.
* **Short Entry:** In a confirmed downtrend, a short position is initiated when the price rallies and crosses *over* the EMA.
**Step 3: Confirmation & Risk Management**
* **ADX Filter:** To ensure the trend is strong enough to trade, an entry signal is only validated if the ADX value is above a user-defined threshold (e.g., 25). This helps filter out weak signals during choppy or consolidating markets.
* **Stop Loss:** The initial Stop Loss is automatically and logically placed at the last market structure point:
* For long trades, it's placed at the `lastPivotLow`.
* For short trades, it's placed at the `lastPivotHigh`.
* **Take Profit:** Two Take Profit levels are calculated based on user-defined Risk-to-Reward (R:R) ratios. The strategy allows for partial profit-taking at the first target (TP1), moving the remainder of the position to the second target (TP2).
---
#### **3. Input Settings Explained**
**โ Dow Theory Settings**
* **Pivot Lookback Period:** Determines the sensitivity for detecting pivot highs and lows. A smaller number makes it more sensitive to recent price swings; a larger number focuses on more significant, longer-term pivots.
**โก Entry Logic (Pullback)**
* **Pullback EMA Length:** Sets the period for the Exponential Moving Average used to identify pullback entries.
**โข Risk & Exit Management**
* **Take Profit 1 R:R:** Sets the Risk-to-Reward ratio for the first take-profit target.
* **Take Profit 1 (%):** The percentage of the position to be closed when TP1 is hit.
* **Take Profit 2 R:R:** Sets the Risk-to-Reward ratio for the final take-profit target.
**โฃ Filters**
* **Use ADX Trend Filter:** A master switch to enable or disable the ADX filter.
* **ADX Length:** The lookback period for the ADX calculation.
* **ADX Threshold:** The minimum ADX value required to confirm a trade signal. Trades will only be placed if the ADX is above this level.
---
#### **4. Best Practices & Recommendations**
* This is a trend-following system. It is designed to perform best in markets that exhibit clear, sustained trending behavior.
* It may underperform in choppy, sideways, or strongly ranging markets. The ADX filter is designed to help mitigate this, but no filter is perfect.
* **Crucially, you must backtest this strategy thoroughly** on your preferred financial instrument and timeframe before considering any live application.
* Experiment with the `Pivot Lookback Period`, `Pullback EMA Length`, and `ADX Threshold` to optimize performance for a specific market's characteristics.
---
#### **DISCLAIMER**
This script is provided for educational and informational purposes only. It does not constitute financial advice. All trading involves a high level of risk, and past performance is not indicative of future results. You are solely responsible for your own trading decisions. The author assumes no liability for any financial losses you may incur from using this strategy. Always conduct your own research and due diligence.
Active PMI Support/Resistance Levels [EdgeTerminal]The PMI Support & Resistance indicator revolutionizes traditional technical analysis by using Pointwise Mutual Information (PMI) - a statistical measure from information theory - to objectively identify support and resistance levels. Unlike conventional methods that rely on visual pattern recognition, this indicator provides mathematically rigorous, quantifiable evidence of price levels where significant market activity occurs.
- The Mathematical Foundation: Pointwise Mutual Information
Pointwise Mutual Information measures how much more likely two events are to occur together compared to if they were statistically independent. In our context:
Event A: Volume spikes occurring (high trading activity)
Event B: Price being at specific levels
The PMI formula calculates: PMI = log(P(A,B) / (P(A) ร P(B)))
Where:
P(A,B) = Probability of volume spikes occurring at specific price levels
P(A) = Probability of volume spikes occurring anywhere
P(B) = Probability of price being at specific levels
High PMI scores indicate that volume spikes and certain price levels co-occur much more frequently than random chance would predict, revealing genuine support and resistance zones.
- Why PMI Outperforms Traditional Methods
Subjective interpretation: What one trader sees as significant, another might ignore
Confirmation bias: Tendency to see patterns that confirm existing beliefs
Inconsistent criteria: No standardized definition of "significant" volume or price action
Static analysis: Doesn't adapt to changing market conditions
No strength measurement: Can't quantify how "strong" a level truly is
PMI Advantages:
โ
Objective & Quantifiable: Mathematical proof of significance, not visual guesswork
โ
Statistical Rigor: Levels backed by information theory and probability
โ
Strength Scoring: PMI scores rank levels by statistical significance
โ
Adaptive: Automatically adjusts to different market volatility regimes
โ
Eliminates Bias: Computer-calculated, removing human interpretation errors
โ
Market Structure Aware: Reveals the underlying order flow concentrations
- How It Works
Data Processing Pipeline:
Volume Analysis: Identifies volume spikes using configurable thresholds
Price Binning: Divides price range into discrete levels for analysis
Co-occurrence Calculation: Measures how often volume spikes happen at each price level
PMI Computation: Calculates statistical significance for each price level
Level Filtering: Shows only levels exceeding minimum PMI thresholds
Dynamic Updates: Refreshes levels periodically while maintaining historical traces
Visual System:
Current Levels: Bright, thick lines with PMI scores - your actionable levels
Historical Traces: Faded previous levels showing market structure evolution
Strength Tiers: Line styles indicate PMI strength (solid/dashed/dotted)
Color Coding: Green for support, red for resistance
Info Table: Real-time display of strongest levels with scores
- Indicator Settings:
Core Parameters
Lookback Period (Default: 200)
Lower (50-100): More responsive to recent price action, catches short-term levels
Higher (300-500): Focuses on major historical levels, more stable but less responsive
Best for: Day trading (100-150), Swing trading (200-300), Position trading (400-500)
Volume Spike Threshold (Default: 1.5)
Lower (1.2-1.4): More sensitive, catches smaller volume increases, more levels detected
Higher (2.0-3.0): Only major volume surges count, fewer but stronger signals
Market dependent: High-volume stocks may need higher thresholds (2.0+), low-volume stocks lower (1.2-1.3)
Price Bins (Default: 50)
Lower (20-30): Broader price zones, less precise but captures wider areas
Higher (70-100): More granular levels, precise but may be overly specific
Volatility dependent: High volatility assets benefit from more bins (70+)
Minimum PMI Score (Default: 0.5)
Lower (0.2-0.4): Shows more levels including weaker ones, comprehensive view
Higher (1.0-2.0): Only statistically strong levels, cleaner chart
Progressive filtering: Start with 0.5, increase if too cluttered
Max Levels to Show (Default: 8)
Fewer (3-5): Clean chart focusing on strongest levels only
More (10-15): Comprehensive view but may clutter chart
Strategy dependent: Scalpers prefer fewer (3-5), swing traders more (8-12)
Historical Tracking Settings
Update Frequency (Default: 20 bars)
Lower (5-10): More frequent updates, captures rapid market changes
Higher (50-100): Less frequent updates, focuses on major structural shifts
Timeframe scaling: 1-minute charts need lower frequency (5-10), daily charts higher (50+)
Show Historical Levels (Default: True)
Enables the "breadcrumb trail" effect showing evolution of support/resistance
Disable for cleaner charts focusing only on current levels
Max Historical Marks (Default: 50)
Lower (20-30): Less memory usage, shorter history
Higher (100-200): Longer historical context but more resource intensive
Fade Strength (Default: 0.8)
Lower (0.5-0.6): Historical levels more visible
Higher (0.9-0.95): Historical levels very subtle
Visual Settings
Support/Resistance Colors: Choose colors that contrast well with your chart theme Line Width: Thicker lines (3-4) for better visibility on busy charts Show PMI Scores: Toggle labels showing statistical strength Label Size: Adjust based on screen resolution and chart zoom level
- Most Effective Usage Strategies
For Day Trading:
Setup: Lookback 100-150, Volume Threshold 1.8-2.2, Update Frequency 10-15
Use PMI levels as bounce/rejection points for scalp entries
Higher PMI scores (>1.5) offer better probability setups
Watch for volume spike confirmations at levels
For Swing Trading:
Setup: Lookback 200-300, Volume Threshold 1.5-2.0, Update Frequency 20-30
Enter on pullbacks to high PMI support levels
Target next resistance level with PMI score >1.0
Hold through minor levels, exit at major PMI levels
For Position Trading:
Setup: Lookback 400-500, Volume Threshold 2.0+, Update Frequency 50+
Focus on PMI scores >2.0 for major structural levels
Use for portfolio entry/exit decisions
Combine with fundamental analysis for timing
- Trading Applications:
Entry Strategies:
PMI Bounce Trades
Price approaches high PMI support level (>1.0)
Wait for volume spike confirmation (orange triangles)
Enter long on bullish price action at the level
Stop loss just below the PMI level
Target: Next PMI resistance level
PMI Breakout Trades
Price consolidates near high PMI level
Volume increases (watch for orange triangles)
Enter on decisive break with volume
Previous resistance becomes new support
Target: Next major PMI level
PMI Rejection Trades
Price approaches PMI resistance with momentum
Watch for rejection signals and volume spikes
Enter short on failure to break through
Stop above the PMI level
Target: Next PMI support level
Risk Management:
Stop Loss Placement
Place stops 0.1-0.5% beyond PMI levels (adjust for volatility)
Higher PMI scores warrant tighter stops
Use ATR-based stops for volatile assets
Position Sizing
Larger positions at PMI levels >2.0 (highest conviction)
Smaller positions at PMI levels 0.5-1.0 (lower conviction)
Scale out at multiple PMI targets
- Key Warning Signs & What to Watch For
Red Flags:
๐จ Very Low PMI Scores (<0.3): Weak statistical significance, avoid trading
๐จ No Volume Confirmation: PMI level without recent volume spikes may be stale
๐จ Overcrowded Levels: Too many levels close together suggests poor parameter tuning
๐จ Outdated Levels: Historical traces are reference only, not tradeable
Optimization Tips:
โ
Regular Recalibration: Adjust parameters monthly based on market regime changes
โ
Volume Context: Always check for recent volume activity at PMI levels
โ
Multiple Timeframes: Confirm PMI levels across different timeframes
โ
Market Conditions: Higher thresholds during high volatility periods
Interpreting PMI Scores
PMI Score Ranges:
0.5-1.0: Moderate statistical significance, proceed with caution
1.0-1.5: Good significance, reliable for most trading strategies
1.5-2.0: Strong significance, high-confidence trade setups
2.0+: Very strong significance, institutional-grade levels
Historical Context: The historical trace system shows how support and resistance evolve over time. When current levels align with multiple historical traces, it indicates persistent market memory at those prices, significantly increasing the level's reliability.