Liquidity Retest Strategy (Apicode) - TP/SL Lines FixedTechnical Documentation:
1. Purpose and underlying concept
This strategy targets a common behavior in liquid markets: liquidity sweeps around meaningful support/resistance levels, followed by a retest and rejection (reversal) with confirmation.
The core thesis is that many initial “breaks” are not continuation moves, but rather stop-runs and order harvesting. After the sweep, price reclaims the level and closes back on the opposite side, offering a structured entry with defined risk.
The strategy includes:
Support/Resistance detection via pivots
Dynamic selection of the “working” level using an ATR-based proximity window
Rejection validation via candle structure (wick + close)
Optional filters: volume, VWAP-like bias, and EMA trend
Risk management with static TP/SL (ATR-based or %), plus trailing stop (ATR-based or %), with per-trade lines plotted
2. Main components
2.1. Volatility metric: ATR
atr = ta.atr(atrLength) is used in two essential places:
Level selection (proximity to S/R): prevents trading levels that are too far from current price.
Sweep validation (minimum wick size): requires the wick to extend beyond the level by a volatility-relative amount.
Optionally, ATR can also be used for:
Static TP/SL (when usePercent = false)
Trailing stop (when useTrailPercent = false)
2.2. Building S/R levels with pivots
Pivots are detected using:
pivotHigh = ta.pivothigh(pivotLookback, rightBars)
pivotLow = ta.pivotlow(pivotLookback, rightBars)
Each confirmed pivot is stored in arrays:
resistanceLevels for resistance
supportLevels for support
The array size is capped by maxLevels, which reduces noise and manages chart resource usage (lines).
2.3. Selecting the “best” level each bar
On each bar, a single support S and/or resistance R candidate is chosen:
Support: nearest level below price (L < price)
Resistance: nearest level above price (L > price)
Only levels within atr * maxDistATR are considered
This produces dynamic “working levels” that adapt to price location and volatility.
2.4. Rejection pattern (retest + sweep)
After selecting the working level:
Support rejection (long setup)
Conditions:
Low touches/crosses support: low <= S
Close reclaims above: close > S
Bullish candle: close > open
Sufficient wick below the level (liquidity sweep): (S - low) >= atr * minWickATR
This aims to capture a stop sweep below support followed by immediate recovery.
Resistance rejection (short setup)
Symmetric conditions:
High touches/crosses resistance: high >= R
Close rejects back below: close < R
Bearish candle: close < open
Sufficient wick above the level: (high - R) >= atr * minWickATR
2.5. Optional filters
Final signals are the rejection pattern AND enabled filters:
1.- Volume filter
High volume is defined as: volume > SMA(volume, 20) * volMult
When useVolFilter = true, setups require relatively elevated participation
2.- VWAP-like bias filter
A VWAP-like series is computed over vwapLength (typical price weighted by volume)
When useVWAPFilter = true:
- Longs only if close > vwap
- Shorts only if close < vwap
3.- EMA trend filter
Uptrend if EMA(fast) > EMA(slow)
When useTrendFilter = true:
- Longs only in uptrend
- Shorts only in downtrend
2.6. Backtest time window (time filter)
To keep testing focused and reduce long-history noise:
useMaxLookbackDays enables the filter
maxLookbackDays defines how many days back from timenow entries are allowed
Entries are permitted only when time >= startTime.
3. Entry rules and position control
3.1. Entries
strategy.entry('Long', strategy.long) when longSetup and no long position is open
strategy.entry('Short', strategy.short) when shortSetup and no short position is open
No pyramiding is allowed (pyramiding = 0). Position gating is handled by:
Long allowed if strategy.position_size <= 0
Short allowed if strategy.position_size >= 0
4. Risk management: TP/SL and trailing (with plotted lines)
4.1. Detecting entry/exit events
Events are identified via changes in strategy.position_size:
LongEntry: transition into a long
shortEntry: transition into a short
flatExit: transition back to flat
This drives per-trade line creation, updates, and cleanup of state variables.
4.2. Static TP/SL
On entry, entryPrice := strategy.position_avg_price is stored.
Percent mode (usePercent = true)
Long:
staticSL = entryPrice*(1 - slPerc/100)
staticTP = entryPrice*(1 + tpPerc/100)
Short:
staticSL = entryPrice*(1 + slPerc/100)
staticTP = entryPrice*(1 - tpPerc/100)
ATR mode (usePercent = false)
Long:
staticSL = entryPrice - atrAtEntry*slATR
staticTP = entryPrice + atrAtEntry*tpATR
Short:
staticSL = entryPrice + atrAtEntry*slATR
staticTP = entryPrice - atrAtEntry*tpATR
4.3. Trailing stop (custom)
While a position is open, the script tracks the most favorable excursion:
Long: hhSinceEntry = highest high since entry
Short: llSinceEntry = lowest low since entry
A trailing candidate is computed:
Percent trailing (useTrailPercent = true)
Long: trailCandidate = hhSinceEntry*(1 - trailPerc/100)
Short: trailCandidate = llSinceEntry*(1 + trailPerc/100)
ATR trailing (useTrailPercent = false)
Long: trailCandidate = hhSinceEntry - atr*trailATR
Short: trailCandidate = llSinceEntry + atr*trailATR
Then the effective stop is selected:
Long: slUsed = max(staticSL, trailCandidate) when useTrail is enabled
Short: slUsed = min(staticSL, trailCandidate) when useTrail is enabled
If useTrail is disabled, slUsed remains the static stop.
Take profit remains static:
tpUsed = staticTP
Exit orders are issued via:
strategy.exit(..., stop=slUsed, limit=tpUsed)
4.4. Per-trade TP/SL lines
On each entry, two lines are created (SL and TP) via f_createLines().
During the trade, the SL line updates when trailing moves the stop; TP remains fixed.
On exit (flatExit), both lines are finalized on the exit bar and left on the chart as historical references.
This makes it straightforward to visually audit each trade: entry context, intended TP, and trailing evolution until exit.
5. Visualization and debugging
BUY/SELL labels with configurable size (xsize)
Debug mode (showDebug) plots the chosen working support/resistance level each bar
Stored pivot levels are drawn using reusable line slots, projected a fixed 20 bars to the right to keep the chart readable and efficient
6. Parameter guidance and practical notes
pivotLookback / rightBars: controls pivot significance vs responsiveness. Lower rightBars confirms pivots earlier but can increase noise.
maxDistATR: too low may reject valid levels; too high may select distant, less relevant levels.
minWickATR: key quality gate for “real” sweeps. Higher values reduce frequency but often improve signal quality.
Filters:
Volume filter tends to help in ranges and active sessions.
VWAP bias is useful intraday to align trades with session positioning.
EMA trend filter is helpful in directional markets but may remove good mean-reversion setups.
Percent TP/SL: provides consistent behavior across assets with variable volatility, but is less adaptive to sudden regime shifts.
Percent trailing: can capture extensions well; calibrate trailPerc per asset/timeframe (too tight = premature exits).
7. Known limitations
Pivot-derived levels are a heuristic; in strong trends, valid retests may be limited.
The time filter uses timenow; behavior may vary depending on historical context and how the platform evaluates “current time.”
TP/SL and trailing are computed from bar OHLC; in live trading, intrabar sequencing and fills may differ from bar-close simulation.
Indicateurs et stratégies
Wedge Pattern [Kodexius]Wedge Pattern is a chart-overlay indicator designed to detect and manage classic Rising Wedge (bearish) and Falling Wedge (bullish) structures using strict, rules-based validation. The script focuses on producing clean, tradable wedge prints by building both boundaries from confirmed pivot swings, enforcing a mandatory “no closes outside the wedge” condition during formation, and requiring the wedge apex to be projected into the future to avoid premature or distorted patterns.
This implementation is built for practical execution charts. It continuously updates the active wedge boundaries in real time, clearly labels the pattern type, and reacts decisively when price confirms a valid breakout. When enabled, it also projects a measured-move target derived from the wedge geometry, so the trader can quickly evaluate reward potential without manual projection.
The detection logic is intentionally conservative. Rather than printing every possible converging structure, it aims to identify wedges that respect structural integrity: multiple touches on each boundary, controlled price action inside the converging range, and a valid convergence point (apex) ahead of the current bar. The result is a wedge tool that prioritizes quality, readability, and consistent behavior across symbols and timeframes.
🔹 Features
🔸 Rising and Falling Wedge Detection (Trendline Based)
The indicator detects two wedge types by constructing an upper trendline from pivot highs and a lower trendline from pivot lows:
Rising Wedge (Bearish): both lines slope upward, and the lower line rises faster than the upper line, creating a tightening upward channel that typically resolves with a downside break.
Falling Wedge (Bullish): both lines slope downward, and the upper line falls faster than the lower line, producing a tightening downward channel that typically resolves with an upside break.
This slope relationship is the core wedge classifier. It ensures the script is not just drawing random converging lines, but explicitly requires the characteristic “compression” geometry that defines wedges.
🔸 Pivot-Confirmed Structure with User Control
Wedges are built from confirmed pivots using:
Pivot Left and Pivot Right inputs to control how “strict” a pivot must be.
Min. Touches per Line to enforce multiple confirmations on each boundary.
Standard technical analysis commonly requires at least three touches to validate a trendline. This script supports that workflow by requiring a minimum number of pivot points before a wedge is eligible for drawing.
🔸 Mandatory Integrity Rule: No Closes Outside the Boundaries
A key quality filter is applied before a wedge can be accepted:
During formation, no candle close is allowed outside the upper or lower boundary.
If any close is detected above the upper line or below the lower line (with tick tolerance), the candidate wedge is rejected. This prevents patterns that already “broke” before they were formally detected and reduces false positives caused by messy price action.
🔸 Apex Validation to Avoid Distorted Prints
The wedge apex (the projected intersection point of the two trendlines) must be in the future. This avoids degenerate cases where lines intersect behind current price, which often indicates the structure is not a valid wedge or is already past its useful phase.
🔸 Live Updating Boundaries for Active Patterns
Once a wedge becomes active, its upper and lower lines are extended forward bar by bar. The script recalculates the boundary price at the current bar index using the stored slope, then updates the line endpoints so the wedge remains visually accurate as time advances.
🔸 Breakout Engine with Directional Confirmation
The script differentiates between:
Correct breakout: the wedge breaks in the expected direction.
Rising wedge breaks downward (close below the lower boundary).
Falling wedge breaks upward (close above the upper boundary).
When this happens, the wedge is marked as broken and labeled as BREAKOUT on the chart.
🔸 Invalidation and Failure Handling
If price violates the wedge in the wrong direction, or if the wedge collapses into an impossible structure (upper boundary falls below or equals the lower boundary), the wedge is flagged as FAILED. This keeps signals honest and prevents lingering drawings that no longer represent a valid pattern.
🔸 Optional Target Projection (Measured Move)
When Show Target Projection is enabled, the script plots a dashed target line and a target label after a valid breakout. The target is computed as a measured move using the wedge height, projected from the breakout boundary in the breakout direction. This provides an immediate objective reference for potential continuation.
🔸 Clean Object Management and Chart Readability
To maintain clarity, the script manages the “active” wedge per type:
If a new wedge is detected while an older one is still active and not broken or failed, the old drawings are removed and replaced with the newer valid pattern.
This prevents chart clutter and keeps the display focused on the most relevant wedge structures.
🔹 Calculations
1) Pivot Collection
The script uses pivot functions to confirm swing points:
float ph = ta.pivothigh(high, INPUT_PIVOT_LEFT, INPUT_PIVOT_RIGHT)
float pl = ta.pivotlow(low, INPUT_PIVOT_LEFT, INPUT_PIVOT_RIGHT)
if not na(ph)
pivot_highs.push(Coordinate.new(bar_index - INPUT_PIVOT_RIGHT, ph))
if not na(pl)
pivot_lows.push(Coordinate.new(bar_index - INPUT_PIVOT_RIGHT, pl))
Each pivot is stored as a Coordinate containing:
index: the bar index where the pivot is confirmed
price: the pivot high or pivot low value
The arrays are capped (for example, last 20 pivots) to control memory and keep selection relevant.
2) Trendline Construction and Slope
A wedge candidate uses the earliest and latest required pivot points for each line. For each boundary, slope is computed as:
method calc_slope(Trendline this) =>
(this.end.price - this.start.price) / (this.end.index - this.start.index)
With slope known, the trendline value at any bar index is:
method get_price_at(Trendline this, int bar_idx) =>
this.start.price + this.slope * (bar_idx - this.start.index)
This approach allows the script to update wedge boundaries consistently without re-fitting lines on every bar.
3) Wedge Type Classification (Geometry Rules)
After both slopes are calculated, wedge type is determined by slope direction and relative steepness:
Rising wedge requires both slopes positive and lower slope greater than upper slope.
Falling wedge requires both slopes negative and upper slope more negative than lower slope (upper line falls faster).
In code logic:
if tl_up.slope > 0 and tl_lo.slope > 0 and tl_lo.slope > tl_up.slope
w_type := 1 // Rising
if tl_up.slope < 0 and tl_lo.slope < 0 and tl_up.slope < tl_lo.slope
w_type := 2 // Falling
This enforces converging boundaries and avoids simple parallel channels.
4) Apex Projection (Trendline Intersection)
The apex is the projected intersection x-coordinate of the two trendlines:
method get_apex_index(Wedge this) =>
float m1 = this.upper.slope
float m2 = this.lower.slope
float y1 = this.upper.start.price
float y2 = this.lower.start.price
int x1 = this.upper.start.index
int x2 = this.lower.start.index
float apex_x = (y2 - y1 + m1 * x1 - m2 * x2) / (m1 - m2)
math.round(apex_x)
Validation requires:
apex_idx > bar_index (apex must be in the future)
This prevents late or structurally invalid wedges from being activated.
5) Mandatory “No Close Outside” Validation
Before activation, the script verifies the pattern has not been violated by candle closes:
method check_violation(Wedge this, int from_idx, int to_idx) =>
bool violated = false
for i = from_idx to to_idx
float up_p = this.upper.get_price_at(i)
float lo_p = this.lower.get_price_at(i)
float c_p = close
if c_p > up_p + syminfo.mintick or c_p < lo_p - syminfo.mintick
violated := true
break
violated
Interpretation:
For every bar from wedge start to current bar, the close must remain between the projected upper and lower boundary prices.
A tick tolerance (syminfo.mintick) is used to reduce micro false violations.
6) Live Update and Breakout Detection
Once active, lines are extended to the current bar and boundary prices are computed:
float u_p = w.upper.get_price_at(bar_index)
float l_p = w.lower.get_price_at(bar_index)
bool b_up = close > u_p
bool b_dn = close < l_p
Correct breakout conditions:
Rising wedge breakout: close below lower boundary.
Falling wedge breakout: close above upper boundary.
if (w.is_rising and b_dn) or (not w.is_rising and b_up)
w.is_broken := true
Invalidation rules include:
wrong-direction break
boundary crossover (upper <= lower)
7) Target Projection (Measured Move)
If target display is enabled, the script calculates wedge height and projects a target from the breakout side:
float m = math.abs(w.upper.start.price - w.lower.get_price_at(w.upper.start.index))
float t = w.is_rising ? l_p - m : u_p + m
Interpretation:
m represents the wedge height near the start of the formation.
t is the target price, projected in the breakout direction.
Rising wedge: target below the lower boundary.
Falling wedge: target above the upper boundary.
A dashed target line and label are then placed forward in time for readability.
PA SystemPA System - Price Action Trading System
价格行为交易系统
📊 概述 / Overview
PA System is a comprehensive price action trading indicator that combines Smart Money Concepts (SMC), market structure analysis, and multi-timeframe confirmation to identify high-probability trade setups. Designed for both manual traders and algorithmic trading systems.
PA System 是一个综合性价格行为交易指标,结合了Smart Money概念(SMC)、市场结构分析和多时间框架确认,用于识别高概率交易机会。适用于手动交易者和算法交易系统。
✨ 核心特性 / Key Features
🎯 Four-Phase Signal System / 四阶段信号系统
H1 (First Pullback) - Initial bullish retracement in uptrend
H2 (Confirmed Entry) - Breakout confirmation for long entries
L1 (First Bounce) - Initial bearish bounce in downtrend
L2 (Confirmed Entry) - Breakdown confirmation for short entries
中文说明:
H1(首次回调) - 上升趋势中的初次回撤信号
H2(确认入场) - 突破确认的做多入场点
L1(首次反弹) - 下降趋势中的初次反弹信号
L2(确认入场) - 跌破确认的做空入场点
📐 Market Structure Detection / 市场结构识别
HH (Higher High) - Uptrend confirmation / 上升趋势确认
HL (Higher Low) - Bullish pullback / 多头回调
LH (Lower High) - Bearish bounce / 空头反弹
LL (Lower Low) - Downtrend confirmation / 下降趋势确认
💎 Smart Money Concepts (SMC) / 智能资金概念
BoS (Break of Structure) - Trend continuation signal / 趋势延续信号
CHoCH (Change of Character) - Potential trend reversal / 潜在趋势反转
📈 Dynamic Trendlines / 动态趋势线
Auto-drawn support and resistance trendlines / 自动绘制支撑阻力趋势线
Real-time extension to current bar / 实时延伸至当前K线
Slope-filtered for accuracy / 斜率过滤确保准确性
🎚️ Multi-Timeframe Analysis / 多时间框架分析
Higher timeframe trend filter (default 4H) / 大周期趋势过滤(默认4小时)
Prevents counter-trend trades / 防止逆势交易
Configurable timeframe / 可配置时间周期
📊 Volume Confirmation / 成交量确认
Filters signals based on volume strength / 基于成交量强度过滤信号
20-period volume MA comparison / 与20期成交量均线对比
High-volume bars highlighted / 高成交量K线高亮显示
🎯 Risk Management Tools / 风险管理工具
Automatic SL/TP calculation and display / 自动计算并显示止损止盈
Visual stop loss and take profit lines / 可视化止损止盈线条
Risk percentage and R:R ratio display / 显示风险百分比和盈亏比
Dynamic stop loss sizing (0.3% - 1.5%) / 动态止损范围(0.3% - 1.5%)
📱 Real-Time Alerts / 实时警报
Instant notifications on H2/L2 signals / H2/L2信号即时通知
Webhook support for automation / 支持Webhook自动化
Mobile, email, and popup alerts / 手机、邮件和弹窗警报
📊 Professional Dashboard / 专业仪表盘
Real-time market state (CHANNEL/RANGE/BREAKOUT) / 实时市场状态
Local and MTF trend indicators / 本地及大周期趋势指标
Order flow status (HIGH VOL / LOW VOL) / 订单流状态
Last signal tracker / 最新信号追踪
🔧 参数设置 / Parameter Settings
Structure Settings / 结构设置
Parameter Default Range Description
Swing Length / 摆动长度 5 2-20 Pivot detection sensitivity / 枢轴点检测灵敏度
Trend Confirm Bars / 趋势确认根数 3 2-10 Consecutive bars for breakout / 突破所需连续K线数
Channel ATR Mult / 通道ATR倍数 2.0 1.0-5.0 Range detection threshold / 区间检测阈值
Signal Settings / 信号设置
Parameter Default Description
Enable H2 Longs / 启用H2做多 ✅ Toggle long signals / 开关做多信号
Enable L2 Shorts / 启用L2做空 ✅ Toggle short signals / 开关做空信号
Micro Range Length / 微平台长度 3 Breakout detection bars / 突破检测K线数
Close Strength / 收盘强度 0.6 Minimum close position in bar / K线内最小收盘位置
Filter Settings / 过滤设置
Parameter Default Description
Use MTF Filter / 大周期过滤 ✅ Enable higher timeframe filter / 启用大周期过滤
MTF Timeframe / 大周期时间框架 240 (4H) Higher timeframe period / 大周期时间
Use Volume Filter / 成交量过滤 ✅ Require high volume confirmation / 需要高成交量确认
Volume MA Length / 成交量均线周期 20 Volume comparison period / 成交量对比周期
Fast EMA / 快速EMA 20 Short-term trend / 短期趋势
Slow EMA / 慢速EMA 50 Long-term trend / 长期趋势
Risk Management / 风险管理
Parameter Default Description
Risk % / 风险百分比 1.0% Risk per trade / 每笔交易风险
R:R Ratio / 盈亏比 2.0 Reward to risk ratio / 盈亏比率
Max SL ATR / 最大止损ATR 3.0 Maximum stop loss in ATR / 最大止损ATR倍数
Min SL % / 最小止损百分比 0.3% Minimum stop loss percentage / 最小止损百分比
Max SL % / 最大止损百分比 1.5% Maximum stop loss percentage / 最大止损百分比
📖 使用方法 / How to Use
1. 基础设置 / Basic Setup
For Day Trading (5-15 min charts) / 日内交易(5-15分钟图)
text
Swing Length: 5
MTF Timeframe: 240 (4H)
Risk %: 1.0%
R:R: 2.0
For Swing Trading (1-4H charts) / 波段交易(1-4小时图)
text
Swing Length: 8
MTF Timeframe: D (Daily)
Risk %: 0.5%
R:R: 3.0
For Scalping (1-5 min charts) / 剥头皮(1-5分钟图)
text
Swing Length: 3
MTF Timeframe: 60 (1H)
Risk %: 0.5%
R:R: 1.5
Use Volume Filter: ✅
2. 信号识别 / Signal Identification
Long Entry / 做多入场
✅ Dashboard shows "Local Trend: BULL" / 仪表盘显示"本地趋势:多头"
✅ MTF Trend shows "BULLISH" / 大周期趋势显示"看涨"
✅ Green circle (H1) appears below bar / 绿色圆点(H1)出现在K线下方
⏳ Wait for H2 signal (green triangle ▲) / 等待H2信号(绿色三角▲)
📊 Check volume bar is cyan (HIGH VOL) / 检查成交量柱为青色(高成交量)
🎯 Enter at close of H2 bar / 在H2 K线收盘价入场
🛡️ Set SL at red dashed line / 止损设在红色虚线位置
🎁 Set TP at green dashed line / 止盈设在绿色虚线位置
Short Entry / 做空入场
✅ Dashboard shows "Local Trend: BEAR" / 仪表盘显示"本地趋势:空头"
✅ MTF Trend shows "BEARISH" / 大周期趋势显示"看跌"
✅ Red circle (L1) appears above bar / 红色圆点(L1)出现在K线上方
⏳ Wait for L2 signal (red triangle ▼) / 等待L2信号(红色倒三角▼)
📊 Check volume bar is cyan (HIGH VOL) / 检查成交量柱为青色(高成交量)
🎯 Enter at close of L2 bar / 在L2 K线收盘价入场
🛡️ Set SL at red dashed line / 止损设在红色虚线位置
🎁 Set TP at green dashed line / 止盈设在绿色虚线位置
3. 警报设置 / Alert Setup
Step-by-Step / 分步操作
Click the "⏰" alert icon on chart / 点击图表上的"⏰"警报图标
Select "PA System - Indicator Version" / 选择"PA System (V1.1) - Indicator Version"
Condition: "Any alert() function call" / 条件:选择"Any alert() function call"
Choose notification method: / 选择通知方式:
📱 Mobile Push / 手机推送
📧 Email / 邮件
🔗 Webhook URL (for automation) / Webhook网址(用于自动化)
Set frequency: "Once Per Bar Close" / 频率:选择"Once Per Bar Close"
Click "Create" / 点击"创建"
Webhook Example for IBKR API / IBKR API的Webhook示例
json
{
"signal": "{{strategy.order.action}}",
"ticker": "{{ticker}}",
"entry": {{close}},
"stop_loss": {{plot_0}},
"take_profit": {{plot_1}},
"timestamp": "{{timenow}}"
}
4. 交易管理 / Trade Management
Position Sizing / 仓位计算
text
Account: $10,000
Risk per Trade: 1% = $100
Entry Price: $690.45
Stop Loss: $687.38
Risk per Share: $690.45 - $687.38 = $3.07
Position Size: $100 / $3.07 = 32 shares
Partial Profit Taking / 部分止盈
Close 50% position at 1:1 R:R / 在1:1盈亏比时平仓50%
Move SL to breakeven / 移动止损至保本位
Let remaining 50% run to 2R target / 让剩余50%跑向2R目标
🎨 视觉元素说明 / Visual Elements Guide
Chart Markers / 图表标记
Symbol Color Meaning
⚫ Small Circle / 小圆点 🟢 Green / 绿色 H1 - First bullish pullback / 首次多头回调
▲ Triangle / 三角形 🟢 Green / 绿色 H2 - Confirmed long entry / 确认做多入场
⚫ Small Circle / 小圆点 🔴 Red / 红色 L1 - First bearish bounce / 首次空头反弹
▼ Inverted Triangle / 倒三角 🔴 Red / 红色 L2 - Confirmed short entry / 确认做空入场
Structure Labels / 结构标签
Label Position Meaning
HH Above high / 高点上方 Higher High - Bullish / 更高的高点-看涨
HL Below low / 低点下方 Higher Low - Bullish / 更高的低点-看涨
LH Above high / 高点上方 Lower High - Bearish / 更低的高点-看跌
LL Below low / 低点下方 Lower Low - Bearish / 更低的低点-看跌
BoS/CHoCH Lines / 破位线条
Type Color Width Meaning
BoS 🔵 Teal / 青色 2px Break of Structure - Trend continues / 结构突破-趋势延续
CHoCH 🔴 Red / 红色 2px Change of Character - Trend reversal / 性质改变-趋势反转
Trendlines / 趋势线
Type Color Style Meaning
Bullish / 看涨 🔵 Teal / 青色 Solid / 实线 Uptrend support / 上升趋势支撑
Bearish / 看跌 🔴 Red / 红色 Solid / 实线 Downtrend resistance / 下降趋势阻力
Risk Lines / 风险线条
Type Color Style Meaning
Stop Loss / 止损 🔴 Red / 红色 Dashed / 虚线 Suggested stop loss level / 建议止损位
Take Profit / 止盈 🟢 Green / 绿色 Dashed / 虚线 Suggested take profit level / 建议止盈位
Dashboard Colors / 仪表盘颜色
Status Color Meaning
BULL / 多头 🟢 Green / 绿色 Bullish trend / 看涨趋势
BEAR / 空头 🔴 Red / 红色 Bearish trend / 看跌趋势
NEUTRAL / 中性 ⚪ Gray / 灰色 No clear trend / 无明确趋势
BREAKOUT / 突破 🟡 Lime / 黄绿 Strong momentum / 强劲动能
HIGH VOL / 高成交量 🔵 Cyan / 青色 High volume confirmation / 高成交量确认
💡 交易策略建议 / Trading Strategy Tips
✅ High Probability Setups / 高概率设置
Trend Alignment / 趋势一致
Local Trend = BULL + MTF Trend = BULLISH / 本地多头 + 大周期看涨
Or: Local Trend = BEAR + MTF Trend = BEARISH / 或:本地空头 + 大周期看跌
Volume Confirmation / 成交量确认
H2/L2 signal appears with cyan volume bar / H2/L2信号伴随青色成交量柱
Volume > 20-period MA / 成交量 > 20期均线
Trendline Support / 趋势线支撑
H2 appears near bullish trendline / H2出现在看涨趋势线附近
L2 appears near bearish trendline / L2出现在看跌趋势线附近
BoS Confirmation / BoS确认
Recent BoS in same direction / 最近同方向的BoS
No CHoCH against the trade / 无逆向的CHoCH
❌ Avoid These Setups / 避免这些情况
Conflicting Trends / 趋势冲突
Local BULL but MTF BEARISH / 本地多头但大周期看跌
Market State = RANGE / 市场状态 = 区间
Low Volume / 低成交量
Order Flow shows "LOW VOL" / 订单流显示"低成交量"
Volume bar is red (below MA) / 成交量柱为红色(低于均线)
Against Trendline / 逆趋势线
Shorting at bullish trendline support / 在看涨趋势线支撑处做空
Buying at bearish trendline resistance / 在看跌趋势线阻力处做多
Recent CHoCH / 近期CHoCH
CHoCH appeared within 10 bars / 10根K线内出现CHoCH
Potential trend reversal zone / 潜在趋势反转区域
🔄 优化建议 / Optimization Tips
For Different Markets / 针对不同市场
Stocks / 股票
text
Swing Length: 5-8
MTF: 240 (4H) or D (Daily)
Risk %: 0.5-1.0%
Best on: SPY, QQQ, AAPL, TSLA
Forex / 外汇
text
Swing Length: 5
MTF: 240 (4H)
Risk %: 1.0-2.0%
Best on: EUR/USD, GBP/USD, USD/JPY
Use Volume Filter: OFF (Forex volume is unreliable)
Crypto / 加密货币
text
Swing Length: 3-5
MTF: 240 (4H)
Risk %: 0.5-1.0% (high volatility)
Max SL %: 2.0-3.0%
Best on: BTC, ETH, SOL
Futures / 期货
text
Swing Length: 5
MTF: 240 (4H)
Risk %: 1.0-1.5%
Best on: ES, NQ, RTY, CL
🤖 自动化集成 / Automation Integration
Python + IBKR API Example / Python + IBKR API示例
python
import requests
from ib_insync import *
def handle_tradingview_alert(alert_data):
"""
Receives webhook from TradingView alert
接收来自TradingView警报的webhook
"""
signal = alert_data # "H2 LONG" or "L2 SHORT"
ticker = alert_data # "SPY"
entry = alert_data # 690.45
stop_loss = alert_data # 687.38
take_profit = alert_data # 696.59
# Connect to IBKR
ib = IB()
ib.connect('127.0.0.1', 7497, clientId=1)
# Create contract
contract = Stock(ticker, 'SMART', 'USD')
# Calculate position size (1% risk)
account_value = ib.accountValues() .value
risk_amount = float(account_value) * 0.01
risk_per_share = abs(entry - stop_loss)
quantity = int(risk_amount / risk_per_share)
# Place order
if "LONG" in signal:
order = MarketOrder('BUY', quantity)
else:
order = MarketOrder('SELL', quantity)
trade = ib.placeOrder(contract, order)
# Set stop loss and take profit
ib.placeOrder(contract, StopOrder('SELL', quantity, stop_loss))
ib.placeOrder(contract, LimitOrder('SELL', quantity, take_profit))
ib.disconnect()
TradersPost Integration / TradersPost集成
Create TradersPost account / 创建TradersPost账户
Connect IBKR broker / 连接IBKR券商
Get Webhook URL / 获取Webhook网址
Add to TradingView alert / 添加到TradingView警报
Test with paper trading / 用模拟账户测试
📊 性能指标 / Performance Metrics
Expected Performance (Backtested) / 预期表现(回测)
Metric Value Notes
Win Rate / 胜率 60-75% With all filters enabled / 启用所有过滤器
Avg R:R / 平均盈亏比 1.8-2.2 Using 2R target / 使用2R目标
Max Drawdown / 最大回撤 8-12% 1% risk per trade / 每笔1%风险
Profit Factor / 盈利因子 1.8-2.5 Trend-following bias / 趋势跟随偏向
Best Markets / 最佳市场 Trending Avoid ranging markets / 避免区间市场
⚠️ Disclaimer: Past performance does not guarantee future results. Always test in paper trading first.
⚠️ 免责声明:历史表现不保证未来结果。请先在模拟账户测试。
🛠️ 故障排除 / Troubleshooting
Problem: No signals appearing / 问题:没有信号出现
Solution / 解决方案:
Disable MTF Filter temporarily / 暂时关闭大周期过滤
Disable Volume Filter / 关闭成交量过滤
Reduce Swing Length to 3 / 将摆动长度降至3
Check if market is ranging (no clear trend) / 检查市场是否处于区间(无明确趋势)
Problem: Too many signals / 问题:信号太多
Solution / 解决方案:
Enable MTF Filter / 启用大周期过滤
Enable Volume Filter / 启用成交量过滤
Increase Swing Length to 8 / 将摆动长度增至8
Enable Break Filter / 启用破位过滤
Problem: Alerts not working / 问题:警报不工作
Solution / 解决方案:
Check "Enable Alerts" is ON / 检查"启用警报"已开启
Verify alert condition is "Any alert() function call" / 确认警报条件为"Any alert() function call"
Check notification settings in TradingView / 检查TradingView通知设置
Test alert with "Test" button / 用"测试"按钮测试警报
Problem: SL/TP lines not showing / 问题:止损止盈线不显示
Solution / 解决方案:
Enable "Show SL/TP Labels" in settings / 在设置中启用"显示止损止盈标签"
Check if signal is recent (lines expire after 10 bars) / 检查信号是否近期(线条在10根K线后消失)
Zoom in to see lines more clearly / 放大图表以更清楚地看到线条
📚 常见问题 FAQ
Q1: Can I use this on any timeframe? / 可以在任何时间框架使用吗?
A: Yes, but works best on 5min-4H charts. Recommended: 15min (day trading), 1H (swing trading).
可以,但在5分钟-4小时图表效果最佳。推荐:15分钟(日内交易),1小时(波段交易)。
Q2: Do I need to enable all filters? / 需要启用所有过滤器吗?
A: No. Start with all enabled, then disable based on your risk tolerance. MTF filter is highly recommended.
不需要。从全部启用开始,然后根据风险承受能力禁用。强烈推荐MTF过滤器。
Q3: Can I automate this with IBKR? / 可以与IBKR自动化吗?
A: Yes! Use TradingView alerts + Webhook + Python script + IBKR API. See automation example above.
可以!使用TradingView警报 + Webhook + Python脚本 + IBKR API。参见上方自动化示例。
Q4: What's the difference between Strategy and Indicator version? / 策略版和指标版有什么区别?
A: Strategy = backtesting only. Indicator = real-time alerts + automation. Use both: backtest with strategy, trade with indicator.
策略版=仅回测。指标版=实时警报+自动化。两者结合使用:用策略版回测,用指标版交易。
Q5: Why does H2 appear but no trade? / 为什么出现H2但没有交易?
A: This is an indicator, not a strategy. You need to manually place orders or use automation via alerts.
这是指标,不是策略。你需要手动下单或通过警报使用自动化。
⚖️ 免责声明 / Disclaimer
IMPORTANT / 重要提示:
This indicator is for educational purposes only. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always:
本指标仅供教育目的。交易涉及重大亏损风险。历史表现不保证未来结果。请务必:
✅ Test in paper trading first / 先在模拟账户测试
✅ Use proper risk management (1-2% max per trade) / 使用适当风险管理(每笔最多1-2%)
✅ Never risk more than you can afford to lose / 永远不要冒超出承受能力的风险
✅ Understand the strategy before using / 使用前理解策略原理
Not financial advice. Trade at your own risk.
非投资建议。交易风险自负。
MoBo Bands - Momentum Breakout IndicatorDESCRIPTION
MoBo Bands (Momentum Breakout Bands) is a volatility-based breakout detection indicator that helps traders identify potential momentum shifts in the market. The indicator uses dynamic bands calculated from standard deviation to signal when price breaks above or below established ranges, indicating potential bullish or bearish momentum changes.
═════════════════════════════════════════════════════════════
KEY FEATURES
═════════════════════════════════════════════════════════════
- Dynamic upper and lower bands based on standard deviation
- Color-coded bands that change based on breakout direction (green for bullish, red for bearish)
- Visual breakout arrows marking entry points above/below bands
- Optional colored fill zones between bands showing current momentum state
- Customizable displacement for band projection
- Built-in alert system for breakout and breakdown signals
═════════════════════════════════════════════════════════════
HOW IT WORKS
═════════════════════════════════════════════════════════════
The indicator calculates a middle line using a Simple Moving Average (SMA) with upper and lower bands positioned using standard deviation multipliers. When price closes above the upper band, a bullish breakout (green) is signaled. When price closes below the lower band, a bearish breakdown (red) is signaled. The bands and fill zones remain colored until the opposite signal occurs, providing clear visual confirmation of the current momentum state.
═════════════════════════════════════════════════════════════
CUSTOMIZABLE INPUTS
═════════════════════════════════════════════════════════════
CALCULATION PARAMETERS:
- Price Source - Select which price data to use (default: close)
- Length - Period for SMA and standard deviation calculation (default: 10)
- Num Dev Up - Standard deviation multiplier for upper band (default: 0.8)
- Num Dev Down - Standard deviation multiplier for lower band (default: -0.8)
- Displace - Shift bands forward for projection analysis (default: 0)
DISPLAY OPTIONS:
- Colored Mobo - Enable/disable color-coded bands
- Colored Fill - Enable/disable fill zones between bands
- Break Arrows - Show/hide breakout and breakdown arrows
ALERT OPTIONS:
- Show Alerts - Enable/disable alert conditions
═════════════════════════════════════════════════════════════
USAGE GUIDE
═════════════════════════════════════════════════════════════
Watch for price to close outside the bands as potential breakout signals:
BULLISH BREAKOUT: Green arrow appears below the lower band when price closes above the upper band, indicating upward momentum shift.
BEARISH BREAKDOWN: Red arrow appears above the upper band when price closes below the lower band, indicating downward momentum shift.
The bands also serve as dynamic support and resistance levels. When bands are green, momentum is bullish. When bands are red, momentum is bearish.
═════════════════════════════════════════════════════════════
BEST PRACTICES
═════════════════════════════════════════════════════════════
- This indicator works well on liquid futures contracts (MNQ, MES, MYM, MGC, MCL) and major
currency pairs across multiple timeframes
- Lower deviation values (0.5-1.0) produce more frequent signals suitable for scalping
- Higher deviation values (1.5-2.5) filter for stronger breakouts ideal for swing trading
- Combine with volume indicators for additional confirmation
- Use with momentum oscillators to validate breakout strength
- Best results in trending market conditions
- Consider the overall market context and trend direction
════════════════════════════════════════════════════════════
ALERT CONFIGURATION
═════════════════════════════════════════════════════════════
Configure custom alerts for automated notifications:
- "MoBo BreakOUT" - Triggers on bullish breakout signals
- "MoBo BreakDOWN" - Triggers on bearish breakdown signals
Set alerts to "Once Per Bar Close" for confirmed signals and avoid false triggers during bar development.
═════════════════════════════════════════════════════════════
IDEAL FOR
═════════════════════════════════════════════════════════════
- Day traders and scalpers on futures markets
- Swing traders looking for momentum shifts
- Breakout trading strategies
- Trend following systems
- Works on stocks, forex, crypto, and commodities
- Effective across multiple timeframes (1min to daily)
═════════════════════════════════════════════════════════════
Perfect for traders seeking clear visual breakout signals with minimal lag. The color-coded system and arrow markers make it easy to identify momentum changes at a glance.
© 2024 NPR21 | Mozilla Public License 2.0
Open-source script
NPR21
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by
Auto Liquidity Sweep Trendlines with automation feature by V JhaThis is not an ordinary trendline, in fact high impact ones, passing through liquidity points of huge significance.
In setting of indicator you can choose to have multiple consecutive buys or sells for delayed entry. For automation you can deselect this option so that you get single buy or sell.
What is more, for Green and Red lines you can choose different bars. For instance if htf trend is bearish choose 14 bars for red, so you need to sell on rise therefore make 1 bar for green. Similar for opposite.
You will have an awe feeling for sure. Enjoy Trading.
Auto Liquidity Sweep Trendlines With BuySell alerts By V JhaThis automatic trendline system gives buy and sell alerts as well. But you must choose to buy at bottom and sell at top, or in tune with high time frame. This works perfect when used in alignment with HTF.
Points used to draw these trendlines are not ordinary wicks, rather they are liquidity points of huge importance. This trendline system removes any need for mannual tredline drawing.
SMC Ultra-Fast: ALL-IN & Auto-Signal [Fixed]How to Use the SMC Pro Indicator: ALL-IN & Dynamic S/R is designed to help you trade following the "Smart Money" quickly and accurately. The usage steps are as follows:
1. Reading Entry Signals
🔥 ALL-IN BUY/SELL: This is the most accurate signal, generated by a breakout of a key support level (Pivot) combined with unusually high trading volume (1.5 times higher) and confirmation from the EMA trend.
Fast Buy/Sell (Small Triangle): This is a supplementary signal when the EMA Fast line crosses the EMA Slow line. It's suitable for finding opportunities to "Follow the Trend" or add to positions when the trend strengthens.
2. Managing Targets (TP/SL/Entry)
When the ALL-IN signal appears, the system will immediately draw three lines to the right of the graph:
Gray line (ENTRY): The price point where you should open an order.
Blue line (TP): Profit target. Calculated using a Risk:Reward Ratio of 2.0 (adjustable).
Red line (SL): Stop-loss point calculated from the ATR value for safety.
3. Using Support and Resistance Boxes (Dynamic Zones)
Green box (Support): Zone with strong buying pressure. If the price tests this level and doesn't break below, there's a high chance of a rebound.
Red box (Resistance): Zone with accumulated selling pressure. If the price tests this level and fails to break through, there's a chance of a pullback.
Disappearance of boxes: When the price "breaks through" the bar, these boxes automatically disappear to indicate that the zone has been broken, and the system will immediately start looking for a new, stronger zone.
4. Auto-Reset System (Completion of Trade)
When the price hits the TP or SL line, the system will mark an "X" on the screen.
The old target line will be immediately deleted to clear the position, making the chart look clean and ready for a new ALL-IN signal.
💡 Additional Tip:
Candlestick color: Trade Buy when the candlestick is green, and trade Sell when the candlestick is red.
If the candlestick is orange, it means the market is sideways. It is recommended to wait for a clear ALL-IN signal before entering a trade.
SMI Trigger SystemSMI TRIGGER SYSTEM - DESCRIPTION
Overview
SMI Trigger System is a momentum oscillator that identifies trend changes and reversals using the Smoothed Stochastic Momentum Index (SMI). Features a color-changing line (green = bullish, red = bearish), cloud shading for momentum zones, and triangle markers that appear exactly when momentum flips.
What Makes It Unique:
Real-time color-changing momentum line
Cloud shading split at zero line
Triangle triggers at exact momentum flip points
Overbought/oversold limit lines
Built-in alerts for all key signals
Fully customizable appearance
Works on all timeframes
How to Use
THE DISPLAY
Green line/cloud: Bullish momentum
Red line/cloud: Bearish momentum
Above zero: Bulls in control
Below zero: Bears in control
Upper limit (+40): Overbought
Lower limit (-40): Oversold
SIGNALS
🟢 Green Triangle (▲) - Momentum flipping bullish. Buy signal, most powerful below zero.
🔴 Red Triangle (▼) - Momentum flipping bearish. Sell signal, most powerful above zero.
TRADING STRATEGIES
1. Trend Following
In uptrends: Only take green triangles, ignore red
In downtrends: Only take red triangles, ignore green
Use higher timeframe for trend, lower for entries
Example: Daily uptrend → trade green triangles on 1H chart
2. Limit Reversals
Red triangle at upper limit (+40) = strong reversal signal, go short
Green triangle at lower limit (-40) = strong reversal signal, go long
Wait for triangle AND price confirmation
Most reliable on 4H/Daily timeframes
3. Zero Line Trading
SMI crosses above zero → bullish bias, take green triangles
SMI crosses below zero → bearish bias, take red triangles
Zero acts as momentum baseline
4. Divergence Setups
Price higher high + SMI lower high = bearish divergence → take next red triangle
Price lower low + SMI higher low = bullish divergence → take next green triangle
Most powerful at overbought/oversold limits
ENTRIES & EXITS
Enter: On triangle appearance
Stop: Beyond recent opposite-color triangle
Target: Limit levels or opposite triangle
Add: Additional same-color triangles in strong trends
TIMEFRAME GUIDE
Scalping (1-5m): Lower %K to 3-4, take all trend-aligned triangles
Day trading (15-60m): Default settings (5/3), focus on limit reversals
Swing trading (4H-Daily): Higher %K to 7-10, trade only extreme readings
ADJUSTING SENSITIVITY
SMI %K Length (default: 5):
Lower (3-4) = More signals, faster - good for scalping
Higher (7-10) = Fewer signals, stronger - good for swing trading
SMI %D Length (default: 3):
Lower (1-2) = More responsive
Higher (5-7) = Smoother
ALERTS
Built-in alerts for:
Triangle appears (momentum flips)
SMI crosses zero (trend change)
SMI crosses limits (overbought/oversold)
Enable in settings, configure in TradingView alert dialog.
CUSTOMIZATION
Toggle cloud/triangles on/off
Adjust triangle size and positioning
Customize all colors
Triangle label cap prevents clutter
Key Settings
SMI %K Length (default: 5): Controls sensitivity and signal frequency
SMI %D Length (default: 3): Controls smoothing
SMI Limit (default: 40): Overbought/oversold threshold
Show SMI Cloud (default: ON): Cloud shading
Show SMI Flip Triangles (default: ON): Trigger markers
Triangle Size/Offset: Appearance customization
Enable Alerts (default: ON): Alert notifications
Key Features
✅ Color-changing momentum line
✅ Cloud shading for momentum zones
✅ Triangle triggers at exact flips
✅ Overbought/oversold limits
✅ Built-in alert system
✅ Fully customizable
✅ All timeframes
✅ Adjustable sensitivity
NPR21
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView.
Marubozu Detector**Marubozu Detector (v6)**
This indicator identifies **Marubozu candles** — powerful candlestick patterns indicating strong directional momentum with minimal or no shadows (wicks).
A **Bullish Marubozu** (green) shows buyers dominated the session: open ≈ low, close ≈ high.
A **Bearish Marubozu** (red) shows sellers in control: open ≈ high, close ≈ low.
Unlike strict detectors, this version allows customizable tolerance for tiny shadows, making it practical for real markets where perfect Marubozu are rare.
**Key Features**
- **Adjustable tolerance**: Max shadow % of candle range (default 5%).
- **Minimum body size**: Requires body ≥ % of range (default 90%) to filter small candles.
- **Clear labels**: "BULL MARU" below bullish, "BEAR MARU" above bearish.
- **Alerts**: Built-in conditions for Bullish/Bearish Marubozu on any timeframe.
- **Pine Script v6**: Fully compatible with the latest version for optimal performance.
**How to Use**
1. Add to chart via Indicators > Community Scripts.
2. Customize inputs: Lower tolerance for stricter detection, higher for more signals.
3. Combine with trend tools (e.g., EMA, support/resistance) for better entries/exits.
- Bullish Marubozu in uptrend → potential continuation long.
- Bearish Marubozu in downtrend → potential short.
**Why Marubozu?**
These candles signal strong conviction and often precede continuations or reversals. This detector helps spot them quickly without manual scanning.
Open-source under Mozilla Public License 2.0. Feel free to modify!
If you find it useful, please like/boost/favorite! Feedback welcome.
© toppermost
VWAP Stdev Bands optional buy/sell signals by MaxNStandard Deviation Bands with Optional Buy/Sell Signals
This indicator is fully customizable, allowing buy and sell signals to be generated on any standard deviation band from 1 through 5.
For practical use, signals are typically enabled only on deviation bands 4 and 5. This approach helps reduce market noise and focuses signals on extreme price deviations.
Users may wish to adjust the colour of the buy and sell markers to improve visibility, depending on their chart theme.
An adjustable “dead zone” is also included to prevent false signals during VWAP session resets. This feature suppresses signal generation during specified times, which in this configuration is set between 9:00 PM GMT and 1:00 AM GMT, helping avoid premature or delayed signals around the trading day transition.
BK AK-King Quazi🦁👑 BK AK–KING QUAZI — MEASURED HAND, CLEAN BLADE. 👑🦁
This is Quasimodo turned into a permissioned process: PROTO → BOS proof → RETEST → CONFIRM → resolve or invalidate — with mapped levels so you execute clean or you stand down.
All glory to the Almighty — the true source of wisdom, restraint, and endurance.
AK is honor — my mentor’s standard: clarity, patience, no shortcuts, no gambling.
🧠 What It Does
King Quazi detects and manages Quasimodo (QM) structures and outputs an execution-ready battlefield:
PROTO detection: identifies developing QM structure early (awareness, not a trade)
BOS validation: requires a displacement break (ATR-based) so you don’t trade fake breaks
RETEST logic: watches the key QM level for the “return to the scene”
CONFIRM stage: only triggers when structure + proof + timing align
INVALIDATION + cleanup: marks failure clearly and manages drawings to keep charts readable
Projections + targets: maps QM / BOS / INV, plus optional T1/T2 so planning is standardized
MTF War Room: reads multiple timeframes and shows who’s in PROTO / CONFIRM / NOW so you stop trading against the higher court
This is not a pattern sticker. It’s a workflow.
What You See On Chart (so it’s usable)
QM level + BOS level + invalidation line
Optional forward projections / extension
Optional target mapping (T1/T2)
Stage-aware labels (PROTO / CONFIRM / invalidation handling)
MTF table showing which timeframe is active and which stage is “live”
🔍 How It Works (So You Know It’s Not Random)
1) Swing Structure → QM Candidate
The script builds swing structure and recognizes valid QM geometry — no guesswork labels without structure.
2) BOS Displacement Filter (Proof of Intent)
Most QM tools fire when the shape appears. King Quazi demands body displacement vs ATR so a “break” has force behind it — not wick theater.
3) Retest + Confirm (Permissioned Entry)
After BOS, it expects retest behavior and confirms only when the market acts right at the level — not in the middle of nowhere.
4) Object Lifecycle (Clean Chart, Honest Outcome)
The script manages lines/labels so your chart stays readable and outcomes are tracked — not hidden.
🧩 Why This Script Is Original (Not Another QM Clone)
The Quasimodo concept is public. The edge here is the integration:
staged event sequencing (PROTO → BOS → RETEST → CONFIRM)
ATR displacement proof to cut false positives
standardized execution mapping (QM/BOS/INV + optional targets)
multi-timeframe stage awareness (so you stop fighting higher structure)
alert routing by event stage (signal control, not spam)
It’s not “more signals.” It’s better permission.
🧭 How To Use It (Execution Rules)
1) Campaign Mode (Trend-Aligned)
Trade only when the MTF posture supports it. PROTO is awareness — BOS/RETEST is proof.
2) Verdict Mode (Turns)
A reversal is not a feeling. It’s testimony failing at the boundary and pressure flipping. Confirm at the level or don’t touch it.
3) Stand-Down Mode (The Feature Tourists Hate)
When the tool goes quiet, it’s telling you the truth:
no permission = no trade.
That’s how capital survives.
⚙️ What You Actually Tune
Zigzag sensitivity (tight vs clean structure)
BOS displacement strictness (how hard price must prove intent)
Retest window + expiration (how strict confirmation is)
Projection visibility (QM/BOS/INV, forward extension)
Targets & entry zone behavior (T1/T2 + buffers)
MTF table + alerts (what you want surfaced)
🧑🏫 BK / AK / Faith
BK is the mark I’m building.
AK is honor — discipline, patience, clean execution.
All glory to the Almighty — the true source of wisdom and endurance.
🗡️ King David Lens (Deep — Discipline Under Fire)
David’s power wasn’t impulse. It was governed force — strength that answers to law.
He learned early that the most dangerous trap is moving before you’re sent.
That’s why his life is full of the same pattern traders ignore:
He was anointed long before he was crowned.
Meaning: truth can be real before it’s allowed to manifest.
He fought Goliath with a weapon people mocked — not because it was flashy, but because it was mastered.
Meaning: edge isn’t what looks impressive — it’s what’s trained and repeatable.
He had Saul in his hands and still refused the shortcut.
Meaning: opportunity is not permission; proximity is not assignment.
He waited through wilderness seasons where nothing “looked like progress.”
Meaning: silence isn’t rejection — sometimes it’s preparation.
That is the trader’s war.
Price will always offer motion.
But motion without permission is bait.
David didn’t survive by chasing what was available.
He survived by waiting until the moment was proved, the ground was chosen, and the strike was clean.
That’s what King Quazi enforces:
PROTO is the rumor.
BOS displacement is the proof.
Retest is the test of legitimacy.
Confirm is permission to strike.
Invalidation is humility — stand down immediately.
A lion doesn’t chase every shadow.
A lion waits until the prey is committed — then ends it.
🦁👑 BK AK–KING QUAZI — execute with proof. 👑🦁
Gd bless. 🙏
RRR EMA Ignition BUY & SELL (Sideways-Proof)🔹 Description
RRR EMA Ignition Buy & Sell is a trend-following, non-repainting indicator designed to capture high-probability trend ignition points while filtering out sideways market noise.
Unlike basic EMA crossover systems that generate frequent false signals, this indicator uses a state-based trend engine, volatility filters, and trend strength confirmation to ensure signals appear only when a real directional move is underway.
It is optimized for swing trading and positional trading on stocks and indices.
🔹 Core Logic
🔼 BUY Signal (Bullish Ignition)
A BUY signal is generated only when all of the following conditions are met:
EMA 21 confirms bullish regime above EMA 55
EMA 9 shows momentum above EMA 21
Price is trading above EMA 55
Candle closes bullish (confirmation)
Trend strength is validated using ADX
EMA 55 is sloping upward
Price is sufficiently far from EMA 55 (ATR-based distance filter)
Only one BUY per bullish trend leg (no repeated signals)
🔽 SELL Signal (Bearish Ignition)
A SELL signal is the exact reverse of the BUY logic:
EMA 21 confirms bearish regime below EMA 55
EMA 9 shows bearish momentum below EMA 21
Price is trading below EMA 55
Candle closes bearish
ADX confirms trend strength
EMA 55 is sloping downward
ATR distance filter blocks sideways chop
Only one SELL per bearish trend leg
🔹 Key Features
✅ Non-repainting (signals appear only after candle close)
✅ Sideways-market protection using ATR + ADX
✅ State-based logic (prevents repeated BUY/SELL spam)
✅ Handles strong V-reversals using trend re-arm logic
✅ Clean signals suitable for alerts and automation
✅ Works across stocks, indices, and ETFs
🔹 Best Use Cases
📈 Swing trading on Daily / 4H charts
📊 Large-cap stocks and indices (Nifty, Bank Nifty, SPX, NASDAQ)
🚫 Not intended for low-timeframe scalping
🎯 Designed for trend capture, not range trading
🔹 Recommended Settings
Indian Stocks
ADX Minimum: 18
ATR Multiplier: 0.6 – 0.8
US Indices
ADX Minimum: 22
ATR Multiplier: 0.5
(Default settings work well for most instruments.)
🔹 How to Trade (Simple Guide)
Use BUY signals to enter or add to long positions
Use SELL signals to enter short positions or exit longs
Combine with:
Support/resistance
Higher-timeframe bias
Position sizing & risk management
🔹 Disclaimer
This indicator is a decision-support tool, not financial advice.
Always apply proper risk management and confirm signals with your own analysis.
Harmonic Liquidity Waves [JOAT]Harmonic Liquidity Waves
Overview
Harmonic Liquidity Waves is an open-source oscillator indicator that combines multiple volume-based analysis techniques into a unified liquidity flow framework. It integrates VWAP calculations, Chaikin Money Flow (CMF), Money Flow Index (MFI), and Klinger Volume Oscillator (KVO) with custom harmonic wave calculations to provide a comprehensive view of volume dynamics and money flow.
What This Indicator Does
The indicator calculates and displays:
Liquidity Flow - Volume-weighted price movement accumulated over a lookback period
Harmonic Wave - Multi-depth smoothed oscillator derived from liquidity flow
Chaikin Money Flow (CMF) - Classic accumulation/distribution indicator
Money Flow Index (MFI) - Volume-weighted RSI showing buying/selling pressure
Klinger Volume Oscillator (KVO) - Trend-volume relationship indicator
Wave Interference - Combined constructive/destructive wave patterns
Volume Profile POC - Point of Control from simplified volume distribution
How It Works
The core liquidity flow calculation tracks volume-weighted price changes:
calculateLiquidityFlow(series float vol, series float price, simple int period) =>
float priceChange = ta.change(price)
float volumeFlow = vol * math.sign(priceChange)
// Accumulated over period using buffer array
float avgFlow = flowSum / period
avgFlow
The harmonic oscillator applies multi-depth smoothing:
harmonicOscillator(series float flow, simple int depth, simple int period) =>
float harmonic = 0.0
for i = 1 to depth
float wave = ta.ema(flow, period * i) / i
harmonic += wave
harmonic / depth
CMF measures accumulation/distribution using the Money Flow Multiplier:
float mfm = ((close - low) - (high - close)) / (high - low)
float mfv = mfm * vol
float cmf = ta.sum(mfv, period) / ta.sum(vol, period) * 100
Signal Generation
Liquidity shift signals occur when:
Bullish Shift: Smoothed wave crosses above signal line
Bearish Shift: Smoothed wave crosses below signal line
Strong signals require volume indicator confirmation:
Strong Bull: Bullish shift + CMF > 0 + MFI > 50 + KVO > 0
Strong Bear: Bearish shift + CMF < 0 + MFI < 50 + KVO < 0
Divergence detection compares price pivots with liquidity wave pivots to identify potential reversals.
Dashboard Panel (Bottom-Right)
Wave Strength - Normalized wave magnitude
Volume Pressure - Current volume vs average percentage
Flow Direction - BUYING or SELLING based on wave sign
Histogram - Wave minus signal line value
CMF - Chaikin Money Flow reading
MFI - Money Flow Index value (0-100)
KVO - Klinger oscillator value
Vol Confluence - Combined volume indicator score
Signal - Current actionable status
Visual Elements
Liquidity Wave - Main oscillator line
Wave Signal - Smoothed signal line for crossover detection
Wave Histogram - Difference between wave and signal
Wave Interference - Area plot showing combined wave patterns
CMF/KVO/MFI Lines - Individual volume indicator plots
Divergence Labels - BULL DIV / BEAR DIV markers
Shift Markers - Triangles for basic shifts, labels for strong shifts
Input Parameters
Wave Period (default: 21) - Base period for liquidity calculations
Volume Weight (default: 1.5) - Multiplier for volume emphasis
Harmonic Depth (default: 3) - Number of smoothing layers
Smoothing (default: 3) - Final wave smoothing period
Suggested Use Cases
Identify accumulation/distribution phases using CMF and wave direction
Confirm momentum with MFI overbought/oversold readings
Watch for divergences between price and liquidity flow
Use strong signals when multiple volume indicators align
Timeframe Recommendations
Best on 15m to Daily charts. Volume-based indicators require sufficient trading activity for meaningful readings.
Limitations
Volume data quality varies by exchange and instrument
Divergence detection uses pivot-based lookback and may lag
Volume Profile POC is simplified and not a full profile analysis
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
ETH Trading bot H1 Money maker i dont know what i did but it is looking good ; make sure you arent in a trade before you start the bot
Ultimate Lines Statistical Backtest @MaxMaseratiUltimate lines (MAs/MACD/VWAP,DWA etc..) Statistical Backtest
This is a comprehensive statistical backtesting tool that allows traders to objectively measure the performance of 27+ different trading lines across multiple timeframes and sessions. Instead of guessing which moving averages, VWAPs, or volume levels actually work for your trading style, this indicator provides hard data showing exactly how price behaves around each line at specific times of day.
The indicator solves a critical problem: most lines create whipsaws in choppy markets, but knowing which lines have the highest continuation rates vs reversal rates at specific session times helps you avoid false signals and focus on setups with proven statistical edges.
🎯 LINES YOU CAN TEST
MMM Core Lines:
Mid MA: Trend velocity tracker using simple moving average
MMPD Line: Premium/Discount change-of-direction indicator
Fair Value Golden Ratio: 0.618 equilibrium level between premium and discount zones
Volume-Based Lines:
VWAP Daily/Weekly: Volume-weighted average price (daily and weekly sessions)
Volume POC Multi-TF: Multi-timeframe Point of Control (highest volume price level)
Volume POC Weekly: Weekly momentum pivot based on volume distribution
Range Midpoints:
Range Midpoint 50: 50-period high/low midpoint
Range Midpoint 14 TF1/TF2: Configurable timeframe range midpoints with smoothing options
Moving Averages (10 MA Types):
MACD Fast (12) / Signal (26): Standard MACD moving averages
Fast MA 20 / Mid MA 50 / Slow MA 200: Classic trend-following averages
Available MA Types: SMA, EMA, WMA, HMA, DEMA, TEMA, LSMA, KAMA, ALMA, VWMA
Volatility Indicators:
MVM Upper/Lower Bands: Momentum-based volatility bands with adaptive option
HVC Bullish/Bearish: High Volume Candle support/resistance levels
Ultimate Suite Advanced Lines:
DWAP (Delta Weighted Average Price): Directional volume-weighted price with upper/lower bands
HVN (High Volume Node): High-frequency trading node detection
Hybrid Line: Volume-weighted momentum composite
Trend Filter: Two-pole smoothing filter for trend clarity
STL Lines:
iBuSTL / iBeSTL: Internal Bullish/Bearish Structural Trend Liquidity levels
⚙️ HOW TO TEST
Select Lines: Check the boxes for lines you want to analyze (Mid MA, VWAP Daily, Volume POC, etc.)
Choose Times: Enable tracking for specific session times (default: 8:30 AM, 9:30 AM, 10:00 AM, Daily Close - EST)
Set Lookback: Choose how many days of historical data to analyze (default: 60 days)
Enable Pattern Analysis: Turn on "Enable Pattern Analysis" in settings
Wait for Data: The indicator needs 20 bars after each signal time to complete analysis
Review Statistics: Check the statistics table for detailed breakdowns
📈 STATISTICS EXPLAINED
For Each Tracked Time, You'll See:
🟢 Above Selected Lines (X samples):
Continued↑: Price stayed above the lines = bullish continuation
Reversed↓: Price broke below the lines = reversal/rejection
→Kept Going↓: After reversing down, price continued lower (bars 11-20)
→Stalled: After reversing down, price came back up (consolidation)
Neutral: Price didn't make a clear move either way
🔴 Below Selected Lines (X samples):
Continued↓: Price stayed below the lines = bearish continuation
Reversed↑: Price broke above the lines = reversal/support bounce
→Kept Going↑: After reversing up, price continued higher (bars 11-20)
→Stalled: After reversing up, price came back down (consolidation)
Neutral: No clear directional move
⭐ Star Ratings: Show which outcome happens most frequently (best probability)
🔬 HYBRID DETECTION SYSTEM (ADVANCED)
When enabled, the indicator uses a multi-signal composite scoring system that goes beyond simple percentage movements:
Signal A - % Movement Direction (40% weight):
Measures the strength and direction of price movement. Strong directional moves (>0.8%) score higher, while opposite-direction moves score negatively.
Signal B - Inside Candles (30% weight):
Detects true consolidation by counting how many candles close within a defined range. High inside-candle counts indicate choppy, stalled price action rather than clean continuation.
Signal C - Successive Closes (30% weight):
Tracks momentum persistence by counting consecutive closes in the expected direction. Long streaks (6+ bars) indicate strong follow-through, while breaks in the sequence suggest weakness.
Composite Score Classification:
⭐⭐⭐ Strong (75-100 points): All three signals align - high-confidence pattern
⭐⭐ Moderate (50-75 points): Two signals agree - reliable pattern
⭐ Weak (25-50 points): Mixed signals - lower confidence
⚠️ Strong Stalled (0-25 points): Signals show consolidation/reversal
This provides nuanced pattern detection that identifies not just IF a pattern succeeded, but HOW STRONGLY it performed.
💡 INTERPRETING RESULTS
Good Lines Show:
High continuation % when price is above/below (>60% is strong)
Clean "Kept Going" patterns after reversals (>50% indicates reliable rejection)
Low stalled % (less whipsaw/consolidation)
Consistent patterns across multiple times (validates the line's reliability)
Poor Lines Show:
50/50 continuation vs reversal (coin flip = no edge)
High stalled % (lots of whipsaw/false signals)
Inconsistent patterns across different times (unreliable)
Example Interpretation:
9:30 AM - VWAP Daily (120 samples)
🟢 Above:
Continued↑ 75 (62.5%) ⭐ BEST
Reversed↓ 30 (25.0%)
Meaning: When price is above VWAP Daily at 9:30 AM, it continues higher 62.5% of the time - this is a statistically strong bullish signal for that session time.
🎯 PRACTICAL VALUE
Solves the Whipsaw Problem:
Most moving averages and lines work beautifully in trending markets but create endless false signals in choppy, range-bound conditions. By analyzing specific session times and continuation vs reversal patterns, you can:
Identify high-probability setups: Focus on lines that show >60% continuation at your preferred trading times
Avoid weak signals: Skip lines with high stall rates or 50/50 outcomes
Time your entries better: Know which session times produce the cleanest patterns
Combine complementary lines: Stack multiple high-scoring lines for confluence
Adapt to market conditions: Switch to different lines when market structure changes
Real-World Application:
Instead of blindly trading VWAP crosses or MA bounces, you'll have objective data showing: "At 9:30 AM on ES, when price is above Mid MA + VWAP Daily + Volume POC, it continues higher 68% of the time with strong momentum (⭐⭐⭐)." This transforms discretionary guesswork into data-driven decision making.
⚙️ LINE DEFINITIONS
Moving Averages: Smooth price data over X periods to identify trend direction and dynamic support/resistance.
VWAP: Anchored average price weighted by volume - institutional traders' benchmark for "fair value."
Volume POC (Point of Control): Price level with the most traded volume - represents maximum market acceptance.
Fair Value Golden Ratio: Fibonacci 0.618 level between recent premium (high) and discount (low) - equilibrium zone.
DWAP (Delta Weighted): Price average weighted by buying vs selling volume delta - shows directional money flow.
Range Midpoints: Geometric center of recent high/low range - mean reversion pivot.
Volatility Bands: Envelope around momentum lines showing normal price deviation ranges.
HVN (High Volume Node): Automated detection of high-volume price clusters - institutional accumulation/distribution zones.
Note: This indicator is purely for statistical analysis and backtesting. It does not generate trade signals or provide entry/exit recommendations. Use the statistics to inform your own trading decisions and strategy development.
MD Cyclic PointsMD Cyclic Points – Intraday Time & Price Framework
MD Cyclic Points is an intraday market structure indicator designed for Indian indices and stocks.
It combines time-based cyclic candles, price projection levels, Bollinger volatility zones, and a 2611 rule framework to help traders identify high-probability intraday reaction points.
This tool is best suited for 5-minute and 3-minute charts during regular market hours.
________________________________________
🔹 Key Features
⏰ Cyclic Time Candles
• Automatically highlights specific cyclic candles during the trading session.
• Different candle numbers are used for 5-minute and 3-minute timeframes.
• Horizontal levels are extended from these candles for a user-defined number of bars.
• Helps identify time-based support and resistance zones.
________________________________________
🕑 2:00 PM Setup (Optional)
• Detects the 2:00 PM candle (IST) on 5-minute charts.
• Draws percentage-based upper and lower projection levels from the candle close.
• Useful for late-session breakouts or reversals.
• Can be enabled or disabled from settings.
________________________________________
📊 Bollinger Band Volatility Zones
• Uses a custom Bollinger Band setting (8, 0.2611).
• Dynamic background fill:
o Green → Price above upper band (strength)
o Red → Price below lower band (weakness)
o Gray → Neutral volatility
• Helps visually identify expansion and contraction phases.
________________________________________
📐 First 5-Minute Range Levels
• Captures the first 5-minute candle of the day.
• Automatically plots:
o R1 & S1 levels
o Midpoint
o Mid-Resistance & Mid-Support (dashed)
• Levels update in real time and reset each trading day.
• Useful for intraday bias and mean reaction zones.
________________________________________
⚙️ Recommended Usage
• Timeframes: 5-minute (preferred), 3-minute
• Market: Intraday equity & index trading
• Best combined with price action and volume
• Avoid usage in illiquid instruments
________________________________________
⚠️ Disclaimer
This indicator is intended for educational and analytical purposes only.
It does not provide buy/sell signals or financial advice.
Always manage risk and confirm signals with your own analysis.
Options Gamma Flip Zones [BackQuant]Options Gamma Flip Zones
A market-structure style “gamma flip” mapper that builds adaptive strike-like zones, scores how price interacts with them, then promotes the strongest candidates into confirmed flip zones. Designed to highlight pinning, failed breaks, and rotational behavior without needing live options chain data.
What this indicator does
This script identifies price levels that behave like “strike magnets” during conditions that resemble options pinning, then draws dynamic zones around those levels.
Instead of assuming every round number matters, it:
Creates a strike ladder (auto or manual step).
Applies a regime filter that looks for “pin-friendly” market conditions.
Tracks and scores repeated interactions with the level.
Upgrades a zone from candidate to confirmed when enough evidence accumulates.
Invalidates zones when price achieves sustained acceptance away from them.
The output is a set of shaded boxes (zones) centered on strike-like levels, with text readouts that show the current state of each zone.
Key concept: “Gamma proxy”
A true gamma flip requires options positioning data. This indicator does not use options chain gamma.
Instead, it uses a proxy approach:
When markets have elevated volatility relative to their recent baseline AND trend strength is weak, price often behaves “sticky” around key levels.
In those conditions, repeated touches and failed escapes around a level behave similarly to pinning around strikes.
So this tool is best read as:
“Where would a strike-like magnet likely exist right now, based on price behavior and regime conditions?”
How zones are created
Zones only start forming when the script detects a pin-friendly regime.
1) Strike Ladder (level selection)
Auto Strike Step selects a step size based on current price magnitude (bigger price, bigger step).
Manual Strike Step lets you force a fixed increment.
The current “active level” is the nearest rounded level to price.
Major Level Every optionally marks major ladder levels (multiples of step).
2) Band construction (zone thickness)
Each zone is a symmetric band around the level, using one of two modes:
ATR mode scales thickness with volatility.
Percent mode scales thickness as a fraction of price.
This matters because “pin behavior” is not a single tick. It’s a region where price repeatedly probes and rejects.
Regime filter (when the script is allowed to believe in pinning)
A zone is only eligible to form and strengthen when Pin Regime is active. Pin Regime is a conjunction of:
1) IV proxy (ATR z-score)
Uses ATR as a volatility proxy.
Converts ATR% into a z-score relative to a long lookback.
IV Proxy Threshold controls how elevated volatility must be before the script considers pinning likely.
2) Weak trend requirement
The script also requires price action to be non-trending:
EMA spread must be small (fast vs slow EMA not diverging strongly).
ADX must be below a ceiling, confirming weak directional trend strength.
Interpretation:
High “IV proxy” + weak trend is where pin-like behavior is most common.
If trend is strong, zones are less meaningful because price is more likely to accept away from levels.
Flip confirmation logic (what upgrades a zone)
A zone is not “confirmed” just because price is near it once. The script builds conviction via evidence accumulation.
Evidence types:
Touches : price comes close to the level within tolerance.
Failed escapes : price pushes outside the band but closes back inside (rejection).
Acceptance run : consecutive closes outside the band, suggesting price is accepting away from the zone.
Protections:
Touch Cooldown prevents counting the same micro-chop as multiple touches.
Acceptance Bars defines what “real acceptance” means, so the zone does not get invalidated by one noisy bar.
A zone becomes confirmed when:
Touches meet the “evidence” requirement.
Failed escapes meet the “rejection” requirement.
The regime filter still says the market is pin-friendly.
That is important, it avoids promoting levels that only worked briefly in a trending tape.
Zone scoring and lifecycle
Each zone maintains a score that evolves over time. Think of score as “how much this level has recently behaved like a magnet.”
Score dynamics:
Decay per bar : score fades over time if price stops respecting the zone.
+ per touch : repeated proximity increases score.
+ per failed escape : rejections add stronger reinforcement.
- per acceptance bar : sustained trading outside reduces score.
Min score to draw : prevents clutter from weak, low-confidence zones.
Invalidation:
If the score becomes very weak AND price achieves sustained acceptance away from the zone, the zone is deleted.
This keeps the chart clean and ensures zones represent current market behavior, not ancient levels.
How to read the plot on chart
1) Zone fill and border
Each zone is drawn as a box extended to the right.
Fill opacity adapts to zone strength, strong zones are visually more prominent.
Border color encodes the current directional context and special events.
2) Bullish vs bearish coloring
A zone is colored bullish when price is currently trading above the zone’s mid-level.
A zone is colored bearish when price is currently trading below it.
This is not a trade signal by itself, it is a state cue for “which side is in control around the level.”
3) Failed escape highlighting
If price attempts to break above the band and fails, the border temporarily highlights as a failed up escape.
If price attempts to break below the band and fails, the border temporarily highlights as a failed down escape.
These are the moments where pin behavior is most visible:
Break attempt.
Immediate rejection.
Return to the band.
4) Midline (optional)
The zone midline is the strike-like level itself.
It is dotted to distinguish it from price structure lines.
5) Optional strike ladder overlay
When enabled, the script draws major and minor ladder lines near current price.
Major levels are thicker and less transparent.
This is a visualization aid for “where the algorithm is rounding,” not a prediction tool.
On-chart text readout (what the box text means)
Each box prints a compact state summary, designed for fast scanning:
Γ CANDIDATE means the zone is being tracked but not yet validated.
Γ FLIP (PROXY) means the zone has met confirmation requirements.
BULL/BEAR indicates which side price is on relative to the mid-level.
L prints the level value.
T is touch count, repeated proximity events.
F is fail count, rejected escape attempts.
IVz is the volatility proxy z-score at the moment.
ADX is the trend strength context.
Practical use cases
1) Pinning and range trading context
Confirmed zones often act like gravity wells in sideways or rotational regimes.
When price repeatedly fails to escape, fading outer edges can be reasonable context for mean reversion workflows.
2) Breakout validation
If price achieves acceptance outside the band for multiple bars, that is stronger breakout context than a single wick.
Zones that invalidate cleanly can mark transitions from pinning to directional move.
3) Time your “do nothing” periods
When Pin Regime is active and a zone is confirmed, the tape often becomes sticky and inefficient for trend chasing.
This helps avoid taking trend entries into a pin environment.
Alerts
Standalone alertconditions are included:
Zone Confirmed : a candidate becomes confirmed.
Zone Touch : price touches an active zone within tolerance.
Zone Invalidated : the zone loses relevance and is removed.
Tuning guidelines
Sensitivity vs quality
Lower Touches Needed and Failed Escapes Needed creates more zones faster, but with lower quality.
Higher values create fewer zones, but the ones that remain are more behaviorally “proven.”
Band width
ATR mode adapts to volatility and is typically safer across assets.
Percent mode is consistent visually but can feel too tight in high vol or too wide in low vol if not tuned.
Regime thresholds
If you want fewer zones, raise IV proxy threshold and tighten weak-trend filters.
If you want more zones, lower IV proxy threshold and loosen weak-trend filters.
Limitations
This is a proxy model, not live options gamma.
In strong trends, pinning assumptions can break, the regime filter is there to reduce that risk, but not eliminate it.
Auto strike step is designed for typical market ranges, manual step is recommended for niche tick sizes or custom markets.
Disclaimer
Educational and informational only, not financial advice.
Not a complete trading system.
Always validate settings per asset and timeframe.
PA Signal Levels: Final Fix tomgoodcar win v1📚 คำอธิบายวิธีใช้งานและหลักการทำงานของอินดิเคเตอร์ "PA Signal Levels: Final Fix"อินดิเคเตอร์นี้ถูกออกแบบมาเพื่อการเทรดระยะสั้น/กลาง (Swing/Day Trading) โดยใช้กลยุทธ์ที่เน้นการ จับสัญญาณกลับตัว (Reversal) เมื่อราคาวิ่งออกไปถึงขอบเขตที่ไกลเกินไปของช่องทางแนวโน้ม (Channel)1. 🎯 หลักการทำงานของสัญญาณ (Buy/Sell Logic)อินดิเคเตอร์นี้รวมหลักการวิเคราะห์ทางเทคนิค 2 ส่วนเข้าด้วยกันเพื่อสร้างสัญญาณที่แม่นยำ:A. Linear Regression Channel (ช่องทางแนวโน้ม)อินดิเคเตอร์จะสร้างช่องทาง (Band) โดยใช้การถดถอยเชิงเส้น (Linear Regression) เพื่อกำหนดแนวโน้มหลัก และขีดเส้น Upper Band (แนวต้านพลวัต) และ Lower Band (แนวรับพลวัต) โดยมีค่าเบี่ยงเบนมาตรฐาน (StdDev) เป็นตัวกำหนดความกว้างUpper Band: ราคาที่สูงเกินไป (Overbought Zone)Lower Band: ราคาที่ต่ำเกินไป (Oversold Zone)การใช้งาน: ใช้เป็นตัวกรองสัญญาณ โดยสัญญาณจะเกิดเมื่อราคาอยู่ 'นอก' หรือ 'ติด' ขอบเขตเหล่านี้เท่านั้นB. Price Action (Engulfing Candlestick)ใช้รูปแบบแท่งเทียน Engulfing ที่แข็งแกร่ง (แท่งปัจจุบันกลืนกินแท่งก่อนหน้าทั้งหมด) เพื่อยืนยันการกลับตัวจากขอบเขตของ Channelสัญญาณ BUY (Bullish): เกิด Bullish Engulfing ในขณะที่แท่งเทียนนั้นต่ำกว่าหรือใกล้กับ Lower Bandสัญญาณ SELL (Bearish): เกิด Bearish Engulfing ในขณะที่แท่งเทียนนั้นสูงกว่าหรือใกล้กับ Upper Band2. 💰 การกำหนดความเสี่ยงและผลตอบแทน (SL/TP Calculation)เมื่อมีสัญญาณเกิดขึ้น อินดิเคเตอร์จะคำนวณและวาดระดับราคาสำคัญโดยอัตโนมัติ:ระดับราคาการคำนวณตามโค้ดบทบาทในการเทรดEntry Price (EP)ราคาปิด (close) ของแท่งเทียนที่เกิดสัญญาณจุดเริ่มต้นของการเข้าซื้อขายStop Loss (SL)คำนวณจาก Risk Size โดยใช้ค่า Lowest Low (สำหรับ Buy) หรือ Highest High (สำหรับ Sell) ย้อนหลังไปตามจำนวน SL Lookback (3 แท่ง)จุดออกเมื่อการวิเคราะห์ผิดพลาด โดยอิงตามแนวรับ/แนวต้านย่อยRisk Sizeระยะห่างระหว่าง EP กับ SLขนาดของความเสี่ยง (1R) ที่ใช้กำหนด TPTake Profit (TP1, 2, 3)$\text{EP} \pm (\text{Risk Size} \times \text{TP Ratio})$ระดับทำกำไรตามอัตราส่วนความเสี่ยงต่อผลตอบแทนที่ตั้งไว้ (1:1, 1:2, 1:3)กำลังคิดนี่คือคำแปลภาษาอังกฤษแบบมืออาชีพสำหรับคู่มือการใช้งานอินดิเคเตอร์ของคุณครับ: 📚 User Guide and Methodology: "PA Signal Levels: Final Fix" Indicator This indicator is designed for Short-to-Medium term trading (Swing/Day Trading), utilizing a strategy focused on catching reversals when the price reaches extreme boundaries of the trend channel. 1. 🎯 Buy/Sell Signal Logic The indicator combines two core technical analysis principles to generate high-accuracy signals: A. Linear Regression ChannelThe indicator constructs a channel based on Linear Regression to define the primary trend. It plots an Upper Band (Dynamic Resistance) and a Lower Band (Dynamic Support), with the width determined by Standard Deviation (StdDev). Upper Band: Overbought Zone (Price is too high).Lower Band: Oversold Zone (Price is too low).Usage: Acts as a signal filter; signals are only triggered when the price is "outside" or "touching" these boundaries. B. Price Action (Engulfing Candlestick)It uses strong Engulfing patterns (where the current candle completely engulfs the previous one) to confirm a reversal from the channel boundaries. BUY Signal (Bullish): A Bullish Engulfing occurs while the candle is below or near the Lower Band.SELL Signal (Bearish): A Bearish Engulfing occurs while the candle is above or near the Upper Band. 2. 💰 Risk and Reward Management (SL/TP Calculation) Once a signal is triggered, the indicator automatically calculates and plots key price levels: Price Level Calculation LogicTrading RoleEntry Price (EP)Closing price (close) of the signal candle.The starting point of the trade.Stop Loss (SL)Calculated based on the Lowest Low (for Buy) or Highest High (for Sell) over the SL Lookback period (3 candles).Exit point if the analysis is wrong, based on recent swing levels.Risk SizeThe distance between EP and SL.Represents 1 unit of risk (1R) used to determine TP levels.Take Profit (TP1, 2, 3)\(EP\pm (RiskSize\times TPRatio)\)Profit-taking levels based on the set Reward-to-Risk ratios (e.g., 1:1, 1:2, 1:3).คำศัพท์เทคนิคเพิ่มเติม: Reversal: การกลับตัวExtreme boundaries: ขอบเขตที่ไกลเกินไป (สุดโต่ง)Dynamic Support/Resistance: แนวรับ/แนวต้านที่เคลื่อนที่ตามราคาStandard Deviation (StdDev): ค่าเบี่ยงเบนมาตรฐานReward-to-Risk ratios: อัตราส่วนผลตอบแทนต่อความเสี่ยง
hassan box 2026This indicator is a tool designed to monitor general areas and predict future targets.
IronRod Trigger SystemIRONROD TRIGGER SYSTEM
DESCRIPTION
IronRod Trigger System is a momentum oscillator based on the Stochastic Momentum Index (SMI) that identifies trend changes, momentum shifts, and range-bound "chop" zones. Features color-changing SMI lines, histogram columns showing momentum strength, and a visual chop zone that highlights when to trade versus when to stay on the sidelines.
The system combines momentum direction (green/red lines), momentum strength (histogram columns), and market context (chop zone cloud) into one clean visual package. The dynamic zero line changes color to signal trade conditions (cyan) versus hold conditions (orange).
What Makes It Unique:
Dual color-changing lines (SMI and AvgSMI) show momentum direction
Histogram columns display momentum strength
Chop zone cloud identifies low-momentum periods
Dynamic zero line (cyan = trade, orange = hold)
Three-color histogram (green = strong up, red = strong down, gray = weak)
Adjustable chop zone threshold
How to Use
THE DISPLAY
Lines:
Green = bullish momentum (rising)
Red = bearish momentum (falling)
Gray = neutral/sideways
Histogram Columns:
Green = strong bullish momentum
Red = strong bearish momentum
Gray = weak/choppy momentum
Zero Line:
Cyan (blue) = trade zone - momentum is directional
Orange = chop zone - momentum is weak, avoid trading
Chop Zone Cloud:
Gray shaded area = range where momentum is indecisive (±30 default)
TRADING STRATEGIES
1. Chop Zone Trading
Trade: Only when SMI is outside gray cloud AND zero line is cyan
Avoid: When SMI is inside cloud OR zero line is orange
Long: Green line appears above chop zone
Short: Red line appears below chop zone
This is the key feature - dramatically reduces whipsaws
2. Zero Line Crosses
Buy: SMI crosses above zero with cyan zero line
Sell: SMI crosses below zero with cyan zero line
Strongest signals when AvgSMI follows SMI across zero
Ignore crosses when zero line is orange (choppy)
3. Histogram Strength
Strong trend: Multiple consecutive green/red columns
Momentum building: Columns getting taller
Momentum fading: Columns turning gray = exit warning
Reversal signal: Gray columns after strong trend
4. Divergence Trading
Bearish divergence: Price higher high, SMI lower high → take red line signal
Bullish divergence: Price lower low, SMI higher low → take green line signal
Most powerful outside chop zone
ENTRIES & EXITS
Entries:
SMI line turns green outside chop zone (long)
SMI line turns red outside chop zone (short)
SMI crosses zero with cyan zero line
Exits:
SMI line changes color
SMI enters chop zone (orange zero line)
Histogram turns gray
Stops:
Below recent swing low (longs)
Above recent swing high (shorts)
ADJUSTING SETTINGS
Chop Zone (±) (default: 30):
Lower (15-25) = More trades, more whipsaws
Higher (35-50) = Fewer trades, higher quality
Adjust based on instrument volatility
Percent K Length (default: 5):
Lower (3-4) = More sensitive, faster signals - good for scalping
Higher (7-10) = Less sensitive, smoother - good for swing trading
Percent D Length (default: 4): Controls smoothing
SMI Bar Buffer (default: 4): Histogram color sensitivity
TIMEFRAME GUIDE
Scalping (1-5m): K=3, watch histogram color flips
Day trading (15-60m): Default settings, focus on zero crosses outside chop
Swing trading (4H-Daily): K=7-10, trade only strong trends outside chop
Key Settings
Percent K Length (default: 5): Lookback period - controls sensitivity
Percent D Length (default: 4): Smoothing period
Chop Zone (±) (default: 30): Range-bound zone threshold
SMI Bar Buffer (default: 4): Histogram color change sensitivity
Histogram Width (default: 1): Column thickness
Key Features
✅ Dual color-changing momentum lines
✅ Histogram columns show strength
✅ Chop zone cloud filters bad trades
✅ Dynamic zero line color
✅ Three-color histogram
✅ Adjustable chop threshold
✅ All timeframes
✅ Reduces whipsaws
SMC Ultra-Fast: ALL-IN & Auto-Signal [Fixed]buy sell
📊 SMC Ultra-Fast: ALL-IN & Auto-Signal - Pine Script V5 Code Analysis
This code is a TradingView indicator designed to identify accurate and fast trading signals, specifically "ALL-IN" signals generated by pivot point breakouts combined with unusually high volume. It also automatically sets Take Profit (TP) and Stop Loss (SL) based on a defined Risk:Reward (RR) ratio.
PA Signal Levels: ENTRY SL TP1-2-3 (Cross Marker)Click the Alert Button: Click the "Alert" button (bell icon) on the top toolbar of TradingView.
Configure Alert Conditions:
Condition: Select the name of this indicator (e.g., PA Signal Levels: ENTRY SL TP1-2-3 (Cross Marker)).
Option: Select "Any alert() function calls".
Frequency: It is recommended to select "Once Per Bar".
Configure Notification Settings:
Action: Choose your preferred notification channel (e.g., Notify on App, Webhook URL, Email, etc.).
Message: Use {{strategy.order.alert_message}} (or the predefined message in the code) to ensure the alert displays full SL/TP details.
Once configured, the system will notify you immediately whenever a new Buy/Sell signal is generated.
คำศัพท์ที่น่าสนใจ:
Toolbar: แถบเครื่องมือ
Condition: เงื่อนไข
Once Per Bar: หนึ่งครั้งต่อแท่งเทียน (ป้องกันสัญญาณหลอกขณะแท่งยังไม่จบ)
Predefined message: ข้อความที่ตั้งค่าไว้ล่วงหน้า
This indicator operates using Price Action (candlestick closes opposite to the previous bar) combined with signal confirmation from the Linear Regression Channel:
Signal Logic Chart Display
BUY: Close price is higher than the previous Open, and Low touches or drops below the Signal Support (Lower 1) line. BUY label (Green) below the candle.
SELL: Close price is lower than the previous Open, and High touches or rises above the Signal Resistance (Upper 1) line. SELL label (Red) above the candle.
Yearly Projection ExplorerThis indicator helps you understand how the current market period has behaved historically by overlaying the same date window from previous years and projecting it forward from today’s price.
The script works the following way:
Aligns past years to today’s calendar date
Normalizes all paths to the last close at the start
Projects historical performance X bars forward
Displays each year as a separate performance path
Calculates and plots the mean (average) projection for quick reference
🔧 How It Works
Number of Years: choose how many past years to include (e.g. last 10, 20, or 25 years)
Projection Length: choose how many bars (days) ahead to project
Each line shows how the market moved during the same period in a specific year
Labels show the year and total return at the projection end
The mean line highlights the average historical outcome
🧠 Why This Is Useful
Identify seasonal tendencies
Compare current price action to historical analogs
Visualize best / worst historical outcomes
Set realistic expectations for short-term moves
Add context to discretionary or systematic decisions
This tool does not predict the future, but it provides a powerful historical framework to assess what has been typical, rare, or extreme for the current market window.
⚠️ Notes
Script works on timenow variable for now, and you might see unexpected periods if today is a day off.
Results depend on the selected timeframe and instrument
Past performance is not a guarantee of future results
Designed for analysis and context, not standalone signals






















