Confluence AutoEntry (1m/5m/15m) for Alertatron//@version=5
indicator("Confluence AutoEntry (1m/5m/15m) for Alertatron", overlay=true, max_lines_count=500, max_labels_count=500)
// =========================
// 参数
// =========================
tf1 = input.timeframe("1", "周期-1")
tf2 = input.timeframe("5", "周期-2")
tf3 = input.timeframe("15", "周期-3")
ema1 = input.int(10, "EMA1")
ema2 = input.int(30, "EMA2")
ema3 = input.int(60, "EMA3")
rLen = input.int(14, "RSI 长度")
thr1 = input.int(60, "阈值-周期1 (0~100)", minval=0, maxval=100)
thr2 = input.int(60, "阈值-周期2 (0~100)", minval=0, maxval=100)
thr3 = input.int(60, "阈值-周期3 (0~100)", minval=0, maxval=100)
// 下单资金(USDT)
usdtPerTrade = input.float(500, "每次下单金额(USDT)", step=5)
// 下单类型(市价/限价)
orderType = input.string("market", "下单类型", options= , tooltip="market=市价;limit=限价(使用 entry 作为限价)")
// 两步延续触发
useTwoStep = input.bool(true, "启用两步延续触发", tooltip="收盘仅“武装”,下一根或后续“延续突破”才真正发单;关闭=收盘即发一次信号")
bufferPct = input.float(0.08, "延续触发缓冲(%)", step=0.01, tooltip="突破需要超过武装价的百分比")
armBars = input.int(1, "武装有效bar数", minval=1, tooltip="超时未触发则自动取消武装")
// 可选:在 JSON 中附带 token
attachToken = input.bool(false, "在 JSON 中附带 token 字段")
longToken = input.string("", "多头 token(可留空)")
shortToken = input.string("", "空头 token(可留空)")
// 图形显示
showShapes = input.bool(true, "图表显示三角/武装/触发标记")
showTriggerLabel = input.bool(true, "触发时显示【入场/TP/SL/Qty】标签")
// 「平衡」展示用 TP/SL 百分比(仅用于标签展示,不发到 Alertatron)
tpPct = input.float(2.0, "展示用:TP百分比(%)")
slPct = input.float(1.0, "展示用:SL百分比(%)")
// =========================
// 工具函数
// =========================
f_score(tf) =>
_c = request.security(syminfo.tickerid, tf, close, barmerge.gaps_off, barmerge.lookahead_off)
_e1 = request.security(syminfo.tickerid, tf, ta.ema(close, ema1), barmerge.gaps_off, barmerge.lookahead_off)
_e2 = request.security(syminfo.tickerid, tf, ta.ema(close, ema2), barmerge.gaps_off, barmerge.lookahead_off)
_e3 = request.security(syminfo.tickerid, tf, ta.ema(close, ema3), barmerge.gaps_off, barmerge.lookahead_off)
_r = request.security(syminfo.tickerid, tf, ta.rsi(close, rLen), barmerge.gaps_off, barmerge.lookahead_off)
_m = request.security(syminfo.tickerid, tf, ta.sma(ta.change(close), 5), barmerge.gaps_off, barmerge.lookahead_off)
_ok1 = _c > _e1 ? 1 : 0
_ok2 = _e1 >= _e2 ? 1 : 0
_ok3 = _e2 >= _e3 ? 1 : 0
_ok4 = _r > 50 ? 1 : 0
_ok5 = _m >= 0 ? 1 : 0
(_ok1 + _ok2 + _ok3 + _ok4 + _ok5) / 5.0 * 100.0
// 价格按最小跳动取整
tickRound(x) =>
syminfo.mintick > 0 ? math.round(x / syminfo.mintick) * syminfo.mintick : x
// 数字 -> 价格串
sPrice(x) =>
str.tostring(x, format.mintick)
// 小数点四舍五入(用于数量展示)
roundN(x, n) =>
_f = math.pow(10.0, n)
math.round(x * _f) / _f
sQty(x) =>
str.tostring(roundN(x, 6))
// 去掉交易所前缀和 .P 后缀,得到 BASEQUOTE(如 ETHUSDC)
cleanSymbol() =>
_s = syminfo.ticker
_arr = str.split(_s, ":")
_last = array.get(_arr, array.size(_arr) - 1)
str.replace_all(_last, ".P", "")
// =========================
// 多周期评分 -> 一致方向
// =========================
score1 = f_score(tf1)
score2 = f_score(tf2)
score3 = f_score(tf3)
dir1 = score1 >= thr1 ? 1 : -1
dir2 = score2 >= thr2 ? 1 : -1
dir3 = score3 >= thr3 ? 1 : -1
conf_long = dir1 == 1 and dir2 == 1 and dir3 == 1
conf_short = dir1 == -1 and dir2 == -1 and dir3 == -1
// =========================
// 两步法:收盘“武装” + 下一根/后续“延续触发”
// =========================
var bool armLong = false
var float armLongPx = na
var int armLongUntil = na
var bool armShort = false
var float armShortPx = na
var int armShortUntil = na
if barstate.isconfirmed
if conf_long
armLong := true
armLongPx := close
armLongUntil := bar_index + armBars
if conf_short
armShort := true
armShortPx := close
armShortUntil := bar_index + armBars
longTrigPrice = armLong ? armLongPx * (1 + bufferPct/100.0) : na
shortTrigPrice = armShort ? armShortPx * (1 - bufferPct/100.0) : na
triggerLong = useTwoStep ? (armLong and high >= longTrigPrice) : (barstate.isconfirmed and conf_long)
triggerShort = useTwoStep ? (armShort and low <= shortTrigPrice) : (barstate.isconfirmed and conf_short)
// 触发后立刻卸载武装;超时未触发亦卸载
if triggerLong
armLong := false
if triggerShort
armShort := false
if bar_index > armLongUntil
armLong := false
if bar_index > armShortUntil
armShort := false
// =========================
// 发单用价位(在触发时会被使用)
// =========================
float entryL = tickRound(useTwoStep ? longTrigPrice : close)
float entryS = tickRound(useTwoStep ? shortTrigPrice : close)
float tpL = tickRound(entryL * (1 + tpPct/100.0))
float slL = tickRound(entryL * (1 - slPct/100.0))
float tpS = tickRound(entryS * (1 - tpPct/100.0))
float slS = tickRound(entryS * (1 + slPct/100.0))
// —— 展示标签直接使用上面算好的 entryL/entryS/tpL/slL/tpS/slS
if showTriggerLabel and barstate.isconfirmed
if triggerLong
_txt = "LONG Entry: " + sPrice(entryL) + " TP: " + sPrice(tpL) + " SL: " + sPrice(slL) + " EstQty: " + sQty(usdtPerTrade/entryL)
label.new(bar_index, low, text=_txt, style=label.style_label_up, textcolor=color.white, color=color.new(color.lime, 0))
if triggerShort
_txt = "SHORT Entry: " + sPrice(entryS) + " TP: " + sPrice(tpS) + " SL: " + sPrice(slS) + " EstQty: " + sQty(usdtPerTrade/entryS)
label.new(bar_index, high, text=_txt, style=label.style_label_down, textcolor=color.white, color=color.new(color.red, 0))
// ============ 构造 JSON(按方向用不同 signal 名,所有数值写入) ============
buildMsg(_side, _entry, _tp, _sl) =>
_sig = _side == "buy" ? "open_long" : "open_short"
_token = attachToken ? ',"token":"' + (_side == "buy" ? longToken : shortToken) + '"' : ""
_msg = '{"signal":"' + _sig + '"'
_msg := _msg + ',"side":"' + _side + '"'
_msg := _msg + ',"symbol":"' + cleanSymbol() + '"'
_msg := _msg + ',"order_type":"market"'
_msg := _msg + ',"usdt_per_trade":' + str.tostring(usdtPerTrade)
_msg := _msg + ',"entry":' + sPrice(_entry)
_msg := _msg + ',"tp":' + sPrice(_tp)
_msg := _msg + ',"sl":' + sPrice(_sl)
_msg := _msg + _token + "}"
_msg
msgLong = buildMsg("buy", entryL, tpL, slL)
msgShort = buildMsg("sell", entryS, tpS, slS)
// =========================
// 报警 & 发单(在 TradingView 里选择 Any alert() function call;Webhook 填机器人 URL;Message 留空)
// =========================
alertcondition(triggerLong, title="多仓开仓(…)", message="LONG")
alertcondition(triggerShort, title="空仓开仓(…)", message="SHORT")
if barstate.isconfirmed
if triggerLong
alert(message = msgLong, freq = alert.freq_once_per_bar_close)
if triggerShort
alert(message = msgShort, freq = alert.freq_once_per_bar_close)
// =========================
// 可视化:形态+触发线
// =========================
plotshape(showShapes and conf_long and barstate.isconfirmed, title="收盘-多武装", style=shape.triangleup, color=color.new(color.green, 0), size=size.tiny, text="ARM L", location=location.belowbar)
plotshape(showShapes and conf_short and barstate.isconfirmed, title="收盘-空武装", style=shape.triangledown, color=color.new(color.red, 0), size=size.tiny, text="ARM S", location=location.abovebar)
plotshape(showShapes and triggerLong, title="触发-开多", style=shape.labelup, color=color.new(color.lime, 0), text="▶ LONG", location=location.belowbar, size=size.tiny)
plotshape(showShapes and triggerShort, title="触发-开空", style=shape.labeldown, color=color.new(color.maroon,0), text="▶ SHORT", location=location.abovebar, size=size.tiny)
plot(useTwoStep and armLong ? armLongPx : na, "武装价-L", color=color.new(color.green, 70), style=plot.style_circles, linewidth=1)
plot(useTwoStep and armShort ? armShortPx : na, "武装价-S", color=color.new(color.red, 70), style=plot.style_circles, linewidth=1)
plot(useTwoStep ? longTrigPrice : na, "触发线-L", color=color.new(color.lime, 0), style=plot.style_linebr, linewidth=1)
plot(useTwoStep ? shortTrigPrice : na, "触发线-S", color=color.new(color.maroon, 0), style=plot.style_linebr, linewidth=1)
// =========================
// 可视化:触发时弹出【入场/TP/SL/Qty】标签(仅展示用)
// =========================
if showTriggerLabel and barstate.isconfirmed
if triggerLong
_qtyL = usdtPerTrade > 0 and entryL > 0 ? (usdtPerTrade / entryL) : na
_txtL = "LONG Entry: " + sPrice(entryL) + " TP: " + sPrice(tpL) + " SL: " + sPrice(slL) + " EstQty: " + sQty(_qtyL)
label.new(bar_index, low, text=_txtL, style=label.style_label_up, textcolor=color.white, color=color.new(color.lime, 0))
if triggerShort
_qtyS = usdtPerTrade > 0 and entryS > 0 ? (usdtPerTrade / entryS) : na
_txtS = "SHORT Entry: " + sPrice(entryS) + " TP: " + sPrice(tpS) + " SL: " + sPrice(slS) + " EstQty: " + sQty(_qtyS)
label.new(bar_index, high, text=_txtS, style=label.style_label_down, textcolor=color.white, color=color.new(color.red, 0))
Candlestick analysis
Basic FVG Indicator by nacho-fx mod by evseevd2803Basic FVG Indicator by nacho-fx ( www.tradingview.com )
-Extends unfilled FVG boxes.
-Stops extending filled FVG boxes instead of removing them.
Liquidity Sweeps & Swings (SMC/ICT)Liquidity Sweeps & Swings (SMC/ICT) — TradingATH
Precision. Clarity. Structure.
This refined indicator automatically detects and displays Liquidity Sweeps and Liquidity Swings , highlighting the precise points where liquidity is taken and where structure shifts occur within price action.
Designed for traders applying Smart Money Concepts (SMC/ICT) , it offers a clear, data-driven visualization of market dynamics — providing structural context with professional accuracy and visual balance.
What You’ll See
Liquidity Sweeps represented as compact shaded zones, green for bullish sweeps and red for bearish ones, fading automatically once mitigated.
Liquidity Swings precisely labeled “ Swing High ” and “ Swing Low ” at major pivot points, cleanly positioned within structure.
Controlled-length zones that extend for a defined number of bars or dynamically until mitigation.
Optional real-time alerts when a new sweep forms or price re-enters an active zone.
Features
Sweep Detection Logic : Identifies liquidity grabs using Wick, Close, or Wick + Close validation for flexible precision across different market conditions.
Smart Mitigation : Zones dynamically fade or are removed once price mitigates the area, keeping your chart clean and relevant.
Swing Mapping : Highlights key pivot points to outline market structure shifts with precise and minimal labeling.
ATR Filtering : Optional volatility-based filter removes minor or insignificant sweeps to maintain clarity.
Elegant Design : Subtle colors, refined typography, and balanced spacing ensure a professional, unobtrusive presentation.
Alerts and Updates : Automated alerts for new sweep formations and live interaction with active zones.
Professional Architecture : Efficient execution, size-safe arrays, and optimized plotting for smooth performance on any timeframe.
ICT/SMC Ready : Fully compatible with advanced institutional concepts such as Fair Value Gaps, Order Blocks, and Market Structure Shifts.
Perfect For
Traders applying ICT or Smart Money Concepts methodologies to identify liquidity grabs and structural intent.
Intraday Traders seeking precise, uncluttered sweep and swing identification on volatile charts.
Swing Traders filtering high-probability setups based on liquidity structure and mitigation behavior.
Analysts requiring clarity, reliability, and technical precision in their liquidity mapping tools.
Recommended Settings
Pivot Lookback : 14 (balanced structural sensitivity).
Sweep Validation : Wick + Close (adaptive precision).
Zone Length : 150 bars (controlled visual reach).
ATR Filter : Minimum 0.25×, Maximum 3× (clean sweep selection).
Swing Labels : Enabled (for structural clarity).
In Short
Clean logic. Institutional precision. Professional clarity.
Liquidity Sweeps & Swings (SMC/ICT) delivers a disciplined and refined visualization of liquidity flow and structural shifts — crafted for traders who demand both analytical accuracy and visual sophistication.
Created by: TradingATH
10 EMA10 ema + color change
35
70
140
420
840
1400
2100
2940
3150
4725
I created this script for use in different chart layouts. I modified it to use the colors and EMA numbers I'm currently using.
Inside Bar + Harami ComboThis indicator visually highlights Inside Bars, Outside Bars, and Harami candlestick patterns directly on your chart using clean color-coded candles — no labels, no shapes, just visual clarity.
It helps traders quickly identify potential reversal and continuation setups by coloring candles according to the detected pattern type.
🔍 Patterns Detected
🟨 Inside Bar — Current candle’s range is completely inside the previous candle’s range.
Often signals price contraction before a breakout.
💗 Outside Bar — Current candle’s high and low exceed the previous candle’s range.
Indicates volatility expansion and possible trend continuation.
🟩 Bullish Harami — A small bullish candle within the body of a prior bearish candle.
Suggests potential reversal to the upside.
🟥 Bearish Harami — A small bearish candle within the body of a prior bullish candle.
Suggests potential reversal to the downside.
⚙️ Features
Customizable colors for each pattern type.
Simple overlay visualization — no shapes, no labels, just colored candles.
Harami colors automatically override Inside/Outside colors when both occur on the same bar.
Lightweight logic for smooth performance on any timeframe or symbol.
💡 How to Use
Apply the indicator to your chart.
Configure colors in the settings panel if desired.
Watch for highlighted candles:
Inside Bars often precede breakouts.
Harami patterns can mark reversal zones.
Combine with trend tools (like moving averages) to confirm setups.
⚠️ Note
This indicator is for visual pattern detection and educational use only.
Always combine candlestick signals with broader technical or market context before trading decisions.
Grok's xAI Signal (GXS) Indicator for BTC V6Grok's xAI Signal (GXS) Indicator: A Simple Guide
Imagine trying to decide if Bitcoin is a "buy," "sell," or "wait" without staring at 10 different charts. The GXS Indicator does that for you—it's like a smart dashboard for BTC traders, overlaying signals right on your price chart. It boils down complex market clues into one easy score (from -1 "super bearish" to +1 "super bullish") and flashes green/red arrows or shaded zones when action's needed. No fancy math overload; just clear visuals like tiny triangles for trades, colored clouds for trends, and a bottom "mood bar" (green=up vibe, red=down, gray=meh).
At its core, GXS mixes three big-picture checks:
Price Momentum (50% weight): Quick scans of RSI (overbought/oversold vibes), MACD (speed of ups/downs), EMAs (is price riding the trend wave?), and Bollinger Bands (is the market squeezing for a breakout?). This catches short-term "hot or not" energy.
Network Health (30% weight): A simple "NVT" hack using trading volume vs. price to spot if BTC feels undervalued (buy hint) or overhyped (sell warning). It's like checking if the crowd's too excited or chill.
Trend Strength (20% weight): ADX filter ensures signals only fire in "trending" markets (not choppy sideways noise), plus a MACD boost for extra momentum nudge.
Why this approach? BTC's wild—pure price charts give false alarms in flat times, while ignoring volume/network ignores the "why" behind moves. GXS blends old-school TA (reliable for patterns) with on-chain smarts (crypto-specific "under the hood" data) and a trend gate (skips 70% of bad trades). It's conservative: Signals need the score to cross ±0.08 and a strong trend, reducing noise for swing/position traders. Result? Fewer emotional guesses, more "wait for confirmation" patience—perfect for volatile assets like BTC where hype kills.
Quick Tips to Tweak for Better Results
Start with defaults, then experiment on historical charts (backtest via TradingView's strategy tester if pairing with one):
Fewer False Signals: Bump thresholds to ±0.15 (buy/sell)—trades only on stronger conviction, cutting whipsaws by 20-30% in choppy markets. Or raise ADX thresh to 28 for "only big trends."
Faster/Slower Response: Shorten EMAs (e.g., 5/21) or RSI (10) for quicker scalps; lengthen (12/50) for swing holds. Test on 4H/daily BTC.
Volume Sensitivity: If NVT flips too often, extend its length to 20—smooths on-chain noise in bull runs.
Visual Polish: Crank cloud opacity to 80% for subtler fills; toggle off EMAs if they clutter. Enable table for score breakdowns during live trades.
Risk Tip: Always pair with stops (e.g., 2-3% below signals). On BTC, tweak in bull markets (looser thresh) vs. bears (tighter).
In short, GXS is your BTC "sixth sense"—balanced, not black-box. Tweak small, track win rate, and let trends lead. Happy trading!
Current Weekly Open LineThis indicator is an indicator to make your weekly review.
It shows exactly where the last weekly open candle has been, so you don't have to search it manually.
Nifty Candle Pattern IdentifierNifty Candle Pattern Identifier
✅ Doji
✅ Hammer
✅ Inverted Hammer
✅ Bullish Engulfing
✅ Bearish Engulfing
✅ Shooting Star
Current Weekly Open LineVertical line on current weekly open.
To know exactly on every chart where the current weekly opening is, without having to do it manually.
Power Hour Breakout [LuxAlgo][Surge.Guru.Remastered]same script with better coloring and less intense
all credits goes to LuxAlgo
NOVA Breakout Signals v2.2 (TF M30)A clean, rules-based breakout signal tool for 30-minute charts.
It detects Dow swing breakouts and filters them with RSI, MACD and Volume so you only see the higher-quality entries. The script does not place trades and does not calculate SL/TP – it only prints clear LONG/SHORT labels at the entry price.
⸻
How it works
1. Timeframe enforcement – Signals are generated only on M30. On other timeframes the script shows a notice and stays silent.
2. Breakout engine (Dow swings) – The last confirmed swing high/low (pivots) is tracked.
• Breakout Up: bar closes above the last swing high by a small buffer.
• Breakout Down: bar closes below the last swing low by a small buffer.
3. Quality filters (all must be true):
• RSI (default length 30):
• Long: RSI > threshold and rising.
• Short: RSI < threshold and falling.
• MACD (12/26/9):
• Long: histogram > 0 and line > signal.
• Short: histogram < 0 and line < signal.
• Volume: current volume > SMA(volume, 20) × multiplier.
4. Debounce / anti-spam
• Cooldown of 4 hours (8 M30 bars) after any signal.
• Minimum price distance from the previous signal to avoid clustered labels.
Signals appear once the bar closes (barstate.isconfirmed). No swing lines are drawn to keep the chart clean; only entry labels are shown.
⸻
Inputs (key)
• RSI length & thresholds for Long/Short confirmation.
• MACD uses 12/26/9 (fixed).
• Volume multiplier (relative to SMA 20).
• Breakout buffer %, Cooldown hours, Min distance %.
• Show labels (on/off).
⸻
Usage tips
• Start with gold/major FX/indices on M30; use “Once per bar close” if you attach alerts.
• Increase the breakout buffer and volume multiplier in choppy markets.
• Tighten RSI thresholds (e.g., 55/45) if you want fewer but stronger signals.
⸻
Notes & limitations
• Pivots confirm after a few bars by definition; signals themselves are printed only on confirmed bar close and do not repaint once shown.
• This is a signal indicator, not investment advice. Always manage risk.
Fibonacci Retracement MTF/LOG 3 WEEK KKKKA Fibonacci arc trading strategy uses circular arcs drawn at Fibonacci retracement levels (38.2%, 50%, 61.8%) to identify potential support and resistance zones, often intersecting with a trend line. This strategy helps traders anticipate price reversals or pullbacks, and it should be used in conjunction with other indicators
Fibonacci Retracement MTF/LOG 2WEEK KKKKFibonacci retracment should be used to create a line of lines to justify the rest of indicators to reduce stress in indicators because we should not shout
NY Midnight High/Low Arrows (Auto-Show)🇺🇸 English Explanation
This indicator automatically marks the daily high and low of the New York session.
It draws arrows (▼▲) at the highest and lowest prices after New York midnight (00:00),
and can optionally display small horizontal dotted lines at those levels.
It helps traders identify daily liquidity zones and key turning points in price action.
🇸🇦 الشرح بالعربية
هذا المؤشر يحدد القمة والقاع اليومية لجلسة نيويورك بشكل تلقائي.
يرسم أسهماً (▼▲) عند أعلى وأدنى سعر بعد منتصف الليل بتوقيت نيويورك (00:00)،
ويمكنه أيضًا عرض خطوط أفقية منقطة صغيرة عند تلك المستويات.
يساعد المتداول في معرفة مناطق السيولة اليومية ونقاط الانعكاس المهمة في حركة السعر.
Strong PivotsThis finds pivots based on your inputs (number of candles back and forward that are above or below the range of the potential pivot points) and then optionally changes the color to help you visually identify the pivot. You can also specify pivots as strong pivots if they reverse in 1 time segment beyond a certain percentage (wick % of full candle range).
For example, if the pivot is at a high point but has a green body candle and a wick > 35% of the candle, it will change the body color to red to help visually understand that the candle can be considered a strong part of the downtrend, regardless of it closing green. This will help your mind interpret the top pivot candle as part of the potential trend reversal for the following candles and could even be used as part of your strategy ruleset.
Devils Mark Plus Volume Imbalance Multi TimeframeFollowing the success of the devil marks multi timeframe indicator I decided to add volume imbalance. Devils mark code remains unchanged here.
Functionality of the Devils mark remains the same as in when a candle prints without a wick at either end it indicates an area of price imbalance and it is assumed that the market will want to re-balance this level at some point in the future.
The same can be said for volume imbalances where 2 adjacent candles bodies don't meet. Again it it assumed the market will come back at some point to readdress this imbalance. Once mitigated the volume imbalance will be removed by the indicator.
These areas are best used to add confluence to trade ideas and shouldn't be used to formulate trade ideas on their own.
A table is included for easy reference.
Please note that data for timeframes lower than the current timeframe will not be shown. It is also worth noting that data on much higher timeframes than the current chart timeframe may not be shown due to data restrictions. If in doubt go up a timeframe !
I hope you find this indicator useful.
BullishBuzz ORB – CALL/PUT with Chart Alerts (Final)⚙️ The Bullish BuzzBot System
1️⃣ Data Feeds (Input Layer)
BuzzBot connects to live market data through TradingView’s chart engine (or via API for more advanced builds).
It continuously pulls:
Price data (open, high, low, close per bar)
Volume
RSI, MACD, VWAP, EMA 9/21 values
Timestamps & bar intervals (1m, 5m, 15m)
That’s the raw fuel — the same data you’d use for charting.
2️⃣ Indicator Engine (Signal Layer)
This is where the logic lives — it calculates conditions in real time.
BuzzBot checks for patterns like:
EMA 9/21 Cross: detects momentum shift
VWAP Reclaim or Reject: confirms intraday bias
RSI < 50 or > 70: momentum confirmation
MACD Cross: trend continuation signal
Volume > 2x average: validates conviction
COT Index Indicator 1) One‑liner
My version of the OTC COT Index indicator: a 0–120 oscillator built from CFTC COT data that shows where Commercial, Noncommercial, and Nonreportable net positions sit relative to recent extremes.
2) Short paragraph
This is my version of the OTC COT Index indicator. It converts CFTC Commitments of Traders (COT) net positions into a normalized 0–120 oscillator for each trader group—Commercials, Noncommercials, and Nonreportables—so you can quickly see when positioning is near recent highs or lows. Data comes from TradingView’s official COT library and supports both “Futures Only” and “Futures and Options” reports.
3) Compact bullets
What: My version of the OTC COT Index indicator
Why: Quickly spot when trader groups are near positioning extremes
Data: CFTC COT via TradingView/LibraryCOT/2; Futures Only or Futures & Options
How: Index = 120 × (Current − Min) ÷ (Max − Min) over a configurable lookback
Plots: Commercials (blue), Noncommercials (orange), Nonreportables (red)
Lines: Overbought, Midline, Oversold, optional 0/100, upper/lower bounds
Note: Values are relative to the chosen window; not trading advice
4) Publication‑ready (sections)
Overview
My version of the OTC COT Index indicator. It turns CFTC COT positioning into a 0–120 oscillator per trader group (Commercials, Noncommercials, Nonreportables) to highlight relative extremes.
Data source
CFTC Commitments of Traders via TradingView’s official library (TradingView/LibraryCOT/2).
Supports “Futures Only” and “Futures and Options.”
Method
Net positions = Longs − Shorts.
Index = 120 × (Current Net − Min(Net, Lookback)) ÷ (Max(Net, Lookback) − Min(Net, Lookback)).
Inputs
Weeks Look Back (normalization window)
Weeks Look Back for Historical Hi/Los (longer reference)
Report Type selection
Visuals
Three indexes by trader group, plus reference levels (OB/OS, Midline, optional 0/100).
Notes
Some symbols map to specific CFTC codes for reliability.
If no relevant COT data exists for the symbol, the script reports it clearly.
If you want this adapted to a specific platform’s character limits (e.g., TradingView’s publish dialog), tell me the target length and I’ll trim it to fit.
F & W SMC Alerthis script is a custom TradingView indicator designed to combine elements of a trend‑following VWAP approach (inspired by the “Fabio” strategy) with a smart‑money‑concepts framework (inspired by Waqar Asim). Here’s what it does:
* **Directional bias:** It calculates a 15‑minute VWAP and compares the current 15‑minute close to it. When price is above the 15‑minute VWAP, the script assumes a long bias; when below, a short bias. This reflects the trend‑following aspect of the Fabio strategy.
* **Liquidity sweeps:** Using recent pivot highs and lows on the current timeframe, it identifies when price takes out a recent high (for potential longs) or low (for potential shorts). This represents a “liquidity sweep” — a fake breakout that collects stops and signals a possible reversal or continuation.
* **Break of structure (BOS):** After a sweep, the script confirms that price is breaking away from the swept level (i.e., higher than recent highs for longs or lower than recent lows for shorts). This BOS confirmation helps avoid false signals.
* **Entry filters:** For a long setup, the bias must be long, there must be a liquidity sweep followed by a BOS, and price must reclaim the current‑timeframe VWAP. For a short setup, the opposite conditions apply (short bias, sweep + BOS to the downside, and price rejecting the VWAP).
* **Alerts and plot:** It provides two alert conditions (“Fabio‑Waqar Long Setup” and “Fabio‑Waqar Short Setup”) that you can attach to notifications. It also plots the intraday VWAP on your chart for visual reference.
In short, this script watches for a confluence of trend direction, liquidity sweeps, structural shifts, and VWAP reclaim/rejection, and then notifies you when those conditions align. You can use it as an alerting tool to identify high‑probability setups based on these combined strategies.
Relative Valuation OscillatorThis is a Relative Valuation Oscillator (RVO) this is attempt of replication OTC Valuation - a sophisticated multi-asset comparison indicator designed to measure whether the current asset is overvalued or undervalued relative to up to three reference assets.
Overview
The RVO compares the current chart's asset against reference assets (default: 30-Year Treasury Bonds, Gold, and US Dollar Index) to determine relative strength and valuation extremes. It outputs normalized oscillator values ranging from -100 (undervalued) to +100 (overvalued).
Key Features
Multiple Calculation Methods
The indicator offers 5 different calculation approaches:
Simple Ratio - Normalized ratio deviation from average
Percentage Difference - Percentage change comparison
Ratio Z-Score - Standard deviation-based comparison
Rate of Change Comparison - Momentum differential analysis (default)
Normalized Ratio - Min-max normalized ratio
Configurable Reference Assets
Asset 1: Default ZB (30-Year Treasury Bond Futures) - tracks interest rate sensitivity
Asset 2: Default GC (Gold Futures) - tracks safe-haven and inflation dynamics
Asset 3: Default DXY (US Dollar Index) - tracks currency strength
Each asset can be enabled/disabled independently
Fully customizable symbols
Visual Components
Multiple oscillator lines - One for each active reference asset (color-coded)
Average line - Combined signal from all active assets
Overbought/Oversold zones - Configurable threshold levels (default: ±80)
Zero line - Neutral valuation reference
Background coloring - Visual zones for extreme conditions
Signal line - Optional smoothed average
Entry markers - Long/short signals at key reversals
Signal Generation
Crossover alerts - When crossing overbought/oversold levels
Entry signals - Reversals from extreme zones
Divergence detection - Bullish/bearish divergences between price and oscillator
Zero-line crosses - Trend strength changes
Customization Options
Lookback period (10-500): Controls statistical calculation window
Normalization period (50-1000): Determines scaling sensitivity
Smoothing toggle: Optional EMA/SMA smoothing with adjustable period
Visual customization: Colors, levels, and display options
Information Table
Real-time dashboard showing:
Average oscillator value
Current status (Overvalued/Undervalued/Neutral)
Current asset price
Individual values for each active reference asset
Use Cases
Mean reversion trading - Identify extreme relative valuations for reversal trades
Sector rotation - Compare assets within similar categories
Hedging strategies - Understand correlation dynamics
Multi-asset analysis - Simultaneously compare against bonds, commodities, and currencies
Divergence trading - Spot price/oscillator divergences
Trading Strategy Applications
Long signals: When oscillator crosses above oversold level (asset recovering from undervaluation)
Short signals: When oscillator crosses below overbought level (asset declining from overvaluation)
Confirmation: Use multiple reference assets for stronger signals
Risk management: Avoid trading when all assets show neutral readings
This indicator is particularly useful for traders who want to incorporate inter-market analysis and relative strength concepts into their trading decisions, especially in OTC (Over-The-Counter) and futures markets.
Strat 1-2 Break AlertsThe Strat 1-2 Break Alerts
by Yolanda Marie Dixon
This indicator automatically identifies Inside Bars (1) and alerts when price breaks out into a 2-1-2 Bullish or 2-1-2 Bearish setup — two of the most actionable patterns in The Strat methodology created by Rob Smith.
📊 What It Does:
Marks Inside Bars with a yellow triangle below the candle.
Plots a green “2-1-2↑” triangle when a bullish breakout occurs.
Plots a red “2-1-2↓” triangle when a bearish breakdown occurs.
Provides built-in alerts so traders never miss a 2-1-2 setup.
💡 How to Use It:
Add the indicator to your chart, then go to Alerts → Create Alert → Condition: Strat 1-2 Break Alerts, and choose either 2-1-2 Up or 2-1-2 Down.
Perfect for traders who follow The Strat and want simple, reliable visual and alert-based signals for 1-2 setups.
—
🔔 Stay ready, stay Stratified.
Master The Strat with instant alerts for every 2-1-2 breakout.
Previous Period High/Low LevelsThis indicator plots the previous day, week, and month high and low levels to highlight key liquidity levels.
Perfect for traders using market structure, liquidity, or SMC concepts.
Features:
Auto-plots PDH/PDL, PWH/PWL, and PMH/PML
Adjustable line styles, widths, and label sizes
Toggle price display on or off
Accurate UTC offset handling






















