Indicateurs et stratégies
HMA ZXZ//@version=5
// 显式指定 scale 绑定到价格轴
indicator("HMA 趋势提醒指标 - 织心者优化版", overlay=true, scale=scale.none)
// --- 输入参数 ---
hma_length = input.int(20, "HMA 周期长度", minval=1)
src = input(close, "价格源")
show_labels = input.bool(true, "显示买卖标签")
// --- HMA 核心算法 ---
hma_func(source, length) =>
wma_1 = ta.wma(source, math.floor(length / 2))
wma_2 = ta.wma(source, length)
ta.wma(2 * wma_1 - wma_2, math.floor(math.sqrt(length)))
hma_value = hma_func(src, hma_length)
// --- 趋势与颜色判断 ---
is_up = hma_value > hma_value
line_color = is_up ? color.new(#00ff08, 0) : color.new(#ff0055, 0)
// 绘制 HMA 主线
plot(hma_value, title="HMA 主线", color=line_color, linewidth=3)
// --- 信号逻辑 ---
long_signal = is_up and not (hma_value > hma_value )
short_signal = not is_up and (hma_value > hma_value )
// --- 视觉标注 ---
plotshape(long_signal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="看多拐点")
plotshape(short_signal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="看空拐点")
if show_labels
if long_signal
label.new(bar_index, low, "B", color=color.green, textcolor=color.white, style=label.style_label_up, size=size.tiny)
if short_signal
label.new(bar_index, high, "S", color=color.red, textcolor=color.white, style=label.style_label_down, size=size.tiny)
// 警报
alertcondition(long_signal, title="HMA 向上", message="HMA 转多")
alertcondition(short_signal, title="HMA 向下", message="HMA 转空")
Current Trade Holding Time (H:M:S)Purpose:
This TradingView Pine Script strategy tracks your current open trade and displays its holding time in a table on the chart’s bottom-left corner, updating live as each bar forms. It also optionally shows a label above the price with the current holding time in hours, minutes, and seconds.
Features:
Entry / Exit Logic:
Buy Condition: When the 9-period SMA crosses above the 21-period SMA.
Sell Condition: When the 9-period SMA crosses below the 21-period SMA.
(These are example conditions — you can replace them with your own strategy.)
Table Display:
Always visible in the bottom-left corner.
Columns:
Bars: Number of bars the trade has been open.
Days: Total days held (decimal).
Hours: Total full hours held.
Minutes: Remaining minutes.
Seconds: Remaining seconds.
Updates live while the trade is open.
Clears automatically when the trade closes.
Optional Chart Label:
Shows Hours:Minutes:Seconds above the highest price of the current bar.
Can be turned on/off using the Show Labels input.
Single Trade Tracking:
Only the current open trade is displayed.
Past trades are not recorded in the table, keeping it clean.
Time Calculation:
Uses time, the bar timestamp, for precise elapsed time.
Converts milliseconds to seconds, minutes, hours, and days for display.
Intended Use:
Traders who want to monitor exactly how long their open trade has been held.
Useful for scalping or swing trading, where holding time matters.
Works on any timeframe chart.
BB% of RSI + MFIThis indicator is a modified version of LazyBear’s BB% of RSI.
It plots RSI with Bollinger Bands applied to the RSI itself, highlighting volatility extremes.
A Money Flow Index (MFI) line is added for visual comparison only.
The original RSI and Bollinger Band logic remains unchanged.
MFI can be toggled ON/OFF from the settings.
Useful for identifying overbought/oversold conditions and momentum shifts.
MACD Quality Confirmation Bipolar Index V2Indicator: MACD Quality Confirmation Bipolar Index (V2)
Overview
The MACD Quality Confirmation Bipolar Index V2 is a quantitative tool designed to solve the "False Signal" problem inherent in traditional MACD oscillators. Instead of merely showing momentum direction, this indicator filters MACD signals through a multi-dimensional Quality Engine that analyzes liquidity and price action efficiency.
Why Use This?
Standard MACD often produces "noisy" crossovers during low-volume consolidation or erratic price movements. This indicator assigns a "Quality Score" (0-100) to every move, visualized as a bipolar histogram.
Key Features
Liquidity Filtering (Volume Factor): Uses a percentile-based log-volume calculation over a 1-year lookback. It ensures that signals occurring on low institutional participation are suppressed.
Efficiency Scoring (Smoothness): Measures the ratio of candle body size to the total range. High-wick "erratic" price action reduces the score, while solid, trend-driven candles increase it.
Bipolar Visualization: * Positive Bars: Bullish momentum confirmed by high quality.
Negative Bars: Bearish momentum confirmed by high quality.
Bright Colors: Indicate "Strong Zones" (Score > 60), where price action and volume are in perfect sync.
Smart Crossover Labels: * Green/Red Triangles: High-quality crossovers (Score > 40).
Gray Triangles: Low-quality "noise" crossovers.
Yellow "!" Mark: A warning for extremely weak signals (Score < 20).
How to Trade
The Power Setup: Look for a Bullish Cross (Triangle) that coincides with a bar entering the Strong Zone (above 60). This indicates a high-conviction entry.
The Noise Filter: If you see a MACD crossover but the histogram remains in the "Active Zone" (below 40) or triggers a "!", exercise caution; the market may be ranging.
Trend Strength: Watch for increasing bar heights. If price moves higher but the Quality Score declines, it suggests a "hollow" trend prone to reversal.
btall//@version=5
strategy("AR | AlphaEdge Pro (No-Repaint) v1.0",
overlay=true,
initial_capital=100000,
commission_type=strategy.commission.percent,
commission_value=0.04,
slippage=1,
pyramiding=0,
calc_on_order_fills=true,
calc_on_every_tick=false,
process_orders_on_close=true)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Inputs
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
grp1 = "Trend + Signals"
useHTF = input.bool(true, "Use Higher TF Trend Filter", group=grp1)
htf = input.timeframe("240", "Higher Timeframe", group=grp1)
htfEmaLen = input.int(200, "HTF EMA Length", minval=1, group=grp1)
emaFastLen = input.int(21, "Fast EMA", minval=1, group=grp1)
emaSlowLen = input.int(55, "Slow EMA", minval=1, group=grp1)
stAtrLen = input.int(10, "Supertrend ATR Length", minval=1, group=grp1)
stFactor = input.float(3.0, "Supertrend Factor", minval=0.1, step=0.1, group=grp1)
rsiLen = input.int(14, "RSI Length", minval=1, group=grp1)
rsiBull = input.int(52, "RSI Bull Threshold", minval=1, maxval=99, group=grp1)
rsiBear = input.int(48, "RSI Bear Threshold", minval=1, maxval=99, group=grp1)
useVolFilter = input.bool(true, "Use Volume Filter", group=grp1)
volLen = input.int(20, "Volume SMA Length", minval=1, group=grp1)
volMult = input.float(1.2, "Volume Multiplier", minval=0.1, step=0.1, group=grp1)
grp2 = "Risk Management (ATR)"
atrLen = input.int(14, "ATR Length", minval=1, group=grp2)
slAtrMult = input.float(1.6, "Stop = ATR x", minval=0.1, step=0.1, group=grp2)
rr = input.float(2.0, "Risk:Reward (TP)", minval=0.1, step=0.1, group=grp2)
useRiskPct = input.bool(true, "Dynamic Position Size by Risk %", group=grp2)
riskPct = input.float(1.0, "Risk % of Equity per Trade", minval=0.05, step=0.05, group=grp2)
maxPosPct = input.float(20.0, "Max Position % of Equity Cap", minval=1.0, step=1.0, group=grp2)
grp3 = "Breakeven + Session"
useBE = input.bool(true, "Move Stop to Breakeven", group=grp3)
beTriggerATR = input.float(1.0, "Trigger After +ATR x", minval=0.1, step=0.1, group=grp3)
beOffsetATR = input.float(0.05, "BE Offset (ATR x)", minval=0.0, step=0.01, group=grp3)
useSession = input.bool(false, "Trade Only in Session", group=grp3)
sess = input.session("1000-1500", "Session (exchange time)", group=grp3)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Helper / Filters
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
inSession = not useSession or not na(time(timeframe.period, sess))
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
rsi = ta.rsi(close, rsiLen)
atr = ta.atr(atrLen)
volOk = not useVolFilter or (volume > ta.sma(volume, volLen) * volMult)
// Supertrend
= ta.supertrend(stFactor, stAtrLen) // stDir: 1 bullish, -1 bearish (TradingView behavior)
stBull = stDir == 1
stBear = stDir == -1
// HTF trend (lookahead_off to reduce repaint risk on historical vs realtime behavior)
htfEma = request.security(syminfo.tickerid, htf, ta.ema(close, htfEmaLen), barmerge.gaps_off, barmerge.lookahead_off)
htfBull = close >= htfEma
htfBear = close <= htfEma
trendOkLong = not useHTF or htfBull
trendOkShort = not useHTF or htfBear
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Entry Conditions (confirmed bar to avoid “intrabar” surprises)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
longSignal = barstate.isconfirmed and inSession and trendOkLong and stBull and close > emaFast and emaFast > emaSlow and rsi >= rsiBull and volOk
shortSignal = barstate.isconfirmed and inSession and trendOkShort and stBear and close < emaFast and emaFast < emaSlow and rsi <= rsiBear and volOk
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Position sizing by ATR stop distance (approx; works best on stocks/spot)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
f_posQty(_stopDist) =>
// Risk capital = equity * riskPct%
riskCapital = strategy.equity * (riskPct / 100.0)
// Qty to risk roughly riskCapital if stop hits
rawQty = _stopDist > 0 ? (riskCapital / _stopDist) : 0.0
// Cap position size by maxPosPct% of equity
maxPositionValue = strategy.equity * (maxPosPct / 100.0)
maxQty = close > 0 ? (maxPositionValue / close) : rawQty
qty = math.max(0.0, math.min(rawQty, maxQty))
qty
stopDist = atr * slAtrMult
qty = useRiskPct ? f_posQty(stopDist) : na
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Entries
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
if (longSignal and strategy.position_size <= 0)
strategy.entry("L", strategy.long, qty=useRiskPct ? qty : na)
if (shortSignal and strategy.position_size >= 0)
strategy.entry("S", strategy.short, qty=useRiskPct ? qty : na)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Exits (ATR SL/TP + optional Breakeven)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
isLong = strategy.position_size > 0
isShort = strategy.position_size < 0
entry = strategy.position_avg_price
longSL = entry - stopDist
longTP = entry + stopDist * rr
shortSL = entry + stopDist
shortTP = entry - stopDist * rr
// Breakeven logic
beTrig = atr * beTriggerATR
beOff = atr * beOffsetATR
if isLong and useBE
// if price moved in our favor enough -> raise stop to entry (+offset)
if (close - entry) >= beTrig
longSL := math.max(longSL, entry + beOff)
if isShort and useBE
if (entry - close) >= beTrig
shortSL := math.min(shortSL, entry - beOff)
// Submit exits every bar so they update dynamically
strategy.exit("XL", from_entry="L", stop=longSL, limit=longTP, when=isLong)
strategy.exit("XS", from_entry="S", stop=shortSL, limit=shortTP, when=isShort)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Visuals + Alerts
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
plot(emaFast, "EMA Fast", linewidth=2)
plot(emaSlow, "EMA Slow", linewidth=2)
plot(stLine, "Supertrend", linewidth=2)
plot(useHTF ? htfEma : na, "HTF EMA", linewidth=2)
plotshape(longSignal, title="Long Signal", style=shape.triangleup, location=location.belowbar, size=size.tiny, text="L")
plotshape(shortSignal, title="Short Signal", style=shape.triangledown, location=location.abovebar, size=size.tiny, text="S")
alertcondition(longSignal, title="AlphaEdge Long", message="AlphaEdge LONG on {{ticker}} @ {{close}}")
alertcondition(shortSignal, title="AlphaEdge Short", message="AlphaEdge SHORT on {{ticker}} @ {{close}}")
SMC Structure + HTF Levels + VolatilityDescription: This script is a comprehensive "Smart Money Concepts" (SMC) toolkit designed to filter out market noise and focus only on the Major Market Structure. It combines structural analysis, multi-timeframe key levels, and volatility tracking into a single chart overlay.
Unlike standard fractal indicators that clutter the chart with every minor pivot, this script uses a "Retroactive" logic system to only mark significant Higher Highs (HH), Higher Lows (HL), Lower Lows (LL), and Lower Highs (LH) that confirm a trend break.
Key Features
1. Major Structure Mapping (Retroactive Logic)
The Problem: Standard indicators often mark a "Lower High" too early, only for price to continue higher.
The Solution: This script waits for a Major Low to be broken (confirmed break of structure) before identifying the peak that caused it. It then "looks back" and retroactively labels that peak as the valid Lower High (LH).
Result: You get a clean chart that shows only the true structural legs of the trend, filtering out internal sub-swings and fake-outs.
2. Multi-Timeframe (MTF) Steplines
Automatically plots the previous highs and lows from higher timeframes:
PDH / PDL: Previous Day High & Low (Blue)
PWH / PWL: Previous Week High & Low (Orange)
PMH / PML: Previous Month High & Low (Purple)
These act as major magnet levels for price targets or reversal zones.
3. Volatility Regimes (Expansion vs. Consolidation)
Uses Bollinger Band Width to analyze market energy.
Green Background (Expansion): Volatility is above average. The market is moving fast (breakout or trend).
Gray Background (Consolidation): Volatility is below average. The market is squeezing, indicating a potential big move is building up.
How to Use It
Trend Following: Look for price to form a HL (Higher Low) in an uptrend. Wait for the background to turn Gray (Consolidation), then enter when it turns Green (Expansion) as price breaks upward.
Reversals: Watch for price to hit a PWH (Previous Week High). If a LH (Lower High) label appears shortly after, it confirms the reversal is valid.
Stop Placement: Use the most recent HL or LH labels as safe zones for stop-loss placement, as these represent protected structural points.
Settings
Swing Length: Adjusts how sensitive the structure detection is (Default: 5). Increase this number to see even longer-term structure.
Colors: Fully customizable colors for Bullish/Bearish structure, HTF lines, and Volatility zones.
Show/Hide: You can toggle off any element (like the Monthly levels or Volatility background) to keep your chart clean.
Andra Algo//@version=5
indicator(title="Andra Algo V 1.2", shorttitle="Andra Algo V1.2", overlay=true)
// =====================
// INPUT
// =====================
src = input(defval=close, title="Source")
per = input.int(defval=100, minval=1, title="Sampling Period")
mult = input.float(defval=3.0, minval=0.1, title="Range Multiplier")
// =====================
// COLOR SET
// =====================
buyLineColor = color.white
sellLineColor = color.blue
midColor = #90bff9
buyBgColor = color.new(color.gray, 20)
sellBgColor = color.new(color.blue, 20)
// =====================
// SMOOTH RANGE
// =====================
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
ta.ema(avrng, wper) * m
smrng = smoothrng(src, per, mult)
// =====================
// RANGE FILTER
// =====================
rngfilt(x, r) =>
rf = x
rf := x > nz(rf ) ?
(x - r < nz(rf ) ? nz(rf ) : x - r) :
(x + r > nz(rf ) ? nz(rf ) : x + r)
rf
filt = rngfilt(src, smrng)
// =====================
// TREND DIRECTION
// =====================
upward = 0.0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward = 0.0
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
// =====================
// MID LINE COLOR
// =====================
filtColor = upward > 0 ? buyLineColor : downward > 0 ? sellLineColor : midColor
plot(filt, title="Mid Line", color=filtColor, linewidth=2)
// =====================
// BUY & SELL CONDITIONS
// =====================
longCond = src > filt and upward > 0
shortCond = src < filt and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
longCondition = longCond and CondIni == -1
shortCondition = shortCond and CondIni == 1
// =====================
// SIGNALS (FIXED BG COLOR)
// =====================
plotshape(longCondition, title="Buy Signal", text="BUY", style=shape.labelup, location=location.belowbar, size=size.small, textcolor=color.white, color=buyBgColor)
plotshape(shortCondition, title="Sell Signal", text="SELL", style=shape.labeldown, location=location.abovebar, size=size.small, textcolor=color.white, color=sellBgColor)
// =====================
// ALERTS
// =====================
alertcondition(longCondition, title="Buy Alert", message="Andra Algo V1.2 BUY")
alertcondition(shortCondition, title="Sell Alert", message="Andra Algo V1.2 SELL")
Institutional Bearish Continuation 🧠 Indicator Overview
Institutional Bearish Continuation – Clean is a professional, non-repainting indicator designed to identify high-probability bearish continuation setups.
It follows institutional trading logic by aligning trend direction, premium pullbacks, and strong seller re-entry, helping traders avoid emotional and low-quality trades.
This indicator is built strictly for educational and analytical purposes.
🔍 How the Indicator Works
The indicator generates SELL signals only when three institutional conditions align:
1️⃣ Trend Bias (Market Control)
Uses EMA 50 & EMA 200
SELL signals are allowed only when EMA 50 is below EMA 200
Confirms bearish market structure
2️⃣ Pullback into Premium
Price must retrace toward EMA 50
Ensures entries are taken at better value, not at lows
Filters impulsive selling
3️⃣ Seller Re-Entry Confirmation
Strong bearish candle required
Confirms sellers have regained control after the pullback
Only when all conditions align, a SELL label is displayed.
📌 Key Features
✔ Institutional trend confirmation
✔ Pullback-based entries (no chasing price)
✔ Strong momentum validation
✔ Clean and minimal chart design
✔ Non-repainting logic
✔ Works across indices, forex, and metals
📊 Best Use Cases
Markets: NAS100, XAUUSD (Gold), EURUSD, GBPUSD
Timeframes:
5M – 15M for entries
1H – 4H for trend bias
🎯 Trading Logic Summary
“Trade only in the direction of the dominant trend, wait for price to pull back into premium, and execute when sellers re-enter with strength.”
Asia Range + OB Zones + AlertsTrail run of script built with chatgpt and clude to mark hhs lows and OB's
Correlation Stability3 CORRELATION STABILITY INDICATOR
This indicator is shown as a table on the main chart.
WHAT IT DOES
It evaluates how stable the statistical relationship between two assets is over time using correlation analysis.
HOW IT WORKS
• Correlation between two assets is calculated over rolling windows
• The test is performed periodically
• Each window is marked as pass or fail depending on correlation strength
• If more than half of the tested windows pass, the pair is considered stable
The result is displayed as a simple table showing the current status of the pair.
HOW TO USE
This indicator is a filter, not a trading signal.
It helps the trader:
• Select suitable pairs for statistical arbitrage
• Avoid trading pairs where the relationship has broken down
• Improve the quality of mean-reversion signals
RECOMMENDED TO USE WITH
• Ornstein–Uhlenbeck Z-score for signal generation
• OU Signals Overlay for trade visualization
TRIGONUM STATISTICAL ARBITRAGE INDICATORS
This is a series of indicators developed by Trigonum for statistical arbitrage and pairs trading.
The core idea of the series is to trade the relationship between two assets, not the direction of a single market.
All signals are based on mean reversion of a spread between two instruments and are intended to be used with hedged positions (long one asset and short the other).
The series consists of three indicators, each serving a different purpose.
GeorgeFX - CRT 4H Hunter ProThe GeorgeFX - CRT 4H Hunter Pro is a professional liquidity-tracking indicator designed for the 15-minute timeframe. It identifies high-probability reversals by monitoring 4-Hour (HTF) liquidity sweeps and confirming entries via local market structure shifts.
Core Logic:
1.HTF Liquidity Detection: The script tracks the Previous 4H High and Low.
2.The Sweep (Liquidity Grab): It identifies when the 15m price pierces these 4H levels and closes back inside, signaling a potential "trap."
3.Volume Filter: Only sweeps with volume higher than the 20-period average ($1.1x$ multiplier) are considered valid.
4.Multi-Sweep Memory: The script tracks consecutive sweeps (C1, C2, C3) within the same 4H candle, resetting only when the price re-enters the 4H range.
5.Precision Entry (The Dot): A signal (●) is generated only when the 15m price closes beyond the trigger candle's body, confirming momentum.
Visual Elements:
1.Stepline Levels: Red (4H High) and Green (4H Low) lines showing the HTF boundaries.
2.Sweep Boxes: Shaded regions showing the depth of the liquidity grab.
3.Confirmation Dot (●): High-visibility Lime (Buy) or Red (Sell) dots marking the exact entry candle.
4.Trigger Lines: Horizontal lines connecting the sweep to the entry point.
5.Visibility Limit: Display is optimized to show only the last 200 bars to keep the chart clean.
Professional Alert System:
1.The script uses a standardized "Pro-Signal" format designed for instant readability on mobile devices or smartwatches.
2.Alert Trigger: Fires exactly at the close of the 15m confirmation candle.
How to Set Up Alerts:
1.Apply the script to your 15-minute chart.
2.Click the Alerts icon (Clock) in the right sidebar.
3.Set Condition to GeorgeFX - CRT 4H Hunter Pro.
4.Select Any alert() function call.
5.Set Expiration to "Open-ended" and click Create.
HA EMA10.30 Pullback, Trend Bias, No ConsolidationThis script is a trend-bias + entry signal indicator built around the Heikin-Ashi pullback strategy you shared.
It does three main jobs:
Decides the market bias (LONG only, SHORT only, or NO TRADE)
Filters out consolidation / chop
Signals entries only when momentum aligns
HVN Boundary Assist FRVP + ATR Tempo Auto TF Defaults (LOCKED)This indicator is a structure-assist tool, not a signal generator. It is designed to standardize High-Volume Node (HVN) boundary placement and evaluation when using TradingView’s Fixed Range Volume Profile (FRVP) on weekly and monthly timeframes.
The script does not attempt to discover HVNs automatically. The trader selects the HVN visually using FRVP and inputs the HVN center (effective VPOC). From there, the script applies consistent, rules-based logic to define boundaries, track interaction, and prevent lower-timeframe levels from conflicting with higher-timeframe structure.
What the indicator does
1. Standardizes HVN boundary placement
Using the active timeframe’s ATR, the indicator identifies the first candle that regains tempo on each side of the HVN center.
A valid boundary requires:
A bar range ≥ a fixed fraction of ATR
A close that breaks prior rotational overlap
The close of that candle becomes the candidate HVN high or low. Wicks are ignored for structure.
2. Automatically adapts to timeframe
The indicator enforces locked system defaults:
Weekly: 0.33 ATR expansion, 10-bar overlap lookback
Monthly: 0.25 ATR expansion, 8-bar overlap lookback
These values adjust automatically based on chart timeframe, eliminating discretionary tuning.
3. Tracks retests without redefining structure
HVN interaction is tracked via wick touches within a tight ATR-based tolerance.
Retests are informational only and never move boundaries. This captures recognition and rejection behavior without violating close-based structure rules.
4. Ranks HVN strength (0–3)
Each HVN is scored using:
Tightness relative to ATR
Relative volume confirmation
Presence of at least one retest
This produces a simple, comparable strength ranking without overfitting.
5. Enforces clean monthly → weekly nesting
An optional monthly gate restricts weekly logic to operate only inside a defined monthly HVN.
If conflicts arise, monthly structure always overrides weekly, preventing level overlap and structural ambiguity.
What the indicator does NOT do
It does not read FRVP data (TradingView limitation)
It does not auto-detect HVNs
It does not generate trade signals
It exists to remove subjectivity and inconsistency from HVN boundary placement and evaluation.
Intended use
Apply FRVP and visually identify the HVN
Enter the HVN center price into the indicator
Let the script define precise boundaries and interaction metrics
Use monthly HVNs as structural rails and weekly HVNs for execution
Design philosophy
Structure is defined by closes and volatility, not wicks
Retests measure recognition, not acceptance
Higher timeframe structure always dominates
This tool enforces those rules mechanically so the trader doesn’t have to.
Tradovate Trades Overlay (CSV Import)This indicator, is a tool to visualize the past trades from a tradovate .csv file format in TradingView. A python code is commented in the file, which converts the .csv file into a format that TradingView can import. (for more details please read the header of the indicator)
Trinity Scalping Direction DashbaordTrinity Scalping Dashboard – User Guide
**Purpose**
This indicator shows whether the current price is above or below the 5-period EMA across five key timeframes (5 min, 15 min, 1 hour, 4 hour, Daily).
It highlights when all five timeframes are aligned in the same direction (all bullish or all bearish), giving a clear "Buy", "Sell", or "No Trade Zone" signal.
**What the indicator displays**
- A dashboard table appears in one corner of the chart
- Each row shows one timeframe
- Text says "Above - Bullish" (green) or "Below - Bearish" (red) depending on whether current price is above or below the 5 EMA on that timeframe
- The bottom row shows the overall signal:
- **Buy** → all 5 timeframes are bullish (price > 5 EMA on every TF)
- **Sell** → all 5 timeframes are bearish (price < 5 EMA on every TF)
- **No Trade Zone** → mixed alignment (not all timeframes agree)
**Customizing the indicator**
- **EMA Period** — default is 5, but you can change it (e.g. to 8, 9, 13, etc.)
- **Colors** — adjust Bullish (green), Bearish (red), and No Trade (yellow) colors to your preference
- **Table Position** — choose Top Right, Bottom Right, or Bottom Left
- **Text Sizes** — separately control the size of the timeframe rows and the signal row (Tiny → Huge)
- **Header** — shows "Options Direction Dashboard" at the top of the table (you can edit the text in the code if desired)
**How to read the signal**
- **Strong Buy** — entire table green + bottom row says **Buy**
- **Strong Sell** — entire table red + bottom row says **Sell**
- **No clear direction** — mixed colors + bottom row says **No Trade Zone**
Only trade in the direction of the **full alignment** (all rows same color) for highest-probability setups.
**Alerts**
Three alert conditions are built-in:
1. **Buy Signal** — triggers when all timeframes become bullish
2. **Sell Signal** — triggers when all timeframes become bearish
3. **Signal Change** — triggers any time the overall signal changes (Buy ↔ Sell ↔ No Trade)
To set an alert:
- Right-click on the chart → **Add Alert**
- In **Condition**, select this indicator
- Choose one of the three conditions (Buy Signal / Sell Signal / Signal Change)
- Set frequency to **Once Per Bar Close** (recommended for most users)
- Customize notification (email, SMS, webhook, etc.)
**Best practices**
- Use for scalping when all EMA align and only take trades in the direction of the alignment.
- Use on higher timeframes (1H, 4H, Daily) for swing/position trading and use the smaller timeframe to time entries
- Combine with your existing price action, support/resistance or other filters
- The strongest setups occur when the signal flips from No Trade → Buy or No Trade → Sell
CVD Exhaustion Hunter
1. Introduction
The CVD Exhaustion Hunter is a revolutionary daytrading oscillator that detects when price movements become "exhausted" - moving without volume confirmation. By measuring the cumulative percentage divergence between price action and Cumulative Volume Delta (CVD), it identifies high-probability reversal zones using statistical Z-Score analysis. Perfect for scalpers hunting exhaustion moves in futures or other daytrading charts.
2. Key Features
- Daily Auto-Reset : Automatically zeros at market open for clean intraday analysis
- Z-Score Normalization : Bounded oscillator for clear overbought/oversold levels
- Dual Scale : Raw divergence + statistical Z-Score for confirmation
- Real-time Dashboard : Live Z-Score, CVD, and signal status
- Works on Daily Charts with volume data (best 1m-15m)
3. How to Use
DAYTRADE ONLY indicator with daily reset. Always combine with VWAP for best results.
Pro Tip: VWAP confirms the trend direction while Z-Score spots the exhaustion reversal.
Multi-Session Volume Profile Suite [MarkitTick]💡 This indicator provides a sophisticated, institutional-grade Volume Profile analysis suite that renders multiple temporal profiles simultaneously. It is designed for traders utilizing Auction Market Theory who require a holistic view of where value is being established across Daily, Weekly, and Monthly timeframes, alongside custom intraday sessions. By bypassing standard built-in functions in favor of a custom array-based calculation engine, this tool offers granular control over Value Area logic, Point of Control (POC) migration, and multi-timeframe confluence detection.
✨ Originality and Utility
Standard Volume Profile tools often limit traders to a single timeframe or the visible range of the chart. This creates a fragmented view of the market, where a trader might see the daily value but miss the context of the weekly or monthly auction.
This script solves that problem by layering three distinct higher-timeframe profiles (Daily, Weekly, Monthly) plus three customizable intraday session profiles onto a single chart.
● Key Differentiators
Confluence Detection Engine: The script mathematically calculates when the Points of Control (POC) of different timeframes overlap (e.g., Daily POC inside Weekly POC). It explicitly highlights these high-probability zones with specific labels (e.g., "TRIPLE CONFLUENCE"), automating the search for key support/resistance levels.
POC Migration Tracking: Unlike static profiles, this tool tracks the "Shift" of the POC. It visualizes whether value is migrating higher (▲), lower (▼), or remaining neutral (=) compared to the previous period, providing immediate insight into the trend's acceptance.
Synthetic Chart Protection: The script includes logic to detect and prevent usage on non-standard chart types like Heikin Ashi or Renko, ensuring that the volume data processed is accurate and not subject to the repainting often found in synthetic OHLC variations.
🔬 Methodology and Concepts
The core engine relies on a custom implementation of the Volume Profile formula using dynamic arrays. It does not simply pull pre-calculated data but processes the tick volume of the underlying asset relative to price action.
• Volumetric Binning
The script divides the price range of a specific period (e.g., a Day) into a user-defined number of "rows" (bins). As price trades within a specific bin, the corresponding volume is accumulated.
Point of Control (POC): The bin with the highest accumulated volume is identified as the POC. This represents the "Fair Value" or the mode of the distribution for that period.
Value Area (VA): The script calculates the total volume of the profile and then identifies the range surrounding the POC that contains a specific percentage (default 70%) of that volume. It uses a dual-scanning algorithm that expands upwards or downwards from the POC based on which adjacent row has higher volume, mimicking the auction process of testing prices.
• Exact-Anchor Pivots
Simultaneously, the script tracks "Exact-Anchor" pivots. Unlike standard pivots that settle at the close, these track the absolute High and Low of the period (Daily/Weekly/Monthly) in real-time and extend them until a new period begins.
🎨 Visual Guide
The indicator uses a color-coded hierarchy to distinguish between timeframes. Understanding this visual language is critical for interpreting the data.
● Profile Hierarchy (Default Theme)
Daily Profile (Yellow/Gold): Represents the immediate, short-term auction.
Solid Line: Daily POC.
Dotted Line: Daily Value Area High (VAH) and Low (VAL).
Weekly Profile (Blue): Represents the intermediate auction. A solid Blue line indicates the Weekly POC.
Monthly Profile (Purple): Represents the macro auction. A solid Purple line indicates the Monthly POC.
● Labels and Symbols
Right-Side Labels: At the end of profile lines, text labels display the exact price of the POC.
Shift Arrows (▲ / ▼): Located inside the POC label, these arrows indicate the direction the POC has moved relative to the previous period's POC. An Up arrow (▲) suggests buyers are accepting higher prices.
Confluence Labels: If enabled, a text box appears near price action stating "POC CONFLUENCE" or "TRIPLE CONFLUENCE" when the POCs of different timeframes align within a tight margin.
Block Symbol (⬛): A small block icon may appear above bars to denote the center of a specific session's time window.
● Pivot Lines
Orange Lines: Previous Daily High (PDH) and Low (PDL).
Green Dashed Lines: Previous Weekly High (PWH) and Low (PWL).
Red Dotted Lines: Previous Monthly High (PMH) and Low (PML).
White Dashed Line: New York Midnight Open price (if enabled).
📖 How to Use
This suite is designed for "Contextual Trading." It answers the question: Where are we relative to value?
• Trend Acceptance
Observe the Shift Arrows on the POC labels. In a healthy uptrend, you should see a sequence of Daily and Weekly profiles with (▲) arrows, indicating that the market is validating higher prices as fair value. If price rises but the POC remains lower or shifts down, it may indicate a "weak high" or a potential reversal (divergence between price and value).
• Support and Resistance
The POC lines act as high-probability support and resistance. Price returning to a Weekly (Blue) or Monthly (Purple) POC often results in a reaction, as these are areas of significant historical agreement between buyers and sellers.
• The Confluence Play
Pay special attention when the "Confluence" label appears. When a Daily POC aligns with a Weekly or Monthly POC, that specific price level possesses reinforced structural importance. A rejection from such a level is a strong signal; a breakout through such a level often leads to an explosive move as value transitions rapidly.
⚙️ Inputs and Settings
The script is highly customizable via the settings menu.
● General Settings
Row Resolution: Determines the granularity of the profile. Higher numbers (e.g., 100) create smoother, more detailed profiles but use more calculation resources.
Value Area %: Default is 70.0, representing the standard deviation of value.
Show POC Shift: Toggles the (▲/▼) comparison logic.
● Profile Scope
Show Daily/Weekly/Monthly: Checkboxes to individually enable or disable specific timeframe profiles.
Session Lookback: Controls how many historical days/weeks the profiles are kept on the chart.
● Pivots (PDH/PMH/NYM)
Show Pivots: Enables the High/Low lines for previous periods.
Show NY Midnight: Specifically toggles the opening price of the New York session (00:00 EST).
● Alerts
Approach Distance: Sets the sensitivity (in ticks) for alerts when price nears a key POC level.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in Auction Market Theory (AMT) and statistical distribution analysis.
• The Market as a Mechanism
AMT postulates that the primary purpose of the market is to facilitate trade. Price advertises opportunity, while Time regulates the opportunity. Volume is the validation of that price. When the market spends significant time and transacts significant volume at a specific level, it establishes "Value."
• Gaussian Distribution and Central Limit Theorem
A Volume Profile is essentially a histogram of volume over price, often resembling a Gaussian (Normal) Distribution or "Bell Curve" when the market is balanced.
POC (Mode): The peak of the curve. Mathematically, this is the mode of the dataset—the price occurring with the highest frequency (volume).
Value Area (Standard Deviation): In a normal distribution, approximately 68.2% of data points fall within one standard deviation of the mean. This script defaults to a 70% Value Area to approximate this statistical boundary. Prices outside this area are considered statistically significant anomalies or "imbalanced."
• Confluence and Probability
The "Confluence" feature leverages the intersection of independent datasets. If the mode (POC) of a short-term distribution (Daily) aligns with the mode of a long-term distribution (Weekly), the probability of that price representing "True Value" increases exponentially. This aligns with statistical principles where overlapping data clusters suggest a stronger underlying signal amidst market noise.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Prime Minute MarkerPrime Minute Marker – Description
This script marks specific prime-numbered minutes directly on the chart using clean, plain text (no boxes or shapes).
It is designed for time-based market observation, helping traders spot recurring reactions, swings, and behavioral patterns that tend to appear at specific minutes within the hour.
The marker:
Displays only selected prime minutes
Uses simple text labels for a clutter-free chart
Does not interfere with price action
Works on any intraday timeframe
Is especially useful for swing points, liquidity reactions, and auction-based analysis
This tool is meant for observation and confluence, not as a standalone trading signal.
NY 9:30-9:35 Open Rangehis indicator automatically plots the New York Opening Range based on the first 5 minutes of the session (09:30–09:35 NY time) — one of the most important liquidity and price-discovery periods of the trading day.
What it displays
- Opening Range Box (09:30–09:35)
Highlights the high and low formed during the first 5 minutes after the NY market opens.
High & Low Extensions Horizontal projection lines extending the opening range forward for a user-defined number of hours.
Midpoint (50%) Level, A dotted line marking the midpoint of the range, useful for balance, mean-reversion, and confirmation setups.
ULTIMATE NY 9:30 OPEN MARKERYour ultimate New York Open Marker... So you can analyze your charts when everybody else sleeps or parties, you crazy chart people!
Works on every timeframe including custom ones.
Customizable in settings:
Marker Settings:
- Default: Sky blue flag with background highlight and time label for the NY open as default. You can change all that in the settings.
- Various marker shape options: Triangle, Diamond, Label Flag, Arrow Up/Down, Arrow this, Arrow that... So you can pick whatever annoys you the least lol
- Auto-positioning: above bear candles, below bull candles (default) - or always above/below
- 5 sizes from tiny to HUGE
- Vertical offset fine-tuning - you can move your marker closer to the bar if you like, or farther from it
Vertical Lines Options:
- Line ON the 9:30 bar
- Line BEFORE the 9:30 bar (so on 5min you'd see a line on 9:25, on 15min on 9:15, etc. - this way you can see the open candle well)
- Solid, dotted, dashed, pick your poison
Time Label Option: "9:30 EST" label (customizable text, color, size)
Date Label Option: Four format options:
- MM/DD/YY (American)
- DD/MM/YY (European)
- DD Mon. 'YY (Written, like "04 Feb. '26")
- Mon DD, YYYY (Full)
Plus optional day of week (short or full)
Bonus: Background highlight option for the open bar
The indicator handles DST automatically via the "America/New_York" timezone and works on any timeframe including custom ones.
Let me know if you'd like any adjustments.
Thanks. : )
LCCM & C7Lục Chỉ Cầm Ma (LCCM)
This indicator replicates the Lục Chỉ Cầm Ma (LCCM) trading method developed by Khac Quy .
Lục Chỉ Cầm Ma (LCCM) is a rule-based breakout and trend-following trading method, originally designed for Gold (XAUUSD) and optimized for M15 and M30 timeframes.
The method focuses on key support and resistance levels (barriers), candle strength analysis, and MA20 for trade management.
🔹 Core Trading Logic
Buy Signal:
A buy setup is considered when a candle closes above a resistance barrier, indicating a valid breakout.
Sell Signal:
A sell setup is considered when a candle closes below a support barrier, indicating a downside breakout.
🔹 C7 Candle Pattern
🔸 C7CB (Basic 3-Candle Pattern)
C7CB consists of three consecutive candles with decreasing body size.
The body of candle 1 is larger than candle 2, and candle 2 is larger than candle 3.
This pattern indicates that trend momentum is weakening and buyers/sellers are losing control.
Usage:
Exit or partially close positions.
Alternatively, move stop loss to breakeven to protect profits.
🔸 C7CC (Extended 5-Candle Pattern)
C7CC is a five-candle consolidation pattern, consisting of:
One mother candle (largest range),
Followed by four inside candles with smaller ranges.
The final candle that breaks out of this structure is used to confirm trend continuation or reversal, depending on direction.
Usage:
If a strong reversal candle appears after C7CC, close existing positions.
If breakout aligns with the trend, traders may continue holding or add positions cautiously.
You can refer to other C7 patterns in the LCCM documentation by the author Khac Quy.
Floating FibFib will lock onto last traded price and float until you enter, then click Trade Entry and the entry price and it stays locked while your trade progresses






















