Custom EMA CrossoverFirst off, an Exponential Moving Average (EMA) is a moving average indicator that gives
more weight to recent price data, making it highly responsive to changes in the market.
The 9 EMA calculates explicitly the average of the last nine closing prices, giving you a
line on your chart that tracks the recent price trend with greater sensitivity. With it, you
can catch a short-term trend direction or even other minor trends during a major trend.
On a price chart, the 9 EMA is displayed as a single line that oscillates above and below
the asset’s price action.
Generally, the 9 EMA has a huge body of followership among many moving average
traders and day traders. This is because it offers the perfect balance between the past
and the present. Since it takes 9 periods into consideration
Penunjuk dan strategi
Risk-Based Position SizerThis indicator is used to help calculate risk quickly based on the current market price.
Price Action Patterns: Engulfing + Pin Bar📘 Description:
This script highlights powerful price action candlestick patterns to help traders make informed decisions without using indicators.
It detects:
✅ Bullish Engulfing: A strong reversal pattern indicating buyers have taken control.
✅ Bearish Engulfing: A potential signal of bearish momentum after bullish candles.
✅ Pin Bars:
Hammer (Bullish Pin Bar): Long lower wick signals rejection of lower prices.
Shooting Star (Bearish Pin Bar): Long upper wick shows rejection of higher prices.
📈 How to Use It:
Look for these patterns near support/resistance zones or trendlines
Combine with your strategy (SMA, VWAP, volume, etc.)
Use confirmation like volume spike or next candle direction
🎯 Visual Markers:
🟢 Bullish Engulfing → “Bull Engulf” label below candle
🔴 Bearish Engulfing → “Bear Engulf” label above candle
🔵 Bullish Pin Bar (Hammer) → Blue triangle below
🟠 Bearish Pin Bar (Shooting Star) → Orange triangle above
Average Directional IndexRKM_ADX is a custom Average Directional Index (ADX) indicator that visually highlights strong trend strength using color cues:
🔍 What It Does:
Calculates the ADX to measure trend strength.
When ADX crosses above 25 (default threshold), the line turns green (Default Color, user may change as per desire), indicating a strong trend.
When ADX is below 25, the line remains red Default Color, user may change as per desire), signaling a weak or ranging market.
🛠 How to Use:
Add RKM_ADX to your chart (from your scripts or Indicators list).
Look for green ADX lines – they suggest stronger trends where trend-following strategies may work better.
Red ADX lines indicate weak trends or sideways movement – avoid trend trades or switch to range-based strategies.
You can adjust the threshold (default is 25) in the settings to match your preferred trend sensitivity.
4HRFRACTALVWAPTOPThis is Part of Green Ice Trend Momentum Package. It essentially looks to find tops (white dot)and bottoms (red dot) based on VWAP and a long trend look back using fractals. The
CompositeIndex🧠 Composite Index — RSI Reimagined for Precision Reversals
Referenced From?
Based on Constance Brown's thesis submitted in 2015 to fulfill requirements of "Master of Financial Analysis" (MFTA).
📌 OVERVIEW
The Composite Index (CI), designed by renowned technical analyst Constance Brown, is a refined version of the traditional RSI (Relative Strength Index) — engineered to solve its most frustrating flaw:
“RSI often gives false divergence signals due to its fixed 0–100 range.”
This indicator presents a non-bounded, momentum-weighted oscillator, which retains RSI’s familiarity, but removes its limitations.
The result?
A powerful, leading reversal tool that:
Detects hidden divergences
Avoids early or misleading RSI peaks
Anchors mean-reversion more effectively with dynamic bands
This version includes three operational modes, empowering traders to adapt it to trend, volatility, and reversal scenarios.
⚙️ COMPONENT BREAKDOWN
🔹 Composite Index Formula
The core CI formula is:
CI = Momentum(RSI1, N) + SMA(RSI2, M)
RSI1 = traditional RSI (default 14)
Momentum = recent change in RSI1
RSI2 = shorter RSI (default 3)
SMA = smoothing of RSI2 (default 3)
This blend captures:
Longer-term RSI directional shifts (momentum)
Short-term oscillator smoothing (SMA)
The resulting oscillator is unbounded, unlike RSI — allowing truer divergences.
🔹 Mode 1: Traditional
Plots the Composite Index
Optionally overlays:
Avg1: medium-term smoothing line (default 13)
Avg2: longer baseline trend reference (default 33)
Great for:
Manual divergence spotting
Trend reversal confirmation
Oscillator cross back strategies
🔹 Mode 2: Traditional + Bands
Adds ±2 standard deviation envelopes around Avg2
These act as dynamic overbought/oversold regions
Helps detect extreme deviation conditions
Great for:
Fade trades / scalps
Mean reversion signals
Volatility compression breakouts
🔹 Mode 3: Z-Score
Plots Composite Index as a Z-Score
Reframes CI as a statistically normalized range (e.g., ±2σ)
Adds zero-line and bands to define contextual extremes
Great for:
Probability-based edge finding
Quant strategies
Clean divergence against price or other indicators
💡 TRADING STRATEGY EXAMPLES
✅ Setup 1 — Reversal Divergence (Z-Score Mode)
🔹 Market makes lower low
🔹 CI (Z-Score) makes higher low
🔹 Z-Score crosses above -2 → Trigger entry
Interpretation:
CI detects momentum shift earlier than price.
Z-Score confirms oversold mean reversion.
Use case: Trend reversal scalp or swing entry.
✅ Setup 2 — Momentum Pullback Continuation (Traditional Mode)
🔹 CI pulls back to Avg1 or Avg2 from above
🔹 Price makes higher low
🔹 Composite bounces and resumes higher
Interpretation:
Avg1 acts like a dynamic "RSI 50" — trend continuation confirmation.
Use case: Buy-the-dip setups or stop-hunt re-entries.
✅ Setup 3 — Overextended Fade (Band Mode)
🔹 CI pushes beyond +2 std dev
🔹 Price starts to stall or form a reversal candle
🔹 CI rolls over while price is sideways/up
Interpretation:
Extreme momentum deviation resolved by price mean-reverting.
Use case: Short-term fade or reversion-to-VWAP setup.
✅ HOW TO USE IT
Goal Recommended Mode
Divergences - Z-Score / Traditional
Trend continuation - Traditional + Avg1/Avg2
Overbought/Oversold - TraditionalWithBands
Quant-normalized setups - Z-Score
Manual RSI replacement - Any mode
🎯 TIPS FOR POWER USERS
Combine CI with VWAP or anchored RSI for stronger confluence.
Use Avg1 crossovers as dynamic entry/exit triggers.
Overlay CI with price directly using overlay=true if you want to align levels visually.
Use in confluence with volume, structure, or liquidity zones.
SMA 50 closeThe simple moving average is used to forecast demand. Therefore, demand data from previous periods can be used to estimate the next period using the simple moving average. We'll see how this is done below.
SMA 20 closeThe simple moving average is used to forecast demand. Therefore, demand data from previous periods can be used to estimate the next period using the simple moving average. We'll see how this is done below.
Key Indicators Dashboard (KID)📊 Key Indicators Dashboard (KID)
The Key Indicators Dashboard (KID) is a multi-indicator visual toolkit designed to assist traders in making informed decisions by providing a comprehensive overview of price, volume, volatility, and trend-related metrics in one glance.
⚙️ How It Works
KID combines trend-following, volatility-based, and relative strength indicators into a single dashboard. It does not reinvent indicators but instead integrates widely used components in a meaningful, dashboard-style layout to enable efficient trade filtering.
✅ Volatility Indicators
⦿ ADR % (Average Daily Range %):
Uses the average of (high price - low price) over a set period (default 20).
Helps identify stocks with strong daily price movement.
Thresholds are used to color-code high/low volatility conditions.
⦿ ATR & ATR %:
Uses standard ATR indicator.
ATR % is derived by normalizing ATR over price.
✅ Trend & Directional Strength
⦿ ADX:
Uses standard ADX indicator to measure trend strength, typically over 14 periods.
Values >25 often indicate a strong trend.
Colored red/green based on strength thresholds.
⦿ Supertrend:
Uses standard Supertrend indicator to trend (uptrend/downtrend) and highlights potential.
Trend in table is calculated using Supertrend.
⦿ Moving Average Crossovers:
Supports up to 5 MAs (configurable as EMA/SMA).
Marks Crossovers (MA1 crossing MA2, etc.).
⦿ Minervini Trend Template:
The Trend Template is a set of technical criteria designed to identify stocks in strong uptrends.
Price > 50-DMA > 150-DMA > 200-DMA
200-DMA is trending up for at least 1 month
Price ≥ 52-week high proximity
Price is at least 30% above its 52-week low.
Price is within at least 25 percent of its 52-week high
Table highlights when a stock meets all above criteria.
✅ Momentum & Relative Strength
⦿ RSI:
Uses standard RSI indicator with configurable thresholds.
Conditions like RSI > 70 or < 30 are highlighted.
⦿ Relative Strength (vs Benchmark):
Determine the performance of one asset compared to another, typically a benchmark like an index or another stock, over a specific period. Default is NIFTYMIDSML400.
⦿ RS Rating (IBD-style):
Composite score combining % returns over:
3 months (weighted x1)
6 months (x2)
9 months (x3)
12 months (x4)
Weighted average produces a score between 0–100.
Approximates Investor's Business Daily (IBD) RS logic.
✅ Volume-Based Metrics
⦿ Relative Volume (RVol):
Compares the current trading volume of an asset to its average volume over a specific historical period (default 50-day).
It is calculated by dividing the security's current volume by the volume over a specified time period. The formula used is: relative volume = current volume / average volume.
High RVol often signals accumulation or distribution.
⦿ Turnover (₹ Cr):
Daily turnover of an asset refers to the total value or volume of shares traded during a single trading day.
Calculated as: Volume × Close Price / 1e7 (to convert to Indian Crores).
It's a measure of trading activity and liquidity for a specific an asset.
✅ Price Action Analysis
⦿ LoD Distance %:
Distance of current price to low of the day as a percentage of ATR.
⦿ 52-Week High/Low:
Distance between current price and 52-Weeks high/low shown as percentage.
⦿ Swing Highs / Lows:
Identifies local pivots using user-defined lookback periods.
⦿ Inside Bars:
Detects candles where current high/low is within the previous candle.
⦿ Purple Dot:
Flags high-momentum security by marking a purple dot when price moves 5% up or down with minimum specified volume (default 500,000).
Price percentage change and minimum volume are user-configurable.
More dots = High liquidity & fast movement
Fewer dots = Low liquidity & slower-movement
⦿ Narrow Range - NR(X):
it indicates that the current day's price range is the narrowest among the last X number of days.
Identifies periods of low volatility where the price range (high - low) is unusually small compared to a set number of previous periods.
This narrowing of the price range is often seen as a precursor to a potential breakout in either direction.
⦿ Tightness:
Identifies price contraction where the combined range (high-low) of the last look-back candles is less than the ADR (Average Daily Range).
✅ Other Tools
⦿ VWAP Line:
Uses standard VWAP indicator to plot a volume-weighted average price anchor.
⦿ Market Cap & Free Float:
Uses TradingView’s built-in data to display Market Cap & Free Float.
⦿ Sector & Industry:
Uses TradingView’s built-in data to display Sector and Industry.
🔧 Customization
Switchable between vertical or horizontal layout.
Works in dark/light mode
User-configurable to toggle any indicator ON or OFF.
User-configurable Moving (EMA/SMA), Period/Lengths and thresholds.
🔔 Built-in Alerts
Supports automatic alert creation for:
RSI, ADX, ATR %, RS, Turnover, RS Rating
Moving Average Crossover (Bullish/Bearish)
Supertrend Trend Reversals
52-Week High/Low
Inside Bars (Bullish/Bearish)
Narrow Range (e.g. NR4/NR7)
Tightness
Minervini Trend Template
⦿ (Optional) : For horizontal table orientation increase Top Margin to 16% in Chart (Canvas) settings to avoid chart overlapping with table.
⚡ Add this script to your chart and start making smarter trade decisions today! 🚀
SMA 200 close
The simple moving average is used to forecast demand. Therefore, demand data from previous periods can be used to estimate the next period using the simple moving average. We'll see how this is done below.
Triple EMA Shading (13/48/200)Description
This indicator plots three key Exponential Moving Averages (EMAs) to help identify short-, medium-, and long-term trends with high visual clarity:
EMA13 (green, thick) – captures short-term momentum.
EMA48 (yellow, thick) – represents medium-term trend direction.
EMA200 (red, thick) – acts as a long-term trend filter.
To enhance trend visualization, the indicator uses color shading between the EMAs:
Green shading appears when the faster EMA is above the slower EMA — indicating a bullish bias.
Red shading appears when the faster EMA is below the slower EMA — signaling bearish conditions.
This makes it easy to spot:
Momentum shifts and trend transitions
Pullbacks during trends
Potential entry/exit zones based on EMA crossovers
How to Use
- Trend Following: Enter long positions when EMA13 is above EMA48 and both are above EMA200.
- Trend Reversals: Watch for color changes in the shading to signal potential momentum shifts.
- Trend Filtering: Use the EMA200 as a bias filter — only take trades in the direction of the longer-term trend.
Works well on any timeframe or asset. Ideal for traders who want clean visual cues for trend strength and momentum alignment.
TradePlanner ProPlan smarter. Trade with precision.
TradePlanner Pro is a professional-grade overlay tool designed to streamline your trading decisions by visually organizing your trade plans directly on the chart. Built for traders who value preparation and clarity, this script enables precise entry planning, risk management, and target visualization—all tailored per symbol.
Core Purpose
TradePlanner Pro helps you map out potential trades using pre-defined symbol-based presets. It dynamically calculates position sizes based on your account size or fixed risk, then visualizes key trade levels (Entry, Take Profits, Stop Loss) with profit/loss metrics in both dollar and percentage terms. It's the perfect companion for traders who prepare their setups in advance and want their plans clearly represented on the chart.
Key Features
🔹 Per-Symbol Presets: Define entries, up to 3 take-profit levels, and stop-losses for each ticker.
🔹 Dynamic Risk Sizing: Choose between percentage-based risk or fixed dollar risk per trade.
🔹 Visual Trade Mapping: Automatically plots Entry, TP1–TP3, and SL lines on your chart.
🔹 Real-Time P&L Labels: Displays profit/loss amounts and percentages, with optional R/R ratios.
🔹 Custom Investment Display: Shows how much capital is allocated per trade.
🔹 Clean, Configurable UI: Adjust label positions, font sizes, opacity, and label visibility to match your style.
Whether you're swing trading or day trading, TradePlanner Pro helps you stay disciplined, organized, and confident in your execution.
How to Use TradePlanner Pro – Step-by-Step Guide
TradePlanner Pro is designed to be easy to set up while giving you full control over how your trades are visualized and calculated. Here’s how to get started:
1. Start with Default Settings
By default, the script assumes:
Account Size: $10,000
Max Money per Trade (%): 1.0%
Max Risk (USD): 0 (disabled; only percentage risk is used)
This means the script will size each trade to risk 1% of your account balance per trade unless you override it with a fixed USD risk amount.
2. Set Up Your Symbol Presets
The "Symbol Presets" input is a flexible text area where you define trade setups for each ticker.
Format (one per line):
SYMBOL:Entry,TP1 ,SL
Example:
AAPL:250,260,270,240
MSFT:100,110,90
TSLA:180,200,170
You can include 1 to 3 take-profit levels.
The script will only activate for the current chart’s symbol, matching what's listed.
3. Customize Risk Parameters
You can use:
Account % Risk – Based on account size and % risk.
Fixed USD Risk – When a dollar amount is entered (>0), it takes priority and calculates share size based on the risk per share.
There's also an option to round share quantities down to whole units, which is useful for stock or crypto trading platforms that only allow whole-number units.
4. Choose What to Display
Toggle on/off these elements as needed:
Show Entry/TP/SL Lines
Show P&L Labels – Profit/loss amounts at each target and SL.
Show Amount Invested – Includes total dollar value in the quantity label.
Show Percentages – Adds % gain/loss to each label.
Show Risk/Reward Ratios – Optionally displayed beside or below TP labels.
You can further adjust:
Font size and label opacity
Label position offset – In percent of price range, so they don’t overlap the actual levels.
5. Read the Visual Outputs
Once the preset matches the current chart symbol:
Lines will appear for Entry, TP1-TP3, and Stop Loss.
Labels will display your:
Trade quantity (and invested amount)
Dollar and % profit at each target
Total loss at stop loss
Optional R/R ratios
Everything updates dynamically and adjusts to your current chart scale and bar availabilit
D/W/M High & Low LevelsThis utility plots the previous Day, Week, and Month high/low levels as persistent horizontal lines that span the chart. As any new day/week/month occurs, the lines adjust and update accordingly.
Features:
Toggle visibility for each of the 6 key levels:
- Prior Day High/Low
- Prior Week High/Low
- Prior Month High/Low
Customize any color and style (solid, dashed, dotted) individually.
Alerts available for price crossing any of the selected levels.
Works on any timeframe.
Use Cases:
Track key breakout/rejection levels for short- or long-term confluence
Identify zones of liquidity or prior reversal pivots
Overlay with trend indicators (like MAs or RSI) to frame context
Great for swing traders, scalpers, and systematic strategies that incorporate market structure.
Daily Levels/IndiaVixThis Indicator draws daily, weekly and monthly levels based on the IndiaVix value.
This indicator is dynamic and will automatically draw the levels on any script selected in the chart.
NOTE:
- IndiaVix value must be updated manually in the indicator's settings
- It draws new levels for the current day only after market opens at 9:15 AM.
- Otherwise it shows levels for yesterday only.
Real Cumulative Delta VolumeReal Cumulative Delta Volume (CDV) - Enhanced Volume Flow Analysis
What This Indicator Does
This indicator calculates cumulative delta volume using an enhanced approximation methodology that analyzes buying and selling pressure within each candlestick. It provides traders with insights into volume flow dynamics by tracking the cumulative difference between estimated buy and sell volumes over time.
Technical Methodology & Calculation Details
Volume Distribution Algorithm: The indicator uses a price-weighted distribution method to estimate buy and sell volumes within each bar:
Delta multiplier = (close - low) / (high - low)
Buy volume = total volume × delta multiplier
Sell volume = total volume × (1 - delta multiplier)
Net delta = buy volume - sell volume
Cumulative Delta Tracking: Unlike basic volume indicators, this approach maintains a running cumulative total of net delta values:
CDV Open = Previous CDV Close
CDV Close = Previous CDV Close + Net Delta
CDV High/Low = Previous CDV Close + estimated intrabar extremes
Enhanced Features Beyond Standard CDV:
Divergence Detection: Automatically identifies when price direction conflicts with volume flow direction
Body Size Analysis: Compares current vs previous CDV candle body sizes to detect momentum changes
Conditional Color Coding: Special visual alerts when specific price/volume relationships occur
Signal Generation: Buy/sell signals based on divergence resolution patterns
How This Differs from Basic Cumulative Delta
Standard Limitations Addressed:
Most cumulative delta indicators on TradingView use simple uptick/downtick classification. This indicator enhances the approach by:
Price-Weighted Distribution: Instead of assuming 50/50 volume splits, uses the bar's price action (close relative to high/low) to estimate volume distribution
OHLC Representation: Displays CDV as candlesticks rather than just a line, showing intrabar volume dynamics
Integrated Divergence Detection: Built-in algorithms identify price/volume conflicts automatically
Advanced Signal Logic: Multi-condition signal generation beyond simple crossovers
Visual Enhancement Features:
Dual display modes (candlestick or line)
Special color coding for divergence conditions
Moving average overlays for trend confirmation
Optional buy/sell signal markers
Signal Generation Logic
Buy Signals Generated When:
Previous bar showed bearish divergence (price down, CDV up)
Current CDV candle shows specific color condition
Current CDV body is contained within previous divergence body
Price closes above previous high
Sell Signals Generated When:
Previous bar showed bullish divergence (price up, CDV down)
Current CDV candle shows specific color condition
Current CDV body is contained within previous divergence body
Price closes below previous low
Trading Applications
Volume Flow Analysis:
Identify periods of hidden accumulation or distribution
Spot when large players are buying/selling against the price trend
Confirm trend strength through volume alignment
Divergence Trading:
Early warning system for potential reversals
Identify when price movements lack volume support
Time entries based on divergence resolution
Trend Confirmation:
Use CDV direction to confirm price trend validity
Moving averages on CDV provide additional trend context
Volume momentum changes often precede price momentum shifts
Display Options & Settings
Visual Modes:
Candlestick: Full OHLC representation of cumulative delta
Line: Simplified cumulative line display
Moving Averages:
Optional SMA overlays (default: 50, 200 periods)
Optional EMA overlays (default: 50, 200 periods)
Customizable periods and colors
Signal Controls:
Toggle buy/sell signals on/off independently
Customizable colors for all visual elements
Adjustable transparency and styling options
Usage Guidelines & Limitations
Best Practices:
Most effective on timeframes 15m and higher due to volume data quality
Works best in liquid markets with consistent volume
Should be used alongside price action analysis and support/resistance levels
Signals are more reliable during trending market conditions
Technical Limitations:
Uses approximation methods due to lack of tick-by-tick data in Pine Script
Volume distribution estimates may be less accurate during gaps or low-volume periods
Effectiveness depends on quality of volume data from your broker/exchange
Market Context Considerations:
Less reliable during market holidays or extremely low volume sessions
News events and earnings can cause volume anomalies that affect calculations
Consider market microstructure when interpreting signals on very short timeframes
Important Disclaimers
Educational Purpose: This indicator is designed for educational and analysis purposes. It does not constitute financial or investment advice.
Risk Warning: All trading involves risk of loss. Past performance of any indicator signals does not guarantee future results.
Testing Required: Users should thoroughly backtest and forward test this indicator before using it in live trading. Paper trading is recommended to understand signal behavior.
No Guarantees: The developer makes no claims about profitability or accuracy. Market conditions change and historical effectiveness may not continue.
Proper Usage: This is a technical analysis tool, not a complete trading system. Always use appropriate risk management, position sizing, and combine with other forms of analysis.
Developer: Delta Merge Professional Trading Applications
Access Instructions: Send a private message through TradingView explaining your trading experience and how you plan to use this indicator. Access is provided to traders who demonstrate understanding of volume analysis concepts and proper risk management practices.
EMA/SMA Shading IndicatorEMA / SMA Shading Indicator
This tool plots three moving averages and uses colored shading to visually highlight shifts in momentum:
-Green shading (EMA4 > SMA20) indicates bullish momentum.
-Red shading (EMA4 < SMA20) shows bearish pressure.
-Teal shading (EMA4 > EMA20) suggests strong short-term momentum.
-Maroon shading (EMA4 < EMA20) signals weakness.
🔍 How to Use:
Trade in the direction of the shading.
Watch for color changes as early momentum shift signals.
Combine with price action or volume for confirmation.
Works on all timeframes and asset types. Designed for trend-following and momentum-based strategies.
Mis Tres EMAs PersonalizablesIndicador personalizable con 3 EMA´s. Inicialmente configurado para periodos de 8, 20 y 200.
DP_MoneyFlow_Osc_V4**DP_Moneyflow_Osc_V4** is a custom, volume‐weighted momentum oscillator built around the classic Money Flow Index (MFI), with a few twists to help you spot more reliable reversal points:
***Best way to use it is to take the signals as alert points, to understand when money is starting to flow in or starting to flow out. It is not intended to be a Buy or Sell signal at the point of entry where the label is printed.***
1. **Core Calculation**
* Computes the standard MFI on your chart’s native timeframe:
* Money Flow = typical price (H+L+C)/3 × volume
* Segregates positive vs. negative flow based on whether price rose or fell on each bar
* Smooths each with an N-bar SMA, forms the ratio, and maps it into a 0–100 scale
2. **Inversion & Smoothing**
* You can **invert** the oscillator around 50 (so peaks become troughs and vice versa) with the **Reverse MFI** toggle.
* Applies two layers of smoothing (one for raw noise reduction, another for longer-term trend stability).
3. **Dynamic Coloring**
* Above Overbought (OB) threshold → solid red; below Oversold (OS) → solid green.
* In between, it linearly fades from red/green toward black as it approaches the 50 midpoint.
* **Invert Colors** flips the hue logic (red ↔ green) if you prefer.
4. **Overbought/Oversold Zones**
* Plots horizontal lines at your chosen OB/OS levels.
* Optionally fills the zone between them for quick visual reference.
5. **Peak/Trough Signal Labels**
* Detects **true extremes** by finding when the oscillator reverses direction right at or beyond your OB/OS levels.
* Prints a tiny “OB” or “OS” label **exactly at that pivot bar**, so you see the high or low of the swing.
6. **Alternation Toggle**
* Prevents two consecutive “OS” or “OB” labels by enforcing strict Buy/Sell alternation—turn this on or off via **Enable Signal Alternation**.
---
**Use-Case**: This oscillator excels at pinpointing the *tops* and *bottoms* of strong volume‐backed moves, giving you clear pivot markers rather than every threshold crossover. Tweak the smoothing and threshold inputs to calibrate sensitivity to your market and timeframe.
Contrarian 100 MAPairs nicely with Enhanced-Stock-Ticker-with-50MA-vs-200MA located here:
Description
The Contrarian 100 MA is a sophisticated Pine Script v6 indicator designed for traders seeking to identify key market structure shifts and trend reversals using a combination of a 100-period Simple Moving Average (SMA) envelope and Inner Circle Trader (ICT) Break of Structure (BoS) and Market Structure Shift (MSS) logic. By overlaying a semi-transparent SMA-based shadow on the price chart and plotting bullish and bearish structure signals, this indicator helps traders visualize critical price levels and potential trend changes. It leverages higher timeframe (HTF) pivot points and dynamic logic to adapt to various chart timeframes, making it ideal for swing and contrarian trading strategies. Customizable colors, timeframes, and alert conditions enhance its versatility for manual and automated trading setups.
Key Features
SMA Envelope: Plots a 100-period SMA for high and low prices, creating a semi-transparent (50% opacity) purple shadow to highlight the price range and provide context for price movements.
ICT BoS/MSS Logic: Identifies Break of Structure (BoS) and Market Structure Shift (MSS) signals for both bullish and bearish conditions, based on HTF pivot points.
Dynamic Timeframe Support: Adjusts pivot detection based on user-selected HTF (default: 1D) and chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D), ensuring adaptability across markets.
Visual Signals: Draws dotted lines for BoS (bullish/bearish) and MSS (bullish/bearish) signals at pivot levels, with customizable colors for easy identification.
Contrarian Approach: Signals potential reversals by combining SMA context with ICT structure breaks, ideal for traders looking to capitalize on trend shifts.
Alert Conditions: Supports alerts for bullish/bearish BoS and MSS signals, enabling integration with TradingView’s alert system for automated trading.
Performance Optimization: Uses efficient pivot detection and line management to minimize resource usage while maintaining accuracy.
Technical Details
SMA Calculation:
Computes 100-period SMAs for high (smaHigh) and low (smaLow) prices.
Plots invisible SMAs (fully transparent) and fills the area between them with 50% transparent purple for visual context.
Pivot Detection:
Uses ta.pivothigh and ta.pivotlow to identify HTF swing points, with dynamic lookback periods (rlBars: 5 for daily, 2 for intraday).
Tracks pivot highs (pH, nPh) and lows (pL, nPl) using a custom piv type for price and time.
BoS/MSS Logic:
Bullish BoS: Triggered when price breaks above a pivot high in a bullish trend, drawing a line at the pivot level.
Bearish BoS: Triggered when price breaks below a pivot low in a bearish trend.
Bullish MSS: Occurs when price breaks a pivot high in a bearish trend, signaling a potential trend reversal.
Bearish MSS: Occurs when price breaks a pivot low in a bullish trend.
Lines are drawn using line.new with xloc.bar_time for precise alignment, styled as dotted with customizable colors.
HTF Integration: Fetches HTF close prices and pivot data using request.security with lookahead_on for accurate signal timing.
Line Management: Maintains an array of lines (lin), removing outdated lines when new MSS signals occur to keep the chart clean.
Pivot Reset: Clears broken pivots (e.g., when price exceeds a pivot high or falls below a pivot low) to ensure fresh signal generation.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
SMA Length: Adjust the SMA period (default: 100 bars) to suit your trading style.
Structure Timeframe: Set the HTF for pivot detection (default: 1D).
Chart Timeframe: Select the chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) to adjust pivot sensitivity.
Colors: Customize bullish/bearish BoS and MSS line colors via input settings.
Interpret Signals:
Bullish BoS: White dotted line (default) at a broken pivot high in a bullish trend, indicating trend continuation.
Bearish BoS: White dotted line at a broken pivot low in a bearish trend.
Bullish MSS: White dotted line at a broken pivot high in a bearish trend, suggesting a reversal to bullish.
Bearish MSS: White dotted line at a broken pivot low in a bullish trend, suggesting a reversal to bearish.
Use the SMA shadow to gauge price position within the recent range.
Set Alerts:
Create alerts for bullish/bearish BoS and MSS signals using TradingView’s alert system.
Customize Visuals:
Adjust line colors or SMA fill transparency via TradingView’s settings for better visibility.
Example Use Cases
Swing Trading: Use MSS signals to enter trades at potential trend reversals, with the SMA envelope confirming price extremes.
Contrarian Trading: Capitalize on BoS and MSS signals to trade against prevailing trends, using the SMA shadow for context.
Automated Trading: Integrate BoS/MSS alerts with trading bots for systematic entries and exits.
Multi-Timeframe Analysis: Combine HTF signals (e.g., 1D) with lower timeframe charts (e.g., 1H) for precise entries.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate performance.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 19, 2025.
Limitations: Signals rely on HTF pivot accuracy, which may lag in fast-moving markets. Adjust rlBars or timeframe for sensitivity.
Optional Enhancements: Consider uncommenting or adding a histogram for SMA divergence (e.g., smaHigh - smaLow) for additional insights.
Acknowledgments
This indicator combines ICT’s market structure concepts with a dynamic SMA envelope to provide a unique contrarian trading tool. Share your feedback or suggestions in the TradingView comments, and happy trading!
Modified Fractal Open/CloseModified Fractal (Open/Close Based) - Indicator
The Modified Fractal (Open/Close Based) indicator offers a new way to detect fractal patterns on your chart by analyzing the open and close prices instead of the traditional high and low values.
🧮 How it works:
The indicator evaluates a group of 5 consecutive candles.
The central candle (2 bars ago) is analyzed.
For a Bullish Fractal:
The open or close of the central candle must be lower than the open and close of the other 4 surrounding candles.
For a Bearish Fractal:
The open or close of the central candle must be higher than the open and close of the other 4 surrounding candles.
Once a valid pattern is detected, a visual symbol (triangle) is plotted directly on the chart and an alert can be triggered.
✅ Key Features:
Non-repainting signals (evaluated after candle close)
Fully mechanical detection logic
Easy-to-use visual signals
Alert conditions ready to be integrated into TradingView’s alert system
Suitable for multiple timeframes (can be used from M1 to Daily and beyond)
🎯 Use case:
This modified fractal approach can help traders:
Spot potential swing points
Identify possible reversals
Confirm price exhaustion zones
Support breakout or mean reversion strategies
⚠ Note:
This indicator does not provide trade signals by itself. It is recommended to be combined with additional tools, price action analysis, or risk management rules.
CandelaCharts - 1st Presented FVG 📝 Overview
The ICT 1st Presented Fair Value Gap refers to the first FVG that forms after the market opens at 9:30 AM New York local time. In a sideways market, it often acts as a catalyst for price movement in either direction, while in trending conditions, it tends to support and reinforce the prevailing trend.
This indicator automatically identifies the first Fair Value Gap (FVG) that forms after the New York session opens at 9:30 AM local time. Based on concepts taught by Inner Circle Trader (ICT), the 1st Presented FVG is a key institutional price imbalance that often sets the tone for the trading day.
📦 Features
Customize FVG session time (e.g. 09:30 – 10:00)
Show/hide session dividers
FVG visibility filter (e.g. Bullish / Bearish)
Advanced styling
Hide overlapping FVGs
Extend FVGs
Opening prices
⚙️ Settings
Show: Controls whether all, bullish only, or bearish only FVGs are displayed on the chart.
Session: Sets a specific time window (e.g. 09:30–10:00) to filter which FVGs are displayed.
Dividers: Toggles vertical session divider on the chart for visual separation.
Midline: Displays a midpoint (CE) line through the FVG; customizable color and thickness.
Border: Adds a border around each FVG zone.
Labels: Toggles label display for FVGs.
Hide Overlap: Hides overlapping FVGs to reduce visual clutter.
Extend: Extends each FVG forward in time.
Alerts: Enables alerts when price interacts with an FVG zone.
Opening Prices: Allows defining custom time-based levels (e.g. 00:00–00:01 and 18:00–18:01) with color and style options.
⚡️ Showcase
Simple
Labels
Bordered
Consequent Encroachment
Extended
Dividers
📒 Usage
How to Use the ICT 1st Presented Fair Value Gap in Trading
To apply the ICT 1st Presented Fair Value Gap (FVG), identify the first fair value gap of the day and extend it across the chart until 3:45 PM New York time.
You’ll often notice that some of the best trade setups form around this level. It tends to act as a key reference point for price action during the day—especially on trending days, where price frequently returns to this gap before continuing in its direction.
This level can also serve as an inverse fair value gap, offering opportunities in the opposite direction under the right conditions.
How to Disqualify the 1st Presented Fair Value Gap?
When the first fair value gap forms after 9:30 AM New York time, check the candles that came just before it.
If the candlestick that creates the FVG doesn’t break above or below the range of those previous candles, then it’s not a true inefficiency. In that case, it’s considered a disqualified 1st Presented Fair Value Gap—meaning it shouldn’t be used as a key reference level.
Refer to the example below to see what this looks like on the chart.
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the bearish 1st P.FVG is formed in interval 09:30 - 10:00.
Bullish Signal
A bullish signal is triggered when the bullish 1st P.FVG is formed in interval 09:30 - 10:00.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.