V-Max: Tactical Opening Range & Session Monitor🛡️ 【V-Max】Tactical Opening Range & Session Monitor
Overview The V-Max Tactical Session Monitor is a high-precision utility designed to capture and project the critical opening range of any market session (e.g., US Market Open). By defining the high, low, and equilibrium (mid) points of the initial volatility, traders can establish a tactical framework for the remainder of the trading day.
Technical Methodology & Logic This script employs a robust cross-day physical coordinate engine:
Opening Range Capture: Dynamically calculates the high, low, and midpoint (50% level) during a user-defined interval (e.g., the first 15 minutes of the US open).
Physical Coordinate Locking: Utilizes the box.new and line.new objects to render a visual "Tactical Box." The right boundary of the box is extended in real-time until the specified session_stop time, ensuring the range remains relevant throughout the session.
Precision Engine: Features a dedicated precision handler that automatically adjusts the price label formatting based on syminfo.mintick (detecting whether an asset requires 2 or 5 decimal places) to ensure visual clarity across all asset classes.
Day-of-Week Validation: Includes logic to exclude weekends, focusing strictly on active market weekdays for data integrity.
How to Use
Time Settings: Input the start and end of the opening range you wish to capture (Defaulted to GMT+8 for US Open).
Session Stop: Define the time when the projection should cease extending.
Execution: Use the High/Low levels as breakout boundaries and the Mid-line as a pivot for trend strength.
產品概述 V-Max 時效監控 Pro 是一款高精度的開盤區間捕捉工具。透過定義開盤初期(如美股開盤前 15 分鐘)的高點、低點與中軸平衡點,為交易者建立全天的戰術框架。
技術邏輯與功能 本腳本採用穩定的物理座標引擎:
開盤區間捕捉:在自定義的時間區間內,自動鎖定最高價、最低價與 50% 中軸價位。
物理座標鎖定:利用 box.new(區間盒)與 line.new(趨勢線)物件進行視覺化呈現。區間將實時延伸至設定的停止時間,確保戰術參考線在整個交易時段內有效。
精度處理引擎:自動根據標的物(如美股或加密貨幣)的最小跳動單位調整標籤顯示,確保價格資訊的清晰度。
跨日物理判定:內建工作日過濾邏輯,確保僅在市場交易日內啟動捕捉。
This is a free tactical utility from the V-Max strategic suite.
Premium Indicators: For L1-L3 professional trend navigation and momentum systems, please contact our authorized assistant: @VMax_Helper_bot.
Disclaimer: For technical analysis purposes only. Past performance does not guarantee future results.
Wskaźniki i strategie
takeshi Rule Disqualification//@version=5
indicator("猛の掟・初動スクリーナー(作り直し版:8項目+即除外+押し目待ち最適化)", overlay=true, max_labels_count=50)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Inputs
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
showPanel = input.bool(true, "コメント表示")
panelPos = input.string("右上", "コメント位置", options= )
lastBarOnly = input.bool(true, "最後の足だけ更新(推奨)")
// EMA
lenEma1 = input.int(5, "EMA 5", minval=1)
lenEma2 = input.int(13, "EMA 13", minval=1)
lenEma3 = input.int(26, "EMA 26", minval=1)
// MACD
macdFast = input.int(12, "MACD fast", minval=1)
macdSlow = input.int(26, "MACD slow", minval=1)
macdSig = input.int(9, "MACD signal", minval=1)
// Volume
volMaLen = input.int(5, "出来高平均(N日)", minval=1)
volMinMul = input.float(1.3, "出来高倍率Min", step=0.1)
volMaxMul = input.float(2.0, "出来高倍率Max", step=0.1)
volFinalMul = input.float(1.5, "最終三点:出来高倍率(>=)", step=0.1)
// Candle
wickBodyMult = input.float(1.8, "下ヒゲ判定:下ヒゲ/実体 >=", step=0.1)
upperToLower = input.float(0.6, "ピンバー:上ヒゲ<=下ヒゲ×", step=0.1)
atrLen = input.int(14, "ATR長", minval=1)
bigBodyATR = input.float(1.2, "大陽線判定:実体 >= ATR×", step=0.1)
// Breakout / Pullback
resLookback = input.int(20, "レジスタンス:過去N日高値", minval=5)
pullMinPct = input.float(5.0, "押し目Min(%)", step=0.5)
pullMaxPct = input.float(15.0, "押し目Max(%)", step=0.5)
retestAllowPct = input.float(1.0, "ブレイク価格の許容下抜け(%)", step=0.1)
stateExpireBars = input.int(30, "ブレイク状態の期限(本数)", minval=5)
// “二度と戻らない銘柄” 即解除(押し目待ち中のゴミ滞留防止)
cutOnBreakFail = input.bool(true, "押し目待ち中:レジ割れで即解除")
cutOnBelow26 = input.bool(true, "押し目待ち中:26EMA割れで即解除")
cutOnEma5Down = input.bool(true, "押し目待ち中:5EMA下向きで即解除")
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Series
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ema5 = ta.ema(close, lenEma1)
ema13 = ta.ema(close, lenEma2)
ema26 = ta.ema(close, lenEma3)
= ta.macd(close, macdFast, macdSlow, macdSig)
volAvg = ta.sma(volume, volMaLen)
volMul = volAvg == 0 ? na : (volume / volAvg)
atr = ta.atr(atrLen)
// Candle parts
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 1-3: トレンド(掟A)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ema5Up = ema5 > ema5
ema13Up = ema13 > ema13
ema26Up = ema26 > ema26
chk1_allEmaUp = ema5Up and ema13Up and ema26Up
chk2_golden = (ema5 > ema13) and (ema13 > ema26)
chk3_above26_2days = (close > ema26) and (close > ema26 )
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 4: MACD(掟B:ゼロライン上GC)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
chk4_macdZeroGC = ta.crossover(macdLine, macdSignal) and (macdLine > 0) and (macdSignal > 0)
// 参考:ヒストグラム縮小→上向き(表示だけ)
histShrinkToUp = (macdHist > macdHist ) and (macdHist < macdHist )
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 5: 出来高(掟C)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
chk5_volOK = not na(volMul) and (volMul >= volMinMul) and (volMul <= volMaxMul)
volStrongOK = not na(volMul) and (volMul >= volFinalMul) // 最終三点
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 6: ローソク(掟D:ピンバー/包み/大陽線)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// ピンバー(下ヒゲが実体より長く、上ヒゲが短め、陽線寄り)
longLowerWick = (body > 0) and ((lowerWick / body) >= wickBodyMult) and (upperWick <= lowerWick * upperToLower) and (close >= open)
// 陽線包み足
bullEngulf = (close < open ) and (close > open) and (open <= close ) and (close >= open )
// 大陽線(EMA13を跨ぐ/上に抜け、実体がATR基準)
bigBull = (close > open) and (body >= atr * bigBodyATR) and (open < ema13) and (close > ema5)
chk6_candleOK = longLowerWick or bullEngulf or bigBull
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 7-8: ブレイク後押し目(掟E)
// chk7 = 押し目率(-5〜15%)
// chk8 = ブレイク後&レジスタンス維持(リテストOK)
// ※chk7とchk8を独立させ、二重判定を排除
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
res = ta.highest(high, resLookback)
breakout = ta.crossover(close, res)
// ブレイク状態
var bool inBreak = false
var float breakPrice = na
var int breakBar = na
var float postBreakHigh = na
if breakout
inBreak := true
breakPrice := res
breakBar := bar_index
postBreakHigh := high
if inBreak
postBreakHigh := na(postBreakHigh) ? high : math.max(postBreakHigh, high)
// 押し目率(ブレイク後高値からの下落率)
pullPct = (inBreak and not na(postBreakHigh) and postBreakHigh != 0) ? (postBreakHigh - close) / postBreakHigh * 100.0 : na
chk7_pullOK = not na(pullPct) and (pullPct >= pullMinPct) and (pullPct <= pullMaxPct)
// レジ維持(ブレイク価格を許容範囲内で保持)
retestOK = inBreak and not na(breakPrice) and (close >= breakPrice * (1 - retestAllowPct/100.0))
chk8_breakoutRetestOK = retestOK
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 押し目待ち中:即解除(“二度と戻らない銘柄”を切る)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
breakFail = inBreak and not na(breakPrice) and close < breakPrice * (1 - retestAllowPct/100.0)
below26 = inBreak and close < ema26
ema5Down = inBreak and ema5 <= ema5
shouldCut =
(cutOnBreakFail and breakFail) or
(cutOnBelow26 and below26) or
(cutOnEma5Down and ema5Down)
// 期限切れ or 即解除
if inBreak and not na(breakBar) and (bar_index - breakBar > stateExpireBars)
inBreak := false
breakPrice := na
breakBar := na
postBreakHigh := na
if shouldCut
inBreak := false
breakPrice := na
breakBar := na
postBreakHigh := na
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 8項目チェック(1つでも欠けたら見送り)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
chk1 = chk1_allEmaUp
chk2 = chk2_golden
chk3 = chk3_above26_2days
chk4 = chk4_macdZeroGC
chk5 = chk5_volOK
chk6 = chk6_candleOK
chk7 = chk7_pullOK
chk8 = chk8_breakoutRetestOK
all8 = chk1 and chk2 and chk3 and chk4 and chk5 and chk6 and chk7 and chk8
// 最終三点(ヒゲ×出来高×MACD)
final3 = longLowerWick and volStrongOK and chk4_macdZeroGC
judge = (all8 and final3) ? "判定:買い" : "判定:見送り"
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// コメント文字列
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
fMark(x) => x ? "達成" : "未達"
cutReason =
shouldCut ? (
(cutOnBreakFail and breakFail) ? "即解除:レジ割れ" :
(cutOnBelow26 and below26) ? "即解除:26EMA割れ" :
(cutOnEma5Down and ema5Down) ? "即解除:5EMA下向き" :
"即解除"
) :
(inBreak ? "押し目待ち:継続" : "押し目待ち:未突入/解除")
txt =
"【8項目チェック】 " +
"1 EMA全上向き: " + fMark(chk1) + " " +
"2 黄金隊列: " + fMark(chk2) + " " +
"3 26EMA上2日: " + fMark(chk3) + " " +
"4 MACDゼロ上GC: " + fMark(chk4) + " " +
"5 出来高" + str.tostring(volMinMul) + "-" + str.tostring(volMaxMul) + ": " + fMark(chk5) + " " +
"6 ローソク条件: " + fMark(chk6) + " " +
"7 押し目-" + str.tostring(pullMinPct) + "〜" + str.tostring(pullMaxPct) + "%: " + fMark(chk7) + " " +
"8 ブレイク後リテスト: " + fMark(chk8) + " " +
"最終三点(ヒゲ×出来高×MACD): " + (final3 ? "成立" : "未成立") + " " +
judge + " " +
"状態: " + cutReason + " " +
"(参考)出来高倍率=" + (na(volMul) ? "na" : str.tostring(volMul, "#.00")) +
" / 押し目率=" + (na(pullPct) ? "na" : str.tostring(pullPct, "#.0")) + "%" +
" / hist転換=" + (histShrinkToUp ? "YES" : "NO")
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// Table(位置切替:入力変更時に作り直し)
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
pos =
panelPos == "右上" ? position.top_right :
panelPos == "左上" ? position.top_left :
panelPos == "右下" ? position.bottom_right :
position.bottom_left
var string prevPos = na
var table t = na
if barstate.isfirst or prevPos != panelPos or na(t)
t := table.new(pos, 1, 1)
prevPos := panelPos
drawNow = showPanel and (lastBarOnly ? barstate.islast : true)
bg = (all8 and final3) ? color.new(color.lime, 80) : color.new(color.gray, 15)
fg = color.white
if drawNow
table.cell(t, 0, 0, txt, text_color=fg, bgcolor=bg, text_size=size.small)
else
table.cell(t, 0, 0, "", text_color=fg, bgcolor=color.new(color.black, 100))
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// 視覚補助
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
plot(ema5, color=color.new(color.yellow, 0), title="EMA5")
plot(ema13, color=color.new(color.orange, 0), title="EMA13")
plot(ema26, color=color.new(color.red, 0), title="EMA26")
// ブレイク価格(参考)
plot(inBreak ? breakPrice : na, title="BreakPrice", color=color.new(color.aqua, 0), style=plot.style_linebr, linewidth=1)
// BUYサイン
plotshape(all8 and final3, title="BUY", style=shape.triangleup, location=location.belowbar,
color=color.new(color.lime, 0), size=size.tiny, text="BUY")
Supertrend 14-3 with Auto Fibthis strategy use the supertrend with the Auto fib levels for market analysis
RSI Divergence + MTF Table FinalThis is a professional, high-impact English description for your RSI Divergence + MTF Table Final script, designed to attract users on TradingView by highlighting its institutional-grade features.
Institutional RSI Divergence & MTF Confluence Heatmap
Overview
The Institutional RSI Divergence & MTF Confluence Heatmap is a professional-grade analytical tool designed for high-precision traders. It combines Automated RSI Divergence Detection with a Multi-Timeframe (MTF) Heatmap Table, allowing you to monitor market momentum across 8 different timeframes (from 1-minute to 1-day) without ever switching charts.
Key Features
🔍 Automated Divergence Detection: Instantly identifies Regular Bullish and Bearish divergences on the RSI oscillator, marking them with clear "Bull" and "Bear" labels.
📊 MTF Heatmap Grid: A real-time monitoring table that tracks RSI values across: 1m, 5m, 15m, 30m, 1h, 4h, 12h, and 1D.
🎨 Dynamic "Institutional" Color Logic: The table uses a sophisticated color-coded system to highlight extreme exhaustion and momentum:
Ultra Overbought (RSI > 90): Bright Red (Extreme Reversal Zone).
Overbought (RSI > 80): Orange (High Momentum/Caution).
Oversold (RSI < 26): Lime Green (Potential Accumulation).
Neutral: Gray (Consolidation).
🛠️ Flexible Layout Engine: Toggle between Vertical or Horizontal layouts to fit your chart workspace perfectly.
🚀 Pine Script v6 Optimized: Built with the latest TradingView engine for ultra-fast performance and minimal lag.
Trading Strategy: The Power of Confluence
Cross-Timeframe Confirmation: The strongest reversals occur when multiple timeframes (e.g., 15m, 1h, and 4h) all turn Orange/Red or Lime simultaneously. This represents a massive momentum exhaustion.
Divergence Validation: Use the table to see if a detected "Bull" divergence on your current timeframe is backed by "Oversold" conditions on higher timeframes.
Institutional Sniping: Combined with Demand/Supply zones, this script helps you "snipe" entries at the exact moment market momentum peaks or bottoms out.
Settings & Customization
Toggle Compact Mode: Display a minimal version of the table for a cleaner interface.
Custom Thresholds: Modify RSI levels to suit your specific trading style (Scalping vs. Swing Trading).
Table Position: Move the heatmap to any corner of your screen (Top Right, Bottom Left, etc.).
Trinity Multi-Timeframe CCITrinity Multi-Timeframe CCI Indicator
This Pine Script indicator is a powerful **multi-timeframe Commodity Channel Index (MTF CCI)** tool that displays three CCI lines on a single pane:
- **Current timeframe** (whatever chart you're viewing, e.g., 1h, 15m, etc.)
- **4-hour timeframe**
- **Daily timeframe**
All three use the same CCI length (default 20, adjustable) and are fully customizable—you can enable/disable each line, change its timeframe, color, and thickness. Horizontal levels at 0 (dashed white by default), +100 (red), and -100 (green) are also included and fully editable.
### Core Functionality & Visual Signals
The standout feature is the **dynamic coloring of the current timeframe CCI line**:
- **Green**: Strong **bullish alignment**. This occurs when **all three CCIs are above the zero line** AND the current timeframe CCI is the **highest** of the three (leading the move upward with higher-timeframe confirmation).
- **Red**: Strong **bearish alignment**. This occurs when **all three CCIs are below the zero line** AND the current timeframe CCI is the **lowest** of the three (leading the move downward with higher-timeframe confirmation).
- **Yellow**: Neutral or no clear alignment (default state when the above conditions aren't met).
An optional light background shading (green or red) highlights when the indicator is in a bullish or bearish state.
Small triangle markers appear on the pane when a new bullish or bearish alignment forms, and built-in alerts notify you of new signals or when a signal ends. These are editable to enable or disable.
### How Traders Can Use It
This indicator helps identify **high-probability trend continuations or reversals** by combining momentum (CCI) across multiple timeframes with alignment confirmation:
- **Trend-following entries**: A green current line (especially with a fresh alert) suggests strong upward momentum backed by higher timeframes—ideal for long entries or adding to positions in an uptrend.
- **Bearish entries/short setups**: A red current line signals strong downward momentum confirmed across timeframes—good for short entries or exiting longs.
- **Confluence filter**: Use it as a filter for other strategies. Only take trades in the direction of the alignment (e.g., only long if current line is green).
- **Early warning of weakness**: When the current line turns yellow after being green/red, it often signals the trend is losing multi-timeframe support—useful for tightening stops or taking partial profits.
In essence, it visually answers the question: “Is the short-term momentum not only strong, but also aligned with and leading the medium- and long-term momentum?” When the answer is yes (green or red), it highlights moments of **multi-timeframe confluence**—some of the most reliable setups in technical trading.
The alerts make it practical for active traders: you get notified the moment a strong aligned signal appears, without needing to watch the chart constantly.
It's clean, highly customizable, and focuses on one clear concept—**multi-timeframe CCI leadership**—making it excellent for trend, swing, and even intraday traders looking for higher-timeframe confirmation.
SZS Slow StochasticThis indicator is designed to:
Identify momentum extremes using Slow Stochastic
Highlight duration of overbought/oversold conditions
Signal potential reversals when exiting extremes
Confirm conditions using RSI momentum coloring
Provide clear, low-noise visual cues without clutter
It is especially useful for:
Mean-reversion strategies
Timing entries after momentum exhaustion
Visual backtesting of stochastic behavior over time
Biotech Volume Oscillator1️⃣ What This Indicator Is (In One Sentence)
It tells you whether people are actually showing up to trade the stock, or if price is just drifting around on low interest.
That’s it.
It does not predict price.
It tells you whether a move is real or fragile.
2️⃣ What the Lines Mean
You see two lines:
🔵 Blue Line = Live Participation
Fast
Reacts immediately
Shows what traders are doing right now
Think:
“Is anyone actually trading this candle?”
🟠 Orange Line = Accepted Participation
Slower
Smoothed
Shows what the market has decided is normal
Think:
“Is this level of activity sticking?”
3️⃣ What the Numbers Mean (Very Important)
The numbers are percentages vs normal volume for this stock.
Around 0
Volume is normal
Nothing special happening
+10 to +25
Healthy interest
Traders are paying attention
Moves can continue
Above +25
Abnormal participation
News, hype, or institutions involved
Moves here tend to be fast
Below –20
Participation drying up
Drift, chop, fake breakouts
Below –30
Nobody is home
Price can move, but it’s fragile
Breakouts usually fail
4️⃣ How to Use It (Step-by-Step)
Step 1: Ignore Price for a Second
Look only at the oscillator.
Ask:
“Is this above zero or below zero?”
Step 2: Look at Direction
Rising oscillator → interest increasing
Falling oscillator → interest fading
Step 3: Compare Blue vs Orange
✅ Good / Healthy
Blue above orange
Both rising
→ New participation is entering
⚠️ Warning
Price rising
Blue flat or falling
Orange flat
→ Float, not conviction
🚨 Distribution
Blue rolls over from high levels
Orange follows
Price still looks “fine”
→ Selling into strength
Market Risk Regime Dashboard (SPX/VIX)Market Risk Regime Dashboard (SPX–VIX)
Market Risk Regime Dashboard (SPX–VIX) is a context and confirmation tool designed to classify market conditions as Risk-On, Risk-Off, or Neutral by analyzing the real-time relationship between the S&P 500 Index (SPX) and the CBOE Volatility Index (VIX).
Rather than predicting price direction, this script focuses on identifying market environment and participation conditions that often influence trade quality, position sizing, and strategy selection.
Core Concept: SPX vs VIX Risk Regimes
The indicator operates on a well-documented market relationship:
SPX reflects equity risk appetite and directional participation
VIX reflects implied volatility and risk aversion
The script classifies conditions as:
Risk-On → SPX bullish and VIX falling
Risk-Off → SPX bearish and VIX rising
Neutral → Any mixed or non-aligned condition
This alignment is visualized using:
Background color on the chart
A compact dashboard table
Optional alerts
Trend Strength via Normalized EMA Distance (n-Value)
To quantify trend strength, the script computes a normalized trend metric (“n-value”) for SPX:
A fast EMA and slow EMA are calculated on SPX
The absolute distance between the EMAs is measured
That distance is normalized by an ATR-based volatility measure
The result is a dimensionless value that expresses trend strength relative to volatility, allowing comparisons across timeframes.
Higher n-values indicate stronger directional conditions, while lower values suggest compression or range behavior.
Dashboard Display
A movable on-chart table summarizes:
SPX directional bias (Bullish / Bearish / Neutral)
VIX behavior (Rising / Falling)
SPX n-value trend strength
This allows traders to quickly assess market context without switching symbols or charts.
Strong Candle Detection (SPX)
The script identifies strong directional candles on SPX using objective criteria:
Candle body must represent a minimum percentage of total range
Close must occur near the extreme (high for bullish, low for bearish)
Direction must align with candle body
When detected:
A triangle marker is plotted
The chart bar is optionally colored
Additional alerts can trigger when strong candles align with Risk-On or Risk-Off regimes
These signals are intended to highlight initiative participation, not standalone entries.
Visual & Alert Features
Background color reflects current risk regime:
Green = Risk-On
Red = Risk-Off
Gray = Neutral
Alerts available for:
Risk-On alignment
Risk-Off alignment
Neutral conditions
Strong candles aligned with risk regime
Elevated normalized trend strength (n-value range)
Alerts can be used for situational awareness rather than execution triggers.
How Traders Typically Use This Script
Filter trades based on broader market risk context
Adjust aggressiveness or size during Risk-On vs Risk-Off regimes
Confirm directional conviction when price action aligns with volatility behavior
Avoid forcing trades during neutral or conflicting environments
This script is not a trading system and does not provide entries or exits. It is a contextual decision-support tool designed to improve alignment between price action and market risk conditions.
Swing Stockpicking Dashboard//@version=5
indicator("Swing Stockpicking Dashboard (Mansfield RS + Trend Template)", overlay=true, max_labels_count=500)
// ---------- Inputs ----------
bench = input.symbol("SPY", "Benchmark (para RS)")
rsLen = input.int(252, "52w lookback (barras)", minval=20)
rsMaLen = input.int(252, "RS base MA (barras)", minval=20)
ma50Len = input.int(50, "SMA rápida", minval=1)
ma150Len = input.int(150, "SMA media", minval=1)
ma200Len = input.int(200, "SMA lenta", minval=1)
slopeLookback = input.int(22, "Pendiente MA200 (barras)", minval=1)
scoreThreshold = input.int(5, "Umbral score (0–7)", minval=0, maxval=7)
showMAs = input.bool(true, "Dibujar medias")
showTable = input.bool(true, "Mostrar tabla dashboard")
// ---------- Benchmark & Mansfield RS ----------
benchClose = request.security(bench, timeframe.period, close)
ratio = (benchClose > 0) ? (close / benchClose) : na
rsBase = ta.sma(ratio, rsMaLen)
mansfield = (rsBase != 0 and not na(rsBase)) ? ((ratio / rsBase - 1) * 100) : na
// ---------- Price MAs ----------
ma50 = ta.sma(close, ma50Len)
ma150 = ta.sma(close, ma150Len)
ma200 = ta.sma(close, ma200Len)
// ---------- 52w High/Low ----------
hi52 = ta.highest(high, rsLen)
lo52 = ta.lowest(low, rsLen)
// ---------- Minervini-style checks ----------
c1 = close > ma150 and close > ma200
c2 = ma150 > ma200
c3 = ma200 > ma200 // MA200 subiendo vs hace ~1 mes (en D)
c4 = ma50 > ma150 and ma50 > ma200
c5 = close >= lo52 * 1.25 // ≥ +25% desde mínimo 52w
c6 = close >= hi52 * 0.75 // dentro del 25% de máximos 52w
c7 = (mansfield > 0) and (mansfield > mansfield ) // RS > 0 y mejorando
score = (c1 ? 1 : 0) + (c2 ? 1 : 0) + (c3 ? 1 : 0) + (c4 ? 1 : 0) + (c5 ? 1 : 0) + (c6 ? 1 : 0) + (c7 ? 1 : 0)
qualified = score >= scoreThreshold
// ---------- Plots ----------
if showMAs
plot(ma50, "SMA 50", linewidth=1)
plot(ma150, "SMA 150", linewidth=1)
plot(ma200, "SMA 200", linewidth=2)
plotshape(qualified, title="PICK", style=shape.triangleup, location=location.belowbar, size=size.tiny, text="PICK")
// ---------- Dashboard table ----------
var table t = table.new(position.top_right, 2, 9, frame_width=1)
f_row(_r, _name, _ok) =>
table.cell(t, 0, _r, _name)
table.cell(t, 1, _r, _ok ? "OK" : "—")
if showTable and barstate.islast
table.cell(t, 0, 0, "Check")
table.cell(t, 1, 0, "Pass")
f_row(1, "Price > SMA150 & SMA200", c1)
f_row(2, "SMA150 > SMA200", c2)
f_row(3, "SMA200 rising (" + str.tostring(slopeLookback) + ")", c3)
f_row(4, "SMA50 > SMA150 & SMA200", c4)
f_row(5, "≥ +25% from 52w low", c5)
f_row(6, "Within 25% of 52w high", c6)
f_row(7, "Mansfield RS > 0 & rising", c7)
table.cell(t, 0, 8, "Score")
table.cell(t, 1, 8, str.tostring(score) + "/7")
// ---------- Alerts ----------
alertcondition(qualified, "Qualified stock (PICK)", "El activo supera el score mínimo para stock-picking swing.")
SMC Post-Analysis Lab [PhenLabs]📊 SMC Post-Analysis Lab
Version: PineScript™ v6
📌 Description
The SMC Post-Analysis Lab is a dedicated hindsight analysis tool built for traders who want to understand what really happened during any historical trading period. Unlike forward-looking indicators, this tool lets you scroll back through time and instantly receive algorithmic classification of market states using Smart Money Concepts methodology.
Whether you’re reviewing a losing trade, studying a successful session, or building your pattern recognition skills, this indicator provides immediate context. The expansion-aware algorithm processes price action within your selected window and outputs clear, actionable classifications ranging from Parabolic Expansion to Consolidation Inducements.
Stop relying on subjective post-trade analysis. Let the algorithm objectively tell you whether institutional players were accumulating, distributing, or running inducements during your trades.
🚀 Points of Innovation
First indicator specifically designed for SMC-based post-trade review rather than live signal generation
Dual-mode analysis system allowing both dynamic scrollback and precise date selection
Expansion-aware classification algorithm that weighs range position against net displacement
Real-time efficiency metrics calculating directional quality of price movement
Integrated visual FVG detection within the analysis window only
Interactive table with clickable date range adjustment via chart interface
🔧 Core Components
Pivot Detection Engine: Uses configurable pivot length to identify significant swing highs and lows for structure break detection
Window Calculator: Determines active analysis zone based on either bar offset or timestamp boundaries
Data Aggregator: Tracks window open, high, low, close and counts bullish/bearish structure break events
State Classification Algorithm: Applies hierarchical logic to determine market state from six possible classifications
Visual Renderer: Draws structure breaks, FVG boxes, and window highlighting within the active zone
🔥 Key Features
Sliding Window Mode: Use the Scroll Back slider to dynamically move your analysis zone backwards through history bar-by-bar
Date Range Mode: Select specific start and end timestamps for precise session or trade review
Six Market State Classifications: Parabolic Expansion (Bull/Bear), Bullish/Bearish Order Flow, Accumulation/Distribution Reversal, and Consolidation/Inducement
Range Position Percentile: See exactly where price closed relative to the window’s high-low range as a percentage
Bull/Bear Event Counter: Quantified count of structure breaks in each direction during the analysis period
Efficiency Calculation: Net move divided by total range reveals trending quality versus chop
🎨 Visualization
Blue Window Highlight: Active analysis zone is clearly marked with blue background shading on the chart
Structure Break Lines: Dashed lines appear at each bullish or bearish structure break within the window
FVG Boxes: Fair Value Gaps automatically render as semi-transparent boxes in bullish or bearish colors
Dashboard Table: Top-right positioned table displays State, Analysis description, and Metrics in real-time
Color-Coded States: Each classification uses distinct coloring for immediate visual recognition
Interactive Tip Row: Optional help text guides users on clicking the table to adjust date range
📖 Usage Guidelines
General Configuration
Analysis Mode: Default is Sliding Window. Choose Date Range for specific timestamp analysis.
Sliding Window Settings
Scroll Back (Bars): Default 0. Increase to move window backwards into history.
Window Width (Bars): Default 100. Range 20-50 for scalping, 100+ for swing analysis.
Date Range Settings
Start Date: Select the beginning timestamp for your analysis period.
End Date: Select the ending timestamp for your analysis period.
Visual Settings
Show Help Tip: Default true. Toggle to hide instructional row in dashboard.
Bullish Color: Default teal. Customize for bullish elements.
Bearish Color: Default red. Customize for bearish elements.
SMC Parameters
Pivot Length: Default 5. Lower values (3-5) catch minor breaks. Higher values (10+) focus on major swings.
✅ Best Use Cases
Post-trade review to understand why entries succeeded or failed
Session analysis to identify institutional activity patterns
Trade journaling with objective algorithmic classifications
Pattern recognition training through historical scrollback
Identifying whether stop hunts were inducements or legitimate breaks
Comparing your real-time read versus what the algorithm detected
⚠️ Limitations
Designed for historical analysis only, not live trade signals
Classification accuracy depends on appropriate pivot length for the timeframe
FVG detection uses simple gap logic without mitigation tracking
State classification is based on window data only, not broader context
Requires manual scrolling or date input to review different periods
💡 What Makes This Unique
Purpose-Built for Review: Unlike most indicators focused on live signals, this is designed specifically for post-trade analysis
Expansion-Aware Logic: Algorithm weighs both position in range AND directional efficiency for accurate state detection
Interactive Date Control: Click the dashboard table to reveal draggable anchors for window adjustment directly on chart
🔬 How It Works
1. Window Definition:
User selects either Sliding Window or Date Range mode
System calculates which bars fall within the active analysis zone
Active zone receives blue background highlighting
2. Data Collection:
Algorithm captures window open, running high, running low, and current close
Structure breaks are detected when price crosses above last pivot high or below last pivot low
Bullish and bearish events are counted separately
3. State Classification:
Range Position calculates where close sits as percentage of high-low range
Efficiency calculates net move divided by total range
Hierarchical logic applies priority rules from Parabolic states down to Consolidation
4. Output Rendering:
Dashboard table updates with State title, Analysis description, and Metrics
Visual elements render within window only to keep chart clean
Colors reflect bullish, bearish, or neutral classification
💡 Note:
This indicator is intended for educational and review purposes. Use it to develop your understanding of Smart Money Concepts by analyzing what institutional order flow looked like during historical periods. Combine insights with your own analysis methodology for best results.
Laughing Grid Radar
// ═══ Row 9: 底部装饰线 ═══
table.cell(panel, 0, 9, "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄", bgcolor=c_void, text_color=c_neon_pink, text_halign=text.align_center, text_size=size.tiny)
table.merge_cells(panel, 0, 9, 1, 9)
GemScope Signals## 📊 GemScope Signals – Strategy Summary
This is an **automated trading strategy (Pine Script v5)** designed to trade market trends using a **custom GemScope oscillator**, **EMA trend filter**, **risk control**, and **multi-level take profit system**.
---
### 🔹 Trading Modes
* **Long Only**
* **Short Only**
* **Both Long & Short**
---
### 🔹 Entry Logic
**Long Trades**
* No active long position
* Entry allowed (not in cool-down after stop loss)
* GemScope shows **bullish trend (bull > bear)**
* If EMA filter is enabled: **price must be above EMA 200**
**Short Trades**
* No active short position
* Entry allowed
* GemScope gives **bearish signal (bull < bear)**
---
### 🔹 Exit Logic
* Positions close on **opposite GemScope signals**
* Short positions also close when:
* EMA filter is enabled
* Price moves above EMA
* Trend turns bullish
---
### 🔹 Stop Loss System
* **Percentage-based stop loss** for both long and short trades
* After a stop loss:
* New entries are blocked
* Trading resumes only after a fixed number of candles (cool-down)
---
### 🔹 Take Profit System (Partial Exits)
* Up to **three take-profit levels (TP1, TP2, TP3)**
* Each TP has:
* Independent price distance (%)
* Independent position size to close (%)
* Helps lock profits gradually while keeping runners open
---
### 🔹 Trend & Visuals
* Candles turn **green in bullish trend** and **red in bearish trend**
* **EMA 200** is plotted for trend confirmation
* Chart signals:
* **“G”** → Long signal
* **“S”** → Short signal
---
### 🔹 Risk & Money Management
* Uses **100% of account equity per trade**
* **No pyramiding** (one trade at a time)
* Built-in protection against over-trading after losses
---
### 🔹 Overall Purpose
The strategy aims to:
* Trade only in **confirmed trends**
* Reduce false entries using EMA filtering
* Protect capital with stop loss and cool-down
* Maximize profits using **structured partial exits**
RSI Divergence Strategy BTCRSI Divergence Strategy | Clean
Type: Backtestable strategy
Logic: Uses divergences between price and RSI to generate signals.
LONG: Price makes a lower low, RSI makes a higher low → bullish divergence
SHORT: Price makes a higher high, RSI makes a lower high → bearish divergence
TP / SL: Automatic, based on configurable percentage and Risk/Reward ratio.
Display:
RSI visible in a separate panel
LONG/SHORT signals indicated by small triangles in the RSI panel
Goal: Identify price reversals using relative strength (RSI) and backtest precise trades.
4MA / 4MA[1] Forward Projection with 4 SD Forecast Bands4MA / 4MA Projection + 4 SD Bands + Cross Table is a forward-projection tool built around a simple moving average pair: the 4-period SMA (MA4) and its 1-bar lagged value (MA4 ). It takes a prior MA behavior pattern, projects that structure forward, and wraps the projected mean path with four Standard Deviation (SD) bands to visualize probable future price ranges.
This indicator is designed to help you anticipate:
Where the MA structure is likely to travel next
How wide the “expected” future price corridor may be
Where a future MA4 vs MA4 crossover is most likely to occur
When the real (live) crossover actually prints on the chart
What you see on the chart
1) Live moving averages (current market)
MA4 tracks the short-term mean of price.
MA4 is simply the previous bar’s MA4 value (a 1-bar lag).
Their relationship (MA4 above/below MA4 ) gives a clean, minimal read on trend alignment and directional bias.
2) Projected MA path (forward curve)
A forward “ghost” of the MA structure is drawn ahead of price. This projected curve represents the indicator’s best estimate of how the moving average structure may evolve if the market continues to rhyme with the selected historical behavior window.
3) 4 Standard Deviation bands (predictive future price ranges)
Surrounding the projected mean path are four SD envelopes. Think of these as forecast corridors:
Inner bands = tighter “expected” range
Outer bands = wider “stress / extreme” range
These bands are not a guarantee—rather, they’re a structured way to visualize “how far price can reasonably swing” around the projected mean based on observed volatility.
4) Vertical projection lines (most probable cross zone)
Within the projected region you’ll see vertical lines running through the bands. These lines mark the most probable zone where MA4 and MA4 are expected to cross in the projection.
In plain terms:
The projected MAs are two curves.
When those curves are forecasted to intersect, the script marks the intersection region with a vertical line.
This gives you a forward “timing window” for a potential MA shift.
5) Cross Table (top-right)
The table is your confirmation layer. It reports:
Current MA4 value
Current MA4 value
Whether MA4 is above or below MA4
The most recent BUY / SELL cross event
When a real, live crossover happens on the actual chart:
It registers as BUY (MA4 crosses above MA4 )
Or SELL (MA4 crosses below MA4 )
…and the table updates immediately so you can confirm the event without guessing.
How to use it
Practical workflow
Use the projected SD bands as future range context
If price is projected to sit comfortably inside inner bands, the market is behaving “normally.”
If price reaches outer bands, you’re in a higher-volatility / stretched scenario.
Use vertical lines as a “watch zone”
Vertical lines do not force a trade.
They act like a forward “heads-up”: this is the most likely window for an MA crossover to occur if the projection holds.
Use the table for confirmation
When the crossover happens for real, the table is your confirmation signal.
Combine it with structure (support/resistance, trendlines, market context) rather than trading it in isolation.
Notes and best practices
This is a projection tool: it helps visualize a structured forward hypothesis, not a certainty.
SD bands are best used as forecast corridors (risk framing, range planning, and expectation management).
The table is the execution/confirmation layer: it tells you what the MAs are doing now.
Gold Asia Session Highlighter [IST]Here is a polished description and guide for your Gold Asia Session Highlighter. You can use this text for a YouTube description, a Telegram post, or a PDF guide to explain the tool to others.
Gold Asia Session Highlighter (IST) | Visual Indicator
This is a custom TradingView indicator designed to simplify the Gold Asia Strategy. Instead of automating trades, this tool purely handles the visuals. It automatically highlights the correct Asia Session time window (adjusting for Winter/Summer hours) and marks the exact points where you should draw your Fixed Range Volume Profile (FRVP) tool.
Perfect for: Traders who prefer to draw their own FRVP levels manually but want to ensure they are using the exact, error-free time range every single day.
Features
✅ Automatic Time Zone: Strictly calculated using IST (Indian Standard Time), so you don't need to convert time zones manually.
✅ Smart Season Detection: Automatically switches between Winter Session (04:30 – 06:25) and Summer Session (03:30 – 05:25) based on the current month.
✅ Visual Guidance: Highlights the session background and places "START" and "END" labels on the exact candles.
✅ Zero Clutter: Clean visuals with no moving averages or strategy lines—just the session box.
How to Use It
Add to Chart: Apply the script to your Gold (XAUUSD) 5-minute chart. You will see a blue highlighted box appear during the Asia session.
Locate the Labels:
Look for the blue START label (bottom of the candle).
Look for the red END label (top of the candle).
Draw Your FRVP:
Select the Fixed Range Volume Profile tool from your TradingView toolbar.
Click exactly on the START candle.
Drag and release exactly on the END candle.
Trade: You now have the exact Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) for the day. Use your breakout strategy as usual!
Trade Secrets by Pratik - Dual Intraday StrategyThe "Trade Secrets by Pratik" strategy is a high-momentum, dual-direction trading system designed to capture explosive moves after brief market pullbacks. It relies on a rigorous combination of trend-following moving averages and a strength filter.
1. Core Concept
The strategy identifies "Clean Pullbacks"—brief pauses in a strong trend where the price stays strictly away from the short-term average (10 EMA). This indicates extreme momentum, as buyers (in an uptrend) or sellers (in a downtrend) are too aggressive to allow a deeper correction.
2. Technical Filters
Trend Direction: Price must be above both 10 and 35 EMAs for Buys, and below both for Sells.
Strength Filter (RSI): Requires an RSI > 60 for Longs (to ensure high demand) and RSI < 40 for Shorts (to ensure heavy selling pressure).
3. Trade Execution
The Setup: Look for a "Floating Candle"—a Red candle for Buys or a Green candle for Sells that does not touch the 10 EMA.
The Trigger: A trade is entered only if the very next candle breaks the "Setup Candle's" high (Buy) or low (Sell).
Risk-Reward: Aim for a fixed 1:3 Ratio, ensuring that one winner covers three losing trades.
4. Safety Logic
The system includes a "No-Same-Candle-Exit" rule, preventing the script from triggering a Stop Loss on the same bar as the Entry. This filters out immediate price "whipsaws" and ensures the trade has room to develop.
Strat Structure Engine + Trapped TradersStrat Structure Engine + Trapped Traders – Detailed Description
This script identifies high-probability market structure patterns known as “The Strat” setups, specifically focusing on 3-bar → Failed 2, 2-bar → Failed 2, and Failed 2 → Failed 2 (“Dragon’s Tail”) sequences. It is designed to help traders visualize potential reversals, trapped traders, and exhaustion points directly on the chart, combining price action, volatility, and volume metrics to grade signal strength.
Key Features:
3-Bar → Failed 2 (Tiered Scoring):
Detects a 3-bar structure followed immediately by a strict Failed 2 bar.
Evaluates the setup using four criteria:
3-bar range relative to ATR
Failed 2 close position relative to the 3-bar midpoint
Failed 2 body-to-range ratio
Volume relative to recent average
Assigns a tier (A+, A, B, or —) to indicate reliability, giving traders a graded view of signal strength.
2-Bar → Failed 2 (A+ Only):
Identifies strict 2-bar structures immediately followed by a Failed 2 bar.
Uses a similar evaluation system as 3→F2 but filters only for the strongest A+ setups.
Highlights signals where price shows strong directional rejection and high probability for reversal.
Dragon’s Tail – Failed 2 → Failed 2:
Captures consecutive Failed 2 bars in opposite directions, a classic trapped-trader scenario.
Signals both bullish and bearish sequences on bar close, helping traders spot potential quick reversals.
How It Works:
Uses ATR to contextualize bar ranges and volatility.
Incorporates volume averaging to detect unusually high trading activity that validates the strength of a Failed 2 setup.
Strict bar evaluation ensures only fully-formed, confirmed patterns are labeled, reducing noise and false signals.
Optional labels and alerts allow traders to track these structures in real-time or on bar close.
Practical Trading Use:
Ideal for spotting short-term exhaustion points, trapped traders, and reversal zones.
Can be used alongside liquidity zones, VWAP, and fair value gaps to refine entries and exits.
Traders can focus on high-tier signals (A+ / A) for higher probability trades, while lower-tier signals (B) indicate caution or context setups.
Customization Options:
Toggle visibility for each pattern type (3→F2, 2→F2, F2→F2).
Adjust ATR length and volume average period for different instruments or timeframes.
Alerts are available for all major setups, enabling integration with automated monitoring or manual execution strategies.
Summary:
The Strat Structure Engine + Trapped Traders script combines price action structure, volatility, and volume analysis to visualize high-probability reversal setups. By highlighting both strict pattern confirmations and tiered reliability, it provides traders with actionable insight into potential turning points, trapped trader scenarios, and high-conviction market moves without relying on external scripts or assumptions.
Anurag - Balanced 0DTE Scalper QQQ SPYBalanced 0DTE Scalper is a professional-grade execution system designed specifically for the high-velocity world of 0DTE (Zero Days to Expiration) options trading on indices like SPY, QQQ, and IWM.
Unlike standard indicators that repaint or lag, this system uses Non-Repainting Multi-Timeframe Logic to align the institutional trend (15m) with precision entry triggers (5m). It is engineered to solve the two biggest killers of 0DTE traders: Theta Decay (holding too long) and Choppy Markets (trading without trend).
How It Works
1. The "Safety Belt" (15-Minute Trend Filter) Before any trade is taken, the system checks the confirmed 15-minute Trend and ADX (Strength).
No Repainting: It strictly uses the previous closed 15m bar to determine bias. Once a signal prints, it stays printed.
Regime Detection: It automatically blocks trades during low-volume "chop" (Low ADX) to save you from theta burn.
2. Precision Entry Triggers (5-Minute) Once the 15m trend gives the "Green Light," the system hunts for 5m setups using a confluence of:
EMA Crossovers: For immediate momentum.
VWAP Filter: Ensuring you are on the right side of institutional volume.
RSI Check: To avoid buying tops or selling bottoms.
3. Aggressive Risk Management (The "Profit Locker") 0DTE profits can vanish in seconds. This script manages the trade for you visually:
Dynamic Trailing Stop: Trails price based on candle Highs/Lows (not closes), allowing it to lock in profits at the peak of a spike.
Time Stop: If a trade stalls for 60 minutes (12 bars), the system triggers a "Time Exit." In 0DTE, time is money—if it's not working, get out.
Visual Levels: Automatically draws your Stop Loss, Target 1 (Conservative), and Target 2 (Runner) lines on the chart.
Features & Dashboard
Live Dashboard: Monitors Trend Bias, ADX Strength, RSI, and Open PnL in real-time.
On-Chart Tickets: Prints a "CALL OPEN" or "PUT OPEN" label with the exact Entry Price, Stop Loss, and Strike Suggestion.
Session Filters: Automatically avoids the first 10 minutes (Open Volatility) and the last 15 minutes (Close Chaos).
Settings Guide
Risk Mode:
Balanced (Default): The recommended blend of Trend + Momentum.
Conservative: Requires a very strong ADX trend. Fewer trades, higher win rate.
Aggressive: Ignores ADX strength. Good for FOMC/CPI days only.
Strike Suggestion: Automatically calculates the nearest Strike Price (ATM/OTM) for SPY/QQQ based on your settings.
Disclaimer
This tool is for educational purposes only. 0DTE options trading involves extreme risk of capital loss. Past performance (even with non-repainting logic) is not indicative of future results. Always manage your risk.
Malama's Universal anchored M.A.Malama's Universal Anchored M.A. (UMA+) is a highly versatile, all-in-one moving average framework that supports over 28 different calculation methods — from classic (SMA, EMA) to advanced adaptive and Ehlers-based filters (KAMA, FRAMA, MAMA/FAMA, Super Smoother, Kalman, etc.). It features an innovative Anchored Mode that resets calculations from a user-defined point (specific date/time, bars back, or the start of data), making it perfect for analyzing price action relative to key market events like earnings, FOMC news, or cycle starts.
The MA dynamically colors based on price position, includes an optional fill for trend visualization, and features a clean on-chart dashboard with crossover alerts.
Key Features
28+ Moving Average Types: Includes SMA, EMA, WMA, TMA, VWMA, HMA, ALMA, VIDYA, DEMA, TEMA, KAMA, ZLEMA, T3, Hull-like, FRAMA, McGinley Dynamic, LSMA, SMMA, Super Smoother, Laguerre Filter, Cyber Cycle, MAMA/FAMA, Reflex, Trend Reflex, Dominant Cycle, Non-Lag MA, and Kalman Filter.
Anchored Calculations: Reset the MA calculation from a specific reference point:
By Date/Time: Analyze trends starting from a specific news event.
Bars Back: Anchor to a specific recent high or low.
First Bar: Anchor to the beginning of the available data.
Visual Anchor Marker: A dashed vertical line with an anchor (⚓) icon clearly marks the reset point.
Dynamic Coloring: The line and fill change color based on whether price is Above (Bullish) or Below (Bearish) the MA.
On-Chart Dashboard: A compact, movable table displaying:
Current MA Type & Length
Real-time Value & Price Position
% Deviation from the MA
Trend Direction (UP/DOWN/FLAT)
Anchor details (if enabled)
Strategy Ideas: Stacking for Crossovers
Create your own custom crossover strategy by adding this indicator to your chart twice! Because UMA+ supports so many calculation methods, you can "stack" two instances to build unique trend-following systems:
Add UMA+ Twice: Apply the script to your chart two times.
Configure the "Fast" MA: On the first instance, select a responsive type (e.g., Hull MA or T3) with a lower length (e.g., 9 or 14).
Configure the "Slow" MA: On the second instance, select a smoother type (e.g., KAMA or Super Smoother) with a higher length (e.g., 50 or 100).
Trade the Cross: Look for the "Fast" MA line crossing the "Slow" MA line to identify potential trend reversals or entry points. This allows you to combine the responsiveness of modern filters with the stability of classic trend lines.
Why This Indicator Stands Out
Unlike standard multi-MA scripts that only switch types, UMA+ combines extreme flexibility with Anchored Analysis. This allows traders to measure trend strength and responsiveness from significant reference points rather than an arbitrary rolling window. It is exceptionally useful for:
Post-Event Analysis: See how price respects an average anchored specifically to an earnings release or Fed announcement.
Cycle Trading: Measure trends from specific cycle lows.
Lag Reduction: Utilize advanced filters like Kalman, T3, or Ehlers series to reduce lag in trending markets while maintaining smoothness.
How to Use
Choose Your MA: Select from the extensive list. Experiment with adaptive types (KAMA, VIDYA) for choppy markets or low-lag types (Hull, ZLEMA) for scalping.
Enable Anchor (Optional): Toggle "Enable Anchor" to fix the start point of the calculation. Use the "Date/Time" method to align with specific market catalysts.
Interpret the Dashboard:
Bullish Momentum: Look for "Price ABOVE," a positive Deviation %, and "Trend UP."
Reversion: Extreme deviation values may indicate price is overextended and due to snap back to the MA.
Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always use proper risk management and combine with your own analysis. Trading involves substantial risk of loss.
Gaps IdentifierThis indicator identifies up and down Gaps using previous period's close price to the next period's open price. Potentially useful for Gap rebound strategies.
(Will identify gaps 4%–11% by default; can change in settings)
SMA Crossover Strategy with Monte Carlo TunerCore logic
• Two signals:
• FAST SMA
• SLOW SMA
• Trade rule:
• FAST > SLOW → long
• FAST < SLOW → short
• Nothing else. No indicators stacked on top.
⸻
Two operating modes
1) Deterministic mode (baseline)
• MC = OFF
• You choose (fast, slow) explicitly (default 8/34)
• Behavior is stationary and repeatable
This is your control experiment.
⸻
2) Monte Carlo mode (adaptive discovery)
• MC = ON
• The script:
• Samples (fast, slow) pairs randomly from bounded integer ranges
• Simulates trades for each pair in parallel
• Tracks (gross profit, gross loss, trade count)
• Computes PF = GP / GL
• Promotes best-so-far online
Key point:
This is not grid search. It’s stochastic sampling with early stopping with time control (default 35 s)
Account GuardianAccount Guardian: Dynamic Risk/Reward Overlay
Introduction
Account Guardian is an open-source indicator for TradingView designed to help traders evaluate trade setups before entering positions. It automatically calculates Risk-to-Reward ratios based on market structure, displays visual Stop Loss and Take Profit zones, and provides real-time position sizing recommendations.
The indicator addresses a fundamental question every trader should ask before entering a trade: "Does this setup make mathematical sense?" Account Guardian answers this question visually and numerically, helping traders avoid impulsive entries with poor risk profiles.
Core Functionality
Account Guardian performs four primary functions:
Detects swing highs and swing lows to identify logical stop loss placement levels
Calculates Risk-to-Reward ratios for both long and short setups in real-time
Displays visual SL/TP zones on the chart for immediate trade planning
Computes position sizing based on your account size and risk tolerance
The goal is to provide traders with instant feedback on whether a potential trade meets their minimum risk/reward criteria before committing capital.
How It Works
Swing Detection
The indicator uses pivot point detection to identify recent swing highs and swing lows on the chart. These swing points serve as logical areas for stop loss placement:
For Long Trades: The most recent swing low becomes the stop loss level. Price breaking below this level would invalidate the bullish thesis.
For Short Trades: The most recent swing high becomes the stop loss level. Price breaking above this level would invalidate the bearish thesis.
The swing detection lookback period is configurable, allowing you to adjust sensitivity based on your trading timeframe and style.
It automatically adjusts the tp and sl when it is applied to your chart so it is always moving up and down!
Risk/Reward Calculation
Once swing levels are identified, the indicator calculates:
Entry Price: Current close price (where you would enter)
Stop Loss: Recent swing low (for longs) or swing high (for shorts)
Risk: Distance from entry to stop loss
Take Profit: Entry plus (Risk × Target Multiplier)
R:R Ratio: Reward divided by Risk
The R:R ratio is then evaluated against your configured thresholds to determine if the setup is valid, marginal, or poor.
Visual Elements
SL/TP Zones
When enabled, the indicator draws colored boxes on the chart showing:
Red Zone: Stop Loss area - the region between your entry and stop loss
Green/Gold/Red Zone: Take Profit area - colored based on R:R quality
The color coding provides instant visual feedback:
Green: R:R meets or exceeds your "Good R:R" threshold (default 3:1)
Gold: R:R meets minimum threshold but below "Good" (between 2:1 and 3:1)
Red: R:R below minimum threshold - setup should be avoided
Swing Point Markers
Small circles mark detected swing points on the chart:
Green circles: Swing lows (potential support / long SL levels)
Red circles: Swing highs (potential resistance / short SL levels)
Dashboard Panel
The dashboard in the top-right corner displays comprehensive trade planning information:
R:R Row: Current Risk-to-Reward ratio for long and short setups
Status Row: VALID, OK, BAD, or N/A based on R:R thresholds
Stop Loss Row: Exact price level for stop loss placement
Take Profit Row: Exact price level for take profit placement
Pos Size Row: Recommended position size based on your risk parameters
Risk $ Row: Dollar amount at risk per trade
Position Sizing Logic
The indicator calculates position size using the formula:
Position Size = Risk Amount / Risk per Unit
Where:
Risk Amount = Account Size × (Risk Percentage / 100)
Risk per Unit = Entry Price - Stop Loss Price
For example, with a $10,000 account risking 1% per trade ($100), if your entry is at 100 and stop loss at 98 (risk of 2 per unit), your position size would be 50 units.
Input Parameters
Swing Detection:
Swing Lookback: Number of bars to look back for pivot detection (default: 10). Higher values find more significant swing points but may be slower to update.
Target Multiplier: Multiplier applied to risk to calculate take profit distance (default: 2). A value of 2 means TP is 2× the distance of SL from entry.
Risk/Reward Thresholds:
Minimum R:R: Minimum acceptable Risk-to-Reward ratio (default: 2.0). Setups below this show as "BAD" in red.
Good R:R: Threshold for excellent setups (default: 3.0). Setups at or above this show as "VALID" in green.
Account Settings:
Account Size ($): Your trading account size in dollars (default: 10,000). Used for position sizing calculations.
Risk Per Trade (%): Percentage of account to risk per trade (default: 1.0%). Professional traders typically risk 0.5-2% per trade.
Display:
Show SL/TP Zones: Toggle visibility of the colored zone boxes on chart (default: enabled)
Show Dashboard: Toggle visibility of the information panel (default: enabled)
Analyze Direction: Choose to analyze Long only, Short only, or Both directions (default: Both)
How to Use This Indicator
Basic Workflow:
Add the indicator to your chart
Configure your account size and risk percentage in the settings
Set your minimum and good R:R thresholds based on your trading rules
Look at the dashboard to see current R:R for potential long and short entries
Only consider trades where the status shows "VALID" or at minimum "OK"
Use the displayed SL and TP levels for your order placement
Use the position size recommendation to determine lot/contract size
Interpreting the Dashboard:
VALID (Green): Excellent setup - R:R meets your "Good" threshold. This is the ideal scenario for taking a trade.
OK (Gold): Acceptable setup - R:R meets minimum but isn't optimal. Consider taking if other confluence factors align.
BAD (Red): Poor setup - R:R below minimum threshold. Avoid this trade or wait for better entry.
N/A (Gray): Cannot calculate - usually means no valid swing point detected yet.
Best Practices:
Use this indicator as a filter, not a signal generator. It tells you IF a trade makes sense, not WHEN to enter.
Combine with your existing entry strategy - use Account Guardian to validate setups from other analysis.
Adjust the swing lookback based on your timeframe. Lower timeframes may need smaller lookback values.
Be honest with your account size input - accurate position sizing requires accurate inputs.
Consider the target multiplier carefully. Higher multipliers mean larger potential reward but lower probability of hitting TP.
Alerts
The indicator includes four alert conditions:
Good Long Setup: Triggers when long R:R reaches or exceeds your "Good R:R" threshold
Good Short Setup: Triggers when short R:R reaches or exceeds your "Good R:R" threshold
Bad Long Setup: Triggers when long R:R falls below your minimum threshold
Bad Short Setup: Triggers when short R:R falls below your minimum threshold
These alerts can help you monitor multiple charts and get notified when favorable setups appear.
Technical Implementation
The indicator is built using Pine Script v6 and includes:
Pivot-based swing detection using ta.pivothigh() and ta.pivotlow()
Dynamic box drawing for visual SL/TP zones
Table-based dashboard for clean information display
Color-coded visual feedback system
Persistent variable tracking for swing levels
Code Structure:
// Swing Detection
float swingHi = ta.pivothigh(high, swingLen, swingLen)
float swingLo = ta.pivotlow(low, swingLen, swingLen)
// R:R Calculation for Long
float longSL = recentSwingLo
float longRisk = entry - longSL
float longTP = entry + (longRisk * targetMult)
float longRR = (longTP - entry) / longRisk
// Position Sizing
float riskAmount = accountSize * (riskPct / 100)
float posSize = riskAmount / longRisk
Limitations
The indicator uses historical swing points which may not always represent optimal SL placement for your specific strategy
Position sizing assumes you can trade fractional units - adjust accordingly for instruments with minimum lot sizes
R:R calculations assume linear price movement and don't account for gaps or slippage
The indicator doesn't predict price direction - it only evaluates the mathematical viability of a setup
Swing detection has inherent lag due to the lookback period required for pivot confirmation
Recommended Settings by Trading Style
Scalping (1-5 minute charts):
Swing Lookback: 5-8
Target Multiplier: 1-2
Minimum R:R: 1.5
Good R:R: 2.0
Day Trading (15-60 minute charts):
Swing Lookback: 8-12
Target Multiplier: 2
Minimum R:R: 2.0
Good R:R: 3.0
Swing Trading (4H-Daily charts):
Swing Lookback: 10-20
Target Multiplier: 2-3
Minimum R:R: 2.5
Good R:R: 4.0
Why Risk/Reward Matters
Many traders focus solely on win rate, but profitability depends on the combination of win rate AND risk/reward ratio. Consider these scenarios:
50% win rate with 1:1 R:R = Breakeven (before costs)
50% win rate with 2:1 R:R = Profitable
40% win rate with 3:1 R:R = Profitable
60% win rate with 1:2 R:R = Losing money
Account Guardian helps ensure you only take trades where the math works in your favor, even if you're wrong more often than you're right.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation.
Trading involves substantial risk of loss and is not suitable for all investors. The calculations provided by this indicator are based on historical price data and mathematical formulas that may not accurately predict future price movements.
Position sizing recommendations are estimates based on user inputs and should be verified before placing actual trades. Always consider factors such as leverage, margin requirements, and broker-specific rules when determining actual position sizes.
The Risk-to-Reward ratios displayed are theoretical calculations based on swing point detection. Actual trade outcomes will vary based on market conditions, execution quality, and other factors not captured by this indicator.
Past performance does not guarantee future results. Users should thoroughly test any trading approach in a demo environment before risking real capital. The authors and publishers of this indicator are not responsible for any losses or damages arising from its use.
Always consult with a qualified financial advisor before making investment decisions.
Sector Rotation ULTIMATE: 7 Narrativas IndependientesSector Rotation ULTIMATE: Crypto Narrative Rotation (7 Independent Sectors)
Advanced indicator displaying the relative strength of major crypto sectors through 7 independently normalized lines (0-100):
• Layer1 (ETH, SOL, BNB, TON, etc.) - Pink
• Enterprise (XRP, HBAR, XLM, QNT, VET) - Yellow
• DeFi (UNI, AAVE, MKR, LDO, CRV, etc.) - Cyan
• Memecoins (SHIB, DOGE, PEPE, WIF, FLOKI, BONK) - Green
• AI (TAO, FET, ICP, GRT, etc.) - Orange
• L2 / Scalability (ARB, OP, MATIC, STRK) - Purple
• RWA + Infra (ONDO, LINK) - Brown
Each sector sums the dominance of its top coins (40 total) and is normalized independently so the lines cross constantly, revealing real capital rotations.
- Colored fills to visually highlight the leading sector
- Works perfectly on any timeframe (clean daily data, no intraday noise)
- Ideal for spotting altseason, sector rotations, and entry timing
Use on CRYPTOCAP:TOTAL. The definitive narrative oscillator for 2026!
#Crypto #Altcoins #SectorRotation #DeFi #Memecoins #AI #RWA






















