Xcelerate - Order Flow PRO - Delta and ImbalanceORDER FLOW PRO - Volume Delta & Institutional Levels
This indicator brings institutional Order Flow analysis to PulseWire,
inspired by professional trading methodologies used by banks, hedge funds,
and institutional traders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT IS ORDER FLOW?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Order Flow analysis reveals the real buying and selling pressure behind
price movements. Instead of reacting to price with lagging indicators
(RSI, MACD), you see WHO is in control of the market RIGHT NOW — before
the move happens.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 VOLUME DELTA HISTOGRAM
- Green bars = Aggressive buying pressure (bullish)
- Red bars = Aggressive selling pressure (bearish)
- Shows who is in control on every single bar
- Smoothed with a configurable Moving Average
📉 CUMULATIVE DELTA
- Running total of buying vs selling pressure
- Rising line = Bulls in control overall
- Falling line = Bears in control overall
- Divergence from price = powerful reversal warning
⚡ STACKED IMBALANCES DETECTION
- Automatically detects 3+ consecutive imbalance bars
- Green signal (▲) = Stacked Buy Imbalance → potential Support
- Red signal (▼) = Stacked Sell Imbalance → potential Resistance
- One of the highest-probability setups in Order Flow trading
⚠️ PRICE-DELTA DIVERGENCE
- Bearish: Price making higher high, Delta making lower high
- Bullish: Price making lower low, Delta making higher low
- Historically one of the most reliable reversal signals
- Automatically marked with warning symbols on chart
📊 LIVE DASHBOARD
- Real-time overview of all key metrics
- Current Delta value
- Cumulative Delta value
- Volume status (Normal / 🔥 HIGH)
- Market Pressure (Buying / Selling / Neutral)
- Imbalance status
- Overall SIGNAL (Bullish / Bearish / Neutral)
🔔 6 BUILT-IN ALERTS
- Stacked Buy Imbalance detected
- Stacked Sell Imbalance detected
- Bearish Divergence detected
- Bullish Divergence detected
- Extreme Buying Pressure
- Extreme Selling Pressure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. VOLUME DELTA — Monitor the histogram:
• Consistent green bars = bullish bias
• Consistent red bars = bearish bias
• Watch for sudden spikes = institutional activity
2. CUMULATIVE DELTA — Watch the line:
• Trending up while price trends up = strong trend
• Diverging from price = potential reversal
3. STACKED IMBALANCES — Best trade setups:
• Mark the zone when signal appears
• Wait for price to pull back to that zone
• Enter in the direction of the original imbalance
• Place SL just beyond the zone
4. DIVERGENCE — Reversal signals:
• Look for divergence warnings near S/R levels
• Strongest when combined with high volume
• Confirm with a price action candle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Timeframes: 5m, 15m, 30m (best for day trading)
- Delta MA Period: 20 (default) — increase for smoother signal
- Imbalance Threshold: 0.7 (default) — lower = more signals
- Combine with: Volume Profile, Support/Resistance, Price Action
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 BEST INSTRUMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Forex pairs (EUR/USD, GBP/USD, etc.)
✅ Crypto (BTC/USD, ETH/USD, SOL/USD)
✅ Indices (SPX, NAS100, DAX)
✅ Commodities (Gold, Oil)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- PulseWire does not provide true Bid/Ask data for most instruments
- Volume Delta is estimated based on bar structure (close vs open)
- For true institutional Order Flow, use NinjaTrader 8 with Futures data
- This indicator works best as a CONFLUENCE tool — always combine
with proper price action analysis and risk management
- Past signals do not guarantee future results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRO TIPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ Trade Stacked Imbalances at key S/R levels for highest probability
→ Use Cumulative Delta to confirm trend direction before entering
→ Pay attention to HIGH volume bars — institutions are active
→ Always wait for the FIRST touch of a level (don't re-trade same zone)
→ Use a minimum 2:1 Risk:Reward on every trade
→ Set alerts so you never miss a signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is based on institutional Order Flow trading principles,
including concepts from professional futures and forex trading:
- Volume Delta analysis (Aggressive Buyers vs Sellers)
- Imbalance detection (one-sided market domination)
- Cumulative Delta divergence (weakening momentum)
- High Volume Node identification (institutional activity zones)
These concepts are used by professional traders on platforms like
NinjaTrader and Sierra Chart with real Bid/Ask Futures data. This
indicator adapts those principles for PulseWire using estimated
volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational purposes only. Trading financial
markets involves substantial risk of loss. Never risk more than you
can afford to lose. Always use proper risk management. Past performance
is not indicative of future results.
If you find this indicator useful, please leave a comment or a ⭐ —
it helps others discover it and motivates further development!
Good luck and trade safe! 🚀
Feb 17
Release Notes
🚀 ORDER FLOW PRO - Volume Delta & Institutional Levels
This indicator brings institutional Order Flow analysis to PulseWire,
inspired by professional trading methodologies used by banks, hedge funds,
and institutional traders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT IS ORDER FLOW?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Order Flow analysis reveals the real buying and selling pressure behind
price movements. Instead of reacting to price with lagging indicators
(RSI, MACD), you see WHO is in control of the market RIGHT NOW — before
the move happens.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 VOLUME DELTA HISTOGRAM
- Green bars = Aggressive buying pressure (bullish)
- Red bars = Aggressive selling pressure (bearish)
- Shows who is in control on every single bar
- Smoothed with a configurable Moving Average
📉 CUMULATIVE DELTA
- Running total of buying vs selling pressure
- Rising line = Bulls in control overall
- Falling line = Bears in control overall
- Divergence from price = powerful reversal warning
⚡ STACKED IMBALANCES DETECTION
- Automatically detects 3+ consecutive imbalance bars
- Green signal (▲) = Stacked Buy Imbalance → potential Support
- Red signal (▼) = Stacked Sell Imbalance → potential Resistance
- One of the highest-probability setups in Order Flow trading
⚠️ PRICE-DELTA DIVERGENCE
- Bearish: Price making higher high, Delta making lower high
- Bullish: Price making lower low, Delta making higher low
- Historically one of the most reliable reversal signals
- Automatically marked with warning symbols on chart
📊 LIVE DASHBOARD
- Real-time overview of all key metrics
- Current Delta value
- Cumulative Delta value
- Volume status (Normal / 🔥 HIGH)
- Market Pressure (Buying / Selling / Neutral)
- Imbalance status
- Overall SIGNAL (Bullish / Bearish / Neutral)
🔔 6 BUILT-IN ALERTS
- Stacked Buy Imbalance detected
- Stacked Sell Imbalance detected
- Bearish Divergence detected
- Bullish Divergence detected
- Extreme Buying Pressure
- Extreme Selling Pressure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. VOLUME DELTA — Monitor the histogram:
• Consistent green bars = bullish bias
• Consistent red bars = bearish bias
• Watch for sudden spikes = institutional activity
2. CUMULATIVE DELTA — Watch the line:
• Trending up while price trends up = strong trend
• Diverging from price = potential reversal
3. STACKED IMBALANCES — Best trade setups:
• Mark the zone when signal appears
• Wait for price to pull back to that zone
• Enter in the direction of the original imbalance
• Place SL just beyond the zone
4. DIVERGENCE — Reversal signals:
• Look for divergence warnings near S/R levels
• Strongest when combined with high volume
• Confirm with a price action candle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Timeframes: 5m, 15m, 30m (best for day trading)
- Delta MA Period: 20 (default) — increase for smoother signal
- Imbalance Threshold: 0.7 (default) — lower = more signals
- Combine with: Volume Profile, Support/Resistance, Price Action
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 BEST INSTRUMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Forex pairs (EUR/USD, GBP/USD, etc.)
✅ Crypto (BTC/USD, ETH/USD, SOL/USD)
✅ Indices (SPX, NAS100, DAX)
✅ Commodities (Gold, Oil)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- PulseWire does not provide true Bid/Ask data for most instruments
- Volume Delta is estimated based on bar structure (close vs open)
- For true institutional Order Flow, use NinjaTrader 8 with Futures data
- This indicator works best as a CONFLUENCE tool — always combine
with proper price action analysis and risk management
- Past signals do not guarantee future results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRO TIPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ Trade Stacked Imbalances at key S/R levels for highest probability
→ Use Cumulative Delta to confirm trend direction before entering
→ Pay attention to HIGH volume bars — institutions are active
→ Always wait for the FIRST touch of a level (don't re-trade same zone)
→ Use a minimum 2:1 Risk:Reward on every trade
→ Set alerts so you never miss a signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is based on institutional Order Flow trading principles,
including concepts from professional futures and forex trading:
- Volume Delta analysis (Aggressive Buyers vs Sellers)
- Imbalance detection (one-sided market domination)
- Cumulative Delta divergence (weakening momentum)
- High Volume Node identification (institutional activity zones)
These concepts are used by professional traders on platforms like
NinjaTrader and Sierra Chart with real Bid/Ask Futures data. This
indicator adapts those principles for PulseWire using estimated
volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational purposes only. Trading financial
markets involves substantial risk of loss. Never risk more than you
can afford to lose. Always use proper risk management. Past performance
is not indicative of future results.
If you find this indicator useful, please leave a comment or a ⭐ —
it helps others discover it and motivates further development!
Good luck and trade safe! 🚀
Feb 17
Release Notes
🚀 ORDER FLOW PRO - Volume Delta & Institutional Levels
This indicator brings institutional Order Flow analysis to PulseWire,
inspired by professional trading methodologies used by banks, hedge funds,
and institutional traders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 WHAT IS ORDER FLOW?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Order Flow analysis reveals the real buying and selling pressure behind
price movements. Instead of reacting to price with lagging indicators
(RSI, MACD), you see WHO is in control of the market RIGHT NOW — before
the move happens.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 VOLUME DELTA HISTOGRAM
- Green bars = Aggressive buying pressure (bullish)
- Red bars = Aggressive selling pressure (bearish)
- Shows who is in control on every single bar
- Smoothed with a configurable Moving Average
📉 CUMULATIVE DELTA
- Running total of buying vs selling pressure
- Rising line = Bulls in control overall
- Falling line = Bears in control overall
- Divergence from price = powerful reversal warning
⚡ STACKED IMBALANCES DETECTION
- Automatically detects 3+ consecutive imbalance bars
- Green signal (▲) = Stacked Buy Imbalance → potential Support
- Red signal (▼) = Stacked Sell Imbalance → potential Resistance
- One of the highest-probability setups in Order Flow trading
⚠️ PRICE-DELTA DIVERGENCE
- Bearish: Price making higher high, Delta making lower high
- Bullish: Price making lower low, Delta making higher low
- Historically one of the most reliable reversal signals
- Automatically marked with warning symbols on chart
📊 LIVE DASHBOARD
- Real-time overview of all key metrics
- Current Delta value
- Cumulative Delta value
- Volume status (Normal / 🔥 HIGH)
- Market Pressure (Buying / Selling / Neutral)
- Imbalance status
- Overall SIGNAL (Bullish / Bearish / Neutral)
🔔 6 BUILT-IN ALERTS
- Stacked Buy Imbalance detected
- Stacked Sell Imbalance detected
- Bearish Divergence detected
- Bullish Divergence detected
- Extreme Buying Pressure
- Extreme Selling Pressure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. VOLUME DELTA — Monitor the histogram:
• Consistent green bars = bullish bias
• Consistent red bars = bearish bias
• Watch for sudden spikes = institutional activity
2. CUMULATIVE DELTA — Watch the line:
• Trending up while price trends up = strong trend
• Diverging from price = potential reversal
3. STACKED IMBALANCES — Best trade setups:
• Mark the zone when signal appears
• Wait for price to pull back to that zone
• Enter in the direction of the original imbalance
• Place SL just beyond the zone
4. DIVERGENCE — Reversal signals:
• Look for divergence warnings near S/R levels
• Strongest when combined with high volume
• Confirm with a price action candle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Timeframes: 5m, 15m, 30m (best for day trading)
- Delta MA Period: 20 (default) — increase for smoother signal
- Imbalance Threshold: 0.7 (default) — lower = more signals
- Combine with: Volume Profile, Support/Resistance, Price Action
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 BEST INSTRUMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Forex pairs (EUR/USD, GBP/USD, etc.)
✅ Crypto (BTC/USD, ETH/USD, SOL/USD)
✅ Indices (SPX, NAS100, DAX)
✅ Commodities (Gold, Oil)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- PulseWire does not provide true Bid/Ask data for most instruments
- Volume Delta is estimated based on bar structure (close vs open)
- For true institutional Order Flow, use NinjaTrader 8 with Futures data
- This indicator works best as a CONFLUENCE tool — always combine
with proper price action analysis and risk management
- Past signals do not guarantee future results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 PRO TIPS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
→ Trade Stacked Imbalances at key S/R levels for highest probability
→ Use Cumulative Delta to confirm trend direction before entering
→ Pay attention to HIGH volume bars — institutions are active
→ Always wait for the FIRST touch of a level (don't re-trade same zone)
→ Use a minimum 2:1 Risk:Reward on every trade
→ Set alerts so you never miss a signal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is based on institutional Order Flow trading principles,
including concepts from professional futures and forex trading:
- Volume Delta analysis (Aggressive Buyers vs Sellers)
- Imbalance detection (one-sided market domination)
- Cumulative Delta divergence (weakening momentum)
- High Volume Node identification (institutional activity zones)
These concepts are used by professional traders on platforms like
NinjaTrader and Sierra Chart with real Bid/Ask Futures data. This
indicator adapts those principles for PulseWire using estimated
volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ RISK DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational purposes only. Trading financial
markets involves substantial risk of loss. Never risk more than you
can afford to lose. Always use proper risk management. Past performance
is not indicative of future results.
If you find this indicator useful, please leave a comment or a ⭐ —
it helps others discover it and motivates further development!
Good luck and trade safe! 🚀
Mar 9
Release Notes
ORDER FLOW PRO — Volume Delta & Imbalance Analysis | Xcelerate Trade
Overview
Order Flow Pro is a volume-pressure analysis framework designed to visualize directional activity within individual bars and across broader market swings.
It examines the relationship between price expansion and underlying volume-derived pressure, helping traders assess whether movement is supported by participation or developing under weakening internal conditions.
The objective is structural clarity, not prediction.
Methodology
PulseWire does not provide true bid/ask transaction data for most instruments. Delta is therefore estimated using volume and bar-structure logic.
The script applies rule-based calculations to:
• Estimate per-bar directional delta
• Aggregate cumulative delta over time
• Detect sustained imbalance conditions using configurable thresholds
• Compare structural price swings with cumulative delta swings
• Classify pressure state using internally defined conditions
All outputs are derived directly from available market data.
Key Features
• Volume Delta Histogram
Displays estimated buying and selling pressure per bar to evaluate participation intensity.
• Cumulative Delta
Tracks whether pressure is expanding, stabilizing, or diverging relative to price movement.
• Stacked Imbalance Detection
Identifies clusters of consecutive directional pressure exceeding a defined threshold.
• Price–Delta Divergence
Highlights structural disagreement between price movement and cumulative pressure.
• Integrated Dashboard
Provides real-time visibility of delta state, cumulative bias, imbalance status, and pressure classification.
• Configurable Alerts
Available for imbalance clusters and divergence conditions.
Practical Application
Order Flow Pro functions as a contextual layer within a structured analytical process.
It may assist in:
• Evaluating whether breakouts are supported by expanding participation
• Assessing the internal strength of ongoing trends
• Identifying areas where directional pressure has concentrated
• Observing potential momentum compression when price extends without corresponding delta expansion
Outputs should be interpreted alongside market structure, volatility conditions, and independent risk management rules.
Recommended Settings
Common intraday configurations:
• Timeframes: 5m, 15m, 30m
• Delta MA Period: 20 (adjustable for smoothing preference)
• Imbalance Threshold: configurable based on instrument volatility
Settings may be adapted to instrument characteristics and trading style.
Applicable Markets
Designed for use on:
• Major Forex pairs
• Crypto pairs
• Equity indices
• Commodities
Behavior varies depending on liquidity profile and volume structure.
Limitations
• Delta values are estimated due to platform data constraints.
• Results may differ from platforms using exchange-level bid/ask feeds.
• Imbalance and divergence represent structural conditions, not forecasts or trade instructions.
• Market regime and timeframe materially influence interpretation.
Developed by Xcelerate Trade — professional-grade tools designed for disciplined market structure workflows. Indicator

StocksDeveloperAlertsLibrary "StocksDeveloperAlerts"
AutoTrader Web alert builder by Stocks Developer — turn PulseWire alerts into real broker orders across many accounts and brokers. Ready-made functions for single orders, options the easy way, 8 option structures (straddle/strangle/spreads/iron condor/iron fly), custom multi-leg, account or group targeting, and your own risk limits. No alert-text typing. stocksdeveloper.in
order(symbol, exchange, producttype, tradetype, account, group, lots, quantity, ordertype, price, triggerprice, validity, amo, optiontype, strike, expiry, spothint, usespot, onslicefailure, risk, extra)
Build an alert message for a single order (stock, futures or one option leg). This is the full builder; equity() and option() are shorter wrappers over it. Set exactly one of account/group and exactly one of lots/quantity. Add optiontype to make it an option order.
Parameters:
symbol (string) : (series string) Broker-independent symbol, e.g. "NIFTY", "BANKNIFTY", "SBIN". For options, pass the underlier (e.g. "NIFTY"), not a full contract.
exchange (string) : (series string) Exchange code, e.g. "NSE"/"BSE" for stocks, "NFO" for options and futures.
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
tradetype (string) : (series string) BUY or SELL.
account (string) : (series string) Place in this single account. Set this OR group.
group (string) : (series string) Place in every live account in this group. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
ordertype (string) : (series string) MARKET (default), LIMIT, STOP_LOSS or SL_MARKET.
price (float) : (series float) Limit price (required for LIMIT).
triggerprice (float) : (series float) Trigger price (for stop-loss orders).
validity (string) : (series string) DAY (default) or IOC.
amo (bool) : (series bool) true for an after-market order.
optiontype (string) : (series string) CE for a call, PE for a put. Adding this makes it an option order.
strike (string) : (series string) ATM (default), ATM+1 / ATM-2, OTM / OTM2, ITM / ITM2, or an exact strike like "24500". Requires optiontype.
expiry (string) : (series string) weekly (default), next, monthly, or an exact date like "10-JUL-2026". Requires optiontype.
spothint (string) : (series string) Advanced: a spot price to help option-strike selection.
usespot (bool) : (series bool) Advanced: use the spot hint for strike selection.
onslicefailure (string) : (series string) Advanced: continue (default), alert or retry, if a large order that was auto-split has a slice fail.
risk (string) : (series string) A risk block from risk() — for example risk=atw.risk(maxloss=5000).
extra (string) : (series string) Advanced: any extra "key=value" lines to pass through unchanged (one per line).
Returns: (series string) The ready-to-send alert message.
equity(symbol, exchange, producttype, tradetype, account, group, lots, quantity, ordertype, price, triggerprice, validity, amo, risk, extra)
Build an alert for a single stock or futures order (no option fields). Set exactly one of account/group and exactly one of lots/quantity.
Parameters:
symbol (string) : (series string) Broker-independent symbol, e.g. "SBIN".
exchange (string) : (series string) Exchange code, e.g. "NSE" or "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
tradetype (string) : (series string) BUY or SELL.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
ordertype (string) : (series string) MARKET (default), LIMIT, STOP_LOSS or SL_MARKET.
price (float) : (series float) Limit price (required for LIMIT).
triggerprice (float) : (series float) Trigger price (for stop-loss orders).
validity (string) : (series string) DAY (default) or IOC.
amo (bool) : (series bool) true for an after-market order.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
option(symbol, exchange, producttype, tradetype, optiontype, strike, expiry, account, group, lots, quantity, ordertype, price, triggerprice, validity, amo, spothint, usespot, risk, extra)
Build an option order the easy way — give the underlier and pick the strike + expiry; no need to type the full option symbol. Set exactly one of account/group and exactly one of lots/quantity.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY", "BANKNIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
tradetype (string) : (series string) BUY or SELL.
optiontype (string) : (series string) CE for a call, PE for a put.
strike (string) : (series string) ATM (default), ATM+1 / ATM-2, OTM / OTM2, ITM / ITM2, or an exact strike like "24500".
expiry (string) : (series string) weekly (default), next, monthly, or an exact date like "10-JUL-2026".
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
ordertype (string) : (series string) MARKET (default), LIMIT, STOP_LOSS or SL_MARKET.
price (float) : (series float) Limit price (required for LIMIT).
triggerprice (float) : (series float) Trigger price (for stop-loss orders).
validity (string) : (series string) DAY (default) or IOC.
amo (bool) : (series bool) true for an after-market order.
spothint (string) : (series string) Advanced: a spot price to help strike selection.
usespot (bool) : (series bool) Advanced: use the spot hint for strike selection.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
straddle(symbol, exchange, producttype, account, group, lots, quantity, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Straddle — buy (or sell) a call and a put at the money. direction "BUY" = long straddle, "SELL" = short straddle.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) builds the structure as named; SELL flips every leg.
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue, if one leg cannot be placed.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
strangle(symbol, exchange, producttype, account, group, lots, quantity, width, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Strangle — buy (or sell) an out-of-the-money call and put, each 'width' strikes out. direction "BUY" = long strangle, "SELL" = short strangle.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) How far out of the money the legs sit, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
bullCall(symbol, exchange, producttype, account, group, lots, quantity, width, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Bull call spread — buy a call at the money and sell a call 'width' strikes out. Use direction "SELL" to reverse.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) Distance between the two strikes, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
bearPut(symbol, exchange, producttype, account, group, lots, quantity, width, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Bear put spread — buy a put at the money and sell a put 'width' strikes out. Use direction "SELL" to reverse.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) Distance between the two strikes, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
bullPut(symbol, exchange, producttype, account, group, lots, quantity, width, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Bull put spread (credit) — sell a put at the money and buy a put 'width' strikes out. Use direction "SELL" to reverse.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) Distance between the two strikes, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
bearCall(symbol, exchange, producttype, account, group, lots, quantity, width, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Bear call spread (credit) — sell a call at the money and buy a call 'width' strikes out. Use direction "SELL" to reverse.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) Distance between the two strikes, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
ironCondor(symbol, exchange, producttype, account, group, lots, quantity, width, wing, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Iron condor — sell a call and a put 'width' strikes out, and buy a call and a put 'width'+'wing' strikes out as protection. direction "BUY" builds this credit condor; "SELL" reverses it.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
width (int) : (series int) How far out the sold legs sit, in strike steps (default 2).
wing (int) : (series int) Extra distance out to the protective legs, in strike steps (defaults to width).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
ironFly(symbol, exchange, producttype, account, group, lots, quantity, wing, expiry, direction, ordertype, price, onlegfailure, risk, extra)
Iron fly — sell a call and a put at the money, and buy a call and a put 'wing' strikes out as protection. direction "BUY" builds this credit fly; "SELL" reverses it.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
wing (int) : (series int) How far out the protective legs sit, in strike steps (default 2).
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
direction (string) : (series string) BUY (default) or SELL (flips every leg).
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
leg(optiontype, strike, tradetype, multiplier)
Build one option leg string for use with multiLeg(), e.g. atw.leg("CE", "ATM+2", "SELL", 2) -> "CE ATM+2 SELL x2".
Parameters:
optiontype (string) : (series string) CE for a call, PE for a put.
strike (string) : (series string) ATM, ATM+2, OTM2, ITM1, or an exact strike like "24500".
tradetype (string) : (series string) BUY or SELL for this leg.
multiplier (int) : (series int) Size multiplier for this leg (default 1).
Returns: (series string) The leg descriptor.
multiLeg(symbol, exchange, producttype, legs, account, group, lots, quantity, expiry, ordertype, price, onlegfailure, risk, extra)
Build an alert for a fully custom multi-leg order from a list of legs (1 to 10) made with leg(). Set exactly one of account/group and exactly one of lots/quantity.
Parameters:
symbol (string) : (series string) The underlier, e.g. "NIFTY".
exchange (string) : (series string) Options exchange code, e.g. "NFO".
producttype (string) : (series string) INTRADAY, DELIVERY, NORMAL or MTF.
legs (array) : (array) The legs, e.g. array.from(atw.leg("PE","ATM-2","SELL"), atw.leg("PE","ATM-6","BUY")).
account (string) : (series string) Single account. Set this OR group.
group (string) : (series string) Group of accounts. Set this OR account.
lots (int) : (series int) Number of lots. Set this OR quantity.
quantity (int) : (series int) Exact quantity. Set this OR lots.
expiry (string) : (series string) weekly (default), next, monthly, or an exact date.
ordertype (string) : (series string) MARKET (default) or LIMIT.
price (float) : (series float) Limit price (required for LIMIT).
onlegfailure (string) : (series string) alert (default), cancel or continue.
risk (string) : (series string) A risk block from risk().
extra (string) : (series string) Extra "key=value" lines to pass through unchanged.
Returns: (series string) The ready-to-send alert message.
riskLimits(maxloss, forceexit, entrywindow, blockExpiry)
Build a risk-limits block to attach to any order via risk=. Example: risk=atw.riskLimits(maxloss=5000). These are your own limits; see the Alert Automation guide for exactly how each one behaves.
Parameters:
maxloss (float) : (series float) Maximum day loss for the account, in your account currency.
forceexit (string) : (series string) A square-off time as "HH:mm", e.g. "15:15".
entrywindow (string) : (series string) An allowed entry-time window "HH:mm-HH:mm", e.g. "09:30-14:30".
blockExpiry (bool) : (series bool) Block new entries on the instrument's expiry day.
Returns: (series string) The risk lines, ready to pass as risk=. Library

Liquidations Zones [ChartPrime]The Liquidation Zones indicator is designed to detect potential liquidation zones based on common leverage levels such as 10x, 25x, 50x, and 100x. By calculating percentage distances from recent pivot points, the indicator shows where leveraged positions are most likely to get liquidated. It also tracks buy and sell volumes in these zones, helping traders assess market pressure and predict liquidation scenarios. Additionally, the indicator features a heat map mode to highlight areas where orders and stop-losses might be clustered.
⯁ KEY FEATURES AND HOW TO USE
⯌ Leverage Zones Detection :
The indicator identifies zones where positions with leverage ratios of 100x, 50x, 25x, and 10x are at risk of liquidation. These zones are based on percentage moves from recent pivots: a 1% move can liquidate 100x positions, a 4% move affects 25x positions, and so on.
⯌ Liquidated Zones and Volume Tracking :
The indicator displays liquidated zones by plotting gray areas where the price potentually liquidate positons. It calculates the volume needed to liquidate positions in these zones, showing volume from bullish candles if short positions were liquidated and volume from bearish candles for long positions. This feature helps traders assess the risk of liquidation as the price approaches these zones.
⯌ Buy/Sell Volume Calculation :
Buy and sell volumes are calculated from the most recent pivot high or low. For buy volume, only bullish candles are considered, while for sell volume, only bearish candles are summed. This data helps traders gauge the strength of potential liquidation in different zones.
Example of buy and sell volume tracking in active zones:
⯌ Liquidity Heat Map :
In heat map mode, the indicator visualizes potential liquidity areas where orders and stop-losses may be clustered. This map highlights zones that are likely to experience liquidations based on leverage ratios. Additionally, it tracks the highest and lowest price levels for the past 100 bars, while also displaying buy and sell volumes. This feature is useful for predicting market moves driven by liquidation events.
⯁ USER INPUTS
Length : Determines the number of bars used to calculate pivots for liquidation zones.
Extend : Controls how far the liquidation zones are extended on the chart.
Leverage Options : Toggle options to display zones for different leverage levels: 10x, 25x, 50x, and 100x.
Display Heat Map : Enables or disables the liquidity heat map feature.
⯁ CONCLUSION
The Liquidation Zones indicator provides a powerful tool for identifying potential liquidation zones, tracking volume pressure, and visualizing liquidity areas on the chart. With its real-time updates and multiple features, this indicator offers valuable insights for managing risk and anticipating market moves driven by leveraged positions. Indicator

Custom Price Levels and AveragesThe "Custom Price Levels and Averages" indicator is a versatile tool designed for PulseWire. It dynamically calculates and displays key price levels based on user-defined parameters such as distance percentages and position size. The indicator plots three ascending and descending price levels (A, B, C, X, Y, Z) around the last candle close on a specified timeframe. Additionally, it provides the average price for both upward and downward movements, considering the user's specified position size and increase factor. Traders can easily customize the visual appearance by adjusting colors for each plotted line. This indicator assists in identifying potential support and resistance levels and understanding the average price movements within a specified trading context.
Avoid SL hunting by acumulating your position with scaled orders.
Input Parameters:
inputTimeframe: Allows the user to select a specific timeframe (default: "D" for daily).
distancePercentageUp: Determines the percentage increase for ascending price levels (default: 1.5%).
distancePercentageDown: Determines the percentage decrease for descending price levels (default: 1.5%).
position: Specifies the position size in USD for calculating average prices (default: $100).
increaseFactor: Adjusts the increase in position size for each subsequent level (default: 1.5).
calcAvgPrice Function:
Parameters:
priceA, priceB, priceC: Ascending price levels.
priceX, priceY, priceZ: Descending price levels.
position: User-defined position size.
increaseFactor: User-defined increase factor.
Calculation:
Calculates the weighted average price for ascending (priceA, priceB, priceC) and descending (priceX, priceY, priceZ) levels.
Utilizes the specified position size and increase factor to determine the weighted average.
Plotting:
Price Calculations:
priceA, priceB, priceC: Derived by applying percentage increases to the last candle's close.
priceX, priceY, priceZ: Derived by applying percentage decreases to the last candle's close.
avgPriceUp, avgPriceDown: Computed using the calcAvgPrice function for ascending and descending levels, respectively.
Plotting Colors:
User-customizable through input parameters (colorPriceA, colorPriceB, colorPriceC, colorAvgPriceUp, colorPriceX, colorPriceY, colorPriceZ, colorAvgPriceDown).
Styling:
All lines are plotted with minimal thickness (linewidth=1) for a clean visualization.
Overall, the indicator empowers traders to analyze potential support and resistance levels and understand average price movements based on their specified parameters. The flexibility of color customization adds a layer of personalization to suit individual preferences.
Indicator

OrderLibLibrary "OrderLib"
TODO: add library description here
removeOrderView(view)
Parameters:
view (orderView)
createOrderView(model, length, profit_color, loss_color, enter_color)
Parameters:
model (orderModel)
length (simple int)
profit_color (simple color)
loss_color (simple color)
enter_color (simple color)
createOrder(enter, tp, sl)
Parameters:
enter (float)
tp (float)
sl (float)
createOrderByRR(enter, sl, rr)
Parameters:
enter (float)
sl (float)
rr (float)
createOrderByRR(enter, sl, rr, commision_percent)
Parameters:
enter (float)
sl (float)
rr (simple float)
commision_percent (simple float)
orderModel
Fields:
enter (series__float)
sl (series__float)
tp (series__float)
orderView
Fields:
enter (series__line)
sl (series__line)
tp (series__line) Library

Scaled Order Sizing and Take Profit Target ArraysWOAH Order Scaling!
This Provides a user with methods to create a list of profit targets and order sizes which grow or shrink. For size, the will add up to specific sum. for Targets they will include the first and last, and can lean towards either, to scale the order grid.
And thanks to @Hoanghetti for the markdown, i've included a basic usage example within the hover , o you don't need to search for the usage example, simply import, and when writing, the code hint contains a full example.
scaled_sizes(total_size, count, weight, min_size, as_percent)
create an array of sizes which grow or shrink from first to last
which add up to 1.0 if set the as_percent flag , or a total value / sum.
Parameters:
total_size : (float) total size to divide ito split
count : (int ) desired number of splits to create
weight : (float) a weight to apply to grow or shrink the split either towards the last being most, or the first being most, or 1.0 being each is equally sized as 1/n count
min_size : (float) a minimum size for the smallest value (in value of ttotal_size units)
as_percent : (float) a minimum size for the smallest value (in value of total_size units)
Returns: Array of Sizes for each split
scaled_targets(count, weight, minimum, maximum)
create a list of take profitt targets from the smallest to larget distance
Parameters:
count : (int ) number of targets
weight : (float) weight to apply to growing or shrinking
minimum : (float) first value of the output
maximum : (float) last value of the output
Returns: Array of percentage targets Library

multiple orders - strategy - educationalHi,
Here is a 'template', using array's, for multiple orders and different SL/TP levels per trade (This is an example with max 5 open trades)
The 'switch' makes sure that the first available position will be used,
for example, when 'L1' is closed in the past, and a buy condition is triggered, position 'L1' will be filled,
should it be that 'L1', 'L2', 'L3' are already filled, then position 'L4' will be filled, ...
An extra table is added with data of the trades
Be aware, the 'Buy and Hold' resembles the profit when 100% of the available equity has been bought at the time of the very first trade and sold now. On the other hand, the positions work with a % of equity, 20% per trade (5 x 20 = 100%)
You can see that every trade exits on its own terms, without interference of other trades
Important, this technique only works if in the strategy() function:
- close_entries_rule -> set at 'ANY'
- pyramiding is set at max amount of trades or higher (in this case 5 or higher)
Cheers! Strategy
