Photon Price Action Scanner [JOAT]Photon Price Action Scanner - Multi-Pattern Recognition with Adaptive Filtering
Introduction and Purpose
Photon Price Action Scanner is an open-source overlay indicator that automates the detection of 15+ candlestick patterns while filtering them through multiple confirmation layers. The core problem this indicator solves is pattern noise: raw candlestick pattern detection produces too many signals, most of which fail because they lack context. This indicator addresses that by combining pattern recognition with trend alignment, volume-weighted strength scoring, velocity confirmation, and an adaptive neural bias filter.
The combination of these components is not arbitrary. Each filter addresses a specific weakness in standalone pattern detection:
Trend alignment ensures patterns appear in favorable market structure
Volume-weighted strength filters out weak patterns with low conviction
Velocity confirmation identifies momentum behind the pattern
Neural bias filter adapts to recent price behavior to avoid counter-trend signals
What Makes This Indicator Original
While candlestick pattern scanners exist, this indicator's originality comes from:
1. Multi-Layer Filtering System - Patterns must pass through trend, strength, velocity, and neural bias filters before generating signals. This dramatically reduces false positives compared to simple pattern detection.
2. Adaptive Neural Bias Filter - A custom momentum-adjusted EMA that learns from recent price action using a configurable learning rate. This is not a standard moving average but an adaptive filter that accelerates during trends and smooths during consolidation.
3. Pattern Strength Scoring - Each pattern receives a strength score based on volume ratio and body size, allowing traders to focus on high-conviction setups rather than every pattern occurrence.
4. Smart Cooldown System - Prevents signal overlap by enforcing minimum bar spacing between pattern labels, keeping charts clean even when "Show All Patterns" is enabled.
How the Components Work Together
Step 1: Pattern Detection
The indicator scans for 15 candlestick patterns using precise mathematical definitions:
// Example: Bullish Engulfing requires the current bullish candle to completely
// engulf the previous bearish candle with a larger body
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
// Example: Three White Soldiers requires three consecutive bullish candles
// with each opening within the previous body and closing higher
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Step 2: Strength Calculation
Each detected pattern receives a strength score combining volume and body size:
float volRatio = avgVolume > 0 ? volume / avgVolume : 1.0
float bodySize = math.abs(close - open) / close
float baseStrength = (volRatio + bodySize * 100) / 2
This ensures patterns with above-average volume and large bodies score higher than weak patterns on low volume.
Step 3: Trend Alignment
Patterns are checked against the trend direction using an EMA:
float trendEMA = ta.ema(close, i_trendPeriod)
int trendDir = close > trendEMA ? 1 : close < trendEMA ? -1 : 0
Bullish patterns in uptrends and bearish patterns in downtrends receive priority.
Step 4: Neural Bias Filter
The adaptive filter uses a momentum-adjusted EMA that responds to price changes:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
if na(neuralValue)
neuralValue := src
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
The learning rate (lr) controls how quickly the filter adapts. Higher values make it more responsive; lower values make it smoother.
Step 5: Velocity Confirmation
Price velocity (rate of change) must exceed the average velocity for strong signals:
float velocity = ta.roc(close, i_trendPeriod)
float avgVelocity = ta.sma(velocity, i_trendPeriod)
bool velocityBull = velocity > avgVelocity * 1.5
Step 6: Signal Classification
Signals are classified based on how many filters they pass:
Strong Pattern : Pattern + strength threshold + trend alignment + neural bias + velocity
Ultra Pattern : Strong pattern + gap in same direction + velocity confirmation
Watch Pattern : Pattern detected but not all filters passed
Detected Patterns
Classic Reversal Patterns:
Bullish/Bearish Engulfing - Complete body engulfment with larger body
Hammer - Long lower wick (2x body), small upper wick, bullish context
Shooting Star - Long upper wick (2x body), small lower wick, bearish context
Morning Star - Three-bar bullish reversal with small middle body
Evening Star - Three-bar bearish reversal with small middle body
Piercing Line - Bullish candle closing above midpoint of previous bearish candle
Dark Cloud Cover - Bearish candle closing below midpoint of previous bullish candle
Bullish/Bearish Harami - Small body contained within previous larger body
Doji - Body less than 10% of total range (indecision)
Advanced Patterns (Optional):
Three White Soldiers - Three consecutive bullish candles with rising closes
Three Black Crows - Three consecutive bearish candles with falling closes
Tweezer Top - Equal highs with reversal candle structure
Tweezer Bottom - Equal lows with reversal candle structure
Island Reversal - Gap isolation creating reversal structure
Dashboard Information
The dashboard displays real-time analysis:
Pattern - Current detected pattern name or "SCANNING..."
Bull/Bear Strength - Volume-weighted strength scores
Trend - UPTREND, DOWNTREND, or SIDEWAYS based on EMA
RSI - 14-period RSI for momentum context
Momentum - 10-period momentum reading
Volatility - ATR as percentage of price
Neural Bias - BULLISH, BEARISH, or NEUTRAL from adaptive filter
Action - ULTRA BUY/SELL, BUY/SELL, WATCH BUY/SELL, or WAIT
Visual Elements
Pattern Labels - Abbreviated codes (BE=Engulfing, H=Hammer, MS=Morning Star, etc.)
Neural Bias Line - Adaptive trend line showing filter direction
Gap Boxes - Cyan boxes highlighting price gaps
Action Zones - Dashed boxes around strong pattern areas
Velocity Markers - Small circles when velocity confirms direction
Ultra Signals - Large labels for highest conviction setups
How to Use This Indicator
For Reversal Trading:
1. Wait for a pattern to appear at a key support/resistance level
2. Check that the Action shows "BUY" or "SELL" (not just "WATCH")
3. Confirm the Neural Bias aligns with your trade direction
4. Use the strength score to gauge conviction (higher is better)
For Trend Continuation:
1. Identify the trend using the Trend row in the dashboard
2. Look for patterns that align with the trend (bullish patterns in uptrends)
3. Ultra signals indicate the strongest continuation setups
For Filtering Noise:
1. Keep "Show All Patterns" disabled to see only filtered signals
2. Increase "Pattern Strength Filter" to see fewer, higher-quality patterns
3. Enable "Velocity Confirmation" to require momentum behind patterns
Input Parameters
Scan Sensitivity (1.0) - Overall detection sensitivity multiplier
Pattern Strength Filter (3) - Minimum strength score for strong signals
Trend Period (20) - EMA period for trend determination
Show All Patterns (false) - Display all patterns regardless of filters
Advanced Patterns (true) - Enable soldiers/crows/tweezer detection
Gap Analysis (true) - Enable gap detection and boxes
Velocity Confirmation (true) - Require velocity for strong signals
Neural Bias Filter (true) - Enable adaptive trend filter
Neural Period (50) - Lookback for neural bias calculation
Neural Learning Rate (0.12) - Adaptation speed (0.01-0.5)
Timeframe Recommendations
1H-4H: Best balance of signal frequency and reliability
Daily: Fewer but more significant patterns
15m-30m: More signals, requires tighter filtering (increase strength threshold)
Limitations
Pattern detection is mechanical and does not consider fundamental context
Neural bias filter may lag during rapid trend reversals
Gap detection requires clean price data without after-hours gaps
Strength scoring favors high-volume patterns, which may miss valid low-volume setups
- Made with passion by officialjackofalltrades
Penunjuk dan strategi
Trend lines & Pressure Zone Overview
This indicator intelligently identifies and plots dynamic support and resistance zones based on swing pivots and price action validation. It combines trend analysis with pressure zone detection to highlight key areas where price is likely to react.
Key Features
1.Smart Zone Detection
Automatically identifies the strongest resistance and support levels
Requires multiple price touches for validation (configurable)
Plots only the 2 most relevant trendlines to keep charts clean
Dynamic channel zones show the area of influence around each trendline
2.Dual Analysis Method
Uses swing pivot detection to find turning points
Validates zones through touch counting with price margin tolerance
Combines aspects of trendline analysis and pressure zone theory
Adapts to different timeframes and instruments
3.Contact Detection & Alerts
Visual circle markers when price contacts zones
Arrow indicators for zone interactions
Alert conditions for zone creation, breaks, and contacts
Customizable visual feedback
4.Flexible Configuration
Adjustable swing length for pivot detection
Configurable price margin tolerance
Minimum touch requirements prevent false signals
Optional line extension with custom length
Peak reset interval to refresh zones periodically
How It Works
Resistance Zones:
Identifies swing high pivots
Tracks the highest peak within the reset interval
When price drops below the peak, draws a downward trendline
Validates the zone by counting touches within the price margin
Only displays the zone after minimum touches are confirmed
Support Zones:
Identifies swing low pivots
Tracks the lowest trough within the reset interval
When price rises above the trough, draws an upward trendline
Validates the zone by counting touches within the price margin
Only displays the zone after minimum touches are confirmed
Zone Channels:
Each trendline includes a parallel channel showing the pressure zone width, making it easier to identify when price is interacting with the zone.
Pivot Detection:
Swing Length (default: 5) - Bars on each side to confirm pivot points
Peak Reset Interval (default: 100) - Bars before resetting tracked peak/trough
Zone Settings:
Price Margin % (default: 0.1%) - Tolerance for touch validation
Minimum Touches (default: 3) - Required touches before drawing zone
Channel Width % (default: 0.5%) - Visual width of pressure zone
Extension:
Extend Lines (default: off) - Project lines into the future
Extension Length (default: 50) - Bars to extend when enabled
Visual Styling:
Separate color/width controls for resistance and support
Customizable fill transparency for channels, Toggle contact arrows and circles
Trading Applications
Entry Signals:
Buy when price contacts support zone with confirmation
Sell when price contacts resistance zone with confirmation, Look for zone breaks as momentum signals
Stop Loss Placement:
Place stops beyond the opposite zone, Use channel width to gauge volatility
Target Setting:
Opposite zone acts as first profit target, Zone breaks signal potential trend continuation
Confluence:
Works well with volume analysis,Combine with RSI/MACD for confirmation,
Use multiple timeframes for stronger signals
Best Practices
✅ DO:
Adjust swing length based on timeframe (lower for intraday, higher for daily+)
Reduce minimum touches (2-3) for volatile markets
Increase price margin for choppy conditions
Wait for candle close confirmation on zone breaks
❌ DON'T:
Trade zones in isolation without other confirmation
Use overly tight parameters that generate false signals
Ignore the broader trend context
Chase price after zone breaks without pullback
Tips for Optimization
Scalping (1-5 min): Swing Length: 3-5, Min Touches: 2
Day Trading (15-60 min): Swing Length: 5-10, Min Touches: 3
Swing Trading (4H-Daily): Swing Length: 10-20, Min Touches: 3-4
Position Trading (Daily-Weekly): Swing Length: 15-25, Min Touches: 4-5
Alert Conditions
Zone Contact: Price touches resistance or support zone
Set up notifications for real-time trading opportunities
Disclaimer: This indicator is for educational and informational purposes only. It should not be considered financial advice. Always perform your own analysis and risk management before trading.
Nifty50 Session Pivot + Fixed Open-Based BandsFixed width based Support resistance bands for Nifty 50 with pivot point.
[ElThibZ] - Futures Lot Size CalculatorI’m sharing a simple script to calculate position size for futures.
You only need to enter:
the risk in USD you’re willing to take
the stop-loss distance in ticks
The script will automatically calculate the correct position size (number of contracts) and display it in the table.
This tool is designed to avoid sizing mistakes, especially on futures where contract multipliers and tick values can easily lead to incorrect risk calculations.
I hope it will be as useful to you as it has been for me.
Market Structure MTF [HH/HL/LH/LL + CHoCH + BOS]Automatic market structure detection with pivot classification (HH/HL/LH/LL), Change of Character (CHoCH) and Break of Structure (BOS) signals. Multi-timeframe support allows overlaying higher timeframe structure on any chart.
█ OVERVIEW
This indicator automatically detects and classifies pivot points to visualize market structure. It identifies trend direction through the sequence of highs and lows, and signals potential reversals through Change of Character (CHoCH) and trend continuation through Break of Structure (BOS).
█ CONCEPTS
Market structure analysis is based on the relationship between consecutive pivot points:
Bullish Structure:
• HH (Higher High): A swing high that exceeds the previous swing high
• HL (Higher Low): A swing low that stays above the previous swing low
• Sequence: HH → HL → HH → HL confirms uptrend
Bearish Structure:
• LH (Lower High): A swing high that fails to exceed the previous swing high
• LL (Lower Low): A swing low that breaks below the previous swing low
• Sequence: LH → LL → LH → LL confirms downtrend
Structure Shifts:
• CHoCH (Change of Character): Signals when the expected sequence breaks, suggesting potential trend reversal
• BOS (Break of Structure): Confirms trend continuation when price breaks a pivot level in trend direction
█ FEATURES
• Automatic pivot detection using configurable lookback period
• Smart classification comparing each pivot to its predecessor
• CHoCH detection when trend sequence is violated
• BOS signals with anti-repetition filter to reduce noise in consolidation zones
• Multi-Timeframe (MTF) support to display higher timeframe structure
• Horizontal dashed lines marking HTF pivot levels
• Clean visual output with color-coded labels
█ SETTINGS
Structure Settings:
• Pivot Length: Number of bars on each side required to confirm a pivot (default: 5)
- Lower values (2-3) = more sensitive, detects minor swings
- Higher values (10-20) = less sensitive, only major structure
Multi-Timeframe:
• Show HTF Structure: Enable/disable higher timeframe overlay
• HTF Timeframe: Select the higher timeframe to display (D, W, M, etc.)
Visualization:
• Show Local Structure: Toggle visibility of current timeframe pivots
Filters:
• BOS Buffer: Minimum bars between BOS signals to avoid repetition
█ HOW TO USE
The indicator offers three visualization modes:
1. LOCAL STRUCTURE ONLY (default)
├─ Show Local Structure: ✓ Enabled
├─ Show HTF Structure: ✗ Disabled
└─ Use case: Analyze structure on the current timeframe only
2. HIGHER TIMEFRAME ONLY (recommended for clarity)
├─ Show Local Structure: ✗ Disabled
├─ Show HTF Structure: ✓ Enabled
├─ HTF Timeframe: Select desired TF (D, W, M)
└─ Use case: View higher TF context on lower TF charts without clutter
3. BOTH TIMEFRAMES (advanced)
├─ Show Local Structure: ✓ Enabled
├─ Show HTF Structure: ✓ Enabled
└─ Use case: See confluence between timeframes
⚠️ WARNING: This mode can make the chart visually crowded.
Recommended only for experienced users who need both layers simultaneously.
█ RECOMMENDED SETTINGS BY TIMEFRAME
| Chart TF | Pivot Length | Suggested HTF |
|----------|--------------|---------------|
| 1H | 10-15 | 4H or D |
| 4H | 5-10 | D or W |
| 1D | 5-7 | W |
| 1W | 3-5 | M |
The goal is to make pivots on lower timeframes represent equivalent time context.
█ VISUAL REFERENCE
Local Structure Labels:
• 🟩 Green (above): HH - Higher High
• 🟥 Red (above): LH - Lower High
• 🟩 Green (below): HL - Higher Low
• 🟥 Red (below): LL - Lower Low
• 🟧 Orange: CHoCH - Change of Character
• 🟦 Blue: BOS - Break of Structure
HTF Structure Labels:
• 🩵 Teal: HH/HL - Bullish HTF structure
• 🟫 Maroon: LH/LL - Bearish HTF structure
• 🟨 Yellow: CHoCH - HTF trend shift
• 🟦 Navy: BOS - HTF structure break
• ┈┈ Dashed lines mark HTF pivot price levels
█ INTERPRETATION GUIDELINES
Reading the sequence:
• Consistent HH + HL = Bullish bias, look for long opportunities
• Consistent LH + LL = Bearish bias, look for short opportunities
• CHoCH after trending sequence = Potential reversal, exercise caution
• BOS in trend direction = Trend continuation confirmed
Combining timeframes:
• HTF structure defines the primary bias
• Local structure provides entry timing
• Confluence (both TFs aligned) = Higher probability setups
█ LIMITATIONS
• Pivots are confirmed with a delay equal to the Pivot Length parameter
• In ranging markets, multiple CHoCH signals may appear (this is correct behavior - the market IS changing direction frequently)
• CHoCH signals potential reversal, not guaranteed reversal
• Works best on liquid markets with clean price action
█ TECHNICAL NOTES
• Uses ta.pivothigh() and ta.pivotlow() for pivot detection
• request.security() fetches higher timeframe data
• Anti-repetition logic prevents BOS signal clustering in consolidation
• All crossover/crossunder calculations are performed at global scope for consistency (Pine Script v6 compliance)
█ CREDITS
Developed for swing traders and position traders who use market structure for trend analysis and trade timing.
Feedback and suggestions are welcome.
Cantillon DashboardA dashboard based on my trading regime.
If you want you can use it as a scanner but subscribe to my daily trading newsletter and get my terminal regime here on TV.
Thanks a lot for supporting me.
Position and Leverage Size CalculatorThis script is assist you to see approximate position and leverage size while trading in prop firms.
Vishall High Accuracy - Price + VolumeKeeping 240 bars Average is fine. Average will be changed with each Time Frame, 240 bars of each time frame, 1 Hr time frame means, 1 hrs 240 volume bar average.
Just change timeframe:
5‑min / 15‑min → intraday options.
1‑hour → short swing options.
Daily → mid‑term investing.
Volume-Confirmed Trend Thrust IndicatorOVERVIEW
This indicator combines trend strength, momentum & volume analysis to generate high-conviction buy and sell signals. It is based on the "Volume Confirmation for a Trend System" (VCTS) by Buff Pelz Dormeier (TASC August 2024), which I have taken the liberty of 'buffing up' (heh!) by swapping out original VPCI component with the ATR-aware Net Accumulation Flow (NAF) indicator derived from Markos Katsanos' VPN indicator (TASC April 2021).
The result is a system that only triggers buy signals when three independent conditions align:
• A strong trend exists (ADX)
• Momentum is bullish (TTI)
• Institutional accumulation is detected (NAF)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPONENTS
█ ADX (Average Directional Index)
Measures trend strength regardless of direction. A reading above 30 indicates a strong trend worth trading. This filter prevents signals during choppy, sideways markets.
█ TTI (Trend Thrust Indicator)
Dormeier's volume-weighted MACD variant that provides momentum direction. Unlike standard MACD, TTI uses Volume-Weighted Moving Averages (VWMA) and applies a volume multiplier that amplifies signals when volume confirms price movement. When TTI crosses above its signal line, momentum is considered bullish.
█ NAF (Net Accumulation Flow)
The key enhancement - in my humble opinion - over the original VCTS. NAF classifies each bar's volume as:
• Accumulation: Price moved UP more than 10% of ATR
• Distribution: Price moved DOWN more than 10% of ATR
• Neutral: Price movement too small to be meaningful (filtered as noise)
NAF then calculates the net flow (Accumulation Volume - Distribution Volume) over a 30-bar lookback period, normalized and smoothed. This provides a cleaner read on whether institutions are accumulating or distributing.
Perceived benefits of NAF:
• ATR-based noise filtering eliminates false readings from small price movements
• Rolling 30-bar accumulation captures sustained institutional activity
• Empirically calibrated thresholds based on 717 stocks / 360,000 observations
• 3-period EMA smoothing reduces whipsaws
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL LOGIC
🟢 BUY SIGNAL
All three conditions must be true simultaneously:
1. ADX > 30 (strong trend)
2. TTI > Signal Line (bullish momentum)
3. NAF > 16 (accumulation)
Signals fire on the first bar where all conditions align, preventing repeated signals during sustained bullish periods.
🔴 SELL SIGNAL
Exit when volume flow turns negative:
• NAF < -9 (below neutral zone, indicating distribution).
This indicator retains Dormeier's asymmetric approach (strict entry, quick exit) to help protect profits when institutional support fades.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NAF THRESHOLD REFERENCE
Based on proprietary empirical calibration (717 stocks, 360K observations):
>= +35 │ Strong Accumulation (P95, ~5% of days)
>= +28 │ Solid Accumulation (P90, ~10% of days)
>= +16 │ Moderate Accumulation (P75) ← Default Buy Threshold
-9 to +16 │ Neutral Zone (~50% of days)
<= -9 │ Below Neutral ← Default Sell Threshold
<= -22 │ Solid Distribution (P10)
<= -29 │ Strong Distribution (P5)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
Setting for all 3 variables (ADX, TTI & NAF), alerts and visual conditional formatting are configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
USAGE TIPS
1. Works best on daily timeframe for swing trading
2. More effective on liquid stocks where volume data is meaningful
3. Consider using NAF threshold of 28 (P90) for higher conviction entries
5. Combine with price action analysis (support/resistance, RS, chart patterns)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MAXIMUM RESPECT:
• VCTS (ADX + TTI + VPCI): Buff Pelz Dormeier, "Volume Confirmation For A Trend System", Technical Analysis of Stocks & Commodities (TASC), August 2024. Pine Script adaptation: PineCoders.
• VPN / NAF: Markos Katsanos, Technical Analysis of Stocks & Commodities (TASC), April 2021. Pine Script adaptation: LevelUp/John Muchow.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always conduct your own analysis and consider your risk tolerance before making trading decisions. Use appropriate position sizing and stop-loss orders to manage risk.
BOS/CHoCH Impulsive Move Detector #12Updated exit logic to measure at candle close vs candle wicks. Added session PnL/hr and implemented a FAST identifier that tracks impulse moves >= 10% <=3 hrs.
Jake's Candle by Candle UpgradedJake's Candle by Candle Upgraded
The "Story of the Market" Automated
This is not just another signal indicator. Jake's Candle by Candle Upgraded is a complete institutional trading framework designed for high-precision scalping on the 1-minute and 5-minute timeframes.
Built strictly on the principles of Al Brooks Price Action and Smart Money Concepts (SMC), this tool automates the rigorous "Candle-by-Candle" analysis used by professional floor traders. It moves beyond simple pattern recognition to read the "Story" of the market—Context, Setup, and Pressure—before ever allowing a trade.
The Philosophy: Why This Tool Was Built
Most retail traders fail for two reasons:
Getting Trapped: They enter on the first sign of a reversal (H1/L1), which is often an institutional trap.
Trading Chop: They bleed capital during low-volume, sideways markets.
This tool solves both problems with an Algorithmic Discipline Engine. It does not guess. It waits for the specific "Second Leg" criteria used by institutions and physically disables itself during dangerous market conditions.
Key Features
1. The Context Dashboard (HUD)
A professional Heads-Up Display in the top-right corner keeps you focused on the macro picture while you scalp.
FLOW: Monitors the 20-period Institutional EMA. (Green = Bull Flow, Red = Bear Flow). You are prevented from trading against the dominant trend.
STATE: A built-in "Volatility Compressor." If it says "⚠️ CHOP / RANGE", the algorithm is disabled. It protects you from overtrading during lunch hours or low-volume zones.
SETUP: Live tracking of the Al Brooks leg count. It tells you exactly when the algorithm is "Waiting for Pullback" or "Searching for Entry."
2. Smart "Trap Avoidance" Logic (H2/L2)
This tool uses the "Gold Standard" of scalping setups: The High 2 (H2) and Low 2 (L2).
It ignores the first breakout attempt (Leg 1), acknowledging it as a potential trap.
It waits for the pullback and only signals on the Second Leg, statistically increasing the probability of a successful trend resumption.
3. Volatility-Adaptive Risk Management
Stop calculating pips in your head. The moment a signal is valid, the tool draws your business plan on the chart:
Stop Loss (Red Line): Automatically placed behind the "Signal Bar" (the candle that created the setup) based on strict price action rules.
Take Profit (Green Line): Automatically projected at a 1.5 Risk-to-Reward Ratio.
Smart Adaptation: The targets expand and contract based on real-time market volatility. If the market is quiet, targets are tighter. If explosive, targets are wider.
4. The "Snap Entry" Signal
The BUY and SELL badges are not lagging. They are programmed with "Stop Entry" logic—appearing the exact moment price breaks the structure of the Signal Bar, ensuring you enter on momentum, not hope.
How to Trade Strategy
Check the HUD: Ensure FLOW matches your direction and STATE says "✅ VOLATILE".
Wait for the Badge: Do not front-run the tool. Wait for the BUY or SELL badge to print.
Set Your Orders: Once the signal candle closes:
Place your Stop Loss at the Red Line.
Place your Take Profit at the Green Line.
Walk Away: The trade is now a probability event. Let the math play out.
Technical Specifications
Engine: Pine Script v6 (Strict Compliance).
Best Timeframes: 1m, 5m.
Best Assets: Indices (NQ, ES), Gold (XAUUSD), and high-volume Crypto (BTC, ETH).
Pro Volume Lite positionsThis is another update to the Positions indicator, which gives 3 SQ , so that you can have a dynamic sizing.
This way you will be able to scale in MB
NY Open Candle IndicatorThe NY Open Candle Indicator identifies significant opening range activity at the New York stock market open.
It highlights the 09:30–09:45 EST 15-minute candle when its range (high - low) exceeds a user-defined percentage of the daily ATR (default 25%).
- Bullish wide-range candles are colored green
- Bearish wide-range candles are colored red
A small table displays:
- Current Daily ATR
- The threshold value (user % of ATR in price terms)
An alert condition is included — create an alert for "Wide NY Open Range Detected" to get notified when a qualifying candle closes.
Perfect for traders watching opening range breakouts, volatility expansion, or momentum at the NY open.
Requirements:
- Use on 15-minute timeframe
- Set chart timezone to America/New_York
Enjoy!
ICT Entry V1 [TS_Indie]📌 Description – ICT Entry V1
This trading system is based on price action, combined with FVG, iFVG, and liquidity, and it uses the mechanism from the indicator “Smallest Swing ” to validate swings that become liquidity.
⚙️ Core Logic & Working Mechanism
I won’t explain FVG in detail, as most traders are already familiar with it.
Let’s focus on the mechanism of iFVG instead.
The concept of iFVG is based on a supply-to-demand flip and a demand-to-supply flip within an FVG zone.
For an iFVG to be confirmed, the candle close must break through the FVG.
A wick alone does not count as a valid iFVG confirmation.
The confirmation of market structure swings uses a pivot length mechanism combined with price action.
It validates a swing by detecting a structure break formed by candles making new highs or new lows.
📈 Buy Setup
1.Liquidity sweep on the demand side, with price closing above the liquidity level.
2.A demand zone is formed as FVG and iFVG, where iFVG is located above FVG.
3.The gap between the upper box of FVG and the lower box of iFVG must be within the defined Min and Max range.
4.Market Structure must be in a Bullish trend.
5.Place a Pending Order at the upper box of FVG and set Stop Loss at the lower box of FVG (Entry and Stop Loss can be adjusted using Entry Zone and ATR-based Stop Loss).
📉 Sell Setup
1.Liquidity sweep on the supply side, with price closing below the liquidity level.
2.A supply zone is formed as FVG and iFVG, where iFVG is located below FVG.
3.The gap between the lower box of FVG and the upper box of iFVG must be within the defined Min and Max range.
4.Market Structure must be in a Bearish trend.
5.Place a Pending Order at the lower box of FVG and set Stop Loss at the upper box of FVG (Entry and Stop Loss can be adjusted using Entry Zone and ATR-based Stop Loss).
⚙️ Liquidity Sweep Conditions
➯ When a liquidity sweep occurs on the demand side, the system will start looking for Buy Setup conditions.
➯ When a liquidity sweep occurs on the supply side, the system will immediately switch to looking for Sell Setup conditions.
➯ The system will always prioritize the most recent liquidity sweep and search for setups based on that direction.
➯ The liquidity sweep condition will be invalidated when price closes back below (for demand sweep) or above (for supply sweep) the most recently swept liquidity level.
⭐ Pending Order Cancellation Conditions
A Pending Order will be canceled under the following conditions:
1.A new Price Action signal appears on either the Buy or Sell side.
2.When Time Session is enabled, the Pending Order is canceled once price exits the selected session.
🕹 Order Management Rule
When there is an active open position, the indicator restricts the creation of new Pending Orders to prevent overlapping positions.
⚠️ Disclaimer
This indicator is designed for educational and research purposes only. It does not guarantee profits and should not be considered financial advice. Trading in financial markets involves significant risk, including the potential loss of capital.
🥂 Community Sharing
If you find parameter settings that work well or produce strong statistical results, feel free to share them with the community so we can improve and develop this indicator together.
Custom RSI with Multi-Level Colors
Custom RSI with Multi-Level Colors
buy signal when rsi < 35
rsi color does not change when rsi > 40
below 35, for every 5-point drop, color changes
AMT VWAP [hardi]█ OVERVIEW
AMT VWAP is a clean, minimalist VWAP indicator with Standard Deviation bands, designed to complement the Auction Market Theory (AMT) trading methodology by Fabio Valentino.
This indicator focuses on one thing and does it well: displaying VWAP and its deviation bands clearly on your chart.
█ FEATURES
- Daily VWAP with automatic reset
- ±1 Standard Deviation bands (cyan)
- ±2 Standard Deviation bands (orange) - extreme zones
- Clean labels that don't clutter your chart
- Info table showing current bias and zone
- Compact Mode for mobile/smartphone users
- Fully customizable colors and settings
- Built-in alerts for all levels
█ HOW TO USE
VWAP (Volume Weighted Average Price) represents the "fair value" where most volume has transacted. In AMT methodology:
BIAS DETERMINATION:
- Price ABOVE VWAP = Bullish bias (buyers in control)
- Price BELOW VWAP = Bearish bias (sellers in control)
TRADING ZONES:
- ±1 SD: Normal deviation zone - potential mean reversion area
- ±2 SD: Extreme zone - high probability reversal area (95%+ reversion rate)
ENTRY STRATEGIES:
1. Trend Following: Buy pullbacks to VWAP in uptrend, sell rallies to VWAP in downtrend
2. Mean Reversion: Fade moves at ±2 SD bands with confirmation
█ RECOMMENDED SETUP
Use this indicator together with:
- TradingView's built-in "SVP HD" (Session Volume Profile) for POC/VAH/VAL levels
- AMT CVD indicator (companion indicator) for order flow analysis
This combination gives you the complete AMT toolkit:
- SVP HD → Key levels (POC, VAH, VAL)
- AMT VWAP → Dynamic support/resistance & bias
- AMT CVD → Aggression, Absorption, Exhaustion signals
█ SETTINGS
Display Settings:
- Compact Mode - Enable for cleaner mobile view
- Show Labels - Toggle level labels
- Label Size - Adjust for your screen
VWAP Settings:
- Band Multipliers - Adjust SD band distance (default: 1.0 and 2.0)
- Colors - Fully customizable
- Line widths - Adjust visibility
Alerts:
- Near VWAP
- Near ±1 SD
- Near ±2 SD (extreme zones)
█ METHODOLOGY
This indicator is based on Auction Market Theory as taught by Fabio Valentino:
"The market is a continuous auction seeking fair value. VWAP represents this fair value dynamically throughout the session. Deviations from VWAP create trading opportunities as price tends to revert to the mean."
Key principles:
- Read, don't predict
- Location over technique
- Evidence-based entries
█ ALERTS
Set alerts for:
- Price approaching VWAP (potential support/resistance)
- Price at ±1 SD (first deviation - watch for reaction)
- Price at ±2 SD (extreme - high probability reversal zone)
█ NOTES
- Works on all timeframes
- Best used on 15m for intraday entries
- VWAP resets daily at market open
- Combine with volume profile for best results
█ CREDITS
Based on Auction Market Theory methodology by Fabio Valentino.
Indicator developed for the trading community.
If you find this useful, please leave a like! 👍
vwap, volume-weighted-average-price, standard-deviation, bands, auction-market-theory, amt, fabio-valentino, mean-reversion, trend-following, intraday, day-trading, support-resistance, fair-value
OTE Visualizer by AvenoirOTE Visualizer by Avenoir - Premium Fib-Based Structure Mapping
OTE Visualizer by Avenoir is a clean, modern market-structure indicator designed to automatically detect and visualize Optimal Trade Entry (OTE) zones using true ICT-style fib logic.
It identifies valid bullish and bearish impulse legs based on swing structure, then plots discount and premium retracement zones for high-probability entries.
This tool is built for precision, clarity, and algorithmic consistency.
🔶 Key Features
✔ Automatic OTE Zones (Bullish & Bearish)
Bullish OTE = deep discount zone from the prior swing low → swing high
Bearish OTE = deep premium zone from the prior swing high → swing low
Uses exact retracement levels: 62% – 79%, with optional 70.5% midline
✔ Active vs Old OTE Visualization
The most recent OTE is highlighted
Older OTE zones are automatically:
Faded, or
Completely hidden (optional toggle)
This keeps charts clean while maintaining structure awareness.
✔ Swing Structure Detection
Uses pivot-based swing identification
Tracks swing highs/lows and builds legs only when structure is valid
Optional labels for swing points
✔ Impulse Leg Lines
Draws the actual impulse leg used for OTE generation
Shows exactly which high/low produced the zone
Helps traders understand the logic behind each OTE
✔ BOS (Break of Structure) Detection
Marks BOS↑ when price closes above the previous swing high
Marks BOS↓ when price closes below the previous swing low
Useful confirmation for shift in market direction
✔ ATR-Based Impulse Filtering
Optional filter to ensure OTEs only form on significant moves:
Choose ATR length
Choose minimum impulse size (ATR multiples)
Removes noise and minor swings
Produces cleaner, more reliable OTE zones
✔ Fully Customizable Visuals
Choose any colors
Adjust opacity
Show/hide individual elements
Clean, minimalist aesthetic that blends beautifully into charts
🎯 Ideal For
ICT / Smart Money Concepts traders
Algo/systematic traders
Scalpers to swing traders
Anyone wanting clear structure-based OTE zones
Traders building automated or rule-based trading models
📌 How to Use
Identify trend direction
Wait for a bullish or bearish BOS
Watch for price to retrace into the active OTE zone
Combine with liquidity sweeps, displacement candles, FVGs, or other SMC/ICT techniques
Execute trades in premium/discount areas with strong context
✨ Final Notes
This indicator is built for precision and clarity.
It does not repaint and provides an objective, consistently structured view of OTE zones across any market or timeframe.
For traders who rely on execution models, structural mapping, and disciplined entries, this is your new foundation tool.
AJISH stochguppy 3 +BBthis is the best indicator for index .you need to use higher nad lower numeric values for identify the trend change,you can also use the BB for identify the trend
Today's Session High/Low + Previous LevelsThis indicator combines multiple powerful tools into one clean overlay:
Today’s Session High & Low for Asia, London and New York, automatically drawn only for the current trading day.
Previous High & Low levels based on configurable timeframes (hour, day, week, month or year), including optional filtering and area zones.
EMA Trend Table showing EMA20, EMA50 and EMA200 alignment across multiple timeframes with clear bullish/bearish status.
Designed to help traders quickly identify key intraday levels, higher-timeframe liquidity zones and overall market trend at a glance.
Stochastic RSI 1 MonthThis is the standard SRSI indicator set to 1 month so I can see have multiple timeframes on the same chart which helps with seeing momentum swings.
Smart Divergence [Reason Edition]Stop trading divergences "in thin air". Start trading structural confluence.
Most divergence indicators fail for one reason: they signal reversals based solely on oscillator math (RSI vs. Price), ignoring the chart's structure. This leads to costly entries against strong trends.
Smart Divergence solves this by applying an Institutional Context Filter. It does not simply alert you of a divergence; it validates the signal against key market structures ("Walls") and—crucially—tells you exactly why the signal appeared directly on the label.
🚀 How It Works: The "Smart Filter" Logic
This script operates on a strict rule: "No Structure, No Signal."
For a Bullish or Bearish divergence to be valid, price must not only diverge from RSI but also physically touch or react to one of four key structural levels:
BB (Bollinger Bands): Rejection due to volatility extension (2.0 StdDev).
KC (Keltner Channels): Rejection due to average range deviation (1.5 ATR).
Pivots (S1/R1): Rejection at standard daily algorithmic levels.
VWAP: Rejection at the institutional average price (Volume Weighted Average Price).
🏷️ Dynamic "Reason" Labels
This is the core feature of this edition. The label on your chart adapts dynamically to show the specific confluence behind the trade.
Examples you will see:
SMART BULL (BB) → The divergence is valid because price hit the Bollinger Band.
SMART BULL (VWAP) → The divergence is valid because price bounced off the VWAP.
SMART BULL (BB VWAP) → High Probability: Price hit the Bollinger Band AND the VWAP simultaneously.
The Logic: The more "Reasons" (acronyms) appear inside the label, the stronger the structural wall, and the higher the probability of a reversal.
🛠️ Settings & Features
🛡️ Smart Filter (Toggle):
ON (Default): Only shows high-quality signals that occur at Support/Resistance zones.
OFF: Shows all raw technical divergences (standard mode).
Alerts Included: Setup custom alerts for "Smart Bull" (Buys) and "Smart Bear" (Sells).
Zero Repainting: Signals are confirmed upon candle close/pivot confirmation.
📋 How to Trade It
Wait for the Label: Do not guess. Wait for the SMART label to appear.
Check the Reason: Look at the text in parenthesis (...).
Single reason (e.g., KC) is a valid setup.
Cluster reasons (e.g., BB S1 VWAP) represent a "Concrete Wall" and are ideal for aggressive entries.
Context: Works best on Intraday timeframes (1m, 5m, 15m) for scalping, and Daily timeframe for Swing Trading bottoms/tops.
Disclaimer: This tool is for educational purposes and technical analysis assistance. Past performance does not guarantee future results. Manage your risk.
Black-Scholes Gamma Scalping Strategy# Black-Scholes Gamma Scalping Strategy
## Overview
This strategy applies options market-making principles to spot/futures trading using the Black-Scholes pricing model. It simulates the behavior of a delta-hedged straddle position, generating buy and sell signals based on how a market maker would hedge their gamma exposure.
---
## The Concept: Gamma Scalping
Professional options traders who hold long straddles (long call + long put at the same strike) profit when the underlying moves significantly in either direction. Here's why:
- A straddle has **positive gamma**, meaning its delta increases as price rises and decreases as price falls
- To stay delta-neutral, traders must **buy after dips** and **sell after rallies**
- If **realized volatility > implied volatility**, the profits from these hedging trades exceed the daily theta (time decay) cost
This strategy captures that edge by:
1. Calculating theoretical Greeks using Black-Scholes
2. Monitoring when delta deviates from neutral
3. Trading to "hedge" back to neutral — buying weakness, selling strength
---
## Black-Scholes Greeks Calculated
| Greek | Symbol | What It Measures |
|-------|--------|------------------|
| Delta | Δ | Directional exposure |
| Gamma | Γ | Rate of delta change |
| Vega | ν | Sensitivity to volatility |
| Theta | Θ | Time decay per day |
All Greeks are calculated in real-time using the standard Black-Scholes formula with configurable inputs for strike, expiration, implied volatility, and risk-free rate.
---
## Entry Signals
**Long Entry** (buy the underlying):
- Price drops significantly (gamma scalp trigger), OR
- Straddle delta falls below the lower hedge band
- Volatility filter confirms favorable regime (HV > IV)
**Short Entry** (sell the underlying):
- Price rises significantly (gamma scalp trigger), OR
- Straddle delta rises above the upper hedge band
- Volatility filter confirms favorable regime
---
## Volatility Regime Filter
The strategy compares **Historical Volatility (HV)** to **Implied Volatility (IV)**:
- **HV/IV > 1.2** → Long volatility regime (gamma scalping profitable) → Trading enabled
- **HV/IV < 0.8** → Short volatility regime (theta wins) → Trading paused or reversed
- **Between** → Neutral, proceed with caution
This filter helps avoid trading when market conditions don't favor the strategy.
---
## Key Inputs
**Option Parameters:**
- Strike Offset % — Distance from ATM (0 = at-the-money)
- Days to Expiration — Synthetic option tenor (affects gamma magnitude)
- Implied Volatility — Your estimate of fair IV
- Risk-Free Rate — For BS calculation
**Trading Parameters:**
- Gamma Scalp Threshold — ATR multiple to trigger trades
- Delta Hedge Band % — How far delta must deviate to signal
- Volatility Regime Filter — Enable/disable HV/IV filter
**Risk Management:**
- Stop Loss / Take Profit (ATR multiples)
- Max Drawdown % — Pauses trading if exceeded
- Max Concurrent Positions
---
## How to Use
1. **Set Implied Volatility** to match current market IV (check options chain or VIX for reference)
2. **Adjust Days to Expiration** — Shorter = higher gamma, more signals; Longer = smoother
3. **Tune the Hedge Band** — Tighter bands = more trades; Wider = fewer, larger moves
4. **Enable Volatility Filter** for trend-following vol regimes, disable for pure mean-reversion
**Best suited for:**
- Range-bound or choppy markets
- High realized volatility environments
- Liquid instruments with tight spreads
**Avoid using when:**
- Strong directional trends (gamma scalping loses to delta)
- Volatility is collapsing
- Low liquidity / wide spreads
---
## Information Table
The on-chart table displays real-time:
- Current strike price
- Straddle Delta, Gamma, Vega, Theta
- Historical vs Implied Volatility
- HV/IV Ratio
- Current volatility regime
---
## Alerts
Built-in alert conditions for:
- Long entry signals
- Short entry signals
- Max drawdown protection triggered
---
## Disclaimer
This strategy is provided for **educational purposes only**. It demonstrates how Black-Scholes option pricing theory can be applied to generate trading signals.
- Past performance does not guarantee future results
- Backtest results may not reflect live trading conditions
- Always use proper position sizing and risk management
- Paper trade extensively before using real capital
**No financial advice is given or implied.**
---
## Credits
Based on the Black-Scholes-Merton option pricing model (1973) and gamma scalping techniques used by professional options market makers.
---
*If you find this useful, please leave a like or comment. Suggestions for improvements are welcome!*






















