Inside Bar Zones by AAK (V6)📦 Smart Inside Bar Zones
Smart Inside Bar Zones is a price-action–based indicator designed to automatically detect, track, and visualize inside bar consolidation zones with full historical context.
Instead of marking single inside candles, this indicator groups consecutive inside bars into structured zones, locking the original mother candle range and extending it until price breaks out. This allows traders to clearly identify areas of compression, balance, and potential expansion.
🔍 Key Features
Automatic Inside Bar Detection
Identifies inside bars using candle bodies within the mother candle range, with an optional tick buffer.
Smart Zone Creation
Consecutive inside bars are grouped into a single zone, anchored to the original mother candle.
Unlimited Historical Storage (Data)
All previous inside bar zones are stored internally, enabling long-term analysis and backtesting.
Safe & Optimized Drawing
Zones are drawn using recyclable boxes to respect TradingView object limits while maintaining performance.
Highlight Inside Bars
Optional candle coloring for quick and clear visual confirmation.
Flexible Display Options
Show only the latest zone
Or display multiple zones with automatic recycling
📈 How Traders Use It
Identify consolidation before expansion
Spot compression zones for breakout or fakeout scenarios
Combine with SMC, order flow, support & resistance, or liquidity concepts
Use higher-timeframe zones for directional bias
Use lower-timeframe zones for entries and scalps
⚠️ Important Notes
This indicator does not predict direction — it highlights structure
Zones represent price balance, not buy or sell signals
Best used in confluence with your trading strategy and risk management
🧠 Designed For
Price action traders
SMC / market structure traders
Forex, crypto, indices, and futures
Any timeframe
⚠️ Risk Disclaimer
This indicator is for educational purposes only and is not financial advice. Trading involves significant risk, and losses may exceed expectations. Past performance does not guarantee future results. Always use proper risk management and trade at your own discretion.
趋势分析
Daily Candles (3 Prev + Live) | Fully Customizable Previous 3 daily candles + current live candle, placed according to price, with pip range inside candle, fully customizable
Fair Value GapA Simple and Clean FVG.
A straight-forward Indicator that indicates Bullish or Bearish FVGs by either Chart or specified TF.
Some color capabilities to add colored borders and max out your Trading View theme.
Elite Order Blocks V4 [CX Liquidity Hunter]What does this indicator do?
This indicator automatically detects high-probability Order Blocks based on real Market Structure (BOS/CHoCH). Unlike generic indicators that mark "zones" based only on wicks or simple pullbacks, this script identifies the exact origin of a structural break, filtering noise and focusing on where real institutional money is located.
How does it work?
The script uses a real-time state tracking architecture to validate each zone:
Market Structure Mapping : Identifies Pivot Highs and Lows to map BOS (Break of Structure). An Order Block is only confirmed once price breaks a previous high or low.
Sweep Detection (A+ Setups) : Validates if the block candle swept previous liquidity before the break. These blocks are highlighted in gold as high-probability setups.
Imbalance Filter (FVG) : Requires the initial move to leave a Fair Value Gap, confirming institutional displacement.
Volume Intensity : Measures relative volume at the block's origin; higher volume results in higher color saturation.
HTF Context Alignment : Cross-checks 1H and 4H trends to label zones that are aligned with the higher timeframe tide.
Main features:
Potential OB Previews : Displays gray zones "in formation" before the BOS to anticipate entries (v6 feature).
Proximity Radar : The block's border glows white when price enters the zone's "Killzone".
Breaker Blocks : Identifies when a block is breached and flips its nature (Support/Resistance).
Mitigation Tracking : Distinguishes between "Tested" zones (holding strength) and "Mitigated" zones (fully consumed).
Mean Threshold (50%) : Dotted line indicating the equilibrium level for refined entries.
How to use it:
Identify the major bias using the label on the blocks.
Wait for price to reach a Demand (Bullish) or Supply (Bearish) block.
Watch the Proximity Radar (glowing border) to prepare for the trade.
Look for a reaction at the Mean Threshold (50%) or the block's edge.
Gold blocks (A+) have the highest probability of an immediate rejection.
25GN-Intraday Reversals and MomentumThe 25GN-Intraday Suite is a high-performance visual interface designed for professional traders on the 5m, 10m, and 15m timeframes. This master version combines two distinct proprietary signal paths into one streamlined overlay.
CORE CAPABILITIES
Precision Reversal Bubbles (25GN-B / 25GN-S): Identifies significant trend exhaustion and pivot points using a multi-layered validation engine.
Trend Momentum Triangles: Real-time identification of high-velocity breakout phases.
Price Action Lock: An automated filtering system that invalidates signals during periods of market indecision or low-conviction price action.
OPERATIONAL GUIDELINES
Strict Timeframe Optimization: Engineered specifically for the 5-minute, 10-minute, and 15-minute charts.
Smart Alerts: Fully compatible with TradingView alerts for modular trade automation.
Plug-and-Play: Designed to work out of the box with calibrated defaults for the supported timeframes.
This script is strictly for educational and informational purposes and does not constitute financial, investment, or trading advice. It is not an investment or trade suggestion. Users must evaluate all signals and execute trades based on their own independent analysis and risk assessment. Past performance is not indicative of future results. Trading involves significant risk of loss.
Triple RCZR 1.3Triple RCZR — Regime Compression & Release (v1.3)
Triple RCZR is a regime-reading oscillator built to identify compression, alignment, and release across time horizons using a structured triple-RSI framework.
This script is not designed to predict direction.
It is designed to reveal when the market is storing energy and when that storage resolves.
Core Idea
Markets rarely move cleanly.
Before expansion, price usually compresses across multiple sensitivities.
Triple RCZR tracks this process by observing three RSI speeds simultaneously:
Fast RSI → short-term reaction
Medium RSI → execution / decision layer
Slow RSI → higher-timeframe memory
When these layers compress into a shared zone — and especially when they align tightly — the market enters a coil state.
When alignment breaks, expansion becomes more likely.
Key Features
🔹 Triple RSI Framework
Three RSI curves run in parallel, each representing a different response speed.
Preset configurations included:
6 / 12 / 18
7 / 14 / 21
8 / 16 / 24
9 / 18 / 27
Optional custom lengths for advanced tuning.
🔹 Coil Zone Detection
A configurable RSI band defines the compression zone.
The script continuously evaluates how many RSIs are inside the zone:
1 RSI → early compression
2 RSIs → building agreement
3 RSIs → full compression
🔹 Anchored Coil (Higher-TF Compression)
An anchored coil occurs when:
All three RSIs are inside the coil zone, and
Fast and Medium RSIs remain tightly aligned to the Slow RSI.
This state represents multi-timeframe agreement and stored momentum.
Anchored duration is tracked in bars to distinguish fleeting pauses from meaningful compression.
🔹 Breakout & Release Awareness
Breakouts are detected only when RSI exits the coil after compression.
Anchored coil start, confirmation, and release events can trigger alerts.
Emphasis is placed on context, not raw signals.
Visual Design Philosophy
Colors are intentionally restrained and functional.
Importance is communicated through density and structure, not brightness.
Anchored coils are visually distinct from ordinary coils without overwhelming the chart.
Designed for long sessions and multi-symbol scanning.
How to Use
Triple RCZR works best when used to:
Identify regime transitions
Compare behavior across markets, indices, or timeframes
Filter trades based on compression quality, not impulse
It is especially effective in:
Sideways or corrective environments
Macro and index analysis
Situations where time matters more than price
This is not a standalone trading system.
It is a context engine.
Version Notes (v1.3)
Added RSI preset selector for fast regime tuning
Improved anchored coil visibility
Refined color system for clarity and reduced fatigue
Core logic intentionally unchanged
Final Note
Triple RCZR is built on the idea that
markets reveal intent before they reveal direction.
If you trade execution, this shows you when to care.
If you study markets, this shows you when structure is changing.
AngleAura UTAngleAura UT is an advanced trading indicator built on top of the classic UT Bot concept, enhanced with modern risk‑management logic, next‑candle execution, and a clean visual interface.
The script uses a modified algorithm based on:
- ATR‑adjusted trailing levels
- EMA crossover logic
- Dynamic trend switching
This helps identify trend reversals with minimal noise.
Matrix OrderflowMatrix Orderflow Technical Documentation
Matrix Orderflow is a Pine Script v6 execution engine that integrates Machine Learning regime detection with real-time orderflow imbalance tracking.
1. Functional Logic
Matrix ML Regime Detection
The indicator calculates a prediction using the Matrix ML library.
Bullish Regime: Triggered when the prediction slope exceeds the positive threshold. Visualized by a Cyan line.
Bearish Regime: Triggered when the prediction slope falls below the negative threshold. Visualized by a Hot Pink line.
Micro-Momentum Gating: Signals are strictly gated by the rate of change (p_slope) of the ML prediction.
Smart Trend Fallback
In instances where the ML prediction is neutral (below slope thresholds), the engine switches to a Macro Trend fallback. Bias is determined by the relationship between the closing price and the selected Baseline (Matrix ML or EMA).
Persistent Liquidity Zones (FVG)
Detects Fair Value Gaps using confirmable bar logic.
Persistence: Boxes remain active on the chart until the price trades through the mid-point or the entire gap (mitigation).
Directional Bias: Active long FVGs provide a bullish bias; active short FVGs provide a bearish bias.
Footprint Imbalance Tracking
Scans for stacked imbalances within a single candle.
Bullish Imbalance: Aggressive buying clustered at specific price levels.
Bearish Imbalance: Aggressive selling clustered at specific price levels.
These clusters act as rejection zones for high-conviction entries.
Trap Detection
Identifies instances where price interacts with a liquidity zone (FVG) but fails to maintain the move, accompanied by opposing orderflow. These are marked with "X" symbols.
2. Signal Generation (Confluence)
Signals are generated based on a "Triple-Lock" alignment system:
Regime Alignment: Price must be on the correct side of the ML/Trend baseline.
Bias Alignment: Most recent FVG and Imbalance must agree with the directional trade.
Momentum Confirmation: The ML slope must be trending in the direction of the signal.
3. Visualization Guide
Cyan Shapes/Lines: Bullish confluence and aggressive buying.
Hot Pink Shapes/Lines: Bearish confluence and aggressive selling.
Yellow Circle: Point of Control (POC).
Yellow X: Trap detection / Potential exhaustion.
Triangles: High-conviction entry signals.
4. Input Configuration
Delta Sensitivity: Sets the minimum volume delta required for institutional force confirmation.
ML Sensitivity: Adjusts the slope thresholds for regime changes.
Baseline Type: Toggle between Matrix ML prediction and a standard EMA for trend tracking.
Table Controls: Configuration for the top-right dashboard display. village
Pip Surgeon DeluxePip Surgeon Deluxe – Precision Trade Execution System
Pip Surgeon Deluxe is a proprietary, invite-only trading indicator designed for traders who demand clarity, structure, and precision. It blends multi-timeframe trend alignment with refined entry logic, partial profit management, trailing stops, and real-time market condition awareness.
Built for both scalping and swing trading, Pip Surgeon Deluxe adapts to changing market environments using EMA trend structure, VWAP positioning, RSI confirmation, and ADX-based market strength filtering — all presented through a clean on-chart dashboard.
Key Features
Scalp & Swing modes with automatic bias selection
Multi-timeframe confirmation (5m, 30m, 1H)
EMA trend-based structure with dynamic color cues
VWAP positional confirmation
Partial TP (TP1), final TP (TP2), and intelligent trailing stops
Automatic support & resistance levels
Real-time ADX market condition analysis
One-click master alert system (entries, TP, exits)
On-chart dashboard for instant decision-making
Best Used On
Forex, indices, and metals
5m & 15m execution charts
London and New York sessions
⚠️ Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Trading involves risk, and users are solely responsible for their trading decisions.
Invite-only access. Source code is private and protected.
UCTB BTC[CoinTadpole]UCTB BTC
UCTB is a specialized RSI-based momentum indicator engineered for Bitcoin trading. It introduces a Sustainment Verification Architecture — a structured approach that filters premature signals by requiring RSI conditions to persist across multiple consecutive bars before generating alerts.
Unlike standard RSI threshold alerts that trigger immediately upon crossing, UCTB implements a principle-based filtering system with dual operational modes and configurable signal confidence levels. This architecture addresses the core challenge of volatile cryptocurrency markets: distinguishing between momentary noise and genuine momentum shifts.
🔶 WHAT MAKES THIS INDICATOR ORIGINAL
This is NOT another RSI threshold alert or delayed entry script.
While several RSI-based scripts exist that incorporate bar counting or delay mechanisms, UCTB introduces a fundamentally different approach through its Sustainment Verification Architecture.
The Key Differentiator — Sustainment vs. Delay:
Existing scripts like delayed RSI strategies simply wait N bars after a threshold cross before signaling. UCTB takes a different approach: it requires the RSI condition to be actively maintained throughout the verification period, not merely elapsed time since the initial cross.
How Different Approaches Compare:
Standard RSI signals on threshold cross, which produces many false signals from wicks. Delayed RSI signals N bars after cross, but still triggers on brief touches that bounce back. UCTB Sustainment signals only if the condition persists continuously for N bars, filtering brief touches entirely.
Example Scenario — RSI drops to 29, bounces to 35, then drops to 28 over 3 bars:
Standard RSI would generate 2 signals (Bar 1 and Bar 3). Delayed RSI with 3-bar delay would generate 1 signal after the initial cross plus delay. UCTB Conservative Mode would generate 0 signals because the condition was not sustained continuously — RSI exited the zone on Bar 2 when it bounced to 35.
This sustainment-based filtering represents a structural difference, not merely a parameter adjustment.
🔶 FOUR INTEGRATED COMPONENTS
1. Sustainment Verification Engine
The core innovation. Rather than counting bars since a threshold cross, the algorithm verifies that RSI , RSI , and RSI all remain within the threshold zone. This continuous zone maintenance requirement is what distinguishes sustainment from simple delay.
2. Adaptive Dual-Period System
Automatically selects RSI calculation period based on trading style. Scalping Mode uses RSI(14) for faster response to intraday movements. Swing Mode uses RSI(21) for smoother readings suitable for position trading. This is not simply a toggle between two presets — the entire signal generation logic adapts to the selected period's characteristics.
3. Signal Confidence Filtering
Two distinct verification requirements, not just sensitivity adjustment. Conservative Mode requires continuous zone maintenance where RSI must stay in zone for all 3 bars. Aggressive Mode requires only elapsed time since breach — 3 bars passed, regardless of intermediate exits. These modes apply fundamentally different verification logic, not just different threshold values.
4. Bar-Close Confirmation Protocol
All signals validate against barstate.isconfirmed before dispatch, ensuring that only finalized bar data triggers alerts.
🔶 THE SUSTAINMENT PRINCIPLE
Understanding the value of sustainment verification requires examining how RSI behaves in volatile markets.
The Problem with Threshold-Only Detection:
When RSI briefly touches 30 on a single bar, it often represents a momentary price wick extending beyond the candle body, temporary liquidity gaps that reverse within the same bar, or news-driven spikes that do not reflect underlying momentum. These brief threshold touches generate signals that lack follow-through. Price frequently reverses direction immediately after the touch, creating poorly-timed entries.
The Sustainment Solution:
Requiring RSI to remain below 30 (or above 70) for multiple consecutive bars applies three filtering principles.
Noise Filtering Principle — Random price fluctuations rarely maintain extreme RSI readings for 3+ consecutive bars. The probability of random noise sustaining an extreme condition decreases with each additional bar requirement.
Momentum Confirmation Principle — Sustained extreme RSI readings indicate that buying or selling pressure has persisted over multiple price intervals. A single-bar extreme may be noise; a multi-bar extreme suggests genuine momentum shift.
Signal Processing Foundation — Each additional bar of confirmation serves as an independent verification. This is analogous to requiring multiple sensor readings before triggering an alarm — it reduces false positives from transient spikes.
Practical Demonstration:
Consider this sequence: RSI = 29 → 35 → 28 over three bars. A delayed RSI script (3-bar delay after first crossing below 30) would still generate a signal, because it only checks if 3 bars have elapsed since the threshold was first crossed. UCTB Conservative mode generates no signal, because the RSI exited the zone on Bar 2 (RSI = 35 > 30), breaking the sustainment requirement. This distinction matters in choppy, ranging markets where RSI frequently oscillates around threshold boundaries.
🔶 WHY BITCOIN MARKETS REQUIRE THIS APPROACH
Bitcoin's market microstructure creates specific challenges that make sustainment verification particularly valuable.
High Wick-to-Body Ratio Characteristic:
Bitcoin candles frequently exhibit large wicks relative to their bodies, especially during high-volume periods and around key price levels. These wicks can briefly push RSI into extreme territory without representing genuine trend exhaustion. Sustainment verification filters these wick-driven signals by requiring the condition to persist beyond the initial spike.
Continuous Market Structure:
Unlike traditional markets with defined session breaks, Bitcoin trades 24/7/365. This continuous structure creates more low-liquidity periods (weekends, holidays) where brief RSI extremes occur without follow-through, and more opportunities for unsustained threshold touches during off-peak hours. The sustainment requirement helps filter signals that occur during these transient conditions.
Adaptive Period Rationale:
The dual-period system addresses different Bitcoin trading approaches. RSI(14) is more responsive, suitable for capturing Bitcoin's rapid intraday movements. RSI(21) is smoother, filtering out more short-term fluctuations for swing trading. Manual switching between periods is operationally inconvenient. The mode selector automates this based on declared trading style.
🔶 PRACTICAL VALUE PROPOSITION
What This Indicator Automates:
Manually implementing sustainment verification requires tracking when RSI first entered the threshold zone, whether RSI has remained in the zone for each subsequent bar, and applying different verification rules based on trading mode. Doing this across multiple timeframes while managing active positions is error-prone. UCTB automates this entire verification process.
Operational Benefits:
Reduced Alert Noise — Instead of receiving alerts on every RSI threshold cross (many of which reverse immediately), traders receive alerts only when the sustainment criteria are met.
Consistent Methodology — Human traders often apply confirmation checks inconsistently, sometimes waiting, sometimes not. UCTB applies identical verification logic every time, removing execution variability.
Mode-Based Flexibility — Conservative and Aggressive modes allow traders to adjust verification strictness based on current market conditions without manually reconfiguring parameters.
🔶 ALGORITHM SPECIFICATION
The indicator operates through a sequential verification process:
Step 1: RSI Calculation — Computes RSI using the adaptive period. Scalping mode uses ta.rsi(close, 14). Swing mode uses ta.rsi(close, 21).
Step 2: Threshold Breach Detection — Identifies when RSI transitions into oversold (≤30) or overbought (≥70) territory from outside the zone.
Step 3: Bar Counting — Tracks elapsed bars since the trigger using ta.barssince().
Step 4: Sustainment Verification — Applies mode-specific verification. Conservative Mode verifies that RSI , RSI , and RSI all remain within the threshold zone. Aggressive Mode only verifies that 3 bars have elapsed since initial breach.
Step 5: Signal Dispatch — Signals are generated only when barstate.isconfirmed is true, ensuring bar-close confirmation.
🔶 RECOMMENDED USAGE
Timeframe Selection:
For Scalping Mode, use 15-minute to 1-hour charts. For Swing Mode, use 4-hour to Daily charts.
Mode Selection Guide:
In high volatility conditions, Scalping with Conservative mode provides stricter filtering for noisy conditions. In trending markets, Swing with Conservative mode offers higher confidence entries on pullbacks. In ranging or consolidating markets, Scalping with Aggressive mode captures more signals for range-bound trading. In low volatility environments, either style with Aggressive mode works well since looser filtering is acceptable when noise is lower.
Integration Recommendations:
Combine with support/resistance analysis for entry refinement. Use with volume confirmation for additional validation. Apply standard position sizing and risk management protocols.
🔶 SIGNAL INTERPRETATION
🟢 BUY Signal
Generated when RSI has sustained below 30 for the verification period (mode-dependent). Indicates that selling pressure has persisted across multiple bars, suggesting potential momentum exhaustion. Important: This is NOT a guarantee of reversal. It identifies conditions where sustained RSI weakness may precede a bounce.
🔴 SELL Signal
Generated when RSI has sustained above 70 for the verification period. Indicates that buying pressure has persisted across multiple bars, suggesting potential distribution. Use for exit planning or short consideration, not as an automatic execution trigger.
🔶 NON-REPAINTING CONFIRMATION
This indicator does NOT repaint. All signals validate against barstate.isconfirmed before generation. Historical signals remain fixed once the bar closes. What appears on historical charts is exactly what was displayed in real-time. Intrabar fluctuations may show preliminary readings, but final signals confirm only at bar close.
🔶 IMPORTANT LIMITATIONS
This indicator identifies sustained RSI threshold conditions; it does not predict price direction. Signals indicate potential reversal zones, not guaranteed reversals. Strong trends can maintain oversold/overbought conditions for extended periods without reversing. The 3-bar verification period is optimized for typical Bitcoin volatility; different assets may require adjustment. Sustainment verification reduces signal frequency — traders seeking high-frequency signals may find this limiting. Always use in conjunction with other analysis methods. Past signal patterns do not guarantee future performance. This is an analysis tool, not a standalone trading system.
🔶 RISK DISCLAIMER
Trading cryptocurrencies involves substantial risk of loss and is not suitable for all investors. Bitcoin markets are highly volatile and can experience rapid price movements. This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Past performance does not guarantee future results. All trading decisions are entirely your own responsibility. Never risk more than you can afford to lose.
🔶 HOW TO GET ACCESS
This script is provided as Invite-Only. To request access, please check the links in my TradingView profile.
UNIVERSAL Position Size Calculator ALL Brokers mobil brokers//@version=5
indicator("UNIVERSAL Risk & Position Size Calculator (ALL Brokers)", overlay=true)
// =====================
// USER INPUTS
// =====================
accountBalance = input.float(100000, "Account Balance")
riskPercent = input.float(1.0, "Risk % per Trade", step=0.1)
// =====================
// EXECUTION TYPE (ONE LINE – PINE SAFE)
// =====================
executionType = input.string("MT4 / MT5 / cTrader", "Execution Type", options= )
// =====================
// LOT / CONTRACT DEFINITION (MANUAL)
// =====================
lotDefinition = input.float(100000, "Units per Lot / Contract")
// =====================
// ENTRY & STOP
// =====================
entryPrice = input.float(0.0, "Entry Price")
stopPrice = input.float(0.0, "Stop Loss Price")
// =====================
// SYMBOL DATA (AUTO)
// =====================
tickSize = syminfo.mintick
tickValue = syminfo.pointvalue * syminfo.mintick
// =====================
// CORE CALCULATIONS
// =====================
riskAmount = accountBalance * (riskPercent / 100)
stopDistance = math.abs(entryPrice - stopPrice)
ticks = stopDistance / tickSize
riskPerUnit = ticks * tickValue
unitsAllowed = riskPerUnit > 0 ? riskAmount / riskPerUnit : na
rawPosition = unitsAllowed / lotDefinition
// Futures = whole contracts only
finalPosition = executionType == "Futures" ? math.floor(rawPosition) : rawPosition
// =====================
// DISPLAY PANEL
// =====================
var table t = table.new(position.top_right, 2, 13, border_width=1)
table.cell(t, 0, 0, "Execution Type")
table.cell(t, 1, 0, executionType)
table.cell(t, 0, 1, "Account Balance")
table.cell(t, 1, 1, str.tostring(accountBalance))
table.cell(t, 0, 2, "Risk %")
table.cell(t, 1, 2, str.tostring(riskPercent) + "%")
table.cell(t, 0, 3, "Risk Amount ($)")
table.cell(t, 1, 3, str.tostring(riskAmount))
table.cell(t, 0, 4, "Entry Price")
table.cell(t, 1, 4, str.tostring(entryPrice))
table.cell(t, 0, 5, "Stop Loss Price")
table.cell(t, 1, 5, str.tostring(stopPrice))
table.cell(t, 0, 6, "Stop Distance")
table.cell(t, 1, 6, str.tostring(stopDistance))
table.cell(t, 0, 7, "Risk per 1 Unit ($)")
table.cell(t, 1, 7, str.tostring(riskPerUnit))
table.cell(t, 0, 8, "Units Allowed")
table.cell(t, 1, 8, str.tostring(unitsAllowed, "#.##"))
table.cell(t, 0, 9, "Units per Lot / Contract")
table.cell(t, 1, 9, str.tostring(lotDefinition))
table.cell(t, 0, 10, "POSITION SIZE TO ENTER")
table.cell(t, 1, 10, str.tostring(finalPosition, "#.##"))
table.cell(t, 0, 11, "Broker Tip")
table.cell(t, 1, 11, "Copy this value into broker")
table.cell(t, 0, 12, "Symbol")
table.cell(t, 1, 12, syminfo.ticker)
UNIVERSAL Position Size Calculator ALL Brokers mobil//@version=5
indicator("UNIVERSAL Risk & Position Size Calculator (ALL Brokers)", overlay=true)
// =====================
// USER INPUTS
// =====================
accountBalance = input.float(100000, "Account Balance")
riskPercent = input.float(1.0, "Risk % per Trade", step=0.1)
// =====================
// EXECUTION TYPE (ONE LINE – PINE SAFE)
// =====================
executionType = input.string("MT4 / MT5 / cTrader", "Execution Type", options= )
// =====================
// LOT / CONTRACT DEFINITION
// (CHANGE THIS TO MATCH ANY BROKER)
// =====================
lotDefinition =
executionType == "MT4 / MT5 / cTrader" ? 100000 :
executionType == "CFD (Units)" ? 1 :
1
// =====================
// ENTRY & STOP
// =====================
entryPrice = input.float(0.0, "Entry Price")
stopPrice = input.float(0.0, "Stop Loss Price")
// =====================
// SYMBOL DATA (AUTO)
// =====================
tickSize = syminfo.mintick
tickValue = syminfo.pointvalue * syminfo.mintick
// =====================
// CORE CALCULATIONS
// =====================
riskAmount = accountBalance * (riskPercent / 100)
stopDistance = math.abs(entryPrice - stopPrice)
ticks = stopDistance / tickSize
riskPerUnit = ticks * tickValue
unitsAllowed = riskPerUnit > 0 ? riskAmount / riskPerUnit : na
rawPosition = unitsAllowed / lotDefinition
// Futures = whole contracts only
finalPosition = executionType == "Futures" ? math.floor(rawPosition) : rawPosition
// =====================
// DISPLAY PANEL
// =====================
var table t = table.new(position.top_right, 2, 13, border_width=1)
table.cell(t, 0, 0, "Execution Type")
table.cell(t, 1, 0, executionType)
table.cell(t, 0, 1, "Account Balance")
table.cell(t, 1, 1, str.tostring(accountBalance))
table.cell(t, 0, 2, "Risk %")
table.cell(t, 1, 2, str.tostring(riskPercent) + "%")
table.cell(t, 0, 3, "Risk Amount ($)")
table.cell(t, 1, 3, str.tostring(riskAmount))
table.cell(t, 0, 4, "Entry Price")
table.cell(t, 1, 4, str.tostring(entryPrice))
table.cell(t, 0, 5, "Stop Loss Price")
table.cell(t, 1, 5, str.tostring(stopPrice))
table.cell(t, 0, 6, "Stop Distance")
table.cell(t, 1, 6, str.tostring(stopDistance))
table.cell(t, 0, 7, "Risk per 1 Unit ($)")
table.cell(t, 1, 7, str.tostring(riskPerUnit))
table.cell(t, 0, 8, "Units Allowed")
table.cell(t, 1, 8, str.tostring(unitsAllowed, "#.##"))
table.cell(t, 0, 9, "Units per Lot / Contract")
table.cell(t, 1, 9, str.tostring(lotDefinition))
table.cell(t, 0, 10, "POSITION SIZE TO ENTER")
table.cell(t, 1, 10, str.tostring(finalPosition, "#.##"))
table.cell(t, 0, 11, "Broker Tip")
table.cell(t, 1, 11, "Use this value in broker")
table.cell(t, 0, 12, "Symbol")
table.cell(t, 1, 12, syminfo.ticker)
OB/OS Environment MTFThis indicator identifies overbought and oversold price environments — not reversal signals — using a multi-timeframe regime filter combined with volatility-adjusted stretch and confluence logic.
The goal is to highlight when price is objectively extended relative to trend, so traders can:
reduce chasing,
size appropriately,
manage risk,
or look for mean-reversion / pause scenarios without assuming a top or bottom.
How it works
1. Higher-Timeframe Regime (Stable)
Intraday charts → Daily regime
Daily charts → Weekly regime
Weekly charts → Monthly regime
Monthly charts → Monthly regime
Regime is determined using HTF close vs HTF EMA (optionally slope-filtered).
This keeps environments stable and avoids intrabar regime flipping.
2. Volatility-Adjusted Stretch
Price extension is measured as:
distance from EMA
normalized by ATR (z = (price − EMA) / ATR)
This allows the same logic to work across:
5m / 30m / 1h
Daily / Weekly / Monthly
3. Confluence Scoring (N-of-M)
An OB/OS environment only triggers when stretch and a minimum number of confirmations are present:
RSI extreme
Bollinger %B excursion
Stretch percentile vs its own history
Large candle relative to ATR
User-configurable confirmation count helps reduce noise.
4. Environment State (Sticky)
Once an overbought or oversold environment is detected:
the state persists until price decompresses or regime breaks
optional background shading visualizes the environment
arrows mark entry into the environment (not exits)
What this is / is not
This is:
an environment/context tool
multi-timeframe aware
volatility-normalized
designed to work across assets and timeframes
This is NOT:
a buy/sell signal
a reversal system
predictive of timing tops or bottoms
Strong trends can remain overbought/oversold for extended periods — by design.
Best use cases:
Risk management in strong trends
Avoiding late entries
Scaling decisions
Mean-reversion setups with confirmation
Context for options traders (IV, spreads, diagonals)
Feedback welcome
This is an early public release.
I’m specifically interested in feedback on:
confluence logic
regime behavior
parameter defaults by timeframe
false positives vs missed environments
If you have ideas or improvements, please comment — especially if you test across multiple markets or higher timeframes.
Position Size Calculator Forex Futures TW//@version=5
indicator("AUTO Risk & Position Size Calculator – Forex + Futures", overlay=true)
// === INPUTS ===
accountBalance = input.float(100000, "Account Balance")
riskPercent = input.float(1.0, "Risk % per Trade", step=0.1)
// === TRADE TYPE ===
// Forex/CFD = decimaler tilladt
// Futures = hele kontrakter
tradeType = input.string("Forex / CFD", "Market Type", options= )
// === ENTRY & STOP (MANUAL) ===
entryPrice = input.float(0.0, "Entry Price")
stopPrice = input.float(0.0, "Stop Loss Price")
// === SYMBOL DATA (AUTO FROM TRADINGVIEW) ===
tickSize = syminfo.mintick
tickValue = syminfo.pointvalue * syminfo.mintick
// === CALCULATIONS ===
riskAmount = accountBalance * (riskPercent / 100)
stopDistance = math.abs(entryPrice - stopPrice)
// ticks mellem entry & stop
ticks = stopDistance / tickSize
// risiko pr. 1 unit / lot / kontrakt
riskPerUnit = ticks * tickValue
// rå position size
rawPositionSize = riskPerUnit > 0 ? riskAmount / riskPerUnit : na
// === FINAL POSITION SIZE ===
finalPositionSize = tradeType == "Futures" ? math.floor(rawPositionSize) : rawPositionSize
// === DISPLAY ===
var table t = table.new(position.top_right, 2, 10, border_width=1)
table.cell(t, 0, 0, "Symbol")
table.cell(t, 1, 0, syminfo.ticker)
table.cell(t, 0, 1, "Market Type")
table.cell(t, 1, 1, tradeType)
table.cell(t, 0, 2, "Account Balance")
table.cell(t, 1, 2, str.tostring(accountBalance))
table.cell(t, 0, 3, "Risk %")
table.cell(t, 1, 3, str.tostring(riskPercent) + "%")
table.cell(t, 0, 4, "Risk Amount ($)")
table.cell(t, 1, 4, str.tostring(riskAmount))
table.cell(t, 0, 5, "Entry Price")
table.cell(t, 1, 5, str.tostring(entryPrice))
table.cell(t, 0, 6, "Stop Loss Price")
table.cell(t, 1, 6, str.tostring(stopPrice))
table.cell(t, 0, 7, "Risk per 1 Unit ($)")
table.cell(t, 1, 7, str.tostring(riskPerUnit))
table.cell(t, 0, 8, "Raw Position Size")
table.cell(t, 1, 8, str.tostring(rawPositionSize, "#.##"))
table.cell(t, 0, 9, "FINAL SIZE TO TRADE")
table.cell(t, 1, 9, str.tostring(finalPositionSize, "#.##"))
Bit Secure - Index Structure Engine ( Hybrid )Bit Secure – Index Structure Engine
( RSI Caution + No-Trade Range)
Bit Secure – Index Structure Engine is a structure-first intraday indicator designed for index traders (NIFTY / BANKNIFTY / FINNIFTY) who want clarity, discipline, and noise-free execution.
This tool focuses on EMA structure, VWAP context, priority opening moves, and intelligent RSI caution signals — without blocking valid trades.
🔹 Core Philosophy
“Trade structure first, momentum second, confirmation last.”
The indicator separates:
Trend entries (CORE & FAST)
Opening opportunity (PRIORITY)
Early reversal awareness (RSI Caution)
Sideways / no-trade zones (Manual Range Filter)
🚀 FEATURES
✅ EMA STRUCTURE ENGINE
EMA 9 & EMA 21 for core trend detection
EMA 5–21 fast entries (optional)
Clean crossover-based logic (no repaint)
⚡ CORE & FAST SIGNALS
BUY / SELL CORE → Main trend confirmation
FAST signals → Early continuation entries
Fully optional, toggle-controlled
🎯 PRIORITY OPENING ENTRY (09:15–09:45)
One-time high-probability retest / crossover entry
Designed for first 30 minutes volatility
Automatically resets every trading day
📉 VWAP NOISE FILTER (Optional)
Blocks trades when price is too close to VWAP
Helps avoid choppy & mean-reversion zones
⚠️ RSI CAUTION SIGNALS (NON-BLOCKING)
⚠️ These are alerts, NOT trade entries
RSI caution appears only when:
Cross happens inside OB / OS
Cross on zone exit
Cross just after zone exit
❌ No random mid-zone RSI noise
❌ No sideways false alerts
Perfect for:
Spotting early trend exhaustion
Managing open trades
Avoiding over-trading in trends
🚫 MANUAL NO-TRADE RANGE (Power Feature)
Manually define price range
ALL signals blocked inside this zone
(CORE / FAST / PRIORITY / RSI)
Range is visually highlighted on chart
Best use cases:
Event days
Option decay zones
Choppy consolidation areas
🎛️ FULL CONTROL
Every module is independently switchable:
FAST EMA
PRIORITY Entry
VWAP Filter
RSI Caution
Manual No-Trade Range
👉 Trade your style, not forced logic.
📊 BEST TIMEFRAMES
5-minute (Recommended)
Works on Index charts only
NIFTY
BANKNIFTY
FINNIFTY
⚠️ IMPORTANT NOTE
This is NOT a buy/sell recommendation
RSI signals are caution alerts, not entries
Use with proper risk management
💡 WHO IS THIS FOR?
✔️ Serious intraday traders
✔️ Price-action + structure followers
✔️ Traders tired of over-signals
✔️ Those who want clarity over complexity
🔒 Built for discipline.
🔥 Designed for structure.
🎯 Powered by context, not noise.
5S Scalper SignalClear long and short signals with pre-defined stoploss and target. Change the parameters if you want more or less signal.
Disable "Cloud 2", "Order Block", "Sweep", "CISD" in settings for clearer view.
Follow signals with your own risks. This is not a financial advice and you are fully responsible for your trading decisions.
LTF FVG + IFVG + HTF Liquidity + SessionsWhat this indicator does
This is a precision execution tool around Fair Value Gaps (FVG) and Inverted FVG (IFVG) with optional higher-timeframe confluence, HTF liquidity levels and session levels (Asia / London / Yesterday’s High–Low / Daily 50%).
By default it keeps things clean:
ON by default:
LTF FVG (nearest bullish & bearish)
LTF IFVG (inverted gaps that stay on the chart and freeze on second break)
OFF by default (you enable if you want):
HTF1 & HTF2 FVG layers
HTF liquidity levels (HTF swing highs/lows)
Asia & London session highs/lows
Yesterday’s high/low
Daily 50% line (D 50%)
Everything is time-anchored with xloc=bar_index, clamped to bar_index + 500, and trimmed by age / count so behaviour is stable in replay and on reload.
1. LTF FVG + IFVG (core engine)
Detection
Uses a 3-bar ICT-style pattern:
Bullish FVG: low > high and close > high
Bearish FVG: high < low and close < low
Runs on a Lower Timeframe (LTF):
Default: current chart timeframe
Optional: override via input.
Lifetime model
FVG lifetime is not hardcoded; it’s based on the timeframe:
Short TF → shorter lifetime in bars
Higher TF → proportionally longer lifetime
When lifetime is reached or price fully closes through the gap, the FVG is frozen:
Right edge stops where it should (expiry or break).
Zone is kept as historical structure, not deleted.
IFVG (Inverted FVG)
When an LTF FVG is broken back through:
It can spawn an Inverted FVG (IFVG) in the same price range.
Source must be younger than N LTF bars (configurable, default max age = 15).
Behaviour:
IFVGs are drawn with their own length (in bars) and color.
They stay on the chart even after being broken again.
On the next break in the opposite direction, the right side is cut:
The IFVG stops extending at that bar (second break = freeze).
Total number of IFVG boxes is capped for performance.
Visibility logic (LTF)
Indicator continuously tracks:
Nearest bearish FVG above price
Nearest bullish FVG below price
Only those two active LTF FVGs are visually highlighted (if enabled):
All other still-alive FVGs are tracked internally but muted.
Colours:
Bullish LTF zone color
Bearish LTF zone color
Separate color for IFVGs.
Result: You always see the closest upside and downside LTF imbalance + all IFVGs frozen where they were created and finally broken.
2. HTF1 & HTF2 FVG (optional)
Two higher-timeframe FVG layers for confluence:
HTF1
Timeframe:
Auto-mapped from the chart TF (e.g. 1m → 5m, 5m → 15m, 15m → 1h, 1h → 4h, 4h → Daily, etc.).
Manual override available.
Detection:
Same 3-bar FVG logic, but calculated on HTF and projected down.
Lifetime based on HTF bars, not LTF bars.
Visibility:
Only one bullish and one bearish HTF1 FVG is shown:
Nearest bearish above current price
Nearest bullish below current price
All others are tracked and culled by age/count.
HTF2
Second, higher layer (e.g. 1m → 1h, 5m → 1h, 1h → Daily, 4h → Weekly, etc.).
Same behaviour as HTF1:
FVG detection on HTF2
Lifetime in HTF2 bars
Only nearest bullish and bearish zones are drawn.
HTF visuals
HTF1
Bullish: yellow, ~20% opacity (subtle background)
Bearish: purple, ~20% opacity
HTF2
Bullish: yellow, ~40% opacity (stronger)
Bearish: purple, ~40% opacity
HTF HUD
Small two-column HUD at the bottom center:
Shows active TF for HTF1 and HTF2, e.g.
HTF1 FVG 15 | HTF2 FVG 60
If a layer is turned off, it shows HTF1 FVG: off / HTF2 FVG: off.
3. HTF Liquidity (pivot highs/lows) – optional
A separate module to track HTF liquidity levels:
HTF selection:
Auto-select HTF (mapping similar to FVG)
Or manual HTF via input.
Detection:
Uses pivot highs/lows with configurable left/right strength.
All pivots are pulled via request.security(..., lookahead_off) and anchored correctly on the LTF chart with xloc=bar_index.
Each liquidity level stores:
Price
Whether it’s a high or low
Creation bar index
Sweep status and sweep bar index.
Sweeps
A level is marked as swept when price wicks through it:
High level swept when high >= level price
Low level swept when low <= level price
Once swept:
The line is extended for a limited number of bars (configurable) and then frozen.
Sweep history:
High sweeps and low sweeps stored in arrays.
History is trimmed by bars back, not by random count – deterministic behaviour on reload.
You can turn the entire HTF Liquidity module on/off with LIQ: Show HTF Levels.
4. Sessions: Asia, London, Y-High/Y-Low, D 50% (optional)
All session features are OFF by default – you only enable what you actually want.
Asia & London highs/lows
Two time windows in Europe/Copenhagen time:
Asia session
London session
During each session:
Script tracks the session high and low plus their bar indices.
When a session ends and Show Asia/London High/Low is enabled:
A line is drawn from the session’s high/low with a label:
“Asia high”, “Asia low”, “London high”, “London low”.
Lines are anchored with xloc=bar_index, right side clamped.
Sweep behaviour
On the first sweep:
If price trades through a session high/low:
The line’s right edge is frozen at the sweep bar.
The label is also locked to that bar.
Line style switches to dashed, indicating the level has been taken.
Before sweep:
Lines & labels extend live with the chart (following the latest bar).
Yesterday’s High / Low
Tracks current day’s high & low, then rolls them into Y-high and Y-low at the new daily open.
When Show Y-high/Y-low is enabled:
Lines + labels for Y-high/Y-low are drawn from the rollover bar.
On sweep:
First touch through Y-high or Y-low:
Line is frozen at sweep bar and set to dashed.
Label is locked at that bar.
Before sweep, they extend live.
Daily Mid (D 50%)
Optional midpoint of the daily range ((dayHigh + dayLow) / 2).
Drawn as a dashed line with a “D 50%” label.
Always extends to the latest bar; not sweep-gated.
Session shading (debug)
Optional background shading when current bar is inside:
Asia session
London session
Purely visual; no effect on logic.
5. Design, performance & behaviour
All drawings are:
xloc = bar_index (sticky with scroll/zoom).
Right-clamped to bar_index + 500 to avoid runaway extensions.
Arrays and objects are trimmed:
FVG/IFVG, HTF FVG, HTF liquidity and session objects are all capped by bars back or max count.
This keeps the script stable even on long histories and in replay mode.
HTF data:
All HTF feeds use request.security(..., lookahead_off) for non-repainting behaviour.
Only preview/visual elements (HUD etc.) depend on last bar state.
TL;DR
You get:
A clean, non-spammy LTF FVG/IFVG engine that:
Shows only the nearest bullish and bearish LTF gaps,
Freezes IFVGs on second break instead of deleting them.
Optional HTF1 & HTF2 FVG context (nearest zones per direction).
Optional HTF liquidity from higher-timeframe pivot highs/lows.
Optional Asia/London session highs/lows, Yesterday’s High/Low, and D 50%, all with proper sweep freezing.
Turn on only the modules you actually trade with – the default setup is just FVG + IFVG, ready for intraday execution.
HY Smart VolumeHY Smart Volume is a custom volume analysis indicator that breaks total volume into three stacked layers to visualize market participation strength:
Retail volume (normal activity)
Medium volume (above-average activity)
Smart money volume (high-impact institutional activity)
The script splits each candle’s volume into layers:
1. Retail Volume
2. Medium Volume
3. Smart Money Volume
🟢 Retail Volume
Represents normal market activity
🟡 Medium Volume
Indicates increasing interest
🔴 Smart Money Volume
Red → Smart buying
Maroon → Smart selling
HY Smart RSIHY Smart RSI is an enhanced RSI indicator that uses EMA smoothing and a signal line to help:
Identify trend momentum
Generate cleaner Buy & Sell signals
Reduce noise compared to the standard RSI
This indicator is plotted in a separate pane (overlay = false), not on the price chart.
Condition Color Meaning
RSI Smooth > Signal 🟢 Green Bullish momentum
RSI Smooth < Signal 🔴 Red Bearish momentum
🟢 Buy Signal
RSI Smooth crosses above Signal line
Indicates strengthening bullish momentum
🔴 Sell Signal
RSI Smooth crosses below Signal line
Indicates weakening momentum
Signals are displayed as small circles:
Buy → bottom of the pane
Sell → top of the pane
Iceberg strategy screenerIceberg Strategy — H4 Trend & Volume Filter
Iceberg Strategy is an H4 trend indicator that combines MACD structure, liquidity filtering, correlation analysis, and retest logic to identify structured market conditions.
The indicator is designed for swing trading and focuses on filtering weak markets while highlighting confirmed trend environments.
Core Components
H4 Trend Logic
Dual MACD structure is used to determine the main trend and confirmation phase before entry.
24H Volume Filter
Calculates USD trading volume over the last 24 hours.
Signals are allowed only in sufficiently liquid markets.
Correlation Filter
Optional correlation control against BTC (or a custom symbol) to avoid highly dependent market movements.
Volume Dominance (Buyer vs Seller)
Measures buying vs selling pressure to confirm directional strength.
Retest Logic
Optional retest confirmation after a level break to improve entry structure.
Risk Structure
The indicator automatically calculates:
ATR-based Stop Loss
Take Profit levels from 1R to 5R
All levels are visualized directly on the chart.
Visual Features
BUY / SELL labels
entry dots
SL / TP lines
H4 trend coloring
optional volume zones
parameter status table
Alerts
Built-in alerts:
Long Entry
Short Entry
Compatible with webhook automation.
Purpose
This indicator is intended for:
H4 swing trading
trend analysis
structured market filtering
disciplined trade planning
It is not a standalone trading system and requires independent risk management.
Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice.
⚙️ Description of indicator settings
Risk Management
SL Offset
Additional safety buffer added to Stop Loss to reduce fake stop-outs.
Filters
Enable Correlation Filter
Activates correlation control against a reference symbol.
Enable 24H Volume Filter
Allows signals only when sufficient liquidity is present.
Correlation Settings
reference symbol (default: BTC)
lookback length
maximum allowed correlation
excluded symbols list
Volume Fight Settings
Lookback
Period used to measure buyer vs seller dominance.
Flat Threshold
Defines accumulation/distribution sensitivity.
Background Zones
Optional visual highlighting.
Retest Settings
Key Level Price
Important level used for retest logic.
Retest Range (%)
Allowed deviation range from the level.
SL/TP Settings
ATR Length
ATR calculation period.
ATR Multiplier
Stop Loss distance factor.
📘 Usage guide
Recommended workflow
Work on H4 chart
Wait for confirmed signal
Check higher timeframe structure
Enter with defined risk
Follow SL/TP structure
Entry refinement
After H4 signal:
use M15–H1 for precise entry
wait for pullback if needed
avoid chasing extended candles
Trade management
partial exit at TP1–TP3
move SL to breakeven after TP1 (optional)
trail remaining position
Avoid
trading against signals
removing stop loss
emotional position sizing
revenge trading
Squeeze Momentum + ADX MemoThis indicator is a comprehensive technical analysis tool that combines the volatility detection of the Squeeze Momentum with the trend strength of the ADX (Average Directional Index). It is optimized to provide a clear reading of price action across multiple timeframes.
Unlike standard oscillators, this customized version by Memo integrates a dynamic Multi-Timeframe (MTF) info panel and a visual scaling system, allowing you to monitor strength and momentum in a single pane without cluttering your price chart.
🛠 KEY FEATURES
Squeeze Momentum: Identifies compression phases (red dots) and volatility breakouts (green dots).
Dynamic ADX: ADX and DI+/DI- lines are proportionally scaled to the histogram for intuitive visualization.
Multi-Timeframe Analysis (MTF): A dedicated dashboard shows trend strength and direction (EMA 200) for both the current chart and a higher timeframe (e.g., 1D).
Divergence Detector: Automatically identifies Bullish and Bearish divergences (BULL/BEAR DIV).
Signal Labels: LONG and SHORT markers triggered when trend strength is confirmed.
📘 DETAILED USER GUIDE
1. Understanding the Elements
Histogram: Cyan/Blue (Bullish), Red/Maroon (Bearish).
Center Dots: Red dots indicate the market is "squeezing" (price compression/accumulation). Green dots indicate the squeeze has released and a trend is underway.
White Line (ADX): Above the Critical Level (23) indicates a strong trend. Below 23 suggests a range-bound or "choppy" market.
2. Trading Strategy (High Probability Setup)
LONG Entry (Buy):
Squeeze: Red dots must be present (accumulation phase).
Shift: Histogram starts moving up or changes to recovery colors.
Strength: The ADX (white line) crosses above the critical level (23).
Confirmation: DI+ (green) must be above DI- (red).
Macro Filter: The dashboard must show a BULLISH trend on the Higher Timeframe.
SHORT Entry (Sell):
Squeeze: Red dots must be present.
Shift: Histogram starts dropping with increasing momentum.
Strength: The ADX crosses above the critical level (strength is gaining on the downside).
Confirmation: DI- (red) must be above DI+ (green).
Macro Filter: The dashboard must show a BEARISH trend on the Higher Timeframe.
3. Divergences & Exits
Use the BULL DIV and BEAR DIV labels as warning signals. A divergence against your current position is a clear sign to take profits or tighten your Stop Loss.
4. Info Panel (Dashboard)
ADX Metric: If both timeframes (Current and Higher) are green, the probability of a successful trend trade increases significantly.
Trend: Based on the 200 EMA. Memo's Golden Rule: Avoid trading against the higher timeframe trend to stay away from "fakeouts."
Shahed Pro Indicator-2Shahed Pro – Pullback & Swing‑High Buy Indicator
What it does (in one line):
Shows two high‑probability long setups in uptrends: Swing‑High Breakout and Pullback to EMA‑20.
It also shows a small info panel with Target (RR), % from 52‑week High/Low, Sector, and Industry.
Why this can help
Focuses only on trend‑aligned long signals.
Filters out weak conditions (no signals when EMA10 ≤ EMA20).
Keeps risk simple: stop = previous candle’s low; target = RR × risk (default 2R).
Lightweight panel gives quick context (how far from 52‑week extremes + the symbol’s sector/industry).
How it works (simple)
1) Trend Filter (hard gate)
No Buy if EMA(10) ≤ EMA(20).
Also requires a broader bias: SMA(50) > SMA(150) and SMA(50) > SMA(200).
2) Buy Signals (only two)
Swing‑High Buy (SH):
A confirmed breakout above the last pivot high (swing high). You can choose close‑based or tick‑based breakout.
Pullback Buy (PB):
After a swing‑high breakout, price pulls back with 3–7 lower closes, touches/near‑touches EMA‑20 (tolerance configurable), then prints a bullish bar (close > open).
3) Risk & Reward
Stop = previous candle’s low at the entry bar.
Target = Entry + RR × (Entry − Stop). Default RR = 2.0 (2R).
Optional lines plot on chart for both target (dashed) and stop (dotted).
Signals on chart
BUY (SH) – Swing‑High breakout over the last pivot high.
BUY (PB) – Pullback to EMA‑20 with a bullish reversal after 3–7 lower closes.
SELL (recent low / swing‑low break) – Minimal downside references (optional; kept for context).
All signals are confirmed on bar close (no repaint of signals after the bar closes).
Mini Info Panel (top‑right by default)
Target (RR) – shows the current absolute target price based on your RR (e.g., 2R).
% from 52‑week High
% from 52‑week Low
Sector (from the symbol metadata)
Industry (from the symbol metadata)
You can move or hide the panel in settings.
Key Inputs (quick guide)
Breakout must be by CLOSE / tick – choose how to confirm a swing‑high breakout.
Use confirmed recent levels – excludes the forming bar when finding recent H/L.
Swing Left / Right – pivot sensitivity for swing‑high detection.
Pullback: EMA‑20 touch – enable/disable, tolerance (%), and lookback window.
RR (x risk) – target multiple (default: 2.0).
Show Target/Stop Lines – toggle lines for clarity.
Mini Info Panel – show/hide, position, transparency.
Best‑practice tips
Timeframe: Designed for daily charts (works on others, but the logic and 52‑week context align best on 1D).
Stocks with clean trends: Works best on names with smooth EMA/MA structure and reasonable liquidity.
Avoid counter‑trend: The EMA10 > EMA20 and SMA filters help, but always check structure and nearby resistance.
Use with a plan: Size risk per trade (e.g., 0.5–1R), stick to the stop, and take partials at 1R if that suits your style.
Alerts (ready to use)
Buy – triggers on either BUY (SH) or BUY (PB) at bar close.
Sell – triggers on sell references at bar close.
Alert messages:
Buy: {{ticker}} {{interval}} close={{close}}
Sell: {{ticker}} {{interval}} close={{close}}
Create alerts from the “Alerts” panel and pick this indicator’s conditions.
What this indicator is not
Not a promise of profits or a guarantee of future performance.
Not a fully automated strategy (it’s an indicator; entries/exits need your discretion).
Not a replacement for risk management or a complete trading plan.
Changelog (summary)
Focused scope: only two buy signals (Swing‑High, Pullback).
Hard EMA gate: no buy when EMA10 ≤ EMA20.
Minimal panel with Target, 52W distances, Sector, Industry.
Clean, confirmed signals at bar close (reduced noise).
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Markets involve risk, including the possible loss of capital. Past performance is not indicative of future results. You are solely responsible for your own trading decisions and risk management. Always do your own research and consult a licensed financial professional if needed.






















