First Candle Session Levels 1, 2, and 3. Please read the second paragraph, to literally find the power of 3 at each of those starting candles, (Time and space).
FIRST CANDLE SESSION LEVELS
This indicator automatically marks the high and low of the first candle from up to three customizable time periods and projects those levels forward as horizontal lines across your chart.
What It Does:
You specify a time (for example, 10:03 AM in your timezone), and the indicator captures the high and low of the first candle at that time. It then draws horizontal lines at those exact price levels that extend forward, showing you how price interacts with these levels for the rest of the day.
Why Use It:
The first candle at a specific time often sets important support and resistance levels. These levels frequently act as barriers where price bounces, breaks through for strong moves, or returns to test later. By marking these levels automatically, you can focus on trading rather than manually drawing lines.
Key Features:
Track 3 Different Times - Monitor three separate times simultaneously with independent settings for each
Adjustable Candle Count - Use just the first candle (default) or combine multiple candles (up to 60) to create a wider range
Full Customization - Each time period has its own color settings, line styles, and visual options so you can easily distinguish between them
Extends Forward - Lines project into the future so you can see when price approaches these key levels in real-time
Any Timezone - Set the timezone for each time period to match your local market or any global market
How Traders Use It:
Traders use these levels as reference points for entries and exits. Some watch for price to break above the high or below the low as signals for directional moves. Others use the high and low as boundaries for range trading. Many use these levels simply as decision points for managing their positions.
The indicator works on any timeframe and is effective on any liquid instrument where specific times are significant to your trading strategy.
Use the setting to place the first candle at these times.
1) 5:30 a.m. UK — Asia → London Transition
Purpose: Liquidity engineering
What it does:
Builds stop pools, runs Asian highs/lows, creates false breaks
Expect: Sharp probes, low follow-through
2) 8:00 a.m. UK — London Open
Purpose: Manipulation
What it does:
Expands range, traps early direction traders
Expect: Fake moves, wicks, reversals
3) 10:00 a.m. UK — True Daily Open (5:00 a.m. NY)
Purpose: Bias is revealed
What it does:
Algorithms switch to delivery, liquidity is sought with intent
Expect: Displacement, structure shift
4) 2:30 p.m. UK — NYSE Cash Open (9:30 a.m. NY)
Purpose: Volume injection
What it does:
Confirms, accelerates, or violently reverses the move
Expect: Fast candles, large ranges
5) 3:30–4:00 p.m. UK — NY Continuation / Rebalance
Purpose: Range completion
What it does:
Completes the day’s objective or rebalances positions
Expect: Continuation or profit-taking
One-line framework
Early times build liquidity → 10:00 reveals direction → 2:30 delivers power
Indicadores y estrategias
InfinityCandlePatternsLibrary "InfinityCandlePatterns"
isMorningStar(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isEveningStar(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isThreeWhiteSoldiers(o, h, c, atr)
Parameters:
o (float)
h (float)
c (float)
atr (float)
isThreeBlackCrows(o, l, c, atr)
Parameters:
o (float)
l (float)
c (float)
atr (float)
isBullishHarami(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isBearishHarami(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isBullishEngulfing(o, c)
Parameters:
o (float)
c (float)
isBearishEngulfing(o, c)
Parameters:
o (float)
c (float)
isThreeInsideUp(o, h, c, atr)
Parameters:
o (float)
h (float)
c (float)
atr (float)
isThreeInsideDown(o, l, c, atr)
Parameters:
o (float)
l (float)
c (float)
atr (float)
isTweezerBottom(o, l, c, atr)
Parameters:
o (float)
l (float)
c (float)
atr (float)
isTweezerTop(o, h, c, atr)
Parameters:
o (float)
h (float)
c (float)
atr (float)
isBullishKicker(o, c)
Parameters:
o (float)
c (float)
isBearishKicker(o, c)
Parameters:
o (float)
c (float)
isBullishBreakaway(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isBearishBreakaway(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isHammer(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isShootingStar(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isStandardDoji(o, c, atr)
Parameters:
o (float)
c (float)
atr (float)
isDragonflyDoji(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isGravestoneDoji(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isBullishMarubozu(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isBearishMarubozu(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
isSpinningTop(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
bullAny(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
bearAny(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
neutralAny(o, h, l, c, atr)
Parameters:
o (float)
h (float)
l (float)
c (float)
atr (float)
bullStrong(o, h, c, atr)
Parameters:
o (float)
h (float)
c (float)
atr (float)
bearStrong(o, l, c, atr)
Parameters:
o (float)
l (float)
c (float)
atr (float)
Magic Hour Range + Window Levels (0/50/75/100 + Extensions)This indicator plots one or more “Magic Hour” ranges (by ET hour) by drawing the hour’s high/low box, then extending an aligned post-hour analysis window for a set number of hours. Inside that window it overlays key reversion targets—0% (High), 50% (Mid), 100% (Low), optional 25%/75%—plus optional extension levels beyond the range (±25/50/75/100% and extras). All levels are clipped to the analysis window for a clean, session-by-session view of range, targets, and extensions.
Tao of Trading Moving Averages (MM)This is the Tao of Trading script with color shifts for Muffin Man's color needs.
ATR Stop LinesATR Stop Lines
Plots dynamic stop-loss levels on the price chart based on ATR (Average True Range). Optionally adjusts stop distance based on volatility regime.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Green line — Long stop (Close − ATR × multiplier)
Red line — Short stop (Close + ATR × multiplier)
Lines move with price and volatility. When regime-adjust is enabled, stop distance widens in high volatility and tightens in low volatility.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 REGIME-ADJUSTED MULTIPLIERS
When enabled, the multiplier auto-adjusts based on the ATR percentile:
LOW (< 25th pctl) — 1.0× ATR — Tight stops, small moves expected
NORMAL (25–50th pctl) — 1.5× ATR — Standard distance
HIGH (50–75th pctl) — 2.0× ATR — Wider to avoid noise
EXTREME (> 75th pctl) — 2.5× ATR — Widest, or skip the trade
Disable regime-adjust to use a fixed multiplier for all conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
Entry: Note stop line level when entering a trade. Set stop-loss at or beyond that level.
Trailing: Move stop to new line level as price advances in your favor.
Sizing: Wider stop = smaller position to maintain constant risk.
Example:
BTC Daily, ATR = \$2,000, Regime = HIGH (2.0×)
Entry: \$50,000 → Long stop: \$46,000 / Short stop: \$54,000
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 STATUS LABEL
VOL — Current regime (LOW / NORMAL / HIGH / EXTREME)
ATR — Raw ATR value in price units
Mult — Active multiplier
Stop Dist — Current stop distance in price units
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
ATR Settings:
ATR Length (default: 14)
Percentile Lookback (default: 100)
Timeframe:
Use Fixed Timeframe — Lock to specific TF
Fixed Timeframe (default: D)
Stop Settings:
Regime-Adjusted Multiplier — Toggle auto-adjust on/off
Base ATR Multiplier — Used when regime-adjust is off
LOW/NORMAL/HIGH/EXTREME Multipliers — Customize per regime
Display:
Show Long Stop / Show Short Stop
Show Status Label
Long/Short Stop Colors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
Vol → EXTREME
Vol → LOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 COMPANION INDICATOR
Use with ATR Volatility Regime (separate pane) for full context:
Pane indicator → percentile visualization, zone backgrounds
This indicator → actionable stop levels on price chart
Both use identical ATR/percentile logic and stay in sync.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
Works on any timeframe
Stops are dynamic — recalculate each bar
Not a signal generator — use with your own entry logic
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ TAGS
ATR, stop-loss, volatility, risk-management, position-sizing, trailing-stop, swing-trading
Timeframe Continuity BarsTimeframe Continuity Bars is a script that is extremely simple for good reason
So please, do not remove this post because it seems 'simple'
Now that's over with. Lets dive in to understand what timeframe continuity IS and what this indicator does.
Timeframe continuity is defined by 4 or more timeframes and it is the relationship of the last price traded to those 4 opening prices. Standard timeframe continuity would be using the M,W,D,60min timeframes.
The reason we use MTF analysis is because of the truth of what price is and how it works.
Price movement is SOLELY caused due to aggressive buying / selling. Some may attempt to refute this however at the end of the day. If the price is at 100.00 it is because a buyer is willing to buy there and a seller is willing to sell there. If those market participants did not want to buy or sell at 100.00 price would go up or down to meet the more aggressive participant.
So what does this look like you may ask...
If an aggressive buyer takes the offer we will see prices go up if they were willing to pay more than the last guy who took the offer.
So price may go from 100.00 to 100.01 because you decided to invest in that stock that day at that time with a market order
This same thing occurs when every other institution creates, adds, reduces, or exits a position. They have to buy or sell and they have to either do it aggressively or do it passively by sitting on the bid / ask and waiting.
So since this is true, we know that the relationship to the opening price is extremely important. This is because if price is above it's open that means buyers were willing to take the offer and buy at higher prices. If price is below it's open it means that sellers were willing to sell at the bid and they sold at lower prices.
So any candlestick chart is simply an aggregation of this aggressive buying/selling that is taking place at all times.
By using the timeframe continuity bars indicator we can measure the distance from the current open across 4 or more timeframes.
By doing this we can identify monthly participation groups, weekly participation groups, daily participation groups, and 60min participation groups.
When all those groups align green or red this is considered full timeframe continuity. Where the monthly weekly daily 60min groups are all taking the offer and buying, or all selling at the bid!
When this aligns this is when price is for CERTAIN going in one direction.
However, It is subject to change every 60 minutes as the 60min determines if those monthly weekly daily buyers are present RIGHT NOW.
So if the 60min changes we go into direct conflict against the month/week/day groups.
If we see the 60min and day align we go into direct conflict against the month/week
if the 60min day and week are red we over-take the monthly group for control. At the time of the week day and 60 being red we have ZERO evidence of the previous monthly buyer/seller that was present.
Now that you understand a little bit about continuity.. Check it out on the chart!
P.S Here is some tips
1) it is not about just all timeframes aligning, we want to see long green / red bars!
2) The opens reset on a cyclical basis. Each day, each week, each month... When the new timeframes open we will see timeframes have the SAME open. When the opens are the same price we have LESS evidence versus having all opens seperate.
3) Investors can use the Y Q M W as their 4 timeframes to see when institutional buying is occurring [go do a case study on AMEX:GLD and AMEX:SLV weekly timeframe with these settings]
4) You need to add 4 separate indicators and change the timeframes. It is ideal to then save this layout!
5) The best way to do price analysis is using #TheStrat across all 4 timeframes instead of one timeframe with this indicator. This is soley a tool we use to show changing of control between participation groups!
Wyckoff + VSA Pro [M.22]Wyckoff + VSA with side window and tooltips
Wyckoff appears as background colors (4 phases)
Only strong VSA signals in harmony with the phases
the side window has many signals
also put the mouse on the signals to see the side tooltip
Market Open, Premarket High, CloseSimple Indicator that places a line at the current day's premarket high, market open and close.
Reversal Detection v3.0 - Real-Time Pro (Non-Repainting)═══════════════════════════════════════════════════════
REVERSAL DETECTION PRO v3.0 - NON-REPAINTING
Adaptive Zigzag Reversal Detection for Scalpers & Day Traders
═══════════════════════════════════════════════════════
CHART EXAMPLE
The indicator is shown running on MNQ1! (Micro E-mini Nasdaq-100
futures) on a 2-minute chart. The indicator works on all symbols
and timeframes, but is optimized for futures scalping on 1-5
minute charts.
WHY I BUILT THIS
Most reversal indicators out there repaint like crazy, flipping
signals after the fact and making you second-guess every trade.
Plus they're too noisy in choppy markets or way too laggy in
trends, so I kept missing entries or getting faked out. I wanted
something solid that sticks to its guns without repainting and
adapts to volatility without me tweaking it every 5 minutes.
This indicator solves those problems by using an adaptive zigzag
algorithm that adjusts to market volatility automatically. Once a
reversal signal appears, it's locked in place - no repainting, no
disappearing signals. The ATR-based sensitivity system means it
works across different market conditions without constant adjustment.
WHAT YOU'LL SEE ON YOUR CHART
When you add this indicator, here's what shows up:
- GREEN LABELS with "REVERSAL" and price level = Bullish reversal
confirmed at swing low
- RED LABELS with "REVERSAL" and price level = Bearish reversal
confirmed at swing high
- HORIZONTAL LINES extending from each reversal = Reference for
stops and targets
- PREVIEW LABELS (lighter colors) = Potential reversals forming in
real-time (optional)
- CANDLE COLORS: Green for bullish trends, red for bearish, purple
for neutral
- PURPLE BOXES = Supply/demand zones marking reversal areas
- INFO TABLE (top corner) = Shows sensitivity, current ATR,
threshold, and trend status
The indicator uses three EMAs (9/14/21 periods) to determine trend
direction, which drives the candle coloring system. This helps you
see whether you're in a bullish, bearish, or choppy market at a
glance.
HOW IT WORKS
The core reversal detection uses a zigzag calculation that tracks
price swings and identifies reversals when price moves by a
dynamically calculated threshold. The reversal amount is determined
by taking the maximum of three values:
1. Percentage-based threshold (adjusts to instrument price level)
2. Absolute price movement threshold (minimum move required)
3. ATR-based threshold (adapts to current volatility)
This multi-factor approach ensures the indicator works consistently
across different assets and market conditions. The non-repainting
mechanism uses confirmed bar data - once a pivot is detected at a
swing high or low, the label and horizontal line are permanently
locked at that exact wick price.
Five sensitivity presets automatically adjust the ATR multiplier:
- Very High (0.8x ATR) = More signals, captures small moves
- High (1.2x ATR) = Active trading
- Medium (2.0x ATR) = Balanced (default)
- Low (2.8x ATR) = Filters noise
- Very Low (3.5x ATR) = Only major reversals
Advanced users can select "Custom" to manually tune ATR multiplier,
percentage threshold, and calculation method.
HOW I USE IT
I mainly trade /MNQ futures on 1-5 minute charts for scalping -
that's my bread and butter. The indicator works decent on other
stuff like stocks or forex too, but I dial sensitivity up for
faster scalps during volatile sessions.
My typical trade setup:
1. Wait for a confirmed REVERSAL label (green for long, red for
short)
2. Check that it lines up with the EMA trend color (bullish candles
for longs, bearish for shorts)
3. If it's a "strong" signal where the reversal hits during a trend
flip, that's my green light
4. Quick check for nearby supply/demand zones to avoid fighting
them
5. Enter with a tight stop below/above the reversal line
6. Target 1:1 or 2:1 risk/reward, usually out in 5-10 minutes
The horizontal lines from each reversal give me logical stop
placement levels, and the supply/demand zones help identify
potential profit targets or areas to avoid.
SETTINGS & CUSTOMIZATION
Signal Modes:
- Confirmed Only = Most reliable, only shows locked-in signals
(recommended)
- Confirmed + Preview = Shows both confirmed and potential signals
- Preview Only = For testing/development
Sensitivity Presets:
Start with "Medium" and adjust based on your trading style:
- Scalping volatile sessions = "High" or "Very High"
- Day trading = "Medium"
- Swing trading = "Low" or "Very Low"
Display Options:
- Choose candle display type (Solid, Trend, Bars, Volume, None)
- Show/hide supply/demand zones
- Adjust zone box extension length
- Customize info table position and size
- Control maximum lines displayed
Alert System:
- Bullish/Bearish reversal alerts
- EMA trend change alerts
- Strong signal alerts (reversal + trend alignment)
- "Any reversal" catch-all alert
IMPORTANT - READ THIS FIRST
Don't rely on this indicator alone. Always pair it with your own
price action or volume confirmation, because no indicator is
perfect. Avoid cranking sensitivity too high in ranging markets or
you'll get whipped. Test on demo first, and remember it's
non-repainting so signals are final, but preview mode can tease
you into early entries if you're not patient.
Risk management is key - don't size up just because a signal looks
good. This indicator helps identify potential reversals, but YOU
still need to manage your trades, set proper stops, and control
position size based on your account risk tolerance.
WHAT MAKES THIS DIFFERENT
Unlike simple pivot indicators or manual support/resistance drawing:
- Adapts automatically to volatility changes (ATR-based)
- Never repaints - signals lock in place permanently
- Reversal detection works with trend context (EMAs)
- Supply/demand zones mark key structural levels
- One-click sensitivity adjustment via presets
- Works across multiple timeframes and instruments
The zigzag reversal algorithm adapts to volatility using ATR, while
the EMA system provides trend context so you're not trading
reversals blindly against the trend. The supply/demand zones help
identify key levels where price has reversed before. It's built
specifically for active traders who need reliable, non-repainting
signals.
BEST PRACTICES
✅ DO:
- Start with "Medium" sensitivity on demo account
- Wait for confirmed signals before entering
- Use horizontal lines for stop placement
- Check trend context (candle colors) before trading reversals
- Combine with volume analysis or price action
- Test different sensitivity settings for your instrument
❌ DON'T:
- Trade every signal blindly without context
- Use "Very High" sensitivity in choppy/ranging markets
- Ignore the trend direction (candle colors)
- Enter on preview labels (they can disappear)
- Skip proper risk management
- Overtrade just because signals appear
TECHNICAL SPECIFICATIONS
- Pine Script Version: v6
- Non-Repainting: Yes (confirmed signals only)
- Uses security(): No (no higher timeframe data)
- Uses non-standard chart types: No (all calculations on real OHLC)
- Alert Compatible: Yes (7 alert types)
- Calculations: Current timeframe only, no lookahead bias
DISCLAIMER
This indicator is for educational purposes only and does not
constitute financial advice. Trading futures, stocks, and forex
involves substantial risk of loss and is not suitable for all
investors. Past performance is not indicative of future results.
Always use proper risk management, never risk more than you can
afford to lose, and test thoroughly on demo accounts before live
trading.
═══════════════════════════════════════════════════════
© 2025 NPR21 - Reversal Detection Pro v3.0
Built by a trader, for traders
═══════════════════════════════════════════════════════
ATR Volatility RegimeATR Volatility Regime
A volatility classification indicator that uses ATR (Average True Range) percentile ranking to identify LOW , NORMAL , HIGH , or EXTREME volatility conditions.
Displayed as a separate pane oscillator (0–100 scale) with colored zones.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 WHY THIS INDICATOR?
Most volatility indicators show raw ATR — a number without context. Is ATR = 50 high or low? Depends on the asset and recent history.
This indicator answers: "Is current volatility high or low for THIS asset, right now?"
What it adds over standard ATR:
Percentile context — Compares current ATR to its own history
Regime classification — Actionable labels instead of raw numbers
Visual zones — Instant read without interpretation
Optional MTF — Lock to a fixed timeframe while viewing another
Auto-adapts — Works on any asset without manual threshold tuning
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 CORE CONCEPTS
ATR (Average True Range)
Measures volatility in price units — how much an asset typically moves per bar. Directionless (magnitude only, not direction).
Calculation:
True Range = the greatest of:
High − Low (current bar's range)
|High − Previous Close| (gap up captured)
|Low − Previous Close| (gap down captured)
ATR = Moving average of True Range over N bars (default: 14)
Percentile Rank (Pctl)
Answers: "What percentage of historical values is the current value greater than?"
Pctl = 0% → Lowest ATR in lookback period (extreme compression)
Pctl = 50% → Median ATR (typical volatility)
Pctl = 100% → Highest ATR in lookback period (extreme expansion)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Classifies current volatility into four regimes:
LOW (< 25th percentile) — Compression, breakout likely brewing
NORMAL (25th–50th percentile) — Typical market conditions
HIGH (50th–75th percentile) — Elevated volatility, use caution
EXTREME (> 75th percentile) — Rare expansion, tighten stops or stay flat
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 DISPLAY COMPONENTS
Oscillator Line (0–100)
ATR percentile rank over time. Color matches regime:
Blue = LOW
Gray = NORMAL
Orange = HIGH
Red = EXTREME
Zone Backgrounds
Colored bands at threshold levels for instant visual reference.
Status Label
VOL — Current regime
ATR — Raw ATR value (for stop sizing)
Pctl — Percentile rank (0–100%)
TF — Active timeframe (chart or fixed)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
LOW Volatility (Pctl < 25%):
Market compressed — "calm before the storm"
Watch for breakout setups
Pctl = 0% often precedes significant moves
NORMAL Volatility (Pctl 25–50%):
Typical conditions
Standard position sizing and stops
HIGH Volatility (Pctl 50–75%):
Elevated movement — reduce size
Widen stops to avoid noise
EXTREME Volatility (Pctl > 75%):
Rare, intense conditions
Avoid new entries or tighten risk
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
ATR Settings:
ATR Length (default: 14) — Period for ATR calculation
Percentile Lookback (default: 100) — Bars for percentile ranking
Timeframe:
Use Fixed Timeframe (default: off) — Lock calculation to specific TF
Fixed Timeframe (default: D) — TF to use when fixed mode enabled
Thresholds:
Low Threshold (default: 25)
High Threshold (default: 50)
Extreme Threshold (default: 75)
Display:
Show Zone Background — Toggle colored fills
Show Status Label — Toggle info label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 SUGGESTED LOOKBACK BY ASSET
Crypto — 100 bars (fast regime shifts)
Stocks — 252 bars (one trading year)
Forex — 100–150 bars
Commodities — 150–200 bars (seasonal patterns)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
Vol → EXTREME
Vol → HIGH
Vol → LOW
Vol exits HIGH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRACTICAL APPLICATIONS
Stop-Loss Sizing:
Use raw ATR for stops. Example: Stop = Entry − (1.5 × ATR)
Position Sizing:
Reduce size when percentile is HIGH or EXTREME.
Entry Filtering:
LOW regime = prepare for breakout
EXTREME regime = avoid new entries
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
Works on any timeframe — adapts to chart or locks to fixed TF
ATR is non-directional — magnitude only
Percentile auto-adapts to each asset's volatility profile
Not a standalone signal — combine with trend/regime filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ TAGS
volatility, ATR, average-true-range, percentile, regime, risk-management, position-sizing, swing-trading, MTF
NQ ICT NY Session ChecklistNQ ICT NY Session Checklist
A manual, on-chart checklist indicator designed to enforce ICT execution rules during the New York session on Nasdaq (NQ). The script displays a step-by-step confirmation panel for higher-timeframe bias, liquidity identification, liquidity sweep, market structure shift, fair value gap entry, and risk/reward validation. It helps prevent early entries, FOMO, and overtrading by clearly indicating when all conditions are met and the trader is ready to execute.
1H Bias - Day Trade FilterThis indicator is intended for the use of two screens 15M and 5M. It will indicate with a green arrow at 8:30 AM central to look bullish or a red arrow at 8:30 AM central to look Bearish. This indicator is based on the 1H chart having price over the 200 MA and the 20 MA above the 50 MA.
Look for pullbacks on the 15M to key areas of support or resistance.
Look for a break of structure entries or pullback entries on the 5M chart.
Green Arrow = Look Bullish on this chart today.
Red Arrow = Look Bearish on this chart today.
X = Do not trade this chart today.
Multi-Indicator Trend-Following Strategy 1-minute Gold strategyTrend following using many indicators to provide accurate buy and sell signals on the 1-minute gold chart
HTB NY Session VWAP with Prev CloseVisual Distinction: The current VWAP is a bold pink line that moves with price, while the previous VWAP appears as a static, thin gray line, providing a clear "anchor" from yesterday's value.
Many institutional traders look for "Value Area" relationships. If today's price opens above the Previous Session VWAP, the market is considered "internally bullish." If it fails to hold that level and crosses below it, it often signals a "mean reversion" or a trend reversal.
Would you like me to add an alert that triggers specifically when the current price touches the Previous Session VWAP line?
Quant Stats: Alpha, Beta, R2Quant Stats Indicator for TradingView: Alpha, Beta, and R-Squared
Overview
The Quant Stats Indicator is a professional-grade Pine Script tool designed for quantitative traders and hedge fund managers who need real-time analysis of stock or ETF performance against a benchmark using three fundamental CAPM metrics: Beta, R-Squared, and Alpha.
This indicator calculates three critical measurements that answer every quant trader's core questions: How volatile is this asset relative to my benchmark? How much of its performance is independent of the benchmark? And how much excess return am I achieving after adjusting for risk?
The Three Metrics Explained
Beta (β) measures systematic risk and volatility relative to your chosen benchmark. A Beta of 1.0 means the asset moves in lockstep with the benchmark. A Beta above 1.0 indicates higher volatility—if the market rises 10%, a Beta-1.5 asset should rise 15%. Conversely, a Beta below 1.0 indicates lower volatility, making it a defensive position. This metric helps you understand how much market exposure you're truly taking.
R-Squared (R²) quantifies what percentage of an asset's price movement can be explained by benchmark movements. An R² of 0.95 means 95% of the asset's moves are driven by the benchmark, leaving only 5% unexplained. Conversely, an R² of 0.2 means 80% of the asset's movement is independent of the benchmark. This distinction is crucial: high R² is desirable for passive index tracking but indicates weak alpha potential; low R² reveals genuine independent returns, exactly what active managers seek.
Alpha (α) reveals Jensen's Alpha—the excess risk-adjusted return after accounting for the return you "should" earn given your Beta exposure. A positive Alpha of 15% means you're outperforming the market by 15 percentage points after adjusting for systematic risk. This is the holy grail of stock picking: pure skill-driven excess return, not luck from market exposure.
How to Use It
Configure four key inputs: your benchmark ticker (default SPY, but use QQQ for tech-focused analysis or sector-specific ETFs), the lookback period in days, and the risk-free rate reflecting current Treasury yields. The lookback period is critical. Use 20 days for tactical trading to capture short-term sentiment and beta spikes; use 63 days for swing trading and quarterly rebalancing; use 252 days for structural asset allocation decisions.
The indicator plots Beta as a blue line, R-Squared as a red shaded background area, and Alpha as a green line in a sub-panel. Reference gridlines appear at Beta = 1.0 (market-equivalent volatility) and Alpha = 0.0 (breakeven performance), making interpretation intuitive.
Practical Applications
For swing traders monitoring a 63-day window, seek positions with low Beta (below 0.8) and positive Alpha—these are defensive winners. Avoid high Beta (above 1.2) with low R² unless you specifically want high-volatility speculation. Long/short hedge funds should use a 20-day lookback to detect regime changes: sudden Beta spikes often precede correlation breakdowns, while R² collapses signal rising idiosyncratic risk requiring immediate rebalancing.
For ETF portfolio construction, high R² (above 0.95) indicates index-tracking that doesn't justify active management fees. Low R² (below 0.3) combined with positive Alpha reveals genuine active management skill. The sweet spot is moderate Beta (0.5–0.8) with low R² and positive Alpha—a true diversifier that reduces portfolio volatility while generating independent returns.
Critical Interpretation Rules
A common mistake is assuming high R² is always desirable. It isn't. Passive index funds naturally have high R²; active managers should target low R² with high Alpha. Similarly, don't assume Alpha above 10% is sustainable—short-term Alpha (20–100 days) is inherently volatile and often represents temporary mispricings rather than repeatable skill. Always pair Beta analysis with R² interpretation; Beta alone ignores idiosyncratic risk, liquidity constraints, and tail risk.
Configuration Recommendations
Conservative investors should use SPY as benchmark with a 252-day lookback, targeting Alpha above 3% and Beta below 0.8. Growth-oriented portfolios might use QQQ with a 63-day lookback, targeting 8–12% Alpha and tolerating Beta up to 1.3. Hedge funds pursuing market-neutral strategies should use SPY with a 20-day lookback, set the risk-free rate to 2% (anticipating rate cuts), and target 15%+ Alpha while maintaining Beta below 0.3.
Important Limitations
The indicator is backward-looking; historical statistical relationships may not persist. Shorter lookback periods are noisier but more responsive; longer periods smooth noise but lag regime changes. Choosing the wrong benchmark completely invalidates analysis. Finally, the indicator doesn't account for tail risk or extreme market events where correlations spike unpredictably and Beta becomes unreliable.
Use this tool to separate signal from noise and identify true alpha generators. Apply it consistently, validate results against official fund factsheets, and monitor for 2–4 weeks before making significant portfolio decisions.
Script Title: FX Exchange Simulator: Two Investors (Gain vs. LosDescriptionOverviewThis educational tool is designed to help traders and beginners understand the mechanics of currency exchange rates in the EUR/USD pair. It simulates two distinct investor scenarios based on the highest and lowest prices over a user-defined period (default: 100 bars).The Two ScenariosThe script compares how the direction of exchange and the timing of the trade impact final purchasing power:Investor 1 (Starting with USD - The Strategic Entry):At the Low: Converts $1,000 USD into EUR by dividing the amount by the exchange rate.At the High: Converts those EUR back into USD by multiplying.Result: Demonstrates how buying a currency when it is "cheap" (at the low) increases your total capital in dollars.Investor 2 (Starting with EUR - The Timing Error):At the Low: Panics and converts 1,000€ into USD by multiplying.At the High: Tries to recover the 1,000€ by dividing the USD back at a higher rate.Result: Demonstrates how selling a currency when it is "cheap" and buying it back when it is "expensive" leads to a significant loss of purchasing power.FeaturesDynamic Historical Analysis: Automatically finds the highest and lowest points within the selected lookback period.Step-by-Step Calculation Table: A clean, top-centered table showing the initial amount, the exchange process, the final total, and the ROI (Return on Investment) percentage.Visual Annotations: Labels on the chart pinpoint exactly where the "Minimum" and "Maximum" occurred to provide visual context for the trade simulation.Fully Customizable: Users can adjust the initial capital amount and the lookback period via the settings menu.Mathematics Behind the ScriptThe script uses the following formulas for the calculations:Profit Scenario (USD to EUR):$$\text{Total USD} = \left( \frac{\text{Initial USD}}{\text{Price}_{min}} \right) \times \text{Price}_{max}$$Loss Scenario (EUR to USD):$$\text{Total EUR} = \left( \text{Initial EUR} \times \text{Price}_{min} \right) / \text{Price}_{max}$$InstructionsAdd the script to your chart (best used on EUR/USD).Look at the labels to see where the period extremes are.Check the table at the top to see the financial outcome of both investors.Use the "Settings" to change the initial amount or the bar period to test different market cycles.DisclaimerThis script is for educational purposes only. It is intended to illustrate currency exchange mechanics and does not constitute financial advice.
DkSPro Market Analysis XRPUSDT UsBinance HH HL LH LLDkSPro – Market Analysis (XRPUSDT) | Strategy Version
DkSPro – Market Analysis is an institutional-grade scalping strategy designed specifically for XRPUSDT on Binance.US.
This strategy was built to help traders make high-probability, fee-aware decisions by filtering out low-quality trades, market noise, and conditions where exchange fees would negatively impact profitability.
Unlike generic indicators, DkSPro focuses on precision, confirmation, transparency, and risk control, making it ideal for serious traders who value consistency over overtrading.
⸻
✅ Key Advantages
✔ Institutional-grade logic
✔ Optimized for XRPUSDT scalping
✔ Clearly explains why trades are taken or rejected
✔ Actively reduces bad and low-quality trades
✔ Professional structure, easy to publish, sell, or automate
⸻
🔍 What This Strategy Analyzes
DkSPro combines past market structure with real-time confirmation tools to evaluate both the present and historical context of price action:
• Higher Timeframe trend confirmation using EMA structure
• Lower Timeframe execution for precise scalping entries (15m / 5m)
• Market structure analysis (swing highs & lows)
• Valid breakout detection (not fake moves)
• Volume confirmation (real participation only)
• Momentum validation via RSI
• Fee-aware filtering for Binance.US (0.57% trading fee)
• Dynamic confidence scoring to validate trade quality
Trades are triggered only when all conditions align, significantly reducing false signals and emotional entries.
⸻
⚙️ Core Strategy Logic
A trade is executed only if all of the following conditions are met:
✔ Trend direction is clearly confirmed
✔ EMA structure is properly aligned
✔ Market structure breakout is valid
✔ Volume exceeds average participation
✔ Momentum supports continuation
✔ Confidence score meets minimum quality threshold
✔ Expected price movement exceeds exchange fees
If any single condition fails, the strategy does not enter a trade.
⸻
🧠 Smart Trade Transparency
DkSPro visually explains:
• Why a trade is taken
• Why a trade is NOT taken
• Current Market State (RANGE / TREND / BREAKOUT)
• Real-time Confidence Score (%)
This allows traders to fully understand market behavior instead of blindly following signals.
⸻
🔔 Alerts & Automation Ready
• Clean and precise BUY & SELL alerts
• Fully compatible with TradingView alerts
• Ready for webhooks, bots, and automated execution
• Suitable for manual, semi-automatic, or fully automated trading
⸻
⚠️ FINAL RECOMMENDATION (VERY IMPORTANT)
👉 Use the 15-minute timeframe to identify setups
👉 Use the 5-minute timeframe for precise trade entries
👉 Do NOT start testing this strategy on the 1-minute timeframe
👉 Always backtest for a minimum of 2–4 weeks before trading live
This strategy performs best under proper timeframe alignment and controlled conditions. Ignoring these recommendations may lead to inconsistent results.
⸻
🧠 Who This Strategy Is For
✔ XRP scalpers
✔ Binance.US traders
✔ Traders who want fee-aware entries
✔ Traders who prefer confirmation over guessing
✔ Traders focused on consistency, discipline, and risk management
⸻
⚠️ Risk Disclaimer
This strategy is a technical analysis tool, not financial advice.
Market conditions can change rapidly. Always manage risk properly and **never trade with capital
Reversal Detection v3.0 - Real-Time Pro (Non-Repainting)═══════════════════════════════════════════════════════
REVERSAL DETECTION PRO v3.0 - NON-REPAINTING
Adaptive Zigzag Reversal Detection for Scalpers & Day Traders
═══════════════════════════════════════════════════════
WHY I BUILT THIS
Most reversal indicators out there repaint like crazy, flipping signals after the fact and making you second-guess every trade. Plus they're too noisy in choppy markets or way too laggy in trends, so I kept missing entries or getting faked out. I wanted something solid that sticks to its guns without repainting and adapts to volatility without me tweaking it every 5 minutes.
This indicator solves those problems by using an adaptive zigzag algorithm that adjusts to market volatility automatically. Once a reversal signal appears, it's locked in place - no repainting, no disappearing signals. The ATR-based sensitivity system means it works across different market conditions without constant adjustment.
WHAT YOU'LL SEE ON YOUR CHART
When you add this indicator, here's what shows up:
- GREEN LABELS with "REVERSAL" and price level = Bullish reversal confirmed at swing low
- RED LABELS with "REVERSAL" and price level = Bearish reversal confirmed at swing high
- HORIZONTAL LINES extending from each reversal = Reference for stops and targets
- PREVIEW LABELS (lighter colors) = Potential reversals forming in real-time (optional)
- CANDLE COLORS: Green for bullish trends, red for bearish, purple for neutral
- PURPLE BOXES = Supply/demand zones marking reversal areas
- INFO TABLE (top corner) = Shows sensitivity, current ATR, threshold, and trend status
The indicator uses three EMAs (9/14/21 periods) to determine trend direction, which drives the candle coloring system. This helps you see whether you're in a bullish, bearish, or choppy market at a glance.
HOW IT WORKS
The core reversal detection uses a zigzag calculation that tracks price swings and identifies reversals when price moves by a dynamically calculated threshold. The reversal amount is determined by taking the maximum of three values:
1. Percentage-based threshold (adjusts to instrument price level)
2. Absolute price movement threshold (minimum move required)
3. ATR-based threshold (adapts to current volatility)
This multi-factor approach ensures the indicator works consistently across different assets and market conditions. The non-repainting mechanism uses confirmed bar data - once a pivot is detected at a swing high or low, the label and horizontal line are permanently locked at that exact wick price.
Five sensitivity presets automatically adjust the ATR multiplier:
- Very High (0.8x ATR) = More signals, captures small moves
- High (1.2x ATR) = Active trading
- Medium (2.0x ATR) = Balanced (default)
- Low (2.8x ATR) = Filters noise
- Very Low (3.5x ATR) = Only major reversals
Advanced users can select "Custom" to manually tune ATR multiplier, percentage threshold, and calculation method.
HOW I USE IT
I mainly trade /MNQ futures on 1-5 minute charts for scalping - that's my bread and butter. The indicator works decent on other stuff like stocks or forex too, but I dial sensitivity up for faster scalps during volatile sessions.
My typical trade setup:
1. Wait for a confirmed REVERSAL label (green for long, red for short)
2. Check that it lines up with the EMA trend color (bullish candles for longs, bearish for shorts)
3. If it's a "strong" signal where the reversal hits during a trend flip, that's my green light
4. Quick check for nearby supply/demand zones to avoid fighting them
5. Enter with a tight stop below/above the reversal line
6. Target 1:1 or 2:1 risk/reward, usually out in 5-10 minutes
The horizontal lines from each reversal give me logical stop placement levels, and the supply/demand zones help identify potential profit targets or areas to avoid.
SETTINGS & CUSTOMIZATION
Signal Modes:
- Confirmed Only = Most reliable, only shows locked-in signals (recommended)
- Confirmed + Preview = Shows both confirmed and potential signals
- Preview Only = For testing/development
Sensitivity Presets:
Start with "Medium" and adjust based on your trading style:
- Scalping volatile sessions = "High" or "Very High"
- Day trading = "Medium"
- Swing trading = "Low" or "Very Low"
Display Options:
- Choose candle display type (Solid, Trend, Bars, Volume, None)
- Show/hide supply/demand zones
- Adjust zone box extension length
- Customize info table position and size
- Control maximum lines displayed
Alert System:
- Bullish/Bearish reversal alerts
- EMA trend change alerts
- Strong signal alerts (reversal + trend alignment)
- "Any reversal" catch-all alert
IMPORTANT - READ THIS FIRST
Don't rely on this indicator alone. Always pair it with your own price action or volume confirmation, because no indicator is perfect. Avoid cranking sensitivity too high in ranging markets or you'll get whipped. Test on demo first, and remember it's non-repainting so signals are final, but preview mode can tease you into early entries if you're not patient.
Risk management is key - don't size up just because a signal looks good. This indicator helps identify potential reversals, but YOU still need to manage your trades, set proper stops, and control position size based on your account risk tolerance.
WHAT MAKES THIS DIFFERENT
Unlike simple pivot indicators or manual support/resistance drawing:
- Adapts automatically to volatility changes (ATR-based)
- Never repaints - signals lock in place permanently
- Reversal detection works with trend context (EMAs)
- Supply/demand zones mark key structural levels
- One-click sensitivity adjustment via presets
- Works across multiple timeframes and instruments
The zigzag reversal algorithm adapts to volatility using ATR, while the EMA system provides trend context so you're not trading reversals blindly against the trend. The supply/demand zones help identify key levels where price has reversed before. It's built specifically for active traders who need reliable, non-repainting signals.
BEST PRACTICES
✅ DO:
- Start with "Medium" sensitivity on demo account
- Wait for confirmed signals before entering
- Use horizontal lines for stop placement
- Check trend context (candle colors) before trading reversals
- Combine with volume analysis or price action
- Test different sensitivity settings for your instrument
❌ DON'T:
- Trade every signal blindly without context
- Use "Very High" sensitivity in choppy/ranging markets
- Ignore the trend direction (candle colors)
- Enter on preview labels (they can disappear)
- Skip proper risk management
- Overtrade just because signals appear
TECHNICAL SPECIFICATIONS
- Pine Script Version: v6
- Non-Repainting: Yes (confirmed signals only)
- Uses security(): No (no higher timeframe data)
- Uses non-standard chart types: No (all calculations on real OHLC)
- Alert Compatible: Yes (7 alert types)
- Calculations: Current timeframe only, no lookahead bias
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Trading futures, stocks, and forex involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always use proper risk management, never risk more than you can afford to lose, and test thoroughly on demo accounts before live trading.
═══════════════════════════════════════════════════════
© 2025 NPR21 - Reversal Detection Pro v3.0
Built by a trader, for traders
═══════════════════════════════════════════════════════
Reversal Detection v3.0 - Real-Time Pro (Non-Repainting)═══════════════════════════════════════════════════════
REVERSAL DETECTION PRO v3.0 - NON-REPAINTING
Adaptive Zigzag Reversal Detection for Scalpers & Day Traders
═══════════════════════════════════════════════════════
WHY I BUILT THIS
Most reversal indicators out there repaint like crazy, flipping signals after the fact and making you second-guess every trade. Plus they're too noisy in choppy markets or way too laggy in trends, so I kept missing entries or getting faked out. I wanted something solid that sticks to its guns without repainting and adapts to volatility without me tweaking it every 5 minutes.
This indicator solves those problems by using an adaptive zigzag algorithm that adjusts to market volatility automatically. Once a reversal signal appears, it's locked in place - no repainting, no disappearing signals. The ATR-based sensitivity system means it works across different market conditions without constant adjustment.
WHAT YOU'LL SEE ON YOUR CHART
When you add this indicator, here's what shows up:
- GREEN LABELS with "REVERSAL" and price level = Bullish reversal confirmed at swing low
- RED LABELS with "REVERSAL" and price level = Bearish reversal confirmed at swing high
- HORIZONTAL LINES extending from each reversal = Reference for stops and targets
- PREVIEW LABELS (lighter colors) = Potential reversals forming in real-time (optional)
- CANDLE COLORS: Green for bullish trends, red for bearish, purple for neutral
- PURPLE BOXES = Supply/demand zones marking reversal areas
- INFO TABLE (top corner) = Shows sensitivity, current ATR, threshold, and trend status
The indicator uses three EMAs (9/14/21 periods) to determine trend direction, which drives the candle coloring system. This helps you see whether you're in a bullish, bearish, or choppy market at a glance.
HOW IT WORKS
The core reversal detection uses a zigzag calculation that tracks price swings and identifies reversals when price moves by a dynamically calculated threshold. The reversal amount is determined by taking the maximum of three values:
1. Percentage-based threshold (adjusts to instrument price level)
2. Absolute price movement threshold (minimum move required)
3. ATR-based threshold (adapts to current volatility)
This multi-factor approach ensures the indicator works consistently across different assets and market conditions. The non-repainting mechanism uses confirmed bar data - once a pivot is detected at a swing high or low, the label and horizontal line are permanently locked at that exact wick price.
Five sensitivity presets automatically adjust the ATR multiplier:
- Very High (0.8x ATR) = More signals, captures small moves
- High (1.2x ATR) = Active trading
- Medium (2.0x ATR) = Balanced (default)
- Low (2.8x ATR) = Filters noise
- Very Low (3.5x ATR) = Only major reversals
Advanced users can select "Custom" to manually tune ATR multiplier, percentage threshold, and calculation method.
HOW I USE IT
I mainly trade /MNQ futures on 1-5 minute charts for scalping - that's my bread and butter. The indicator works decent on other stuff like stocks or forex too, but I dial sensitivity up for faster scalps during volatile sessions.
My typical trade setup:
1. Wait for a confirmed REVERSAL label (green for long, red for short)
2. Check that it lines up with the EMA trend color (bullish candles for longs, bearish for shorts)
3. If it's a "strong" signal where the reversal hits during a trend flip, that's my green light
4. Quick check for nearby supply/demand zones to avoid fighting them
5. Enter with a tight stop below/above the reversal line
6. Target 1:1 or 2:1 risk/reward, usually out in 5-10 minutes
The horizontal lines from each reversal give me logical stop placement levels, and the supply/demand zones help identify potential profit targets or areas to avoid.
SETTINGS & CUSTOMIZATION
Signal Modes:
- Confirmed Only = Most reliable, only shows locked-in signals (recommended)
- Confirmed + Preview = Shows both confirmed and potential signals
- Preview Only = For testing/development
Sensitivity Presets:
Start with "Medium" and adjust based on your trading style:
- Scalping volatile sessions = "High" or "Very High"
- Day trading = "Medium"
- Swing trading = "Low" or "Very Low"
Display Options:
- Choose candle display type (Solid, Trend, Bars, Volume, None)
- Show/hide supply/demand zones
- Adjust zone box extension length
- Customize info table position and size
- Control maximum lines displayed
Alert System:
- Bullish/Bearish reversal alerts
- EMA trend change alerts
- Strong signal alerts (reversal + trend alignment)
- "Any reversal" catch-all alert
IMPORTANT - READ THIS FIRST
Don't rely on this indicator alone. Always pair it with your own price action or volume confirmation, because no indicator is perfect. Avoid cranking sensitivity too high in ranging markets or you'll get whipped. Test on demo first, and remember it's non-repainting so signals are final, but preview mode can tease you into early entries if you're not patient.
Risk management is key - don't size up just because a signal looks good. This indicator helps identify potential reversals, but YOU still need to manage your trades, set proper stops, and control position size based on your account risk tolerance.
WHAT MAKES THIS DIFFERENT
Unlike simple pivot indicators or manual support/resistance drawing:
- Adapts automatically to volatility changes (ATR-based)
- Never repaints - signals lock in place permanently
- Reversal detection works with trend context (EMAs)
- Supply/demand zones mark key structural levels
- One-click sensitivity adjustment via presets
- Works across multiple timeframes and instruments
The zigzag reversal algorithm adapts to volatility using ATR, while the EMA system provides trend context so you're not trading reversals blindly against the trend. The supply/demand zones help identify key levels where price has reversed before. It's built specifically for active traders who need reliable, non-repainting signals.
BEST PRACTICES
✅ DO:
- Start with "Medium" sensitivity on demo account
- Wait for confirmed signals before entering
- Use horizontal lines for stop placement
- Check trend context (candle colors) before trading reversals
- Combine with volume analysis or price action
- Test different sensitivity settings for your instrument
❌ DON'T:
- Trade every signal blindly without context
- Use "Very High" sensitivity in choppy/ranging markets
- Ignore the trend direction (candle colors)
- Enter on preview labels (they can disappear)
- Skip proper risk management
- Overtrade just because signals appear
TECHNICAL SPECIFICATIONS
- Pine Script Version: v6
- Non-Repainting: Yes (confirmed signals only)
- Uses security(): No (no higher timeframe data)
- Uses non-standard chart types: No (all calculations on real OHLC)
- Alert Compatible: Yes (7 alert types)
- Calculations: Current timeframe only, no lookahead bias
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Trading futures, stocks, and forex involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always use proper risk management, never risk more than you can afford to lose, and test thoroughly on demo accounts before live trading.
═══════════════════════════════════════════════════════
© 2025 NPR21 - Reversal Detection Pro v3.0
Built by a trader, for traders
═══════════════════════════════════════════════════════
ORB Breakout Strategy📊 Overview
📈 Systematic intraday Opening Range Breakout (ORB) strategy
🧭 Designed for index CFDs (e.g. US500)
⏱️ Optimized for 5-minute charts during regular trading hours
🛡️ Strict risk management and position sizing
🚦 Maximum one trade per day
💡 Core Idea
🌅 The market establishes a key price range shortly after the open
🚀 A confirmed breakout from this opening range can signal directional momentum
🎯 The strategy trades only confirmed breakouts with predefined risk
📐 Opening Range Definition
⏰ Opening range is defined between 09:30 and 09:45 (exchange time)
🕯️ Uses the first three 5-minute candles of the session
⬆️ Opening Range High is the highest high of those candles
⬇️ Opening Range Low is the lowest low of those candles
🟢 Long Trade
📊 A 5-minute candle closes above the Opening Range High
🟩 A Fair Value Gap (FVG) exists relative to the candle 10 minutes earlier
🧲 A buy limit order is placed at the Opening Range High
🔴 Short Trade
📉 A 5-minute candle closes below the Opening Range Low
🟥 A Fair Value Gap (FVG) exists relative to the candle 10 minutes earlier
🧲 A sell limit order is placed at the Opening Range Low
🛑 Stop Loss
📉 Long trades use the low of the candle 10 minutes before the breakout
📈 Short trades use the high of the candle 10 minutes before the breakdown
🎯 Take Profit
⚖️ Fixed reward-to-risk ratio of 2:1
📏 Take profit distance equals two times the stop loss distance
💰 Position Sizing
💵 Fixed dollar risk per trade (default: $2,000)
📐 Position size is calculated dynamically based on stop loss distance
🔁 Risk remains consistent across changing volatility conditions
⏳ Trade Management Rules
🚦 Maximum one trade per day, including same-bar entries and exits
🕛 No new entries after 12:00 (exchange time)
⏰ All open positions are closed at 15:50
❌ Pending orders are cancelled after the entry cutoff or at session end
⚙️ Execution & Costs
💸 Commission model can be configured in the strategy settings
🧪 Backtests use TradingView Strategy Tester mechanics
📝 Notes
📚 This is a rules-based trading strategy, not a signal service
🔍 Results depend on instrument, broker feed, spreads, and commissions
🧠 Forward testing is strongly recommended before live trading
⚠️ Disclaimer
📖 This script is provided for educational and research purposes only
🚫 It does not constitute financial advice
🔥 Trading leveraged instruments involves significant risk
ABCD Strategy (v7 Ready)//@version=6
indicator("ABCD Strategy v7 – MTF S/R Filter", overlay=true, max_lines_count=300, max_labels_count=300)
//━━━━━━━━━━━━━━━━━━━━━
// INPUTS
//━━━━━━━━━━━━━━━━━━━━━
pivotLen = input.int(5, "Swing Strength", minval=2)
bcMin = input.float(0.618, "BC Min Fib")
bcMax = input.float(0.786, "BC Max Fib")
cdMin = input.float(1.272, "CD Min Extension")
cdMax = input.float(1.618, "CD Max Extension")
htfTF = input.timeframe("240", "Higher Timeframe (S/R)")
srLookback = input.int(200, "HTF S/R Lookback")
srTolerance = input.float(0.002, "S/R Zone Tolerance (0.2%)")
showSR = input.bool(true, "Show HTF S/R Zones")
showTargets = input.bool(true, "Show Targets")
//━━━━━━━━━━━━━━━━━━━━━
// HIGHER TF SUPPORT / RESISTANCE
//━━━━━━━━━━━━━━━━━━━━━
htfHigh = request.security(syminfo.tickerid, htfTF, ta.highest(high, srLookback))
htfLow = request.security(syminfo.tickerid, htfTF, ta.lowest(low, srLookback))
srHighZoneTop = htfHigh * (1 + srTolerance)
srHighZoneBottom = htfHigh * (1 - srTolerance)
srLowZoneTop = htfLow * (1 + srTolerance)
srLowZoneBottom = htfLow * (1 - srTolerance)
//━━━━━━━━━━━━━━━━━━━━━
// DRAW HTF ZONES
//━━━━━━━━━━━━━━━━━━━━━
if showSR
box.new(bar_index - 5, srHighZoneTop, bar_index + 5, srHighZoneBottom,
bgcolor=color.new(color.red, 85), border_color=color.red)
box.new(bar_index - 5, srLowZoneTop, bar_index + 5, srLowZoneBottom,
bgcolor=color.new(color.green, 85), border_color=color.green)
//━━━━━━━━━━━━━━━━━━━━━
// SWING DETECTION
//━━━━━━━━━━━━━━━━━━━━━
ph = ta.pivothigh(high, pivotLen, pivotLen)
pl = ta.pivotlow(low, pivotLen, pivotLen)
var float A = na
var float B = na
var float C = na
var float D = na
var int Ab = na
var int Bb = na
var int Cb = na
var int Db = na
if not na(pl)
A := B
Ab := Bb
B := C
Bb := Cb
C := low
Cb := bar_index
if not na(ph)
A := B
Ab := Bb
B := C
Bb := Cb
C := high
Cb := bar_index
//━━━━━━━━━━━━━━━━━━━━━
// ABCD LOGIC
//━━━━━━━━━━━━━━━━━━━━━
ab = math.abs(B - A)
bc = math.abs(C - B)
bcFib = bc / ab
validBC = bcFib >= bcMin and bcFib <= bcMax
bull = C > B
cdMinPrice = bull ? C - bc * cdMin : C + bc * cdMin
cdMaxPrice = bull ? C - bc * cdMax : C + bc * cdMax
inDzone = low <= cdMaxPrice and high >= cdMinPrice
//━━━━━━━━━━━━━━━━━━━━━
// MTF STRUCTURE FILTER
//━━━━━━━━━━━━━━━━━━━━━
nearResistance = close <= srHighZoneTop and close >= srHighZoneBottom
nearSupport = close <= srLowZoneTop and close >= srLowZoneBottom
structureOK =
(bull and nearSupport) or
(not bull and nearResistance)
//━━━━━━━━━━━━━━━━━━━━━
// FINAL D CONFIRMATION
//━━━━━━━━━━━━━━━━━━━━━
if validBC and inDzone and structureOK
D := close
Db := bar_index
//━━━━━━━━━━━━━━━━━━━━━
// TARGETS
//━━━━━━━━━━━━━━━━━━━━━
tp1 = bull ? D + math.abs(D - C) * 0.382 : D - math.abs(D - C) * 0.382
tp2 = bull ? D + math.abs(D - C) * 0.618 : D - math.abs(D - C) * 0.618
//━━━━━━━━━━━━━━━━━━━━━
// DRAW PATTERN
//━━━━━━━━━━━━━━━━━━━━━
if not na(D)
line.new(Ab, A, Bb, B, width=2, color=color.blue)
line.new(Bb, B, Cb, C, width=2, color=color.orange)
line.new(Cb, C, Db, D, width=2, color=color.green)
label.new(Db, D, "D (HTF CONFIRMED)", style=label.style_label_down, color=color.yellow)
if showTargets
line.new(Db, tp1, Db + 12, tp1, color=color.green)
line.new(Db, tp2, Db + 12, tp2, color=color.teal)
alertcondition(validBC and inDzone and structureOK,
"ABCD v7 Confirmed",
"ABCD Pattern confirmed at Higher-Timeframe Support/Resistance — wait for price action.")
First FVG per Session - Big boss traders First FVG per Session like Asia first Persented FVG London and Ny






















