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.
非投资建议。交易风险自负。
Educational
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.
ERD: Effort-Result Diagnostic [Darwinian]ERD: Effort–Result Diagnostic
This indicator conceptually inspired by Donchian Channel logic, repurposed to visualize the relationship between effort (participation) and result (price movement) using signed volume as the primary constraint.
Core Concept
Markets move for two fundamentally different reasons:
- Effort — active participation, commitment, urgency
- Entropy / Vacuum — absence of participation
Price alone cannot distinguish between the two. ERD answers one question only:
Is the current price movement supported by participation, or is it moving beyond effort?
How It Works
Volume is treated as directional effort (positive / negative).
Donchian-style logic defines contextual effort boundaries for each direction.
These boundaries are overlaid with price to visualize effort containment.
Interpretation:
Price inside the effort zone
→ Effort still contains price
→ Auction is active and engaged
Price pressing into the effort boundary (tension zone)
→ Effort is being tested
→ Outcome uncertain
Price escaping beyond the effort zone
→ Result exceeds effort
→ Movement is fragile, vacuum-driven, or entropy-based
Upside and downside are evaluated independently.
Intended Use
Diagnose breakout / breakdown quality
Identify entropy drift, especially in illiquid assets
Distinguish absence of effort from failed effort
Improve trade selection and patience
Train effort-aware price action reading across timeframes
ERD is designed to reduce bad trades, not increase activity.
Attribution
Conceptually inspired by Donchian Channels (Richard Donchian),
adapted for effort–result diagnostics using signed volume.
Designed by Darwinian
Breakout SignalShow big bars closing on the high or low
This script allows you to find highlighted bars (bullish green and bearish red ) for bars that close with a particular Internal Bar Strength and ATR. I set the default at showing bars with an ATR > ATR10 and the IBS can be effected to show if the bar closes at its high or low.
I also put a EMA filter here. i usually set this quite low to about 7 but can be changed depending on your preference.
jitfxjitfx
This indicator plots Central Pivot Range (CPR) along with daily Support & Resistance levels up to 5 levels directly on the price chart. It is designed for intraday and positional traders who want a clean, rule-based structure for market bias, entries, and targets.
Features
Today’s CPR (Pivot, BC, TC)
Next Day CPR calculated from the completed daily candle (useful after market close)
Support & Resistance levels: S1–S5 and R1–R5
On/Off toggles for CPR, Next Day CPR, and S/R levels
Plots neatly on the price chart (overlay)
How to Use
Price above CPR → bullish bias
Price below CPR → bearish bias
Narrow CPR → potential breakout day
Wide CPR → range-bound / mean reversion
Use R levels as potential resistance/targets and S levels as demand/bounce zones
Best For
Index & stock intraday trading
Pre-market planning using Next Day CPR
Identifying structure, bias, and objective targets
DJLogicsAn indicator designed to trade fast and efficiently on 3-minute charts — without lagging signals or unnecessary noise.
🎯 What’s inside:
— Clear identification of short-term trend
— Early entry and exit points
— Minimal subjectivity, maximum structure
— Perfect for active trading and scalping
🎥 I’ve recorded a detailed training video where I walk you step by step through:
— how the indicator works
— how to use it correctly
— the mistakes 90% of traders make on lower timeframes
This is a tool for those who actually trade — not just watch the market.
Mid-term RibbonWhat the indicator is meant to tell you
-Mid-term trend direction (bullish vs bearish)
-Trend transitions when the ribbon flips color
-Trend strength (wider ribbon = stronger momentum)
-Helps traders stay in trends longer and avoid chop
Typical use cases
-Trend-following entries and exits
-Filtering trades in the direction of the ribbon
-Visual confirmation for other signals
-Swing trading and position trading
Colors are customizable
Only for educational purposes, no recommendation to buy or sell
BTC - DCA vs HODL Calculator MatrixBTC - DCA vs. HODL Calculator Matrix | RM
Overview
The BTC - DCA vs. HODL Calculator Matrix is a high-performance telemetry laboratory designed to settle the ultimate debate in Bitcoin accumulation: Is it more efficient to deploy all capital at once ( Lump Sum & HODL ) or utilize a recurring purchase strategy ( DCA )? More importantly, if DCA is the choice, which exact frequency and weekday provides the mathematical edge?
The Calculator Matrix was engineered to solve a critical limitation in the current script ecosystem (at least I couldnt find such an indicator): the inability to compare multiple DCA frequencies and specific calendar days simultaneously within a single dashboard. While developing this tool, I found that existing calculators typically only permit testing one strategy at a time (e.g., a generic "Weekly" buy). This script fills that gap by utilizing a high-performance array-based "Telemetry Engine" to rank dozens of variables—including every individual weekday and specific monthly dates—against a HODL benchmark in real-time. This unique simultaneous comparison allows investors to mathematically identify "Weekday Alpha" across any user-defined timeframe.
Core Philosophy
The script utilizes a Normalized Capital Model . To ensure a true "apples-to-apples" comparison, your total capital (e.g., $10,000) is distributed with mathematical precision across the exact number of entries for each specific strategy. This eliminates the ROI skewing commonly found in basic scripts, ensuring that every strategy is judged on the same total dollar expenditure over the same "Race Track."
Key Features & Analytics
• The Podium System: An automated ranking algorithm that awards 🥇 Gold, 🥈 Silver, and 🥉 Bronze medals to the top three performing strategies. Spoiler: Regular Winner: 1-time HODL (Lump Sum)
• Simultaneous Strategy Testing: Compare Daily, 7 different Weekly days (Mon-Sun), and Monthly dates (1st–28th) all at once.
• Risk Telemetry: Integrated Max Drawdown (MDD) sensors for every strategy, revealing the "Emotional Cost" of your accumulation path.
• Race Track Visuals: Blue dashed "Green Flag" and "Checkered Flag" lines visually define the boundaries of your backtest.
• Dashboard Customization: Use the "Odd/Even" filter to keep the matrix sleek and readable on (nearly) any screen resolution.
The Strategies Tested
• 1-TIME HODL: The benchmark (Lump sum entry on Day 1 - meaning all the capital is deployed at the start date).
• DAILY DCA: High-frequency, day-by-day accumulation (the capital is split amongst the different entries).
• WEEKLY (SUN-SAT): Evaluates which specific day of the week historically captures the best entries (e.g., "Weekend Dips").(The capital is split amongst the different entries).
• MONTHLY (1-28 + END): Tests monthly date performance to optimize for beginning-of-month or end-of-month cycles. (The capital is split amongst the different entries).
Monte Carlo Simulation & Python Research
While this tool allows you to manually check any specific timeframe, manual testing is limited by "Start Date Bias." To find the Universal Winner , I have conducted a Monte Carlo Simulation using 100 random entry dates over the last 5 years via Python/Colab. This research reveals the statistical probability of a day (like Saturday) winning the Gold medal across all market conditions.
Access the Python Heatmap Research in my substack article (link for substack in Bio).
How to Use
1. Set the Race Track: Input Start and End dates in the settings.
2. Fuel the Engine: Set your Total Capital ($).
3. Analyze the Matrix: Compare ROI vs. MAX DD. The goal is not just the highest return, but the best Risk-Adjusted return.
Technical Implementation
This script utilizes an array-based telemetry engine to handle the simultaneous calculation of 30+ independent investment strategies. To ensure computational efficiency and bypass the limitations of standard security-based backtesting, I implemented a custom-built accumulator logic using array.new_float() and array.set() . The core calculation loop ( if in_race and is_new_day ) processes capital deployment on a per-bar basis, utilizing ta.change(time("D")) to ensure entry synchronization with the Daily UTC close. By decoupling the unit accumulation ( u_weekly , u_monthly ) from the final valuation logic ( f_get_stats ), the script maintains a Normalized Capital Model. This ensures that even with complex comparative logic across varying frequencies, the script provides a mathematically rigorous, reproducible result that matches real-world execution at the Daily UTC Midnight close.
Note: All calculations are made on the "close" bar, which means UTC 00:00. By creating a strategy or using the research, make sure to be aware of your time zone
Disclaimer: Past performance is not indicative of future results. This tool is for educational and research purposes only. Rob Maths is not liable for any financial losses.
Tags:
robmaths, Rob Maths, DCA, HODL, Bitcoin, BTC, Backtest, RiskManagement, Investment, Strategy, Statistics
Entradas Inteligentes Oro JosePR indicador creado para el oro, pero funciona tambien en el mercado de futuros
4H & Daily Previous Candle + Fibonacci + OTE# Multi-Timeframe OTE & Fibonacci Indicator (4H & Daily)
This Pine Script v5 indicator is designed for traders who utilize **Optimal Trade Entry (OTE)** zones and **Fibonacci retracements** based on higher timeframe market structures. It automatically identifies and plots key levels from the previous 4-hour and Daily candles to help find high-probability reversal zones.
## Key Features
### 1. Dual Timeframe OTE Zones
- **4H OTE Zone**: Automatically calculates and shades the Optimal Trade Entry area (default 61.8% - 78.6%) based on the previous 4-hour candle's range.
- **Daily OTE Zone**: Plots a secondary OTE zone based on the previous Daily candle, allowing for multi-timeframe confluence analysis.
- **Dynamic Adaptation**: The zones automatically flip based on whether the previous candle was bullish or bearish, ensuring you are always looking at the correct retracement levels.
### 2. Automated Market Structure
- **High/Low Tracking**: Plots clear horizontal lines for the previous 4H and Daily Highs and Lows.
- **Visual Distinction**: Daily levels are highlighted with thicker lines to distinguish them from 4H levels.
- **Price Labels**: Displays real-time price labels for all structural levels for quick reference.
### 3. Customizable Fibonacci Retracements
- **4H Fibonacci Levels**: Plots standard retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for the 4H timeframe.
- **Fully Adjustable**: Users can input custom Fibonacci levels via the settings menu.
### 4. Real-Time Information Dashboard
- **Range Summary**: A clean table in the top-right corner displays the total pip/point range for both the previous 4H and Daily candles.
- **Clean UI**: All visual elements (colors, line widths, labels) can be toggled or customized to fit any chart theme.
## How to Use
This indicator is ideal for "Smart Money" or "ICT" style trading. Look for **confluence** where the 4H OTE zone overlaps with the Daily OTE zone or other key structural levels to identify high-precision entry points.
Decoy Long / Decoy ShortThis indicator plots a decoy bar. A Decoy bar can be a 'decoy long' or a 'decoy short' bar. A 'decoy long' is a bar that creates a higher high and higher low but ends up as a red bar. A 'decoy short' is a bar that creates a lower high and lower low but still ends up as a green bar.
Half Closing CandleHalf Closing Candle
This indicator identifies candles whose closing price falls within the upper or lower half of the candle range, measured from the midpoint relative to the candle’s open. It helps traders quickly spot candles that close toward the open or high/low extremes, providing insight into momentum, indecision, or potential reversal areas.
The script highlights these candles with a subtle, non-intrusive overlay directly on the chart, without altering candle wicks or overall price representation, ensuring visual clarity and professional presentation.
Ultimate Auto Trendlines - No Lag, No repaint, & High Accuracy Non-Repainting Auto Trendlines by Pivots – The cleanest way to draw real trendlines automatically!
Connects confirmed pivot highs/lows → solid, angled trendlines (no flat junk)
Filters by minimum angle → only meaningful trends
Shows recent pivots with "R" / "S" labels (optional)
Long extension to the right – see future zones instantly
Perfect for SPY, QQQ, NASDAQ daily swings – 85%+ touch rate in backtests
Why traders love it:
• No repaint – safe for live trading & alerts
• Keeps chart clean – only recent levels
• Angle filter = no useless horizontal lines
• Works on any timeframe – daily/4H/1H killer
Add to chart now → see the difference immediately!
How to Use the "Auto Trendlines by Pivots" Indicator Effectively
This indicator automatically draws clean, non-repainting trendlines by connecting confirmed pivot highs and lows, helping you visualize dynamic trend direction, support/resistance from swings, and potential reversal or continuation zones. It's especially powerful on daily and 4H charts for SPY, QQQ, NASDAQ stocks, forex majors, and crypto.
Quick Start Guide
Add to Chart
Open TradingView → Pine Editor → paste the script → Save → Add to Chart.
Best symbols/timeframes: SPY/QQQ/ES1! daily, 4H, or 1H.
Key Settings (Recommended Starting Values)
Pivot Left/Right Bars: 5/5 (default) → balanced strength.
Increase to 8–10 for stronger, fewer lines (less noise, higher accuracy).
Decrease to 3–4 for more frequent lines (scalping/intraday).
Max Trendlines: 8 (default) → keeps chart readable.
Lower to 4–6 for minimalism; raise to 12–15 for more history.
Min Trend Angle: 15° (default) → filters out flat/weak lines.
Increase to 20–25° for steeper trends only (very clean chart).
Decrease to 10° to see shallower trends.
Line Extension: 100–200 bars → long enough to project forward zones.
Show Labels: On → "R" (red) and "S" (green) marks pivot points.
Turn off for ultra-clean look.
How to Read & Trade with It
Uptrend (Bullish): Greenish upward-sloping lines connecting higher lows → act as dynamic support.
→ Buy pullbacks to the trendline + confirmation (e.g., RSI oversold, volume spike, candlestick reversal).
→ Target next resistance line or previous pivot high.
Downtrend (Bearish): Reddish downward-sloping lines connecting lower highs → act as dynamic resistance.
→ Short rejections at trendline + confirmation (e.g., RSI overbought, bearish engulfing).
→ Target next support line or previous pivot low.
Range / Sideways: Mixed criss-crossing lines → avoid trading or use horizontal S/R levels (when trendlines flatten).
Confluence = where multiple lines cluster → highest-probability zones.
Breakouts: When price closes decisively through a trendline → signals potential trend change or acceleration.
Wait for retest of broken line as new support/resistance.
Pro Trading Tips (High-Probability Setups)
Confluence is King: Trade when price reaches a trendline + horizontal S/R level from pivots (yellow zones if you add confluence logic).
Timeframe Alignment: Use daily lines for bias, 4H/1H for entries.
Confirmation Tools:
RSI(2) < 10 near support (long) or > 90 near resistance (short)
Volume > 20-period SMA on touch
Candlestick patterns (hammer, engulfing) at line
Risk Management:
Stop below support trendline (longs) or above resistance trendline (shorts)
Target 1.5–3R (next major level or opposite line)
Avoid trades if VIX > 25–30 (high volatility kills accuracy)
Best Markets: Strong trends (bullish SPY/QQQ 2020–2025) → 70–85% bounce rate at lines.
Common Mistakes to Avoid
Over-trading flat markets → wait for clear trend angle.
Ignoring angle filter → flat lines are noise, not real trends.
Not zooming out → always check higher timeframe (weekly) for major lines.
Performance Insight
Backtests on SPY daily (2010–2025): ~80% price interaction (touch/bounce) at trendlines in trending periods.
Combine with RSI(2) or EMA50 → win rate often >75% on pullback entries.
Global Macro Scanner & Relative PerformanceDescription: This indicator is an all-in-one Macro Dashboard that allows traders to track money flow across major global asset classes in real-time. It combines a floating data table with a normalized percentage-performance chart.
Features:
Macro Dashboard (Table): Displays the current value, daily % change, and status (Inflow/Outflow) for 9 key economic sectors:
US M2 Supply: Tracks monetary inflation/tightening.
DXY (US Dollar): Currency strength.
Bonds (AGG): US Aggregate Bond market.
Stocks (VT): Total World Stock Index.
Real Estate (VNQ): Vanguard Real Estate ETF.
Commodities: Oil (WTI), Gold, and Silver.
Crypto: Total Crypto Market Cap.
Relative Performance Chart (Lines): Instead of plotting raw prices (which have vastly different scales), this script plots the Percentage Return relative to a baseline.
Lookback Period: You can set a lookback (default 100 bars). The script sets the price 100 bars ago as "0%" and plots how much each asset has gained or lost since then.
Comparison: This allows you to visually see which assets are outperforming or underperforming relative to each other over the same time period.
Visual Aids:
Dynamic Labels: Each line is tagged with a label at the current candle so you can identify assets without needing a legend.
Colors: Each asset has a distinct, fixed color for consistency between the table and the chart.
How to use:
Add the script to your chart.
Adjust the "Lookback" setting in the inputs to change the starting point of the comparison (e.g., set it to the start of the year to see Year-to-Date performance).
Use the dashboard to spot daily money flow rotation (e.g., Money moving out of Stocks and into Gold).
Smart stock Uptrend Forecaster by Prawindesigned by Prawin for trying to forecast the trend of stocks.
Liquidity Sweep Pro [Whale Edition]Liquidity Sweep Pro is a next-generation trading tool that bridges the gap between Smart Money Concepts (SMC) and Quantitative Volume Analysis.
Traditional "Liquidity Sweep" indicators often generate false signals by marking every wick crossover as a trade setup. This indicator solves that problem by filtering setups through a Quant VSA Engine. It asks not just "Did price sweep a level?" but "Was there institutional money behind this move?"
🔬 How It Works
The indicator operates on three synchronized layers:
1. Market Structure (Liquidity Pools) It automatically identifies key pivot points where retail Stop Losses are likely clustered:
Buy Side Liquidity (BSL): Areas above swing highs.
Sell Side Liquidity (SSL): Areas below swing lows.
2. The Quant Engine (Whale Detection) Instead of using simple volume averages, we apply statistical modeling to detect anomalies:
Log-Normal Z-Score: Normalizes volume data to detect statistically significant outliers (Sigma > 2.5). This adapts to market volatility, filtering out noise.
Kaufman Efficiency Ratio (KER): Analyzes the quality of price movement to classify the "Whale" type:
❄️ Absorption (Iceberg): High Volume + Low Price Movement. Signals a potential reversal.
🚀 Propulsion (Drive): High Volume + High Price Efficiency. Signals an aggressive breakout.
3. The Trigger (Smart Entry) A trade signal is generated ONLY when:
Price sweeps a liquidity level (wicking below/above).
Price closes back within the range.
Institutional Activity is confirmed (High Z-Score Volume).
Trend (EMA 200) and Momentum (RSI) filters are aligned.
🛡️ Features
Intrabar Analysis: Uses request.security_lower_tf to analyze the internal volume delta of the candle for maximum precision.
Automated Risk Management: Plots Entry, Take Profit, and Stop Loss levels directly on the chart based on ATR (Average True Range) and your preferred Risk:Reward ratio.
Unified Alerts: Includes a single "ANY SWEEP" alert condition, allowing you to monitor both Long and Short setups with just one TradingView alert.
Visual Classification: Candles with institutional activity are marked with a 🐋 symbol, even if no sweep occurs, helping you read the narrative.
⚙️ Best Settings & Usage
Timeframes: Works best on 15m, 1h, and 4h charts.
LTF Interval (Input): This is crucial.
If trading on the 1h chart, set LTF to 1 minute.
If trading on the 4h chart, set LTF to 5 minutes.
Whale Threshold: Default is 2.5 Sigma. Increase to 3.0 for fewer, higher-confidence signals, or decrease to 2.0 for more frequency.
⚠️ Disclaimer
This tool is for educational purposes only. It identifies statistical probabilities, not certainties. Always manage your risk and do not rely solely on one indicator.
SM Ghost Protocol 80 - Sniper AlphaSM Ghost Protocol 80 - Smart Money Sniper
Where the retail sees exhaustion, we see institutional opportunity. The SM Ghost Protocol 80 was engineered to track the "footprints" of the Smart Money in high-volatility environments.
This indicator filters market noise by combining an intermediate trend axis (EMA 80) with specific momentum manipulation zones (RSI 68/35). When the Protocol lights up the candles, it signals that the institutional flow has taken control of the price, moving towards high-liquidity pools.
Key Features:
Ghost Line (EMA 80): The definitive boundary between retail chaos and institutional trend.
SM Manipulation Zones: Advanced RSI logic to identify where big players are squeezing the market.
Ghost Candles: Real-time visual confirmation for quick decision making.
FX-CLINIC MARKET STRUCTUREThis indicator help the treaders by SMC/ICt to mark the structure MSS/BOS automatically, and you can choose the length of the structure as 5 for fractal, 10 for internal and 15 for external
use it free
note: check your information and correct the structure as you know,
it is first edition and go to upgrade and correct
feel free to sent any note in telegram
privet: @DRALIAWWAD
and the public channel: @ictdrawwad
Hookes Kinetics | IkkeOmarHooke's Kinetics: A Physics-Based Volatility System
This indicator applies the principles of Hooke's Law to financial time series data to model market volatility as a system of potential and kinetic energy.
Theoretical Foundation: Hooke's Law In physics, Hooke's Law states that the force (F) needed to extend or compress a spring by some distance (x) scales linearly with respect to that distance: F = -kx, where k is the spring constant.
Potential Energy (PE): PE = 0.5 * k * x^2 Kinetic Energy (KE): Energy possessed due to motion.
In this system, we treat Price Action as a spring. Compression (Potential Energy): When price consolidates, volatility compresses. The "spring" is being wound up. Energy is accumulated, not released. Release (Kinetic Energy): When price breaks out of compression, potential energy transforms into kinetic energy. The spring snaps back, driving price motion.
Indicator Mechanics The Hooke's Kinetics oscillator visualizes this energy transfer cycle to identify trend origins and exhaustion points.
Accumulating Energy (Potential): The Blue Area represents the buildup of Potential Energy. This occurs during periods of low volatility (consolidation). The algorithm detects when price variance drops below a threshold (representing spring compression) and aggregates this "stored force" over time. As long as the price remains compressed, the Blue potential energy grows.
Energy Conversion (Kinetic Release): The Red Histogram represents Kinetic Energy. When volatility expands significantly (a breakout), the system triggers a release event. The accumulated Blue potential energy is discharged and converted into the Red kinetic spike. This marks the moment the "spring" is released.
Trend Direction & Decay: Once the Kinetic Energy (Red spike) appears, the "explosive" phase is active. As the Red histogram decays (lowers back to zero), the market enters a coasting phase. The trend direction is established by the price movement during the initial Kinetic release. Traders observe the price vector as the Red energy dissipates to confirm the prevailing trend.
Reversion Signals (Bonus): Extreme peaks in Kinetic Energy (exceptionally high Red spikes) indicate a maximum extension of the spring. Just as a physical spring oscillates, extreme kinetic release often precedes a mean reversion. If price action opposes the direction of the Kinetic decay, it signals a likely reversal.
Visual Reference Referencing the chart above: Blue Ramp: Note the linear buildup of the blue area during sideways price action. This is the "loading" phase. Red Spike: Note the immediate drop in Blue and spike in Red coinciding with the green highlight circles on the chart. These are the breakout points. Green Circles: These highlight the specific candles where Potential converted to Kinetic, marking the optimal entry or decision points.
Code Description
The system defines market state using a composite variable "k" (Stiffness), which combines Price Volatility (NATR) and Relative Volume (RVOL).
k_price = range_natr != 0 ? 1.0 - ((natr - lowest_natr) / range_natr) : 0 k = (k_price * price_weight) + (k_vol * vol_weight) Here, we normalize volatility relative to a historical lookback. High values of "k" indicate high compression—this is the "winding" of the spring.
if is_compressed potential_energy := potential_energy + k kinetic_energy := kinetic_energy * DECAY_RATE When the market is tighter than the user-defined "stiff_thresh", the system accumulates Potential Energy. Note that Kinetic Energy actively decays during this phase, simulating friction or inertia slowing down price movement.
else drain_factor = (1.0 - k) transfer = potential_energy * drain_factor potential_energy := potential_energy - transfer kinetic_energy := (kinetic_energy * DECAY_RATE) + (transfer * ENERGY_MULT) This acts as the conservation of energy. We do not reset Potential to zero instantly; we drain it. The "drain_factor" ensures that a violent expansion (low k) drains potential energy faster than a mild move. This transferred energy is scaled up and added to the Kinetic state.
Note - AMPLITUDE MATTERS!
Observe the amplitude of the Kinetic Energy - higher peaks are more significant. Lower values are usually artifacts, but they can indicate mean reversion on a smaller scale while price remains within a range.
Screener Ichimoku SignalScreener Ichimoku Signal for longer time frame charts. Not suitable for intraday
HTF Wicks OHLC & Key Defense Levels @ MaxMaserati 3.0HTF Wicks OHLC & Key Defense Levels @ MaxMaserati 3.0
This indicator provides a sophisticated view of price rejection and supply/demand exhaustion by mapping the "hidden" levels within candle wicks across multiple timeframes. It combines precise wick geometry with volume-weighted defense zones to help traders identify where price is likely to stall or reverse.
1. Multi-Timeframe Wick Analysis
The script identifies significant wicks from up to four different timeframes (e.g., H1, H4, Daily, Weekly) and projects three critical horizontal levels:
Wick High/Low: The absolute extreme of the rejection.
50% Mid-Wick: The "equilibrium" of the rejection, often acting as a magnet or a pivot point for local price action.
Body Edge: The Open or Close level where the rejection began.
HTF Live wick
HTF Closed Wick
Dynamic Filtering: You can filter these levels based on the "Wick-to-Body Ratio" to ensure you only see significant rejections, avoiding "noisy" candles with small wicks.
2. Volume Defense Levels (Supply/Demand)
A proprietary volume defense level visuals, so beyond simple price action, the script identifies Institutional Defense Levels based on high-volume pivots.
Volume Strength: It calculates the volume of swing highs and lows relative to a lookback average.
Visual Representation: High-volume zones are drawn as dashed lines with accompanying "strength" boxes. The thicker the line and more opaque the box, the higher the relative volume backing that level.
Auto-Invalidation: Defense levels automatically disappear once price closes through them, keeping your chart clean and focused only on active zones.
3. Key Features
Auto-Wick Detection: Choose to see only Upper wicks (Supply), Lower wicks (Demand), or let the script automatically detect the dominant rejection.
Sentiment Labels: Includes real-time calculation of Buyer vs. Seller dominance within the wick structure.
Clean UI: Fully customizable styling for lines, labels, and offsets to match any chart theme.
How to Use
Look for "Confluence Zones" where an HTF 50% Wick Line aligns with a Volume Defense Level. These areas represent high-probability reversal zones where both historical price rejection and significant volume are present.






















