UDL Matrix: MTF Divergence System [WangBlack]【使用說明 / How to Use】
多頭訊號 (Long Signal):出現綠色「多」標籤。
條件:UDL 進入超賣區 + K線出現反轉型態 + 趨勢過濾通過。
空頭訊號 (Short Signal):出現紅色「空」標籤。
條件:UDL 進入超買區 + K線出現反轉型態 + 趨勢過濾通過。
背離線 (Divergence Lines):
綠色實線:底背離(看漲)。
紅色實線:頂背離(看跌)。
背景色 (Background):
綠色背景:HTF(大級別)處於低位,適合做多。
紅色背景:HTF(大級別)處於高位,適合做空。
【適用市場】 加密貨幣、外匯(黃金 XAUUSD)、指數期貨。適合 1分/5分/15分/1小時 級別操作。
Here is the English translation for the "How to Use" section, optimized for TradingView descriptions:
【How to Use】
Long Signal:
Indicator: A Green label with the text "多" (Long) appears.
Conditions: UDL enters the Oversold zone + Candlestick Reversal Pattern detected + Trend Filter validation passed.
Short Signal:
Indicator: A Red label with the text "空" (Short) appears.
Conditions: UDL enters the Overbought zone + Candlestick Reversal Pattern detected + Trend Filter validation passed.
Divergence Lines:
Green Solid Line: Regular Bullish Divergence (Signal to Buy).
Red Solid Line: Regular Bearish Divergence (Signal to Sell).
Background Color (HTF Context):
Green Background: HTF (Higher Timeframe) is in a low zone; favorable for Long positions.
Red Background: HTF (Higher Timeframe) is in a high zone; favorable for Short positions.
【Applicable Markets】 Cryptocurrencies, Forex (specifically Gold/XAUUSD), and Index Futures. Recommended Timeframes: 1-minute, 5-minute, 15-minute, and 1-hour charts.
Volatility
Volume profilerMulti-Range Volume Analysis & Absorption Detection
This tool visualises market activity through multi-range volume profiling and absorption signal detection. It helps you quickly identify where volume expands, compresses, or diverges from expected behaviour.
What it does
Volume Profiler plots four volume EMAs (short / mid / long / longer) so you can gauge how current volume compares to different market regimes.
It also highlights structural volume extremes:
• Low-volume bars (liquidity withdrawal)
These are potential signs of exhaustion, pauses, or low liquidity environments.
• High-volume + Low-range absorption
A classic footprint-style signal where aggressive volume fails to move price.
Often seen during:
absorption of one side of the book
liquidity collection
failed breakouts
institutional accumulation/distribution
You can choose:
which EMA defines “high volume”
how to measure candle range (High-Low, True Range, or Body)
how to define baseline volatility (ATR or average range)
Alerts are included so you can monitor absorption automatically.
Features
Multi-range volume EMAs (10 / 50 / 100 / 300 by default)
Low-volume bar flags
Absorption detection based on custom thresholds
Customisable volatility baseline
Optional bar colouring
Labels displayed directly in the volume pane
Alert conditions for absorption events
How to use
This indicator is valuable for:
confirming trend strength or weakness
detecting absorption before reversal or breakout continuation
finding low-liquidity pauses
identifying volume expansion across different time horizons
footprint-style behavioural confirmation without needing order-flow data
Works across all markets and timeframes.
Notes
This script is intended for educational and analytical use.
It does not repaint.
AlphaStrike: Volatility & Pinbar Reversion SystemDescription:
The Concept: Solving the "Context" Problem One of the hardest challenges in trading is identifying whether the market is in a "Trend State" or a "Mean Reversion State." Using trend indicators in a range leads to false breakouts, while using reversal indicators in a strong trend leads to catching falling knives.
This script solves this issue by combining an ATR-based Trend Filter with a conditional Price Action Reversion engine. It does not simply overlay two indicators; it uses a filtering logic to ensure that Reversal signals are only generated when Momentum, Volatility, and Candle Geometry all align at the same time.
How It Works (The Logic) This script functions as a "Hybrid" system with two distinct engines running simultaneously:
1. The Trend Engine (Bias Filter) We use an ATR-based SuperTrend calculation to determine the dominant market direction.
Purpose: This acts as a "No Trade Zone" filter.
Logic: If the Trend Line is Green, the statistical bias is bullish. If Red, the bias is bearish. This helps traders avoid shorting strong uptrends or buying weak downtrends.
2. The Reversal Engine (Signal Generator) This is where the script differentiates itself from standard "Bollinger + RSI" mashups. A signal is NOT generated just because price hits a band. The script requires a specific "Pinbar" candle pattern to validate the move.
The "Blue Dot" (Bullish Reversal) Logic:
Condition A: Price must be below the Lower Bollinger Band (2 Standard Deviations).
Condition B: RSI (14) must be Oversold (< 35).
Condition C (The Filter): The candle must form a Bullish Pinbar. The script calculates the ratio of the lower wick to the body. If the wick is 2x longer than the body, it confirms that buyers actively rejected the lower prices.
The "Orange Dot" (Bearish Reversal) Logic:
Condition A: Price must be above the Upper Bollinger Band.
Condition B: RSI (14) must be Overbought (> 65).
Condition C (The Filter): The candle must form a Bearish Pinbar (long upper wick), indicating buyer exhaustion.
Visual Guide & Usage
Green/Red Line: Use this to trail your Stop Loss or determine trend direction.
Triangles (Breakouts): These marks indicate a shift in volatility where the trend officially flips.
Dots (Reversals): These are high-probability zones for scalps or entering on pullbacks.
Built-In Risk Management To assist with position sizing, a "Smart Risk" table is included in the bottom right corner.
It automatically detects the nearest market structure (Swing Highs/Lows).
It calculates the distance from the current price to that structure.
It displays the suggested position size to maintain a fixed risk percentage (configurable in Settings).
Note: You must input your Account Balance in the settings for this to work.
Settings
Crypto: Default settings (Factor 3.5) are optimized for high-volatility assets like BTC/ETH to reduce noise.
TradFi: For Forex or Stocks, consider lowering the Factor to 3.0.
Disclaimer This tool is designed for educational analysis and risk management assistance. It does not constitute financial advice. Past performance of signals (like those shown on the chart) does not guarantee future results. Always manage your risk.
Market Session Clock# Market Session Clock - Real-Time Global Trading Hours
A professional, real-time dashboard that displays the current time and trading status across major global financial markets. Perfect for forex, futures, and stock traders who need to track multiple market sessions simultaneously.
## Key Features
**Live Market Status Tracking**
- Visual color-coded indicators show which markets are currently open (green) or closed (red)
- Automatic weekend detection - all markets show as closed on Saturdays and Sundays
- Real-time clock updates with optional seconds display
**Major Global Markets Covered**
- Tokyo (Asian Session)
- Hong Kong (Asian Session)
- Frankfurt (European Session)
- London (European Session)
- New York (American Session)
- Your Local Time (optional)
**Highly Customizable**
*Display Options:*
- Choose dashboard position (Top Left/Right, Bottom Left/Right)
- Toggle seconds display on/off
- Show/hide your local time
- Three size options: Compact, Normal, Large
*Timezone Settings:*
- Select your local timezone from 40+ global options
- Customize market opening and closing hours for each session
*Professional Styling:*
- Fully customizable color scheme
- Adjustable background, text, header, border colors
- Custom colors for open and closed sessions
- Clean, modern interface that won't clutter your charts
## How It Works
The indicator uses TradingView's `timenow` function to display live, continuously updating times for each market. Session status automatically updates based on the current hour in each timezone, factoring in weekends when markets are closed.
## Use Cases
- **Multi-Market Trading**: Track overlapping sessions for increased volatility opportunities
- **Forex Trading**: Know exactly when major currency pairs are most active
- **Global Portfolio Management**: Monitor when different exchanges are open
- **Session-Based Strategies**: Time your entries and exits around specific market opens/closes
## Default Session Hours
- Tokyo: 9:00 - 18:00 JST
- Hong Kong: 9:00 - 17:00 HKT
- Frankfurt: 8:00 - 17:00 CET
- London: 8:00 - 17:00 GMT
- New York: 8:00 - 17:00 EST
All session times can be adjusted to match your preferred trading hours or specific market schedules.
---
*Note: This indicator is for informational purposes only. Market hours may vary due to holidays and special trading days. Always verify with official exchange schedules.*
ASFX - Automatic VWAPs & Key LevelsAutomate your AVWAPs and key levels for day trading! NY Market open VWAP, Previous day NY VWAP, and more are included. Inital Balance and Opening Range are also automated.
Value Charts by Mark Helweg1. Introduction
This script is a simplified implementation of the Value Charts concept introduced by Mark Helweg and David Stendahl in their work on “Dynamic Trading Indicators”. It converts raw price into value units by normalizing distance from a dynamic fair‑value line, making it easier to see when price is relatively overvalued or undervalued across different markets and timeframes. The code focuses on plotting Value Chart candlesticks and clean visual bands, keeping the logic close to the original idea while remaining lightweight for intraday and swing trading.
2. Key Features
- Dynamic fair‑value axis
Uses a moving average of the chosen price source as the fair‑value line and a volatility‑based deviation (smoothed True Range) to scale all price moves into comparable value units.
- Normalized Value Chart candlesticks
OHLC prices are transformed into value units and displayed as a dedicated candlestick panel, visually similar to standard candles but detached from raw price, highlighting relative extremes instead of absolute levels.
- Custom upper and lower visual limits
User‑defined upper and lower bands frame the majority of action and emphasize extreme value zones, helping the trader spot potential exhaustion or mean‑reversion conditions at a glance.
- Clean, publishing‑friendly layout
Only the normalized candles and three simple reference lines (top, bottom, zero) are plotted, keeping the chart uncluttered and compliant with presentation standards for published scripts.
3. How to Use
1. Attach the indicator to a separate pane (overlay = false) on any market and timeframe you trade.
2. Set the “Period (Value Chart)” to control how fast the fair‑value line adapts: shorter values react more quickly, longer values smooth more.
3. Adjust the “Volatility Factor” so that most candles stay between the upper and lower limits, with only true extremes touching or exceeding them.
4. Use the Value Chart candlesticks as a relative overbought/oversold tool:
- Candles pressing into the Top band suggest overvalued conditions and potential for pullbacks or reversions.
- Candles pressing into the Bottom band suggest undervalued conditions and potential for bounces.
5. Combine the signals with your existing price‑action, volume, or trend‑filter rules on the main chart; the Value Chart panel is designed as a context and timing tool, not a standalone trading system.
Combined: Net Volume, RSI & ATR# Combined: Net Volume, RSI & ATR Indicator
## Overview
This custom TradingView indicator overlays **Net Volume** and **RSI (Relative Strength Index)** on the same chart panel, with RSI scaled to match the visual range of volume spikes. It also displays **ATR (Average True Range)** values in a table.
## Key Features
### Net Volume
- Calculates buying vs selling pressure by analyzing lower timeframe data
- Displays as a **yellow line** centered around zero
- Automatically selects optimal timeframe or allows manual override
- Shows net buying pressure (positive values) and selling pressure (negative values)
### RSI (Relative Strength Index)
- Traditional 14-period RSI displayed as a **blue line**
- **Overlays directly on the volume chart** - scaled to match volume spike heights
- Includes **70/30 overbought/oversold levels** (shown as dotted red/green lines)
- Adjustable scale factor to fine-tune visual sizing relative to volume
- Optional **smoothing** with multiple moving average types (SMA, EMA, RMA, WMA, VWMA)
- Optional **Bollinger Bands** around RSI smoothing line
- **Divergence detection** - identifies regular bullish/bearish divergences with labels
### ATR (Average True Range)
- Displays current ATR value in a **table at top-right corner**
- Configurable period length (default: 50)
- Multiple smoothing methods: RMA, SMA, EMA, or WMA
- Helps assess current market volatility
## Use Cases
- **Momentum & Volume Confirmation**: See if RSI trends align with net volume flows
- **Divergence Trading**: Automatically spots when price makes new highs/lows but RSI doesn't
- **Volatility Assessment**: Monitor ATR for position sizing and stop-loss placement
- **Overbought/Oversold + Volume**: Identify exhaustion when RSI hits extremes with volume spikes
## Customization
All components can be toggled on/off independently. RSI scale factor allows you to adjust how prominent the RSI line appears relative to volume bars.
VIX Termstructure Indicator (Overlay)This indicator visualizes the VIX futures term structure directly on your chart background and highlights three key volatility regimes using color coding. It helps identify when the volatility curve is in normal contango, inverted (backwardation), or undergoing a curve flip between the front-month VIX futures.
What the indicator does
The script pulls and compares:
VIX spot index: VIX
Front-month VIX futures: VX1!
Second-month VIX futures: VX2!
All data is requested on the daily timeframe and used to classify the current volatility environment. The indicator then colors the background of your chart according to the detected VIX term structure:
Green background – Contango:
VIX spot is below the front-month futures (VIX < VX1!).
This is typically associated with more “normal” market conditions and lower perceived short-term stress.
Red background – Inverted curve (Backwardation):
VIX spot is above the front-month futures (VIX > VX1!).
This often signals elevated fear, stress, or risk-off conditions in the market.
Yellow background – Curve flip between VX1! and VX2!:
The front-month futures are trading above the second-month futures (VX1! > VX2!).
This can indicate a transition phase in the volatility term structure and may precede or accompany shifts in market sentiment.
How it works
The script fetches the daily close values of VIX, VX1!, and VX2!. It checks whether the front-month futures are above the second-month futures to detect a curve flip. It compares VIX with VX1! to determine if the curve is contango or inverted. Based on these conditions, the chart background is colored with a semi-transparent overlay:
Red has priority when VIX is above VX1! (inverted curve).
If not inverted, yellow is shown when a curve flip VX1! > VX2! is detected.
Otherwise, the background is green (normal contango).
Use cases
This overlay is designed as a context tool for indices, ETFs, Options, or individual stocks that are sensitive to volatility and risk sentiment. Typical applications include:
Identifying periods of heightened risk (red / inverted curve) to adjust position sizing or risk exposure.
Confirming risk-on environments (green / contango) where volatility is more contained.
Monitoring yellow curve-flip phases as potential early warnings of changing volatility regimes.
The indicator does not generate buy/sell signals on its own, but it can be a valuable regime filter or confirmation layer alongside other technical tools.
Notes
This is an overlay indicator: it colors the background of your active chart.
All VIX-related data is evaluated on the daily timeframe, regardless of the chart timeframe.
Make sure that the symbols VIX, VX1!, and VX2! are available on your broker/data feed in TradingView.
LiquidTradeRoom Auto Zones1. Finds Swing Highs and Swing Lows
It looks for pivot highs and lows using a user-chosen length.
Swing highs = possible supply
Swing lows = possible demand
These swings help the indicator understand the market structure.
2. Automatically Creates Supply & Demand Zones
When a new swing high or low is found:
🔴 Supply zone (after a swing high)
Draws a box above price
Slight buffer added using ATR
Extends the box forward to the right
🔵 Demand zone (after a swing low)
Draws a box below price
ATR buffer
Extends the box to the right
The boxes act as “areas price may react from.”
3. Stops Overlapping Zones
Before creating a new zone, the script checks:
If the new zone is too close to an existing one → it does not draw it.
This avoids clutter & duplicate zones.
4. Draws POI Labels
Within each supply/demand box it draws a small “POI” label showing the midpoint.
This marks the "most important part" of the zone.
5. Marks BOS (Break of Structure) Automatically
If price breaks above a supply zone top or below a demand zone bottom, the indicator:
Converts that zone into a BOS marker
Draws a line showing where structure was broken
Removes the old supply/demand box
This helps identify trend changes.
6. Extends Active Zones
Existing zones are constantly pushed further right so they stay visible on the chart.
7. Optional Zig-Zag
The script can draw a zig-zag line to help visualize:
Higher highs
Higher lows
Lower highs
Lower lows
But you can turn it on or off.
8. Optional Swing Labels
If enabled, it prints:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
This visually shows market structure.
✨ In summary
This script automatically builds a full “Smart Money Concepts” structure map including:
✔ Swing points
✔ Supply & demand zones
✔ POIs
✔ Break of structure (BOS)
✔ Zig-zag structure
✔ Market structure labels (HH, HL, LH, LL)
Options Fusion Core - Lite v6Options Fusion Core – Lite v6
A dual-engine oscillator designed to provide clear, confidence-driven market reads. OFC – Lite v6 combines two high-signal components into a single 0–100 panel to help traders interpret momentum strength and liquidity flow at a glance.
Core Components
Momentum Engine (Solid Line)
Above 50: Bullish bias (green shades)
Below 50: Bearish bias (red shades)
Near 20 or 80: Potential exhaustion zones where trends may pause or reverse
Liquidity Gauge (Dotted Line)
Above 55: Strong buying pressure
Below 45: Selling pressure
Around 50: Neutral flow
How to Use (Educational Purpose Only)
Alignment Signals: Watch for Momentum Engine and Liquidity Gauge moving in the same direction.
Example: Momentum >50 and Liquidity >55 → constructive environment
Example: Momentum <50 and Liquidity <45 → weakening conditions
Extremes: Momentum near 20 or 80 indicates potential trend exhaustion. Paired with strong Liquidity changes, these zones may highlight possible reversals or pauses.
Neutral Line (50): Many false moves occur around 50. Wait for a clear break above or below before interpreting as a signal.
Use in Context: Combine with price action, volume, or other indicators for confirmation.
User Inputs
Fast Momentum Length — controls how quickly Momentum reacts
VFI Length — smooths the Liquidity Gauge
VFI Cutoff — adjusts sensitivity to flow spikes
Lite Version:
Oscillator panel only
No automated signals or multi-ticker table
Educational and visualization purposes only
Important Notice
This script is educational and informational only. Not trading, financial, or investment advice.
Calculations are proprietary and protected to safeguard intellectual property.
No repainting; all results reflect real-time calculation.
Gamma Conviction Oscillator LiteGamma Conviction Oscillator Lite
A volume-weighted momentum oscillator designed to help traders visualize conviction in gamma-heavy instruments (SPY, TSLA, NVDA, MSTR, COIN, HOOD, etc.). This LITE edition is fully functional and educational, focusing on reading market momentum without offering trading signals.
Core Features (LITE Version):
Dynamic oscillator panel with volatility-adjusted overbought/oversold levels
Long-term trend filter: 200-period moving average selectable as SMA, EMA, or HMA
Conviction-based coloring system:
Bright Lime → high-conviction oversold (price above long-term MA)
Bright Red → high-conviction overbought (price below long-term MA)
Teal / Maroon → low-conviction extremes (counter-trend)
User Inputs:
Base Oscillator Length, Volatility Smoothing Length, and Sensitivity Factor are adjustable in Settings → Inputs
Long-Term Trend Length and MA Type are selectable for trend confirmation
How to Read Signals (Educational Use Only):
Oscillator Level: Observe the main VWPS line relative to overbought/oversold levels:
Above the red overbought line → price may be stretched
Below the green oversold line → price may be compressed
Trend Context: Compare the oscillator reading to the long-term MA:
Oscillator above oversold + price above MA → potential bullish conviction
Oscillator below overbought + price below MA → potential bearish conviction
Color Coding: The line color communicates conviction strength and trend alignment:
Bright Lime / Bright Red indicate strong alignment with trend extremes
Teal / Maroon indicate weaker, counter-trend extremes
Use the oscillator in conjunction with your own analysis; consider confirming with price action, volume, or other indicators.
LITE Version:
Oscillator panel only
No divergence detection
No multi-ticker gamma table
Important Notice:
This script is educational and informational only. Not trading, financial, or investment advice.
All calculations are proprietary and protected to preserve intellectual property.
No repainting: results reflect real-time calculations.
Source Code:
This script is published as protected/closed-source to safeguard GammaBulldog intellectual property.
Setup Keltner Banda 3 e 5 - MMS
⚙️ How It Works:
• Calculates a 20-period Simple Moving Average (SMA) as the central line.
• Uses the ATR (Average True Range) to build two volatility bands:
o 3x ATR Band (more sensitive)
o 5x ATR Band (more extreme)
• Detects potential reversals when the price closes outside a band and then re-enters it.
🔍 Signals Generated:
• 🔻 Bearish Reversal: Price re-enters from above the upper band.
• 🔺 Bullish Reversal: Price re-enters from below the lower band.
• Signals are displayed with colored arrows on the chart for easy visual recognition.
🔔 Alerts:
The script also triggers automatic alerts for each type of reversal, so you can be notified in real time.
🧱 Ideal For:
• Traders using Renko, Range, or traditional candlestick charts
• Scalping or swing trading strategies
• Anyone looking for visual confirmation of price exhaustion and potential reversals
RiskCraft - Advanced Risk Management SystemRiskCraft – Risk Intelligence Dashboard
Trade like you actually respect risk
"I know the setup looks good… but how much am I actually risking right now?"
RiskCraft is an open-source Pine Script v6 indicator that keeps risk transparent directly on the chart. It is not a signal generator; it is a risk desk that calculates size, frames volatility, and reminds you when your behaviour drifts away from the plan.
Core utilities
Calculates professional-style position sizing in real time.
Reads volatility and market regime before position size is confirmed.
Adjusts risk based on the trader’s emotional state and confidence inputs.
Maps session risk across Asian, London, and New York hours.
Draws exactly one stop line and one target line in the preferred direction.
Provides rotating education tips plus contextual warnings when risk escalates.
It is intentionally conservative and keeps you in the game long enough for any separate entry logic to matter.
---
Chart layout checklist
Use a clean chart on a liquid symbol (e.g., AMEX:SPY or major FX pairs).
Main RiskCraft dashboard placed on the right edge.
Session Risk box on the left with UTC time visible.
Floating risk badge above price.
Stop/target guide lines enabled.
Education panel visible in the bottom-right corner.
---
1. On-chart components
Right-side dashboard : account risk %, position size/value, stop, target, risk/reward, regime, trend strength, emotional state, behavioural score, correlation, and preferred trade direction.
Session Risk box : highlights active session (Asian, London, NY), current UTC time, and risk label (High/Med/Low) per session.
Floating risk badge : keeps actual account risk percent visible with colour-coded wording from Ultra Cautious to Very Aggressive.
Stop/target lines : exactly one dashed stop and one dashed target aligned with the preferred bias.
Education panel : rotates core principles and AI-style warnings tied to volatility, risk %, and behaviour flags.
---
2. Volatility engine – ATR with context 📈
atr = ta.atr(atrLength)
atrPercent = (atr / close) * 100
atrSMA = ta.sma(atr, atrLength)
volatilityRatio = atr / atrSMA
isHighVol = volatilityRatio > volThreshold
ATR vs ATR SMA shows how wild price is relative to recent history.
Volatility ratio above the threshold flips isHighVol , which immediately trims risk.
An ATR percentile rank over the last 100 bars indicates calm versus chaotic regimes.
Daily ATR sampling via request.security() gives higher time-frame context for intraday sessions.
When volatility spikes the script dials position size down automatically instead of cheering for maximum exposure.
---
3. Market regime radar – Danger or Drift 🌊
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
trendScore = (close > ema20 ? 1 : -1) +
(ema20 > ema50 ? 1 : -1) +
(ema50 > ema200 ? 1 : -1)
= ta.dmi(14, 14)
Regimes covered:
Danger : high volatility with weak trend.
Volatile : volatility elevated but structure still directional.
Choppy : low ADX and noisy action.
Trending : directional flows without extreme volatility.
Mixed : anything between.
Each regime maps to a 1–10 risk score and a multiplier that feeds the final position size. Danger and Choppy clamp size; Trending restores normal risk.
---
4. Behaviour engine – trader inputs matter 🧠
You provide:
Emotional state : Confident, Neutral, FOMO, Revenge, Fearful.
Confidence : slider from 1 to 10.
Toggle for behavioural adjustment on/off.
Behind the scenes:
Each state triggers an emotional multiplier .
Confidence produces a confidence multiplier .
Combined they form behavioralFactor and a 0–100 Behavioural Score .
High-risk emotions or low conviction clamp the final risk. Calm inputs allow normal size. The dashboard prints both fields to keep accountability on-screen.
---
5. Correlation guardrail – avoid stacking identical risk 📊
Optional correlation mode compares the active symbol to a reference (default AMEX:SPY ):
corrClose = request.security(correlationSymbol, timeframe.period, close)
priceReturn = ta.change(close) / close
corrReturn = ta.change(corrClose) / corrClose
correlation = calcCorrelation()
Absolute correlation above the threshold applies a correlation multiplier (< 1) to reduce size.
Dashboard row shows the live correlation and reference ticker.
When disabled, the row simply echoes the current symbol, keeping the table readable.
---
6. Position sizing engine – heart of the script 💰
baseRiskAmount = accountSize * (baseRiskPercent / 100)
adjustedRisk = baseRiskAmount * behavioralFactor *
regimeAdjustment * volAdjustment *
correlationAdjustment
finalRiskAmount = math.min(adjustedRisk,
accountSize * (maxRiskCap / 100))
stopDistance = atr * atrStopMultiplier
takeProfit = atr * atrTargetMultiplier
positionSize = stopDistance > 0 ? finalRiskAmount / stopDistance : 0
positionValue = positionSize * close
Outputs shown on the dashboard:
Position size in units and value in currency.
Actual risk % back on account after adjustments.
Risk/Reward derived from ATR-based stop and target.
---
7. Intelligent trade direction – bias without signals 🎯
Direction score ingredients:
EMA stack alignment.
Price versus EMA20.
RSI momentum relative to 50.
MACD line vs signal.
Directional Movement (DI+/DI–).
The resulting Trade Direction row prints LONG, SHORT, or NEUTRAL. No orders are generated—this is guidance so you only risk capital when the structure supports it.
---
8. Stop/target guide lines – two lines only ✂️
if showStopLines
if preferLong
// long stop below, target above
else if preferShort
// short stop above, target below
Lines refresh each bar to keep clutter low.
When the direction score is neutral, no lines appear.
Use them as visual anchors, not auto-orders.
---
9. Session Risk map – global volatility clock 🌍
Tracks Asian, London, and New York windows via UTC.
Computes average ATR per session versus global ATR SMA.
Labels each session High/Med/Low and colours the cells accordingly.
Top row shows the active session plus current UTC time so you always know the regime you are trading.
One glance tells you whether you are trading quiet drift or the part of the day that hunts stops.
---
10. Floating risk badge – honesty above price 🪪
Text ranges from Ultra Cautious through Very Aggressive.
Colour matches the risk palette inputs (High/Med/Low).
Updates on the last bar only, keeping historical clutter off the chart.
Account risk becomes impossible to ignore while you stare at price.
---
11. Education engine & warnings 📚
Rotates evergreen principles (risk 1–2%, journal trades, respect plan).
Triggers contextual warnings when volatility and risk % conflict.
Flags when emotional state = FOMO or Revenge.
Highlights sub-standard risk/reward setups.
When multiple danger flags stack, an AI-style warning overrides the tip text so you can course-correct before capital is exposed.
---
12. Alerts – hard guard rails 🚨
Excessive Risk Alert : actual risk % crosses custom threshold.
High Volatility Alert : ATR behaviour signals danger regime.
Emotional State Warning : FOMO or Revenge selected.
Poor Risk/Reward Alert : risk/reward drops below your standard.
All alerts reinforce discipline; none suggest entries or exits.
---
13. Multi-market behaviour 🕒
Intraday (1m–1h): session box and badge react quickly; ideal for scalpers needing constant risk context.
Higher time frames (1D–1W): dashboard shifts slowly, supporting swing planning.
Asset classes confirmed in validation: crypto majors, large-cap equities, indices, major FX pairs, and liquid commodities.
Risk logic is price-based, so it adapts across markets without bespoke tuning.
15. Key inputs & recommended defaults
Account Size : 10,000 (modify to match actual account; min 100).
Base Risk % : 1.0 with a Maximum Risk Cap of 2.5%.
ATR Period : 14, Stop Multiplier 2.0, Target Multiplier 3.0.
High Vol Threshold : 1.5 for ATR ratio.
Behavioural Adjustment : enabled by default; disable for fixed risk.
Correlation Check : optional; default symbol AMEX:SPY , threshold 0.7.
Display toggles : main dashboard, risk badge, session map, education panel, and stop lines can be individually disabled to reduce clutter.
16. Usage notes & limits
Indicator mode only; no automated entries or exits.
Trade history panel intentionally disabled (requires strategy context).
Correlation analysis depends on additional data requests and may lag slightly on illiquid symbols.
Session timing uses UTC; adjust expectations if you trade localized instruments.
HTF ATR sampling uses daily data, so bar replay on lower charts may show brief data gaps while HTF loads.
What does everyone think RISK really means?
GARO Lite - Free Regime EngineGARO — Gamma Regime Engine
Overview
GARO (Gamma Regime Oscillator) is a visual regime engine that shows market conditions in real-time. This free edition is for educational and charting purposes only.
Key Features
Regime Detection: Highlights Expansion, Contraction, and Spike conditions using trend, volatility, and volume-based calculations.
Core and Bands: Central reference line with upper and lower bands.
Visual Alerts: Orange dots appear under candles during compressions; background colors indicate current regime.
Signal Labels: Labels provide visual guidance based on regime and trend slope.
Gamma Exposure (GEX) Proxy & Zero Gamma Flip: Optional visual overlays for contextual awareness.
User Inputs: Some settings are visible in the input panel but are disabled in this free edition.
How to Use
Regime Colors:
Expansion (green background): Market trending/expanding; core line indicates direction.
Contraction (blue background): Market range-bound; orange dots indicate compression.
Spike (red background): High volatility; visual alert only.
Labels & Signals:
Labels highlight potential regime moves; not trade advice.
Combine colors, core/band positions, and label cues with your own analysis.
Core Line & Bands:
Core line shows central reference per regime.
Upper/lower bands provide context for potential support/resistance zones.
Orange Dots:
Indicate compressions or regime-specific signals; visual only.
Gamma Exposure & Zero Gamma Flip (Optional):
Illustrates potential price sensitivity; charting/educational use only.
Important:
Protected code; underlying calculations are not visible.
For educational and visual guidance only; not financial or trading advice.
Works on any timeframe; free edition gives visual regime insights.
Liquidity Pulse Oscillator LITETitle:
Liquidity Pulse Oscillator LITE
Description:
This indicator provides an observational view of market activity by measuring intra-bar price and volume dynamics. It is fully informational and educational, and does not constitute financial, trading, or investment advice.
Key Features:
Fast and Slow Pulse lines: Dual EMAs of volume-weighted pressure to highlight crossover points.
Histogram: Displays the difference between fast and slow pulses with color-coded bars (green for positive, red for negative).
Scaled 0–100 line: Provides a normalized perspective for easier interpretation of relative activity levels.
EXP/CON markers: Indicate expansions and contractions in observed market activity.
How It Works:
Pressure is calculated as the absolute open-to-close movement divided by the candle range, multiplied by volume. Safeguards handle zero-range bars. The resulting values are smoothed using fast and slow EMAs. Crossovers generate EXP and CON markers, helping users visualize changes in market activity.
Why This Approach:
Traditional volume indicators often overlook intra-bar dynamics and range normalization. This oscillator emphasizes price movement relative to bar range combined with volume, offering an additional perspective on shifts in market activity.
How to Use:
EXP marker + positive histogram: Indicates potential expansion in observed market activity.
CON marker + negative histogram: Indicates potential contraction in observed market activity.
Can be applied on any timeframe to help confirm breakouts, reversals, or shifts in market behavior.
Notes:
For informational and educational purposes only. Not financial advice.
HoneG_EURUSD値動き停止アラートv5 SUBThis is a subchart version of a signal tool that detects price movement stoppages and displays signals with alerts.
Please select and use a timeframe on the chart that corresponds to the time period you wish to detect.
値動きの停止を検知してサイン表示とアラートを出すサインツールのサブチャート版です。
チャートの時間足を、検知したい時間相当の足を選んで使ってください。
Volatility Risk PremiumTHE INSURANCE PREMIUM OF THE STOCK MARKET
Every day, millions of investors face a fundamental question that has puzzled economists for decades: how much should protection against market crashes cost? The answer lies in a phenomenon called the Volatility Risk Premium, and understanding it may fundamentally change how you interpret market conditions.
Think of the stock market like a neighborhood where homeowners buy insurance against fire. The insurance company charges premiums based on their estimates of fire risk. But here is the interesting part: insurance companies systematically charge more than the actual expected losses. This difference between what people pay and what actually happens is the insurance premium. The same principle operates in financial markets, but instead of fire insurance, investors buy protection against market volatility through options contracts.
The Volatility Risk Premium, or VRP, measures exactly this difference. It represents the gap between what the market expects volatility to be (implied volatility, as reflected in options prices) and what volatility actually turns out to be (realized volatility, calculated from actual price movements). This indicator quantifies that gap and transforms it into actionable intelligence.
THE FOUNDATION
The academic study of volatility risk premiums began gaining serious traction in the early 2000s, though the phenomenon itself had been observed by practitioners for much longer. Three research papers form the backbone of this indicator's methodology.
Peter Carr and Liuren Wu published their seminal work "Variance Risk Premiums" in the Review of Financial Studies in 2009. Their research established that variance risk premiums exist across virtually all asset classes and persist over time. They documented that on average, implied volatility exceeds realized volatility by approximately three to four percentage points annualized. This is not a small number. It means that sellers of volatility insurance have historically collected a substantial premium for bearing this risk.
Tim Bollerslev, George Tauchen, and Hao Zhou extended this research in their 2009 paper "Expected Stock Returns and Variance Risk Premia," also published in the Review of Financial Studies. Their critical contribution was demonstrating that the VRP is a statistically significant predictor of future equity returns. When the VRP is high, meaning investors are paying substantial premiums for protection, future stock returns tend to be positive. When the VRP collapses or turns negative, it often signals that realized volatility has spiked above expectations, typically during market stress periods.
Gurdip Bakshi and Nikunj Kapadia provided additional theoretical grounding in their 2003 paper "Delta-Hedged Gains and the Negative Market Volatility Risk Premium." They demonstrated through careful empirical analysis why volatility sellers are compensated: the risk is not diversifiable and tends to materialize precisely when investors can least afford losses.
HOW THE INDICATOR CALCULATES VOLATILITY
The calculation begins with two separate measurements that must be compared: implied volatility and realized volatility.
For implied volatility, the indicator uses the CBOE Volatility Index, commonly known as the VIX. The VIX represents the market's expectation of 30-day forward volatility on the S&P 500, calculated from a weighted average of out-of-the-money put and call options. It is often called the "fear gauge" because it rises when investors rush to buy protective options.
Realized volatility requires more careful consideration. The indicator offers three distinct calculation methods, each with specific advantages rooted in academic literature.
The Close-to-Close method is the most straightforward approach. It calculates the standard deviation of logarithmic daily returns over a specified lookback period, then annualizes this figure by multiplying by the square root of 252, the approximate number of trading days in a year. This method is intuitive and widely used, but it only captures information from closing prices and ignores intraday price movements.
The Parkinson estimator, developed by Michael Parkinson in 1980, improves efficiency by incorporating high and low prices. The mathematical formula calculates variance as the sum of squared log ratios of daily highs to lows, divided by four times the natural logarithm of two, times the number of observations. This estimator is theoretically about five times more efficient than the close-to-close method because high and low prices contain additional information about the volatility process.
The Garman-Klass estimator, published by Mark Garman and Michael Klass in 1980, goes further by incorporating opening, high, low, and closing prices. The formula combines half the squared log ratio of high to low prices minus a factor involving the log ratio of close to open. This method achieves the minimum variance among estimators using only these four price points, making it particularly valuable for markets where intraday information is meaningful.
THE CORE VRP CALCULATION
Once both volatility measures are obtained, the VRP calculation is straightforward: subtract realized volatility from implied volatility. A positive result means the market is paying a premium for volatility insurance. A negative result means realized volatility has exceeded expectations, typically indicating market stress.
The raw VRP signal receives slight smoothing through an exponential moving average to reduce noise while preserving responsiveness. The default smoothing period of five days balances signal clarity against lag.
INTERPRETING THE REGIMES
The indicator classifies market conditions into five distinct regimes based on VRP levels.
The EXTREME regime occurs when VRP exceeds ten percentage points. This represents an unusual situation where the gap between implied and realized volatility is historically wide. Markets are pricing in significantly more fear than is materializing. Research suggests this often precedes positive equity returns as the premium normalizes.
The HIGH regime, between five and ten percentage points, indicates elevated risk aversion. Investors are paying above-average premiums for protection. This often occurs after market corrections when fear remains elevated but realized volatility has begun subsiding.
The NORMAL regime covers VRP between zero and five percentage points. This represents the long-term average state of markets where implied volatility modestly exceeds realized volatility. The insurance premium is being collected at typical rates.
The LOW regime, between negative two and zero percentage points, suggests either unusual complacency or that realized volatility is catching up to implied volatility. The premium is shrinking, which can precede either calm continuation or increased stress.
The NEGATIVE regime occurs when realized volatility exceeds implied volatility. This is relatively rare and typically indicates active market stress. Options were priced for less volatility than actually occurred, meaning volatility sellers are experiencing losses. Historically, deeply negative VRP readings have often coincided with market bottoms, though timing the reversal remains challenging.
TERM STRUCTURE ANALYSIS
Beyond the basic VRP calculation, sophisticated market participants analyze how volatility behaves across different time horizons. The indicator calculates VRP using both short-term (default ten days) and long-term (default sixty days) realized volatility windows.
Under normal market conditions, short-term realized volatility tends to be lower than long-term realized volatility. This produces what traders call contango in the term structure, analogous to futures markets where later delivery dates trade at premiums. The RV Slope metric quantifies this relationship.
When markets enter stress periods, the term structure often inverts. Short-term realized volatility spikes above long-term realized volatility as markets experience immediate turmoil. This backwardation condition serves as an early warning signal that current volatility is elevated relative to historical norms.
The academic foundation for term structure analysis comes from Scott Mixon's 2007 paper "The Implied Volatility Term Structure" in the Journal of Derivatives, which documented the predictive power of term structure dynamics.
MEAN REVERSION CHARACTERISTICS
One of the most practically useful properties of the VRP is its tendency to mean-revert. Extreme readings, whether high or low, tend to normalize over time. This creates opportunities for systematic trading strategies.
The indicator tracks VRP in statistical terms by calculating its Z-score relative to the trailing one-year distribution. A Z-score above two indicates that current VRP is more than two standard deviations above its mean, a statistically unusual condition. Similarly, a Z-score below negative two indicates VRP is unusually low.
Mean reversion signals trigger when VRP reaches extreme Z-score levels and then shows initial signs of reversal. A buy signal occurs when VRP recovers from oversold conditions (Z-score below negative two and rising), suggesting that the period of elevated realized volatility may be ending. A sell signal occurs when VRP contracts from overbought conditions (Z-score above two and falling), suggesting the fear premium may be excessive and due for normalization.
These signals should not be interpreted as standalone trading recommendations. They indicate probabilistic conditions based on historical patterns. Market context and other factors always matter.
MOMENTUM ANALYSIS
The rate of change in VRP carries its own information content. Rapidly rising VRP suggests fear is building faster than volatility is materializing, often seen in the early stages of corrections before realized volatility catches up. Rapidly falling VRP indicates either calming conditions or rising realized volatility eating into the premium.
The indicator tracks VRP momentum as the difference between current VRP and VRP from a specified number of bars ago. Positive momentum with positive acceleration suggests strengthening risk aversion. Negative momentum with negative acceleration suggests intensifying stress or rapid normalization from elevated levels.
PRACTICAL APPLICATION
For equity investors, the VRP provides context for risk management decisions. High VRP environments historically favor equity exposure because the market is pricing in more pessimism than typically materializes. Low or negative VRP environments suggest either reducing exposure or hedging, as markets may be underpricing risk.
For options traders, understanding VRP is fundamental to strategy selection. Strategies that sell volatility, such as covered calls, cash-secured puts, or iron condors, tend to profit when VRP is elevated and compress toward its mean. Strategies that buy volatility tend to profit when VRP is low and risk materializes.
For systematic traders, VRP provides a regime filter for other strategies. Momentum strategies may benefit from different parameters in high versus low VRP environments. Mean reversion strategies in VRP itself can form the basis of a complete trading system.
LIMITATIONS AND CONSIDERATIONS
No indicator provides perfect foresight, and the VRP is no exception. Several limitations deserve attention.
The VRP measures a relationship between two estimates, each subject to measurement error. The VIX represents expectations that may prove incorrect. Realized volatility calculations depend on the chosen method and lookback period.
Mean reversion tendencies hold over longer time horizons but provide limited guidance for short-term timing. VRP can remain extreme for extended periods, and mean reversion signals can generate losses if the extremity persists or intensifies.
The indicator is calibrated for equity markets, specifically the S&P 500. Application to other asset classes requires recalibration of thresholds and potentially different data sources.
Historical relationships between VRP and subsequent returns, while statistically robust, do not guarantee future performance. Structural changes in markets, options pricing, or investor behavior could alter these dynamics.
STATISTICAL OUTPUTS
The indicator presents comprehensive statistics including current VRP level, implied volatility from VIX, realized volatility from the selected method, current regime classification, number of bars in the current regime, percentile ranking over the lookback period, Z-score relative to recent history, mean VRP over the lookback period, realized volatility term structure slope, VRP momentum, mean reversion signal status, and overall market bias interpretation.
Color coding throughout the indicator provides immediate visual interpretation. Green tones indicate elevated VRP associated with fear and potential opportunity. Red tones indicate compressed or negative VRP associated with complacency or active stress. Neutral tones indicate normal market conditions.
ALERT CONDITIONS
The indicator provides alerts for regime transitions, extreme statistical readings, term structure inversions, mean reversion signals, and momentum shifts. These can be configured through the TradingView alert system for real-time monitoring across multiple timeframes.
REFERENCES
Bakshi, G., and Kapadia, N. (2003). Delta-Hedged Gains and the Negative Market Volatility Risk Premium. Review of Financial Studies, 16(2), 527-566.
Bollerslev, T., Tauchen, G., and Zhou, H. (2009). Expected Stock Returns and Variance Risk Premia. Review of Financial Studies, 22(11), 4463-4492.
Carr, P., and Wu, L. (2009). Variance Risk Premiums. Review of Financial Studies, 22(3), 1311-1341.
Garman, M. B., and Klass, M. J. (1980). On the Estimation of Security Price Volatilities from Historical Data. Journal of Business, 53(1), 67-78.
Mixon, S. (2007). The Implied Volatility Term Structure of Stock Index Options. Journal of Empirical Finance, 14(3), 333-354.
Parkinson, M. (1980). The Extreme Value Method for Estimating the Variance of the Rate of Return. Journal of Business, 53(1), 61-65.
Kurtosis with Skew Crossover Focused OscillatorDescription:
This indicator highlights Skewness/Kurtosis crossovers for short-term trading:
Green upward arrows: Skew crosses above Kurtosis → potential long signal.
Red downward arrows: Skew crosses below Kurtosis → potential short signal.
Yellow upward arrows: Extreme negative skew (skew ≤ -1.7) → potential oversold/reversal opportunity.
Oscillator Pane:
Orange = Skewness (smoothed)
Blue = Kurtosis (adjusted, smoothed)
Zero line = visual reference
Usage:
Primarily for 2–5 minute charts, highlighting statistical anomalies and potential short-term reversals that can be used in conjunction with OBV and/or CVD
Arrows signal potential entries based on skew/kurt dynamics.
Potential ideas???????
---------------------------------------
Add Supporting Market Context
---------------------------------------
Currently, signals are purely based on skew/kurt crossovers. Adding supporting indicators could improve reliability:
Volume / CVD: Identify when crossovers occur with real buying/selling pressure.
Wick Imbalance: Detect forced moves in price structure.
Volatility Regime (Parkinson / ATR): Filter signals during high volatility spikes or compressions.
Experimentation: Try weighting these supporting signals to dynamically confirm or filter skew/kurt crossovers and see if false signals decrease on 2–5 minute charts.
--------------------------------------
Dynamic Thresholds & Scaling
--------------------------------------
Right now, the extreme skew signal is triggered at a fixed level (skew ≤ -1.7). Future improvements could include:
Adaptive thresholds: Scale extreme skew levels based on recent standard deviation or intraday volatility.
Kurtosis thresholds: Introduce a cutoff for kurtosis to identify “fat-tail” events.
Experimentation: Backtest different adaptive thresholds for both skew and kurt, and see how it affects the precision vs. frequency of signals.
--------------------------------------------------
Multi-Timeframe or Combined Oscillator
--------------------------------------------------
Skew/kurt signals could be combined across multiple intraday timeframes (e.g., 1-min, 3-min, 5-min) to improve confirmation.
Create a composite oscillator that blends short-term and slightly longer-term skew/kurt values to reduce noise.
Experimentation: Compare a single timeframe approach vs multi-timeframe composite, and measure signal reliability and lag.
I'm leaving this open so anyone can experiment with it as this project may be on the backburner, but these are my thoughts so far
ZLBD Lite - Free Version🆓 ZLBD Lite - Smart Bounce Detector (Free Version)
This is the free version of our professional ZLBD Pro indicator.
Designed to help traders identify high-probability reversal zones using Smart Money Concepts.
✨ FREE FEATURES:
• Basic Buy/Sell Signals: Identifies potential reversals.
• Demand & Supply Zones: Automatically draws key support/resistance blocks.
• Anti-Repetition Filter: Reduces signal noise.
• Simple Dashboard: Tracks active zones.
🚫 LIMITATIONS (Lite Version):
❌ No Signal Strength Meter (0-100%)
❌ No Market Trend Detection
❌ No FVG (Fair Value Gaps)
❌ No Session Timing
❌ Limited Zone History
🔓 UNLOCK FULL POWER (ZLBD PRO):
Upgrade to the PRO version to get:
✅ Real-time 0-100% Strength Meter
✅ Advanced Trend Filter (Strong/Medium/Weak)
✅ Full FVG Detection
✅ VIP Telegram Access
✅ Personal Support
🚀 HOW TO UPGRADE:
Contact us on Telegram: @ZlbdPro_Support
💡 HOW TO USE (Lite):
1. Wait for a Green Zone (Demand) to form.
2. Look for a 🟢 BUY triangle.
3. Confirm with your own analysis.
4. Target the next Red Zone (Supply).
👍 Boost & Follow for updates!
QuantMotions - TPR SentinelQuantMotions – TPR Sentinel
The TPR Sentinel Band is a full trade-assistant for discretionary traders.
It combines an adaptive trend engine, directional TPR logic, volume intelligence, ATR-based risk management, a brute-force parameter optimizer, and a modern on-chart UI (entries/TP/SL panel + stats). The goal: fewer fake flips, clearer trend shifts, and visually guided trade management.
1. Core Concept
The Sentinel Line is built from a blend of:
- SMA + EMA
- Midline of highest/lowest high/low (Kijun-style)
- Donchian-style mid close
On top of that, the script calculates a Directional TPR (Time-Price-Ratio):
- Short / medium / long slopes of price
- Normalized by ATR
- Converted into a trend state:
+1 = Uptrend
-1 = Downtrend
0 = Neutral / transition
Hysteresis (Flux) controls how easily the trend flips:
- Higher hysteresis → harder to reverse → fewer fake-outs in chop.
2. Signals, Filters & Volume Intelligence
Signals
- Trend Flip Long: TrendState changes from −1/0 → +1.
- Trend Flip Short: TrendState changes from +1/0 → −1.
Filters
- ADX Filter (optional):
- Only allows trades if ADX is above a chosen threshold.
- Avoids trading in flat, low-energy markets.
R:R Filter:
- Before any signal is accepted, the script checks whether the distance to TP1 is at least the configured Risk:Reward ratio relative to the distance to SL.
- Only if that minimum R:R is reached, a signal becomes valid.
Volume Intelligence & Clouds
- Aggregates up/down volume (optionally across multiple tickers you define).
- Builds Volume Clouds around the Sentinel Line:
a) Positive intensity → buying pressure (bullish cloud).
b) Negative intensity → selling pressure (bearish cloud).
Optional Volume Direction Filter:
- Long only when volume intensity ≥ 0.
- Short only when volume intensity ≤ 0.
3. Risk, Exits & Trailing Stop
The indicator includes a complete exit framework (for visual/manual trading):
Stop Loss Modes
- ATR Fixed: SL placed at a fixed ATR multiple from the entry.
- Trend Line (Dynamic): SL placed directly on the Sentinel Band (structural stop).
Take Profits
- TP1 – “safe target”:
a) Based on ATR distance.
b) Closes a configurable percentage of the position (e.g., 50%).
- TP2 (optional):
Second fixed target used only when Trailing Stop is OFF.
- Trend Runner Mode (Use TP = OFF):
Ignores fixed TP levels and rides the trend until the trend state flips.
Trailing Stop
- Activates after TP1 is hit (if enabled).
- Moves with price at a configurable ATR distance:
a) Long: trail creeps up under price.
b) Short: trail creeps down above price.
- Visually plotted as a purple trail line, dynamically replacing the original SL as the effective exit point.
Each trade is tracked internally and drawn as a green/red box with PnL labels between entry and exit.
4. UI & Stats
Candle Coloring (TRON Theme)
- Cyan = active uptrend & valid environment.
- Orange = active downtrend & valid environment.
Modern Trade Panel (on last bar)
- Live overlay of:
a) Entry
b) TP1
c) TP2
d) SL or active Trail (with dynamic label text: “SL (ATR)”, “SL (Struct)”, “TRAIL”)
Info label shows:
- Historical win rate in the current direction (Long/Short).
- Distance to SL, TP1, TP2 from current price.
- Box color blends from red → green depending on whether price is closer to SL or TP.
Stats Table (Bottom Right)
- Separate stats for Long and Short trades:
a) Win rate (%)
b) Cumulative PnL
Alerts
- Generates JSON alerts on signals, for example: {"side":"buy","ticker":"XYZ","price":123.45}
Perfect for webhooks, bots, or external automation.
5. Brute Force Optimizer (TPR Lab) – Important Limitations
The built-in Optimizer is a numerical helper, not a full strategy optimizer.
What it does:
- Runs brute-force simulations over a sliding window of historical data.
- Scans user-defined ranges for:
- Best Period (“Best Cycle”)
- Best Hysteresis (“Best Flux”)
Uses an efficiency score (average profit per trade) to rank combinations.
Displays results in the bottom-left TRON panel:
- Best Cycle
- Best Hysteresis
- Efficiency Score
What it does NOT optimize or take into account:
- It does not include your actual minimum R:R filter.
- It does not simulate or optimize your Stop Loss modes.
- It does not simulate Trailing Stops.
- It does not use the ADX filter.
- It does not use the Volume filters or Volume Clouds.
Because of this, the suggested “best” Period and Hysteresis are purely computational recommendations based on a simplified internal model.
In real trading, with your full setup (R:R filter, SL mode, Trailing, ADX, Volume confirmation, personal style), other parameter combinations can be superior to what the Optimizer suggests.
You should treat the Optimizer as:
A starting point or a research tool, not the final truth.
Always validate its suggestions visually, in the context of your full system and risk management.
6. Practical Usage
- Works on FX, indices, crypto, commodities – anything with decent liquidity.
- Scalping → use lower Period values, higher responsiveness.
- Swing → use higher Period values, more stability.
Recommended:
- Keep ADX filter ON to avoid dead markets.
- Use Volume Clouds as directional bias.
- Use the Info Panel and Stats to align with your own R:R and risk rules.
Disclaimer
This script is for educational/analytical purposes only and does not constitute financial advice. It does not execute trades or manage your risk automatically. Always combine it with your own strategy, money management, and independent decision-making.
Use the Info Panel and Stats to align with your own R:R and risk rules.
X FP Imbalancesprovides advanced volume profile analysis by isolating and visualizing market aggression at a granular price level. It is a powerful tool for short-term and intraday traders seeking objective confirmation of supply and demand dynamics, primarily used to identify high-probability reversal or continuation points based on order flow principles.
Key Functionality and Methodology
The indicator operates by transforming standard time-based candle data into a Volume-at-Price footprint, focusing specifically on aggressive market activity.
Granular Aggression Measurement (Delta)
The script dynamically segments the price range into discrete price levels (tickAmount). This granularity is controlled either by a user-defined fixed tick count or automatically adjusted using the Average True Range (ATR) to adapt the box size to current market volatility.
The script uses lower timeframe data (e.g., 1-minute bars) to accurately distribute the total volume into each price level, distinguishing between aggressive buying (Up Volume) and aggressive selling (Down Volume).
The core output is Delta, which is the net difference between aggressive buying and aggressive selling at each price level.
Stacked Imbalance Identification
The indicator identifies an imbalance when the volume from one side (e.g., aggressive buyers) overwhelms the total volume at that level by a user-defined percentage (imbalanceP).
A single price level where the Delta percentage exceeds the threshold is defined as an Imbalance.
The Stacked Imbalance is the primary signal, triggered when the imbalance is detected on a user-defined number of consecutive price levels (stacked) in the same direction (e.g., 3 consecutive levels of aggressive buying). This signals a high-conviction structural break or strong rejection.
Stacked imbalances are visually highlighted and can trigger real-time alerts upon bar close.
Strategic Applications
This indicator is invaluable for traders who integrate order flow concepts into their decision-making process.
One-Sided Stack (Supply/Demand Zone): Aggressive selling (Red Stack) at a high price, followed by price reversal, identifies a Structural Supply Zone (Resistance). The level is where sellers aggressively rejected demand, leaving an untested area of supply.
Overlapping Stacks (Climax Reversal): Consecutive Buy Stacks followed immediately by Sell Stacks in a tight range signals Buyer Exhaustion and an immediate Climax Reversal. The buying power was absorbed and instantly overwhelmed by waiting supply.
Absence of Stack: When price moves sharply through a level without creating any Stacked Imbalances, it suggests an Orderly Move or Liquidity Void. The absence of resistance means the market move is structurally weak and often vulnerable to a retest.
The choice between a Fixed Tick Distance (for micro-pattern precision) and ATR-based sizing (for volatility-adjusted analysis) allows the user to tailor the indicator to specific asset classes and trading styles.
Relative Strength Line by QuantxThe Relative Strength Line compares the price performance of a stock against a benchmark index (e.g., NIFTY, S&P 500, Bank Nifty, etc.).
It does not indicate momentum of the stock itself — it indicates whether the stock is outperforming or underperforming the market.
🔍 How To Read It
RSL Behavior Meaning
RSL moving up Stock is outperforming the benchmark (strong leadership)
RSL moving down Stock is underperforming the benchmark (weakness vs market)
RSL breaking above previous highs Strong institutional demand, leadership candidate
RSL trending sideways Stock is performing similar to the index (no leadership)
📈 Why It Matters
Institutional traders and top-performing strategies focus on stocks showing relative strength BEFORE price breakout.
A stock making new RSL highs even before a price breakout often becomes a top performer in the coming trend.
🧠 Core Trading Edge
You don’t need to predict the market.
Just identify which stocks are being accumulated and leading the market right now — that’s what the Relative Strength Line reveals.
ROMAN INDIThis script creates an on-chart information panel / watermark that summarizes the most important technical and contextual data for the current symbol in one place. It’s designed as a compact trading dashboard overlay, fully configurable from the Inputs menu.
1. General instrument info
The table shows:
Company name + market cap
Market cap is calculated from shares_outstanding_total * close and formatted in M / B / T.
Ticker + timeframe (e.g. AAPL, 1D, AAPL, 1H, etc.).
Sector & industry (when available from syminfo).
You can choose the panel position (Top/Middle/Bottom & Left/Center/Right) and text size/color from the inputs.
2. Volatility & stop-loss (ATR block)
Calculates ATR(14) and the ATR as % of price.
Colors ATR with an emoji:
🔴 = high volatility (above red threshold)
🟡 = medium
🟢 = low
Computes a dynamic stop loss:
Source price can be: Today / Yesterday / 2 Days Ago.
Stop = base price − ATR × user-defined multiplier.
Also calculates the distance from close to stop in percent and marks it:
🟢 if distance > 5%
🟡 if distance > 2%
🔴 otherwise
When price crosses the stop level (or if the stop is very tight and marked 🔴), a label is plotted just ahead of the current bar:
Shows either “SELL” (if close ≤ stop) or the stop price.
3. Moving averages distance row
Calculates SMA 50 / 150 / 200.
Shows a single row:
MA50: +X.XX% | MA150: +Y.YY% | MA200: +Z.ZZ%
Values are the percentage distance between close and each MA (positive/negative).
This row can be toggled on/off via the inputs.
4. Volume analysis
Uses a 20-period average volume as baseline.
Computes:
Absolute volume difference vs. 20-SMA (in K/M units).
Percent difference vs. average.
Adds:
🔴 if current volume < average
🟡 if up to +10% above average
🟢 if more than +10% above average
Detects streaks of rising or falling volume (last 3 bars):
⬆️ / ⬆️⬆️ / ⬆️⬆️⬆️ for 1–3 bars of increasing volume
⬇️ / ⬇️⬇️ / ⬇️⬇️⬇️ for 1–3 bars of decreasing volume
Final row example:
ΔVol: 1.25M (15.32%) 🟢 ⬆️⬆️
5. Earnings countdown
Uses earnings.future_time to detect the next earnings date.
Shows:
Earnings: X days remaining
(only if there is a future earnings date and the option is enabled).
6. RSI (momentum)
Calculates RSI(14).
Displays:
Current RSI value.
Trend arrow vs. previous bar: ⬆️ / ⬇️ / (no arrow).
Emoji color:
🔴 when RSI > 70 (overbought)
🔴 when RSI < 30 (oversold)
🟢 otherwise
Example:
RSI (14): 63.25 🟢 ⬆️
7. CCI (trend strength & short-term swings)
Calculates CCI(14) on hlc3.
Tracks the direction of CCI (up / down / flat) and interprets it:
If CCI is falling:
100 → “Overbought 🔴”
0 to 100 → “Negative Momentum 🟡”
−100 to 0 → “2-4 Days Down 🟠”
< −100 → “Oversold 🔴”
If CCI is rising:
100 → “Overbought 🔴”
0 to 100 → “2-4 Days Up 🟢”
−100 to 0 → “Building Momentum 🟡”
< −100 → “Oversold 🔴”
The row shows value, direction arrow and text interpretation.
Example:
CCI (14): -45.32 🟡 ⬆️ Building Momentum 🟡
8. Market context: VIX & Bitcoin row
Tracks:
VIX (CBOE:VIX)
Bitcoin (BINANCE:BTCUSDT)
If the current chart is directly on one of these symbols, it uses the live close; otherwise it pulls the data via request.security.
Shows last price of VIX and BTC plus trend arrows based on the last 3 closes (up/down streak).
Example:
VIX: 15.23 ⬆️ | BTC: 113,000 ⬇️⬇️
Summary
In short, ROMAN INDICATOR is an overlay info-panel that combines:
Instrument fundamentals (name, sector, industry, market cap)
Volatility & ATR-based stop-loss engine
Distance from major moving averages (50/150/200)
Volume vs. average with streak detection
RSI & CCI with clear emoji-based interpretation
Earnings countdown (days to next report)
Global context via VIX + Bitcoin row
Everything is configurable in the Inputs, making it a convenient single-glance trading dashboard on top of your chart.






















