Peter's Relative Strength vs VTI (1 year)In Stockcharts.com, I would always view 1-year charts and have a RS line showing relative strength of the stock or ETF I'm looking at relative to VTI. When I moved to TradingView, this information was harder to see, so I made this indicator. It always shows what the stock or ETF has done relative to the wider market over the past 1 year.
Wskaźniki i strategie
RSI + martingaleТорговая стратегия основанная на совмещении торговой системы Мартингейл и индекса относительной сила RSI.
Скрипт входит в сделку после пересечения заданных уровней перекупленности и перепроданности RSI. Набирает позицию, по умолчанию умнажая размер каждой докупки x2. Закрывается по тейк-профиту.
A trading strategy based on combining the Martingale trading system and the Relative Strength Index (RSI).
The script enters the trade after crossing the set overbought and oversold levels of the RSI. It takes a position, by default multiplying the size of each additional purchase by x2. It closes with a take profit.
demark_poolLibrary "demark_pool"
f_labelArrayClear(pool, run)
Parameters:
pool (array)
run (bool)
f_labelPushCap(pool, l, cap)
Parameters:
pool (array)
l (label)
cap (int)
f_labelTrimCap(pool, run, cap)
Parameters:
pool (array)
run (bool)
cap (int)
demark_uiLibrary "demark_ui"
f_dashUpdate6x2(dash, c00, c10, c01, c11, c02, c12, c12TextColor, c03, c13, c04, c14, c05, c15, bg, tc, ts)
Parameters:
dash (table)
c00 (string)
c10 (string)
c01 (string)
c11 (string)
c02 (string)
c12 (string)
c12TextColor (color)
c03 (string)
c13 (string)
c04 (string)
c14 (string)
c05 (string)
c15 (string)
bg (color)
tc (color)
ts (string)
The MF Rounded LevelsThis is a standalone utility indicator designed to draw a custom horizontal grid on your chart. It focuses on "Rounded Levels" (psychological price levels like 1900.00, 1905.00, etc.), which are often significant in trading assets like Gold (XAUUSD).
Here is a breakdown of how it works:
1. Dynamic Visible Range
Smart Drawing: Unlike standard grid tools that might draw lines everywhere, this script calculates the High and Low of the prices currently visible on your screen.
Efficiency: It only draws lines within that specific vertical range. If you scroll the chart, it recalculates and redraws the lines instantly.
2. Two-Tier Grid System
It distinguishes between two types of levels to help you visualize price structure better:
Primary Step: The base increment (default is 5.0). These are the standard grid lines.
Major Step: A larger increment (default is 15.0). These lines overlap with the primary ones but can be styled differently (e.g., thicker, darker, or solid) to mark more significant levels.
3. Customization & Styling
You have full control over the visuals via the settings menu:
Styles: Choose between Solid, Dotted, or Dashed lines.
Colors & Widths: Set different colors and line thicknesses for Primary vs. Major lines.
4. Auto-Hide Feature
Timeframe Filter: The script includes logic to automatically hide the grid if you switch to a timeframe higher than 4 Hours (H4). This prevents the chart from looking cluttered on Daily or Weekly views where 5-point increments would be too dense.
Trend Cloud with Buy/Sell Text [wjdtks255]Indicator Title: Trend Cloud with Buy/Sell Signal Pro
Short Description
A high-probability trend-following indicator based on Supertrend dynamics, enhanced with a Volume Filter to pinpoint explosive entries while minimizing false breakouts.
Detailed Description (Overview)
The Trend Cloud with Buy/Sell Text is designed for traders who prioritize clarity and momentum. It visualizes market trends through a "Trend Cloud" system and generates real-time BUY/SELL signals only when price action is backed by significant trading volume.
Key Technical Pillars
Dynamic Trend Cloud: Fills the area between the price and the Supertrend line, providing immediate visual feedback on trend strength and potential support/resistance zones.
Smart Volume Filter: A unique logic that compares current volume against a 20-period moving average. Labels only appear when a trend shift occurs with above-average volume, filtering out weak "fakeouts."
No-Repaint Labels: Signals are calculated and fixed at the close of the candle, ensuring that the BUY/SELL text remains permanent for reliable historical backtesting and live execution.
The Alpha Hunter Strategy (How to Trade)
1. Long Entry (Buy)
Condition: The cloud turns Aqua and a "BUY" label appears below the candle.
Confirmation: Ensure the price remains above the Aqua Trend Line.
Volume Check: The indicator automatically verifies if the volume is higher than the 20-period average before displaying the label.
Exit: Exit when a "SELL" signal appears or the price closes below the Aqua line.
2. Short Entry (Sell)
Condition: The cloud turns Red and a "SELL" label appears above the candle.
Confirmation: Price should stay below the Red Trend Line.
Exit: Exit when a "BUY" signal appears or the price closes above the Red line.
Input Parameters & Optimization
ATR Period (Default: 10): Determines the sensitivity to price volatility.
ATR Factor (Default: 3.0): Controls the distance of the trend line. Increase to 3.5 - 4.0 to reduce noise in choppy markets.
Volume Filter (Toggle): When enabled, only high-momentum signals are shown.
Recommended Usage
Best Timeframes: 15m, 1h, 4h.
Asset Classes: Highly effective for Crypto (BTC/ETH) and high-volume stocks.
demark_utilsLibrary "demark_utils"
f_grade(score)
Parameters:
score (float)
f_clampScore(score)
Parameters:
score (float)
f_px(v)
Parameters:
v (float)
f_pxOrDash(v)
Parameters:
v (float)
f_sum(src, length)
Parameters:
src (float)
length (int)
f_hasAnyBits(bus, mask)
Parameters:
bus (int)
mask (int)
f_busSetMask(bus, mask)
Parameters:
bus (int)
mask (int)
f_evSet(bus, flag)
Parameters:
bus (int)
flag (int)
f_evSet2(bus, flag)
Parameters:
bus (int)
flag (int)
demark_renderLibrary "demark_render"
f_renderMaxBack(lookbackBars)
Parameters:
lookbackBars (float)
f_renderExtendBars(levelLineExtendBarsMax)
Parameters:
levelLineExtendBarsMax (int)
f_upsertLevelLine(lnIn, show, y, col, width, style, levelLineExtendBarsMax)
Parameters:
lnIn (line)
show (bool)
y (float)
col (color)
width (int)
style (string)
levelLineExtendBarsMax (int)
f_upsertZoneBox(bxIn, show, x1, lo, hi, bg, brd, brdW, lookbackBars, levelLineExtendBarsMax)
Parameters:
bxIn (box)
show (bool)
x1 (int)
lo (float)
hi (float)
bg (color)
brd (color)
brdW (int)
lookbackBars (float)
levelLineExtendBarsMax (int)
f_upsertTdLine(lnIn, show, p1Idx, p1Price, p0Idx, p0Price, col, width, style, lookbackBars, levelLineExtendBarsMax)
Parameters:
lnIn (line)
show (bool)
p1Idx (int)
p1Price (float)
p0Idx (int)
p0Price (float)
col (color)
width (int)
style (string)
lookbackBars (float)
levelLineExtendBarsMax (int)
f_levelTagX(levelLineExtendBarsMax)
Parameters:
levelLineExtendBarsMax (int)
f_stackY(baseY, step, idx, stackUp)
Parameters:
baseY (float)
step (float)
idx (int)
stackUp (bool)
f_upsertLevelTag(lbIn, show, y, txt, bg, tc, sz, levelLineExtendBarsMax)
Parameters:
lbIn (label)
show (bool)
y (float)
txt (string)
bg (color)
tc (color)
sz (string)
levelLineExtendBarsMax (int)
f_upsertPointTag(lbIn, show, x, y, txt, bg, tc, sz, sty)
Parameters:
lbIn (label)
show (bool)
x (int)
y (float)
txt (string)
bg (color)
tc (color)
sz (string)
sty (string)
Alpha Hunter Integrated MACD & Oscillator [wjdtks255]Indicator Title: Alpha Hunter Integrated MACD & Oscillator Pro
Short Description
A high-precision hybrid oscillator that integrates MACD dynamics with a secondary-smoothed histogram to eliminate market noise and capture trend reversals with minimal lag.
Detailed Description
Overview
The Alpha Hunter Integrated MACD & Oscillator is designed to overcome the inherent lag of standard MACD indicators. By applying an exponential moving average (EMA) filter to the histogram itself and incorporating a momentum direction check, this tool identifies high-probability entry points while filtering out "whipsaws" commonly found in choppy markets.
Key Technical Pillars
Dual-Smoothed Histogram: Unlike standard oscillators, this script smooths the raw histogram values using a secondary filtering period. This reveals the true underlying momentum before price action fully shifts.
Momentum Directional Filter: Entry signals are only triggered when the MACD line’s slope aligns with the crossover, ensuring you don't enter against a stalling trend.
Dynamic Trend Clouds: The visual fill between the MACD and Signal lines acts as a "Trend Cloud," providing immediate visual feedback on the strength and duration of the current trend.
The Winning Trading Strategy (How to Use)
To maximize win rates, it is highly recommended to use this indicator as a Confirmation Oscillator alongside a Long-term Trend Filter (like a 200 EMA) on your main chart.
1. Long Setup (Buy)
Context: Price must be trading above the 200 EMA on the main chart.
Signal: A green "BUY" triangle and label appear on the oscillator.
Confirmation: The Histogram should be green and rising.
Exit: Exit at a pre-defined Take Profit (TP) box or when a bearish MACD crossunder occurs.
2. Short Setup (Sell)
Context: Price must be trading below the 200 EMA on the main chart.
Signal: A red "SELL" triangle and label appear on the oscillator.
Confirmation: The Histogram should be red and falling.
Exit: Exit at the designated Stop Loss (SL) or when a bullish MACD crossover occurs.
Input Parameters & Optimization
Fast/Slow/Signal: Default 12, 26, 9. (Standard for most markets).
Signal Smoothing: Set to 5 for a balance of speed and reliability. Increase to 8+ for swing trading on higher timeframes.
Recommended Timeframes: 15m, 1h, and 4h for the best signal-to-noise ratio.
Author's Note
This indicator is a "No-Repaint" script. Signals are confirmed at the close of the candle to ensure reliability during live trading. Always use proper risk management.
Candle Closing Range %Measuring strength of the daily closing candle after a gap up or strong open.
This indicator calculates where price closed within the day’s range and expresses it as a percentage. It is designed to give immediate context on whether buyers or sellers controlled the session — and is especially useful when analyzing gap days or trend continuation setups on intraday charts.
The indicator always references the most recent closed daily candle.
Formula:
Closing Range = (Close – Low) / (High – Low) × 100
Range interpretation:
• Closing range > 60% → Buyers dominated
• Closing range 40–60% → Neutral (directional bias unclear)
• Closing range < 40% → Sellers dominated
Style options:
• Background color
• Text Size
• Text Color
T3 smooth MACD BB What this script does – in plain words
Smoothes the MACD with a special T3 filter, turning the raw MACD into a smoother line so short‑term noise is reduced.
Draws Bollinger‑style bands around that smoothed MACD, giving a “mid line” and upper/lower envelopes that show how far the line is from its recent average.
Colors the main line green when it’s rising and red when it’s falling, helping you see the trend at a glance.
Adds a bold zero line plus light gray markers on the bands so you can spot crossovers easily.
Includes a translucent blue fill between the upper and lower bands for visual emphasis.
This gives a clear, color‑coded view of MACD momentum plus volatility bands—all on the same indicator pane.
T3 MACD BB flow What this script does – in plain words
Smoothes the MACD with a special T3 filter, turning the raw MACD into a smoother line so short‑term noise is reduced.
Draws Bollinger‑style bands around that smoothed MACD, giving a “mid line” and upper/lower envelopes that show how far the line is from its recent average.
Colors the main line green when it’s rising and red when it’s falling, helping you see the trend at a glance.
Adds a bold zero line plus light gray markers on the bands so you can spot crossovers easily.
Includes a translucent blue fill between the upper and lower bands for visual emphasis.
This gives a clear, color‑coded view of MACD momentum plus volatility bands—all on the same indicator pane.
Multi-Timeframe Levels (Daily & Weekly)// ═══════════════════════════════════════════════════════════════════════════════
// 📊 MULTI-TIMEFRAME LEVELS INDICATOR
// ═══════════════════════════════════════════════════════════════════════════════
//
// ┌─────────────────────────────────────────────────────────────────────────────┐
// │ 🎯 LEVEL COLORS & MEANING │
// ├─────────────────────────────────────────────────────────────────────────────┤
// │ 🟡 YELLOW (PDH/PDL) = Previous Day High/Low - PRIMARY intraday S/R │
// │ 🟣 PURPLE (PD2H/PD2L) = 2 Days Ago High/Low - SECONDARY confluence │
// │ 🔴 RED (PWH/PWL) = Previous Week High/Low - MAJOR swing levels │
// └─────────────────────────────────────────────────────────────────────────────┘
//
// ═══════════════════════════════════════════════════════════════════════════════
// ⚡ SCALPING STRATEGY (1-5 min charts)
// ═══════════════════════════════════════════════════════════════════════════════
//
// 📍 ENTRY ZONES:
// • Look for price entering 🟡 YELLOW zones (PDH/PDL)
// • Best setups: Price rejects from zone with strong candle pattern
// • Extra confirmation: Zone overlaps with 🟣 PURPLE (confluence)
//
// ✅ BUY SCALP:
// 1. Price touches PDL zone (yellow) from above
// 2. Wait for bullish rejection candle (hammer, engulfing)
// 3. Enter long with stop below the zone
// 4. Target: Mid-range or PDH zone
//
// ❌ SELL SCALP:
// 1. Price touches PDH zone (yellow) from below
// 2. Wait for bearish rejection candle (shooting star, engulfing)
// 3. Enter short with stop above the zone
// 4. Target: Mid-range or PDL zone
//
// 💡 SCALP TIPS:
// • Avoid trading THROUGH zones - wait for rejection
// • Tighter stops when trading during high volume (9:30-11:00 AM)
// • Skip setups if price is choppy inside the zone
//
// ═══════════════════════════════════════════════════════════════════════════════
// 📈 SWING TRADING STRATEGY (15min - Daily charts)
// ═══════════════════════════════════════════════════════════════════════════════
//
// 📍 HIGH PROBABILITY ZONES:
// • 🔴 RED zones (PWH/PWL) = Primary swing entries
// • Best setups: 🔴 RED + 🟡 YELLOW confluence (weekly + daily align)
// • Monster setups: All 3 colors stack at same price area
//
// ✅ SWING LONG:
// 1. Price drops into PWL zone (red) - weekly support
// 2. Bonus: PDL (yellow) is nearby = confluence
// 3. Wait for daily/4H bullish reversal pattern
// 4. Enter with stop below the zone cluster
// 5. Target: PWH or next major resistance
//
// ❌ SWING SHORT:
// 1. Price rallies into PWH zone (red) - weekly resistance
// 2. Bonus: PDH (yellow) is nearby = confluence
// 3. Wait for daily/4H bearish reversal pattern
// 4. Enter with stop above the zone cluster
// 5. Target: PWL or next major support
//
// 💡 SWING TIPS:
// • Weekly levels (red) have highest reversal probability
// • More confluence = higher win rate, use larger position
// • Let winners run when breaking through weekly levels
//
// ═══════════════════════════════════════════════════════════════════════════════
// 🚀 BREAKOUT STRATEGY
// ═══════════════════════════════════════════════════════════════════════════════
//
// 📍 BREAKOUT SIGNALS:
// • Price closes ABOVE PDH/PWH with volume = Bullish breakout
// • Price closes BELOW PDL/PWL with volume = Bearish breakout
//
// ✅ TRADING BREAKOUTS:
// 1. Wait for candle CLOSE beyond the level (not just wick)
// 2. Volume should be above average
// 3. Enter on retest of broken level (now becomes support/resistance)
// 4. Stop: Below/above the breakout candle
//
// ⚠️ AVOID FALSE BREAKOUTS:
// • Don't chase - wait for pullback to broken level
// • Skip if breakout happens on low volume
// • Be cautious of breakouts into higher timeframe zones
//
// ═══════════════════════════════════════════════════════════════════════════════
// 📋 QUICK REFERENCE
// ═══════════════════════════════════════════════════════════════════════════════
//
// │ Level │ Color │ Best For │ Hold Time │ Stop Size │
// ├──────────┼────────┼─────────────────┼──────────────┼─────────────┤
// │ PDH/PDL │ 🟡 │ Scalps/Day │ Minutes-Hours│ Tight │
// │ PD2H/PD2L│ 🟣 │ Confluence │ Hours │ Medium │
// │ PWH/PWL │ 🔴 │ Swings │ Days-Weeks │ Wide │
//
// 🔥 GOLDEN RULE: Never fight the weekly level (red) - it's the boss!
//
// ═══════════════════════════════════════════════════════════════════════════════
Anchored OBV + A/DAnchored OBV + A/D is a single-pane indicator that allows On-Balance Volume (OBV) and Accumulation/Distribution (A/D) to be plotted together using a period-anchored approach.
OBV and A/D are cumulative by nature, which makes their full-history absolute values arbitrary and often incomparable when plotted side-by-side . This script addresses that limitation by anchoring each indicator to a user-defined period (daily, weekly, monthly, etc.) and plotting their relative change from that baseline rather than their raw values. The result is a comparison that preserves each indicator’s internal structure (trends, inflections, and divergences) while minimizing scale conflicts.
How it Works
At the start of each selected anchor period, the script records the current OBV and A/D values as baselines. All subsequent values are plotted as changes relative to those baselines:
- Percent mode measures the % change from the baseline.
- Delta mode measures the absolute change from the baseline.
Optional anchor markers and a zero line make it easy to see when resets occur and how each indicator behaves relative to the period’s starting point.
Advantages vs using OBV and A/D separately
- Direct visual comparison: Both indicators are on the same anchored scale, making relative movement immediately readable.
- Preserved analytical structure: Trends, inflections, and divergences remain intact; time-based shape is not distorted.
- Cleaner workflow: One indicator, one pane, and less chart clutter.
Interpretation
- Values above zero indicate net accumulation or positive volume pressure since the anchor.
- Values below zero indicate net distribution or negative volume pressure since the anchor.
- Trend confirmation: Rising price accompanied by rising anchored OBV and A/D suggests healthy participation.
- Price Divergence: Price making new highs or lows while one or both indicators fail to confirm can indicate weakening participation or a potential change in behavior.
- OBV vs A/D Interaction: When both move together, volume and close-location effects broadly agree. When they diverge, it highlights differences between net up/down volume (OBV) and intrabar accumulation/distribution (A/D).
Warnings!
- Percent mode can become visually unstable when baseline OBV or A/D values are near zero due to division effects inherent in percent-change calculations.
- It is not recommended to interpret structure across periods as each period is relative to a different baseline. Structure is not preserved across periods - only within each individual period.
Credits
This script is inspired by Multi-Ticker Anchored Candles (MTAC) by @SamRecio . MTAC's anchored-baseline concept and open-source nature provided an important conceptual foundation for adapting the same idea to OBV and A/D. Many thanks to @SamRecio for publishing his work openly.
Bull Engulf @ Rolling Support + HTF Confluence (2-8w) This indicator is designed to identify high-probability bullish reversal setups that occur at proven support levels, with confirmation from higher timeframes.
It is built for swing traders targeting 2–8 week moves, prioritizing win rate and trade quality over frequency.
The script focuses on institutional-style price behavior: pullbacks into support, seller exhaustion, and clear buyer confirmation before entry.
Core Logic
A signal is generated only when all of the following align:
Bullish Engulfing Candle
Current candle fully engulfs the prior candle’s body
Optional filters ensure strong momentum (close above prior high, meaningful candle size)
Rolling-Low Support
Price must be near a rolling support level based on recent swing lows
Support adapts dynamically to market structure
Higher Timeframe (HTF) Confluence
Daily setups can require alignment with weekly and monthly support
Weekly setups can require monthly support
This dramatically reduces low-quality signals
Strongest-Only Scoring System
Each setup is scored based on:
Proximity to support
HTF confluence
Candle strength
Volume and volatility filters
Only setups meeting a minimum score threshold are shown
Signals & Labels
SETUP / TOP label
Appears when a valid bullish engulfing forms at support with HTF confirmation.
ENTRY label
Appears when price breaks above the high of the engulfing candle (confirmation entry).
Support Lines
Local (rolling) support
Weekly and Monthly support (when applicable)
Each label includes:
Timeframe
Score
Support distance
Suggested risk level
A standardized options structure for 2–8 week trades
Intended Trading Style
Timeframe: Daily and Weekly charts
Trade Duration: ~2–8 weeks
Market Type: Stocks (best on liquid, mid/large-cap names)
Approach:
Wait for price to come to support
Wait for buyers to prove control
Enter only after confirmation
This indicator is not designed for:
Day trading
Chasing breakouts
High-frequency signals
Fewer signals is intentional.
How to Use
Apply the indicator to Daily or Weekly charts
Wait for a SETUP/TOP label at support
Enter only after the ENTRY confirmation (break above engulfing high)
Use the displayed risk level to define invalidation
Let the trade develop over multiple weeks
Alerts can be enabled for:
Pre-market watchlist signals (yesterday’s setups)
Confirmed signals at the close
Entry confirmation
Why This Works
Markets often reverse at support, not randomly.
By combining:
Structural support
Price-action confirmation
Higher timeframe alignment
this indicator filters out most noise and focuses on areas where larger participants are likely active.
Disclaimer
This indicator is for educational and analytical purposes only.
It does not constitute financial advice. Always manage risk appropriately.
ICT/SMC HUDOverview
This indicator is an ICT/SMC-inspired market structure tool that detects:
Swing Structure (pivot-based)
BOS (Break of Structure) and CHoCH (Change of Character)
Liquidity Sweeps (buy-side & sell-side)
Premium/Discount filter using a simple equilibrium (EQ) midpoint
A Hold Score (0–5) system calculated from a higher timeframe (HTF)
Optional TP/SL visualization box (with TP2 expansion when Hold Score is strong)
⚠️ This is an educational tool, not a guaranteed trading system.
Core Logic (Where signals come from)
This script builds a simplified ICT/SMC framework using 3 layers:
1) Market Structure via Swings (Pivot High/Low)
The script finds swing highs/lows using:
ta.pivothigh(high, swingLen, swingLen)
ta.pivotlow(low, swingLen, swingLen)
These swings become the reference points for structure breaks.
2) BOS / CHoCH Detection
BOS Up = price closes above the last swing high
BOS Down = price closes below the last swing low
trend updates to 1 (bullish) or -1 (bearish) based on BOS
CHoCH triggers when BOS occurs against the current trend
CHoCH Up = trend was bearish, then BOS Up happens
CHoCH Down = trend was bullish, then BOS Down happens
3) Liquidity Sweep + Premium/Discount Filter
Sell-side sweep: low breaks below last swing low, but closes back above it
Buy-side sweep: high breaks above last swing high, but closes back below it
Equilibrium (EQ) midpoint is:
(lastSwingHigh + lastSwingLow) / 2
Discount = price below EQ
Premium = price above EQ
Signal Rules (Buy / Sell)
Buy Signal
Sell-side sweep + (CHoCH Up or BOS Up)
OR
BOS Up while price is in Discount
Sell Signal
Buy-side sweep + (CHoCH Down or BOS Down)
OR
BOS Down while price is in Premium
Hold Score System (0–5) — HTF confirmation
The script calculates a Hold Score from HTF using 5 checks:
HTF EMA Bias
Bullish hold bias: EMA Fast > EMA Mid
Bearish hold bias: EMA Fast < EMA Mid
Volatility Expansion
Uses HTF Bollinger Band width; if width is increasing, expansion is “OK”
Mid Acceptance
HTF close relative to HTF BB basis (SMA)
Follow-through after Entry
Requires N consecutive bars closing in favor of the entry direction
No Opposite Break
Avoid holding if opposite BOS/CHoCH appears
Hold Score = sum of the 5 checks (0–5)
TP/SL Box (Optional)
When a new Buy/Sell signal occurs:
Entry is set at current close
SL uses:
Swing-based stop (lowest/ highest of last N bars)
optional ATR buffer
TP1 and TP2 are set using Risk:Reward ratios
TP2 Expansion (Optional)
If Hold Score ≥ threshold:
TP2 RR increases by extraRRonHold
Can be set to expand only (never shrink)
Auto-hide TP/SL Drawings (Optional)
If enabled, the TP/SL box/lines/labels will automatically disappear after N bars.
This is useful for clean charts while still keeping Hold Score logic running.
Best Use Cases
✅ Works best during liquidity sessions:
London Killzone
New York Killzone
✅ Recommended timeframes:
Structure: 15m / 1h
Entry refinement: 5m / 1m
Hold Score HTF: 1h or 4h
Inputs Guide (Quick)
Swing length (Structure): controls swing sensitivity (higher = fewer swings)
Hold Score HTF: HTF used for Hold Score confirmation
TP/SL Box: visualization tool, not order execution
Auto-hide: removes drawings after N bars for clean charts
TP2 Expand: increases TP2 target when Hold Score is strong
Disclaimer
This indicator does not place trades and does not guarantee profits. Always manage risk, backtest, and validate with your own strategy.
Inside/Outside Bars---
Inside/Outside Bars Detector
This indicator identifies and visualizes Inside Bars and Outside Bars (Engulfing Bars) on your chart, helping traders spot potential breakout and consolidation patterns.
What are Inside/Outside Bars?
• Outside Bars (Outer Bars): Candles that break BOTH the high AND low of the previous candle. These represent periods of increased volatility and potential trend continuation or reversal. Marked with red triangle arrows by default.
• Inside Bars (Inner Bars): Candles where NEITHER the high NOR low breaks the previous candle's range. These represent consolidation and often precede significant price moves. Marked with orange triangle arrows by default.
Features:
✓ Visual arrows above bars for easy identification
✓ Fixed pixel-size arrows that remain visible at any chart zoom level
✓ Statistics table showing counts of outer bars, inner bars, and total bars analyzed
✓ Fully customizable with multiple settings
Customization Options:
• Toggle outer bars and inner bars independently
• Customize arrow colors for each pattern
• Show/hide the statistics table
• Adjust calculation bars (1000 default, max 5000)
• Set to 0 to analyze all available bars up to 5000
How to Use:
Inside bars often indicate consolidation before a breakout, while outside bars suggest increased volatility and potential momentum shifts. Use these patterns in conjunction with your trading strategy to
identify entry/exit points or to confirm trend direction.
---
Yen Carry Stress Badge Indicator Overview
This dashboard measures stress in the yen‑carry cycle using price‑based signals from FX, volatility, and global equity markets. Each component is scored based on its current condition, and the combined total reflects whether global markets are in a risk‑on expansion, transition phase, or risk‑off contraction.
Dashboard Components & Indication Levels
USDJPY Trend
Bullish (0 stress): USDJPY above 50‑day MA; yen weakening; carry trade stable
Bearish (1 stress): USDJPY below 50‑day MA; yen strengthening; unwind risk rising
JPY Volatility (ATR%)
Low (0 stress): ATR% < 0.8; stable FX environment
Medium (1 stress): ATR% 0.8–1.2; early instability
High (2 stress): ATR% > 1.2; elevated yen‑carry stress
VIX (Equity Volatility)
Low (0 stress): VIX < 18; calm markets
Medium (1 stress): VIX 18–25; rising uncertainty
High (2 stress): VIX > 25; risk‑off conditions
VWO Strength (Emerging Markets)
Strong (0 stress): VWO/VTI above 50‑day MA; EM participating; liquidity healthy
Weak (1 stress): VWO/VTI below 50‑day MA; EM lagging; early stress signal
VEA Strength (Developed Markets)
Strong (0 stress): VEA/VTI above 50‑day MA; broad global participation
Weak (1 stress): VEA/VTI below 50‑day MA; global breadth narrowing
Total Stress Score (0–10)
0–3: Low Stress (Risk‑On Expansion)
4–6: Moderate Stress (Transition Phase)
7–10: High Stress (Risk‑Off Contraction)
eBacktesting - Learning: Equal Highs & LowseBacktesting - Learning: Equal Highs & Lows helps you spot Equal Highs (EQH) and Equal Lows (EQL) — price areas where the market has paused or reacted multiple times at nearly the same level.
These zones often act like “magnets” because many traders place stops and pending orders around them. When price returns, it can lead to a quick grab (a sweep) and reversal, or it can break through and continue. Learning to recognize EQH/EQL can improve your timing, help you anticipate where volatility may appear, and give you clearer areas for invalidation and targets.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
[codapro] PressureBox Breakout Engine Full Breakdown PressureBox Breakout Engine is a revamped and expanded version of a prior post. This release includes a more educational breakdown and deeper configuration guidance, in response to user requests for clarity on how the system works and how to use it effectively.
This tool is a compression-detection and breakout-anticipation engine that blends Donchian channel logic, ATR filtering, and a proprietary “pressure” oscillator derived from volume-weighted momentum. It visually highlights real-time “compression zones” with dynamic shaded boxes and flags potential breakouts using configurable BUY/SELL markers.
It’s designed to help traders identify and analyze different market setups — including potential trend continuations, volatility breakouts, and range fade conditions — by surfacing key compression and pressure states visually on the chart.
Key Features
*Dynamic Compression Boxes: drawn when Donchian range < smoothed ATR threshold
*Breakout Flags: BUY/SELL alerts when price breaks outside compression range
*Custom Volume Pressure Score: MFI + CMF hybrid from -1 to +1
*Candle Overlap Filter: optional % overlap indicator for noise detection
*Adaptive Box Shading: transparency adjusts to pressure strength
*Clean Re-Anchoring Logic: boxes reset only when compression ends
*Full User Control: configure inputs for box length, blend logic, signal rules
How It Works
Compression Box Logic
A box is drawn when the Donchian range (e.g. high - low over N bars) falls below a moving ATR threshold.
The box dynamically extends and adjusts height/width until a breakout or timeout occurs.
Users can toggle whether Donchian uses highs/lows or closes and whether the box shows a midline.
Breakout Signal Logic
BUY signal: Close breaks above box high, with optional compression condition on the prior bar.
SELL signal: Close breaks below box low.
Signals use ATR-based offsets for clean separation on the chart.
Pressure Score Logic
Pressure is a weighted blend between:
MFI (Money Flow Index) — momentum-based
CMF (Chaikin Money Flow) — flow-based
The result is a smoothed -1 to +1 score that represents volume pressure.
This is used both for:
Box transparency (strong pressure = darker shading)
Optional overlay plot
Overlap Mode
Calculates smoothed % of how much recent candles overlap.
Useful for filtering non-directional chop and low-quality breakouts.
Can be toggled on/off as a separate overlay line.
⚙️ Default Optimized Settings
Setting Value
Donchian Length 8
ATR Length 13
ATR Multiplier 3.1
ATR SMA Length 21
Max Extend Bars 55
MFI Length 25
CMF Length 55
Blend Weight (MFI:CMF) 0.5
These are optimized for detecting tight consolidations and explosive breakout potential, especially on intraday 5m–15m charts across futures, forex, and crypto.
How to Use It
Watch for the compression box to form — this marks a squeeze zone.
Breakouts with BUY/SELL flags are most reliable after long compressions.
Adjust the Blend Weight to prioritize MFI (momentum) or CMF (flow).
Use Overlap % to filter sideways markets or low-quality signals.
Combine with support/resistance, VPA tools, or trend filters for layered setups.
Disclaimer
This tool was created using the CodaPro Pine Script architecture engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts.
It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital.
eBacktesting - Learning: Fibonacci RetracementeBacktesting - Learning: Fibonacci Retracement helps you practice one of the most common “pullback” tools in trading: Fibonacci retracements.
It automatically finds the most recent swing and draws your chosen Fibonacci levels (for example 0.382, 0.5, 0.618, 0.786) so you can clearly see where price is pulling back into “discount/premium” areas. When price taps a level (or the Golden Zone), the indicator marks it so you can review what happened next and build pattern recognition.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)📘 Description
4 EMA Perfect Order + Strength + MTF + Breakdown Alerts (v6.1)
This indicator provides a complete multi‑EMA trend structure analysis with Perfect Order detection, breakdown alerts, strength measurement, and multi‑timeframe confirmation. It is designed for traders who want a clean, reliable, and highly configurable trend‑following tool.
---
🔍 Key Features
1. Customizable EMA System (1–4 lines)
You can choose how many EMAs to display (1 to 4) and freely set the period for each EMA.
This allows you to adapt the indicator to any trading style—from scalping to swing trading.
2. Perfect Order Detection
The script identifies:
• Bullish Perfect Order (EMA1 > EMA2 > EMA3 > EMA4)
• Bearish Perfect Order (EMA1 < EMA2 < EMA3 < EMA4)
Signals are triggered only when the structure changes, ensuring clean and meaningful alerts.
3. Breakdown Alerts
The indicator detects when a previously established Perfect Order collapses:
• Bullish PO Breakdown
• Bearish PO Breakdown
These moments often signal trend exhaustion or the beginning of a reversal.
4. Multi‑Timeframe (MTF) EMA Confirmation
All EMAs are calculated on a higher timeframe of your choice.
This helps you align entries with the dominant trend and avoid counter‑trend traps.
5. Trend Strength Measurement
The indicator calculates the percentage distance between the fastest and slowest EMA.
Displayed directly on the chart:
• Current timeframe strength
• MTF strength
This gives you a quick visual gauge of trend momentum.
6. Clean Visual Signals
• Arrows for Perfect Order confirmation
• Circles for breakdown events
• Optional EMA visibility based on your selected count
Everything is designed for clarity and minimal chart clutter.
7. Full Alert Support
Alerts are available for:
• Bullish Perfect Order
• Bearish Perfect Order
• Bullish Breakdown
• Bearish Breakdown
Perfect for automated notifications or bot integration.
---
🎯 Ideal For
• Trend‑following traders
• EMA‑based systems
• Multi‑timeframe confluence strategies
• Reversal detection
• Scalping, day trading, swing trading
---
💡 Summary
This indicator combines flexibility, precision, and multi‑timeframe logic to help you identify strong trends, detect structural shifts, and stay aligned with market momentum.
Highly customizable and suitable for any market or timeframe.






















