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
Session ModelSessionModel.pine - Indicator Overview
Purpose: A deterministic session model indicator that identifies trading sessions (Asian, London, NY), builds range levels from specific time windows, detects price action states (Range → Sweep → Displacement → Rebalance), and tracks divergences across 3 index symbols.
Key Feature: Uses a fixed internal timeframe (engineTF) for all decision logic, ensuring identical results regardless of what chart timeframe you're viewing.
---
HUD Display Rows - Explanations
1. SESSION
- Values: ASIAN | LONDON | NY | WAITING
- Meaning: Which trading session is currently active
- Why it matters: Each session uses different range references (ASIAN uses NY PM range, LONDON uses Asia range, NY uses London or ORB range)
2. STATE
- Values: Range | Sweep | Displacement | Rebalance
- Meaning: Current phase of the price action state machine
- Why it matters:
- Range: Building session extremes, awaiting price structure break
- Sweep: Price penetrated range boundary and closed back inside (rejection)
- Displacement: Directional move away from the range (trend confirmation)
- Rebalance: Retracement within displacement zone before resuming direction
3. CORRELATION (SMT)
- Values: Bull | Bear | Neutral
- Color: Green (Bull) | Red (Bear) | Orange (Neutral)
- Meaning: Smart Money divergence detection between US500, US100, US30
- Why it matters:
- Bull: At least one index makes new LOW but NOT all (weak shorts = bullish)
- Bear: At least one index makes new HIGH but NOT all (weak longs = bearish)
- Neutral: All indices move same direction OR insufficient window data
4. RANGE H (Range High)
- Values: Price level or "-" (not set)
- Color: Red (matching input.color rangeHighColor)
- Meaning: The highest price reached during the active range window
- Why it matters: Upper boundary for sweep detection and displacement measurement
5. RANGE L (Range Low)
- Values: Price level or "-" (not set)
- Color: Green (matching input.color rangeLowColor)
- Meaning: The lowest price reached during the active range window
- Why it matters: Lower boundary for sweep detection and displacement measurement
6. SWEEP
- Values: High | Low | "-" (not in sweep)
- Color: Yellow (if sweeping) | Gray (if not)
- Meaning: Direction of the current sweep if state == 2
- Why it matters:
- High: Price broke above range high and closed back below (bearish rejection)
- Low: Price broke below range low and closed back above (bullish rejection)
- Shows which boundary was "swept" and rejected
7. DISP DIR (Displacement Direction)
- Values: Bullish | Bearish | "-" (not displacing)
- Color: Green (Bullish) | Red (Bearish) | Gray (Not active)
- Meaning: Direction of the current displacement move (state == 3 or 4)
- Why it matters: Confirms directional bias during displacement phase
- Bullish: Price displaced above range after sweeping low
- Bearish: Price displaced below range after sweeping high
8. LEG 50% (Displacement 50% Retracement)
- Values: Price level or "-" (not set)
- Color: Cyan/Aqua
- Meaning: 50% retracement level between displacement origin and extreme
- Formula: displacementOrigin + (displacementExtreme - displacementOrigin) * 0.5
- Why it matters:
- Key retracement zone during displacement and rebalance phases
- Often acts as resistance (if bullish displacement) or support (if bearish)
- Used in rebalance trigger logic
---
How to Read the HUD Together
Example 1: Waiting for Entry
Session: NY
State: Range
Correlation: Neutral
Range H: 4050.25
Range L: 4040.50
Sweep: -
Disp Dir: -
Leg 50%: -
→ NY session active, building range. No sweep yet, no displacement. Waiting for price action.
Example 2: Sweep Detected
Session: NY
State: Sweep
Correlation: Neutral
Range H: 4050.25
Range L: 4040.50
Sweep: Low
Disp Dir: -
Leg 50%: -
→ Price swept below range low (rejected), now countdown timer running. Likely reversal coming.
Example 3: In Displacement
Session: NY
State: Displacement
Correlation: Bull
Range H: 4050.25
Range L: 4040.50
Sweep: Low
Disp Dir: Bullish
Leg 50%: 4060.75
→ After sweeping low, price displaced bullish. SMT confirming (bull divergence on indices). 50% at 4060.75 is key retracement zone.
HTF Bias Detector=== HUD DISPLAY ITEMS ===
1. **HTF (Timeframe Label)**
Shows the selected higher timeframe being monitored (e.g., "4h", "1D", "1W"). This confirms which timeframe data you're viewing above your current chart.
2. **Open, High, Low, Close (OHLC Values)**
Displays the candlestick values from the higher timeframe:
• Open: Entry price when the HTF candle opened
• High: Highest price reached during the HTF period
• Low: Lowest price during the HTF period
• Close: Most recent closing price on the HTF
Use these to identify key HTF price levels and support/resistance zones.
3. **TP (True Price Range)**
Shows the maximum price movement within the HTF candle. Calculated as: max(High - Low, |High - Previous Close|, |Low - Previous Close|)
Higher TP indicates greater volatility; lower TP suggests a consolidation period.
4. **ATR (Average True Range)**
Displays the average volatility over the last 14 HTF periods (customizable).
Use this to gauge typical price movement on the higher timeframe and set realistic profit targets and stop losses.
5. **MACD Value**
Shows the MACD momentum indicator (difference between 12 and 26-period EMAs) on the HTF.
Positive values suggest upward momentum; negative values indicate downward momentum on the higher timeframe.
6. **Signal Line**
The 9-period EMA of MACD on the HTF.
When MACD crosses above the signal line, it indicates bullish momentum confirmation on the higher timeframe.
7. **Histogram**
The difference between MACD and its Signal Line, visualized as bars.
Expanding bars show increasing momentum; shrinking bars show weakening momentum.
8. **Price Deviation**
Displays how far current price deviates from the HTF close in percentage terms.
Helps identify overbought/oversold conditions relative to the higher timeframe context.
---
=== HOW TO USE ===
• Select your chart timeframe (e.g., 5m, 15m, 1h)
• Set the HTF to a higher timeframe (e.g., 4h, 1D) in indicator settings
• Look for confluence: when both timeframes align, trades are stronger
• Use HTF volatility (ATR) to size positions appropriately
• Combine HTF MACD direction with your current chart setup for confirmation
---
=== SETTINGS ===
• HTF Period: Choose the higher timeframe to monitor
• ATR Length: Adjust sensitivity of volatility measurement (default: 14)
• MACD Settings: Customize fast/slow/signal periods for momentum analysis
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.
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.
Threshold-Triggered Asset Rotation (TTAR) ModelJust an attempt at tracking historical rotational capital flows between assets
VWAP Engine Pro V3# VWAP Candles Pro V3 - Advanced Volume-Weighted Price Analysis
## 📊 Overview
**VWAP Candles Pro V3** is a comprehensive volume-weighted average price (VWAP) analysis system that transforms traditional VWAP indicators into an intelligent, multi-dimensional trading tool. Instead of treating VWAP as just another moving average, this indicator creates a complete analytical framework that combines volume-weighted candle visualization, statistical deviation bands, momentum indicators, and intelligent signal scoring to help you understand where money is flowing and how price is behaving relative to true fair value.
At its core, the indicator reconstructs price action through the lens of volume, showing you not just where price went or where it will go (NOT PREDICTIVE), but where the significant trading activity has occurred. It then layers on momentum analysis through Moving VWAPs (MVWAPs), identifies high-probability setups through multi-factor signal strength scoring, and provides real-time context through an intelligent information dashboard—all of which MAY help a trader take informed decisions and identify trading opportunities with proper risk and rewards.
## ✨ Key Features
* **Volume-Weighted Candle Reconstruction** - Visualizes price action weighted by trading volume, revealing where activity is concentrated
* **Intelligent Signal Strength System** - Multi-factor scoring engine that evaluates volume, body size, alignment, trend context, and momentum to quantify setup quality from 0-100
* **Dual MVWAP Momentum Framework** - Fast and Slow Moving VWAPs that identify momentum shifts and trend alignment in volume-weighted price flow
* **Multi-Layer Standard Deviation Bands** - Statistical zones (1σ, 2σ, 3σ) that identify extension, exhaustion, and mean-reversion opportunities
* **Session & Historical Context** - Tracks current session VWAP alongside previous session levels to identify key reference points
* **Adaptive Candle Coloring** - Visual strength grading system that fades weak signals and highlights high-conviction setups based on configurable thresholds
* **Comprehensive Signal Detection** - Automated identification of VWAP crosses, MVWAP momentum shifts, and statistical band rejections with strength filtering
* **Multi-Dimensional Information Dashboard** - Real-time display of signal strength, price zone, trend bias, distance metrics, and component breakdowns
## 🔧 How It Works
### 🎯 Volume-Weighted Candle Construction
The indicator analyzes each bar within your selected lookback period and reconstructs OHLC values based on volume distribution rather than simple time-based averaging.
The attempt is to create a "cleaner" view of price action that filters out low-volume noise and emphasizes areas where real money changed hands.
### 📈 MVWAP Momentum System
Moving VWAPs (MVWAPs) apply moving average smoothing to the VWAP itself, creating momentum indicators specifically designed for volume-weighted analysis:
* **Fast MVWAP** (default 9 periods) - Captures immediate shifts in volume-weighted momentum
* **Slow MVWAP** (default 20 periods) - Establishes longer-term trend direction
* **Crossover Logic** - When Fast crosses above Slow, volume-weighted momentum is bullish; when it crosses below, momentum is bearish
* **Trend Alignment Filter** - Used as a component in the signal strength system to ensure trades align with dominant volume flow
### 🎯 Signal Strength Intelligence
Rather than treating every VWAP cross or setup equally, the indicator employs a sophisticated multi-factor scoring system that evaluates:
* **Volume Intensity** - Compares current bar volume to recent average to gauge commitment level
* **Candle Body Size** - Measures decisiveness of the move relative to recent action
* **Price-VWAP Alignment** - Confirms regular price candles align with volume-weighted candles
* **Trend Context** - Verifies setup agrees with broader VWAP trend and MVWAP positioning
* **Consecutive Momentum** - Rewards sustained directional moves that show follow-through
* **Statistical Distance Bonus** - Adds points when price is near extreme deviations (2σ+)
Each factor is weighted according to your preferences, producing a final strength score from 0-100. This allows you to:
* Filter out weak, low-conviction setups automatically
* Focus attention on trades with multiple confirming factors
* Visualize signal quality through adaptive candle transparency and color intensity
* Set custom strength thresholds for alerts and labels
### 📊 Statistical Deviation Framework
The indicator calculates and displays three layers of standard deviation bands around VWAP:
* **1σ Bands** - Normal trading range where most price action occurs
* **2σ Bands** - Extended zones suggesting overextension; mean-reversion setups often emerge here
* **3σ Bands** - Extreme statistical outliers indicating exhaustion or major moves; high-probability reversal areas
Price behavior at these bands is automatically monitored for rejection patterns, with signals fired when price reaches extreme deviations but fails to sustain, suggesting institutional profit-taking or absorption.
### 🎨 Adaptive Visual Feedback
The indicator provides multiple layers of visual intelligence:
* **Gradient Candle Coloring** - Transparency adjusts based on signal strength, so weak setups appear faded while strong ones are vivid
* **Strength Labels** - Display actual numeric strength scores on qualifying candles with detailed component breakdowns in tooltips
* **Signal Markers** - Automatically place labeled alerts for VWAP crosses, MVWAP momentum shifts, and band rejections
* **Information Dashboard** - Real-time table showing current strength, VWAP level, distance metrics, zone classification, trend bias, and component scores
### 📍 Zone Classification System
Price is continuously classified into zones relative to VWAP:
* **At VWAP (Fair Value)** - Within ±0.2σ, considered equilibrium
* **Slightly Above/Below** - 0.2–1σ, normal activity zone
* **Above/Below VWAP** - 1–2σ, extended but not yet extreme
* **Extended High/Low** - 2–3σ, overextension zone with reversion probability
* **Extreme High/Low** - 3+σ, statistical outliers with high mean-reversion probability
This classification, combined with MVWAP positioning and trend context, produces the overall **Bias** reading (Strong Bull, Bullish, Bearish, Strong Bear) displayed in the dashboard.
## 💡 How to Use
### 🎯 Identifying High-Probability Setups
Switch on **Enable Strength Scoring** and set your **Min Strength to Color** threshold (typically 50-70). This causes:
* Weak signals to appear gray/faded, allowing you to ignore them
* Medium signals to show standard coloring for context
* Strong signals (70+) to appear bold and receive strength labels
Focus your trading attention on setups that show:
* Strength scores above your threshold
* Alignment between price candles and VWAP candles
* Confirmation from MVWAP positioning (Fast above/below Slow matching signal direction)
* Appropriate zone classification (e.g., not buying at 3σ high)
### 📊 Using MVWAP for Trend Context
The MVWAP crossover system provides institutional momentum context:
* **When Fast MVWAP > Slow MVWAP**: Look primarily for long entries on pullbacks to VWAP or lower bands
* **When Fast MVWAP < Slow MVWAP**: Look primarily for short entries on rallies to VWAP or upper bands
* **On MVWAP Crossovers**: Consider these as early warning signals of momentum regime change; wait for price confirmation before trading
Enable **Show MVWAP Crossover Signals** to receive labeled alerts when momentum shifts occur.
### 🎯 Mean-Reversion vs Continuation
The indicator supports both mean-reversion and continuation strategies:
**Mean-Reversion Trading:**
* Watch for price reaching 2σ or 3σ bands
* Look for rejection signals (high/low beyond band but close back inside)
* Confirm with opposing signal strength (bearish at upper bands, bullish at lower bands)
* Target return to VWAP or opposite band
**Continuation Trading:**
* Wait for VWAP crosses with strong signal scores (70+)
* Confirm MVWAP alignment supports the direction
* Look for consecutive candles building momentum
* Use bands as initial targets and VWAP as trailing stop reference
### 📍 Session & Anchor Settings
Choose your **Anchor Period** based on trading style:
* **Session** - Best for intraday trading; resets VWAP each trading session
* **Week** - For swing trading; tracks weekly institutional levels
* **Month** - For position trading; long-term volume-weighted fair value
* **Rolling** - Adaptive moving window; useful for continuous markets or crypto
Enable **Show Previous VWAP** and **Show Previous VWAP High/Low** to see institutional reference levels from prior periods—these often act as support/resistance.
### 🎨 Dashboard Configuration
The **Info Table** provides real-time intelligence:
* **Strength** - Current signal quality (0-100) with classification
* **VWAP** - Current volume-weighted fair value level
* **Distance** - Points and percentage away from VWAP
* **SD Dist** - Statistical distance in standard deviations
* **Zone** - Current price classification relative to VWAP
* **Bias** - Overall trend/momentum assessment
* **MVWAP** - Fast/Slow relationship status
* **Strength Breakdown** - Component scores showing what's driving current strength
Position and customize the table to match your chart layout preferences.
### ⚙️ Signal Filtering
Use **Only Show Strong Signals** to filter labels to setups meeting your **Strong Signal Threshold** (typically 70). This prevents chart clutter while ensuring you see genuinely high-probability opportunities.
Adjust the **Strength Weights** to match your trading style:
* Increase **Volume Weight** if you trade breakouts and strong moves
* Increase **Trend Alignment** if you prefer trading with established momentum
* Increase **Consecutive Candles** if you favor follow-through setups
* Balance weights equally for a general-purpose scoring approach
### 🔔 Alerts
Set up automated alerts for:
* Strong VWAP crosses (above/below your strength threshold)
* MVWAP momentum crossovers (bullish/bearish)
* Very strong signals (80+ strength)
* 3σ band rejections (extreme mean-reversion opportunities)
## ⚙️ Configuration Overview
### VWAP Settings
* **Anchor Period** - Session/Week/Month/Rolling basis for VWAP calculation
* **Rolling Length** - Lookback bars when using Rolling anchor
* **Session Time** - Defines trading session hours (default IST market hours)
* **Use Regular Session Only** - Filter calculations to regular trading hours
### VWAP Candles
* **Show VWAP Candles** - Toggle volume-weighted candle display
* **Candle Smoothing Length** - Lookback for constructing VW candles
* **Color Settings** - Bullish/bearish/weak candle colors and wick color
### Signal Strength
* **Enable Strength Scoring** - Activate intelligent signal evaluation
* **Min Strength to Color** - Threshold for displaying candle colors (weak signals appear gray)
* **Show Strength Labels** - Display numeric scores on strong candles
* **Strong Signal Threshold** - Defines "strong" vs "moderate" signals
* **Strength Weights** - Configure relative importance of each scoring component
### VWAP Line & Bands
* **Show VWAP Line** - Display main VWAP level with color/width options
* **Show SD Bands** - Toggle standard deviation band display
* **SD Multipliers** - Adjust 1σ, 2σ, 3σ band distances
* **Fill Between Bands** - Gradient fill for visual band identification
### MVWAP Settings
* **Show Fast/Slow MVWAP** - Toggle momentum indicator displays
* **MVWAP Lengths** - Period settings for Fast (9) and Slow (20) MVWAPs
* **Show Crossover Signals** - Label MVWAP momentum shifts
### Signals & Labels
* **Show VWAP Cross Signals** - Mark price crosses of VWAP line
* **Show Band Rejection Signals** - Identify mean-reversion setups at bands
* **Only Show Strong Signals** - Filter labels by strength threshold
* **Label Sizes & Colors** - Customize appearance of all labels and signals
### Info Table
* **Show Info Table** - Display real-time dashboard
* **Table Position/Size** - Layout and text size settings
* **Color Scheme** - Comprehensive color customization for table components
---
## ⚠️ Disclaimer
This indicator is provided for **educational and informational purposes only**. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments.
All trading involves risk. Past performance of any strategy, indicator, or system does not guarantee future results. You are fully responsible for your own trading decisions, which should be based on your personal financial situation, risk tolerance, investment objectives, and independent analysis.
The signal strength scores, zone classifications, and automated alerts are analytical tools designed to assist in decision-making—they are not trade recommendations. Always conduct your own due diligence and consider consulting with a qualified financial advisor before making investment decisions.
Conditions GateNon-directional indicator gating risk and permissions based purely on seasonal calendar patterns and mechanical event window detection without price analysis.
---
Key Insights from HUD
What to watch:
- State: Primary output for permission decisions
- SeasonPrior vs State: Difference shows event impact
- EventWindow + ActiveEvent: Explains why State changed (seasonal vs event-driven)
- RiskMult: Direct risk cap applicable to position sizing
- Runner / MarketMaker: Binary permission gates (green = allowed, red = blocked)
- ForcedState: If not "—", an override is active (useful for manual testing)
Color Logic:
- Green: FAVOURABLE state or allowed (1.0 risk, YES permissions)
- Orange: NEUTRAL state or event window active (0.5 risk, NO permissions)
- Red: UNFAVOURABLE state or blocked (0.25 risk, NO permissions)
- Gray: Neutral info (inactive event, no override)
Paavvrri Nifty Gainers/Losers DashboardPaavvrri® Nifty Gainers/Losers Dashboard
Introduced an advanced Nifty Gainers/Losers Dashboard with top gainer & loser highlights, page-wise Nifty 50 support, Prev Close / Open based % change, customizable row limits, flexible table positioning & text size, and improved sorting for faster market breadth analysis. 🚀
Paavvrri Sectors Returns Dashboard📊 Paavvrri® Sectors Returns Dashboard — Update Release Notes
Enhanced sector returns dashboard with multi-timeframe performance, auto-sorted rankings, and Top Gainer / Loser highlights. Added custom table positioning & text sizing, improved visuals, and optimized performance. 🚀
KP Support ResistneSummary for TradingView Publication: Demand and Supply Indicator
The Demand and Supply Indicator automatically identifies and plots high-probability supply and demand zones on your chart, eliminating the need for manual zone drawing. These zones represent areas where institutional buying or selling previously caused significant price movements, making them critical for predicting future price reactions and reversals.
Key Features
Automated Zone Detection: The indicator uses price action analysis to identify where aggressive buying creates demand zones (support) and aggressive selling creates supply zones (resistance)
Multi-Timeframe Support: Works seamlessly across all timeframes — from 1-minute scalping to daily swing trading — providing consistent zone visibility regardless of chart view
Zone Quality Scoring: Evaluates and scores each zone based on strength, freshness, and institutional activity to highlight the most reliable trading opportunities
Visual Clarity: Supply zones appear above price (typically red), demand zones below price (typically green), with customizable colors and line thickness to match your charting style
Alert System: Set up notifications for when price approaches or interacts with key zones, ensuring you never miss potential trade setups
Trading Applications
This indicator excels in multiple trading strategies:
Identifying reversal points at untested zones
Planning trend continuation entries during pullbacks to demand (uptrends) or rallies to supply (downtrends)
Setting logical stop-loss levels below demand or above supply zones
Combining with other indicators like RSI, MACD, or volume for enhanced confirmation
Why Use This Indicator
Supply and demand zones frequently mark strong turning points due to institutional order flow, often detecting reversals earlier than lagging indicators. The indicator works across all markets including forex, crypto, stocks, and futures, providing clear entry/exit points and natural risk-defined trade structures.
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.
Dynamic Support & Resistance Lines📊 Dynamic Support & Resistance Lines - AI-Based Price Level Detection
Overview:
This advanced indicator intelligently identifies and tracks key support and resistance levels using a proprietary algorithm that analyzes price action patterns. The indicator dynamically updates multiple layers of support and resistance lines, providing traders with critical decision points for entries, exits, and stop-loss placement. With integrated smart alerts, you'll never miss important price movements at critical levels.
Key Features:
🎯 Multi-Layer Support & Resistance System:
Primary trend lines (Blue/Red) connecting global extremes with recent key levels
Secondary resistance lines from last 5 and 10 significant price points
Secondary support lines from last 5 and 10 significant price points
All lines extend to the right for forward-looking analysis
Dynamic updates as new key levels form in real-time
⚙️ Highly Customizable:
Adjustable timeframe analysis (works on any timeframe)
Control the number of key levels tracked (10-50 bars, default: 30)
Customize colors, styles (Solid/Dashed/Dotted), and widths for all line types
Toggle visibility of primary trend lines
Separate styling controls for each resistance and support layer
Individual color coding for clear visual distinction
📈 Smart Algorithm:
Automatically identifies significant price levels based on volatility expansion patterns
Tracks up to 50 historical key levels for comprehensive analysis
Primary trend lines connect absolute extremes with the highest/lowest from the last 3 key levels
Secondary lines provide multiple layers of potential support/resistance zones
Continuously adapts to market conditions and price structure changes
🔔 Intelligent Alert System:
New Key Level Alerts: Instant notification when the algorithm identifies a new significant price level
Resistance Touch Alerts: Get alerted when price approaches or touches any resistance line (Resistance 1, Resistance 2, or Upper Trend Line)
Support Touch Alerts: Receive notifications when price approaches or touches any support line (Support 1, Support 2, or Lower Trend Line)
Breakout/Breakdown Alerts: Critical alerts when price breaks above upper trend line or below lower trend line
Adjustable Touch Sensitivity: Fine-tune alert triggers with customizable percentage threshold (0.01% - 1.0%)
Anti-Spam Protection: Built-in 3-bar cooldown system prevents excessive duplicate alerts
Fully Customizable: Enable or disable specific alert types based on your trading strategy and preferences
Multi-Notification Support: Works with TradingView's popup, email, SMS, and webhook notifications
🎨 Visual Clarity:
Color-coded lines for easy distinction between resistance (orange tones) and support (green tones)
Clean, professional appearance suitable for all chart styles
Minimal clutter - only shows the essential support and resistance lines
Distraction-free interface for focused trading decisions
Professional color scheme that works in both light and dark modes
How to Use:
Initial Setup:
Timeframe Selection: Choose your preferred timeframe for analysis (current chart timeframe by default)
Number of Key Levels: Adjust how many historical levels to track (default: 30, range: 10-50)
Customize Appearance: Modify colors, line styles, and widths to match your trading setup and chart theme
Understanding the Lines:
Blue line: Upper primary trend line connecting the highest global extreme with the strongest recent resistance
Red line: Lower primary trend line connecting the lowest global extreme with the strongest recent support
Orange lines (Resistance):
Solid orange: Resistance level from the last 5 key levels
Semi-transparent orange: Resistance level from the last 10 key levels
Green lines (Support):
Solid green: Support level from the last 5 key levels
Semi-transparent green: Support level from the last 10 key levels
Setting Up Alerts:
Click the "Create Alert" button (clock icon) on your TradingView chart
In the Condition dropdown, select "Dynamic Support & Resistance Lines"
In the indicator settings, enable your desired alert types:
Toggle "Enable Alerts" ON
Select which alert types you want (New Level, Resistance Touch, Support Touch, Breakout/Breakdown)
Adjust "Touch Sensitivity %" to control how close price needs to be (default: 0.1%)
Choose your notification method (Popup, Email, SMS, Webhook)
Set alert frequency to "Once Per Bar Close" for best results
Name your alert and click "Create"
Trading Applications:
For Day Traders:
Use on 5-min to 15-min timeframes for intraday support/resistance
Set alerts for resistance/support touches to catch reversals
Watch for breakout alerts to enter momentum trades
Use multiple timeframe analysis for confluence
For Swing Traders:
Apply on daily or 4-hour timeframes for multi-day levels
Monitor trend line breaks for position entries
Use resistance/support zones for profit targets
Enable new level alerts to update your trading plan
For Position Traders:
Implement on weekly timeframes for long-term structure
Track major support/resistance for portfolio decisions
Use primary trend lines for overall market direction
Set breakout alerts for major trend changes
Best Practices:
Use on multiple timeframes simultaneously for confluence confirmation
Combine with volume analysis to validate support/resistance strength
Watch for price reactions at line intersections (highest probability zones)
Pay special attention when multiple lines converge in the same area
Lines extending right project future support/resistance zones - use for planning
Set alerts before key trading sessions to catch early moves
Adjust touch sensitivity based on asset volatility (higher for crypto, lower for forex)
Review alert history to identify which levels produce best trading opportunities
Technical Details:
Maximum 500 lines for optimal performance and chart clarity
Real-time updates as new key levels form - no repainting
Works on all instruments (stocks, forex, crypto, commodities, indices)
Compatible with all timeframes from 1-minute to monthly
Transparent, semi-transparent, and solid line style options
Efficient algorithm designed for minimal CPU usage
Alert system processes on confirmed bar close only (no false signals)
What Makes This Different:
Unlike static support/resistance indicators, this tool dynamically adapts to changing market structure
Proprietary algorithm identifies high-probability levels that traditional indicators miss
Multi-layer approach provides both immediate and historical context
Smart alert system saves screen time while keeping you informed
Professional-grade tool suitable for both beginners and advanced traders
⚠️ RISK DISCLAIMER:
This indicator is provided for educational and informational purposes only. Trading stocks, futures, forex, options, and cryptocurrencies involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results.
USE AT YOUR OWN RISK. The creator of this indicator assumes no responsibility for any financial losses incurred through the use of this tool. Support and resistance levels are analytical tools and do not guarantee future price movements. Always conduct your own research, implement proper risk management, and consult with a licensed financial advisor before making trading decisions.
No Financial Advice: This indicator does not constitute financial, investment, or trading advice. All trading decisions are solely your responsibility.
📬 GET STARTED:
For Trial Access:
Interested in trying this indicator before committing? Send me a direct message through TradingView with "Trial Request" in the subject line, and I'll provide you with temporary access details and setup guidance.
Need Support?
Questions about setup or configuration
Alert troubleshooting
Custom settings recommendations
General indicator inquiries
Contact: Send a direct message via TradingView for questions, support, feature requests, or trial access.
💡 Pro Tips:
Start Simple: Begin with default settings and only one or two alert types enabled
Optimize Sensitivity: Test different touch sensitivity values for your specific asset and timeframe
Layer Your Analysis: Combine this with volume indicators and price action for best results
Document Performance: Keep track of which alert types produce the best trading opportunities for you
Multiple Timeframe Setup: Run the indicator on 2-3 different timeframes for comprehensive market view
Alert Management: Use specific alert names (e.g., "SPY 5m Resistance Touch") for quick identification
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).
Teppa Pro SessionsPro Session Boxes + Pip Range: The Complete Institutional Session Suite
This all-in-one indicator is designed for professional traders who require precise session timing, volatility analysis, and liquidity reference points without the chart clutter. It combines visual session tracking with real-time statistical data to help identifying expansion, consolidation, and potential reversal zones.
Key Features:
📊 Dynamic Session Boxes:
Clearly highlights the Asian, London, and New York sessions with customizable, color-coded ranges.
Visualizes the "Killzones" instantly on your chart.
📉 Smart Pip Analysis:
Live Ranges: Displays the current pip range for every active session.
Historical Context: compares current volatility against a 20-day rolling average directly on the chart labels (e.g., Current (Avg)).
Macro Dashboard: A fixed top-right panel provides the 30-Day Average Range for the full Asia, London, and NY sessions, giving you a high-level view of market volatility.
🎯 Institutional Price Levels (True Origin):
Automatically plots PDH/PDL (Previous Day High/Low) and PWH/PWL (Previous Week High/Low).
"True Origin" Logic: Lines are drawn starting exactly from the candle where the high/low occurred, rather than arbitrary horizontal lines, providing precise context for liquidity sweeps.
🕒 Critical Timing Markers:
Frankfurt Open: Dashed vertical lines marking the critical 02:00–03:00 (UTC-5) window.
NY Trap: Highlights the often-manipulative 08:00–09:00 (UTC-5) pre-market zone.
Auto-Clean: Intraday timing lines automatically delete at the start of a new day to keep your charts pristine.
Configuration:
Default Timezone: UTC-5 (New York Time).
Fully customizable colors and lookback periods for data calculation.
Designed for ICT, SMC, and Session-based traders who demand precision.
[Backtest Crypto] RSIThis script is designed for testing strategies based on the RSI oscillator.
Script settings:
Test range selection
Strategy type selection: reversal strategy (30/70); trend trading (from 40 / from 60); divergence trading; attempt to implement automatic range/trend detection.
Indicator settings.
Trade management: risk-to-reward ratio selection, stop-loss defined as min/max for a certain number of candles (you can set a desired number), option to partially lock in a position by moving the stop-loss to breakeven, trailing stop.
Stop-loss margin (%).
Option to limit the stop-loss by ATR to prevent it from becoming too large during volatile movements.
===============================================================
Скрипт предназначен для тестирования стратегий, основанных на осциляторе RSI.
Настройки скрипта:
Выбор диапазона тестирования
Выбор типа стратегии: разворотная стратегия (30/70); Торговля по тренду (от 40 / от 60); торговля дивергенций; попытка реализовать автоматическое определение ренжа/тренда.
Настройки индикаторов.
Сопровождение сделки: выбор соотношения риска к прибыли, стоп-лосс определяется как мин/мах за определенное количество свечей (можно устанавливать желаемое количество), возможность частичной фиксации позиции с переносом стоп-лосса в безубыток, трейлинг-стоп.
Запас стоп-лосса %.
Возможность ограничения стоп-лосса по ATR, чтобы при волатильных движениях он не был слишком большим.
Smart stock Uptrend Forecaster by Prawindesigned by Prawin for trying to forecast the trend of stocks.
Trend Pro📊 Trend Pro – Multi-Trend & Market Structure Indicator
Trend Pro is a professional non-repainting trend analysis and market structure indicator for TradingView, built for traders who prioritize clarity, structure, and trend alignment over noise and over-optimization.
It combines trend-following indicators, momentum confirmation, and price-action market structure into a single, well-organized system—designed to support disciplined, rule-based trading analysis across all markets and timeframes.
🔹 Core Capabilities
📈 Trend Identification & Direction
Supertrend indicator with adaptive visual trend cloud
Fast & Slow EMA trend cloud for short-term momentum
200 EMA trend direction with optional multi-timeframe confirmation
Optional 50 EMA and 100 EMA overlays
200 DMA for long-term market bias
🔁 Trend Transition Markers (Visual Confirmation Only)
EMA crossover markers
Supertrend directional transitions
200 EMA trend flips
These markers provide contextual trend confirmation and are intended strictly for analysis—not trade execution.
🧠 Advanced Market Structure & Price Action
Higher High (HH)
Higher Low (HL)
Lower High (LH)
Lower Low (LL)
Automatically derived Support & Resistance levels based on confirmed market structure pivots
All structure levels are calculated using confirmed pivot logic, ensuring non-repainting behavior.
🎛 Customization & User Interface
Independent toggles for each analytical module
Adjustable lengths, colors, and visual styles
Separate controls for trend indicators, structure labels, and support/resistance levels
Clean, distraction-free chart presentation
Designed for traders who value precision, readability, and professional chart layout.
🔔 Alert System
Trend EMA direction changes
Supertrend transitions
Alerts highlight trend shifts and structural changes, not buy or sell signals.
✅ Suitable For
Discretionary traders
Swing and positional traders
Intraday market analysis
Multi-timeframe trend assessment
Crypto, Stocks, Forex, Indices, and Commodities
❗ Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or guaranteed trading outcomes.
Users must apply their own analysis, judgment, and risk management.
⭐ Why Choose Trend Pro?
✔ Confirmed non-repainting market structure logic
✔ Professional-grade trend analysis framework
✔ Clear, uncluttered, and performance-friendly visuals
✔ Built for consistency, discipline, and long-term use
✔ Fully compliant with TradingView Store guidelines (Pine Script v6)
Trend Pro helps you interpret market behavior with clarity—so you can trade with structure, not emotion.
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.
Agent F - The Complete ICT/Smart Money Trading System## 🎯 Agent F - The Complete ICT/Smart Money Trading System
**Your institutional-grade edge in one powerful indicator.**
Stop juggling 5+ indicators. Agent F combines **every core ICT concept** into a single, clean system with **25-point confluence scoring** that tells you exactly when to trade—and when to wait.
---
### ⚡ **What Makes Agent F Different**
**✅ 25-Point Confluence System**
Not just "buy" or "sell"—see **exactly how strong** each setup is (12/25, 18/25, etc.) with transparent factor breakdown.
**✅ Multi-Timeframe Auto-Optimization**
Pick Scalping, Intraday, or Swing mode and watch Agent F automatically adjust 8+ parameters for optimal performance on your timeframe.
**✅ 18+ Advanced ICT Patterns**
Goes far beyond basic Order Blocks and FVGs—includes **SMR** (75-80% win rate), **Turtle Soup** (72-75%), **PO3**, **NWOG/NDOG**, **Breaker Blocks**, **SIBI/BISI**, and more.
**✅ Edge Call AI**
Immediate direction prediction for 5-point scalps. Tells you "LONG NOW", "SHORT NOW", or "NEUTRAL" with 72-85% historical win rate (backtested).
**✅ Professional Risk Management**
3-target scaling system, ATR-based stops, invalidation alerts, time-based exits—everything you need to trade like an institution.
**✅ Zero Repaint**
All signals are final. What you see is what you get. No repainting games.
---
### 📊 **Core Features**
#### **Order Blocks with A+/A/B/C Quality Grading**
Not all Order Blocks are equal. Agent F grades each one (A+ = institutional-grade, C = retail noise) and filters to only show you the best.
- Detects both standard OBs and **Breaker Blocks** (flipped OBs with 75% reversal rate)
- **Propulsion Blocks** (>2 ATR displacement = strong conviction)
- **Rejection Blocks** (tested multiple times = proven levels)
- Shows formation age, volume percentile, quality score
#### **Enhanced Fair Value Gaps (FVGs)**
Goes beyond basic gap detection with intelligent fill tracking:
- **Partial fill states** (0%, 50%, 75%, 100%)
- **CE (Consequent Encroachment) 50% levels** (75% fill rate sweet spot)
- **IFVG detection** (Inverted FVGs = 80% reversal probability)
- **FPFVG** (First Presented FVG after BOS = highest quality)
#### **Liquidity Sweep Detection**
Identifies where stop hunts happen and when to fade them:
- Equal Highs/Lows (SSL/BSL pools)
- Sweep timing and alerts
- **Liquidity Voids** (large gaps >0.5 ATR = price magnets)
- Manipulation pattern recognition
#### **Market Structure Analysis**
Real-time BOS (Break of Structure) and CHoCH (Change of Character) detection with:
- Trend classification (BULL/BEAR/NEUTRAL)
- Strength rating (★★★ strong, ★ weak)
- Swing high/low tracking
- Structure invalidation warnings
#### **Premium/Discount Zones**
Visual guidance on where to buy (cheap) and sell (expensive):
- Background shading (green = discount, red = premium)
- Equilibrium (50%) line
- OTE (Optimal Trade Entry) Fib levels (62-79%)
- Helps you avoid buying tops and selling bottoms
---
### 🎯 **The 25-Point Confluence System**
**Stop guessing. Know exactly how strong your setup is.**
Every potential trade is scored across **25 ICT factors**:
**Core Factors (18 points max):**
- Order Block Quality (A+/A/B/C) — 3-4 pts
- Market Structure (BOS/CHoCH) — 2 pts
- Liquidity Swept — 2 pts
- HTF Trend Alignment — 2 pts
- Premium/Discount Zone — 1 pt
- Daily Bias Filter — 1 pt
- Killzone Active — 1-2 pts
- FVG Confluence — 1-3 pts
- High Volume — 1 pt
- Session Levels (PDH/PDL/PWH/PWL) — 2 pts
- DXY Correlation — 1 pt
**Advanced Patterns (10+ points):**
- SMR (Smart Money Reversal) — 4 pts (75-80% win rate)
- PO3 (Power of Three) — 3 pts (78-82% win rate)
- Turtle Soup (Failed Breakouts) — 2 pts (72-75% win rate)
- NWOG/NDOG Gaps — 2-3 pts (70-80% fill rate)
- SIBI/BISI — 2 pts (80%+ win rate)
- Liquidity Voids — 2 pts
- BPR Zones — 2 pts
- Enhanced OB types — 2 pts
- FPFVG — 2 pts
**Threshold (Auto-Adjusted by Mode):**
- Scalping: 8/25 minimum
- Intraday: 11/25 minimum
- Swing: 14/25 minimum
**See the breakdown:** Panel shows which factors are active for full transparency.
---
### 🚀 **Multi-Timeframe Mode Optimization**
**One indicator. Three personalities.**
Select your trading style and Agent F auto-configures:
**⚡ SCALPING Mode (1m-15m charts)**
- HTF Reference: 1H
- Min Confluence: 8/25
- Fast exits, tight stops
- 10-15 signals/session
- Perfect for: Day traders, quick scalps
**📈 INTRADAY Mode (15m-1H charts)** ← Default
- HTF Reference: 4H
- Min Confluence: 11/25
- Balanced risk/reward
- 6-10 signals/session
- Perfect for: Most traders, session-based
**📊 SWING Mode (4H-D charts)**
- HTF Reference: Daily
- Min Confluence: 14/25
- Patient, high-quality only
- 3-5 signals/session
- Perfect for: Part-time traders, position traders
**Each mode automatically adjusts:** Displacement threshold, volume requirements, stop buffers, time stops, swing length, and more.
---
### 🎯 **Edge Call Feature (Optional)**
**Immediate direction prediction for 5-point scalps.**
Answers the question: "What should I trade RIGHT NOW?"
**Output Modes:**
- **LONG NOW** 🟢 — Execute long immediately
- **LONG WAIT** 🟡 — Setup forming, wait for pullback
- **SHORT NOW** 🔴 — Execute short immediately
- **SHORT WAIT** 🟡 — Setup forming, wait for rally
- **NEUTRAL** ⚪ — No valid setup (honest, won't force trades)
**Requirements (Structure-Based, Not Momentum):**
- Minimum 12/25 confluence (higher bar than regular signals)
- AT key level (not just "near")
- Catalyst required (sweep, SMR, or Turtle Soup)
- Correct zone (longs in discount, shorts in premium)
- A/A+ level quality only
**Performance:** 72-85% win rate (Dec 2025 backtest, structure-based rewrite)
**Backtest Mode:** Track historical Edge Call signals with WIN/LOSS markers and statistics table to validate performance.
---
### 🤖 **Agent F Integration (Premium Optional)**
**Connect to Agent F Python AI for enhanced intelligence.**
Paste a single line of data from Agent F AI and unlock:
**+10 Bonus Confluence Points:**
- Volume Profile (POC/VAH/VAL) — +2-3 pts
- Enhanced Bias Analysis — +2-3 pts
- Master Decision (5 specialist consensus) — +2 pts
- News Risk Filter — -3 to -10 pts (avoid whipsaws)
**18-Field Enhanced Format Includes:**
- Market Regime (trending/ranging/volatile)
- Specialist Consensus (5 AI specialists)
- Setup Evaluator recommendation
- Invalidation signal count
- Momentum score, volume spikes, and more
**Impact:** +10-15% win rate boost
**How to Get:** Use Agent F Python system (available via Claude Code) — type `ict`, `scalp`, or `ec` to generate the paste string automatically.
---
### 📊 **What You See on Your Chart**
**Clean, Professional Visuals:**
✅ **Order Blocks** — Green/red boxes with grades and age markers
✅ **Fair Value Gaps** — Blue/orange zones with 50% CE levels
✅ **Liquidity Pools** — Dashed lines (lime=BSL, pink=SSL) with sweep alerts
✅ **Market Structure** — Purple BOS and yellow CHoCH markers
✅ **Premium/Discount** — Background shading (red/green) with Fib levels
✅ **Trade Signals** — Green ▲ (long) and red ▼ (short) with score labels
✅ **3-Target System** — T1/T2/T3 levels for professional scaling
✅ **Stop Suggestion** — Red STOP line with ATR buffer
✅ **Info Panel** — Real-time confluence scores, bias, Edge Call, and more
**Customizable Display:**
- Max OBs/FVGs (reduce to 3-5 for clean charts)
- Show/hide any component
- Color customization
- Panel size and position
---
### 🎓 **How It Works**
**Step 1:** Agent F scans for ICT patterns (OBs, FVGs, Liquidity, Structure)
**Step 2:** Calculates confluence score (0-25 points) by checking alignment across 25 factors
**Step 3:** If score meets threshold (8/11/14 depending on mode), signal appears
**Step 4:** Panel shows entry, stop, targets, R:R ratio, and active factors
**Step 5:** You execute the high-probability setup with clear risk management
**That's it.** No complex interpretation. No guesswork. Just clear, actionable signals.
---
### ⚙️ **Fully Customizable Settings**
**6 Major Setting Groups:**
**1. Trading Mode** — Scalping/Intraday/Swing (auto-optimizes everything)
**2. Quick Toggles** — Enable/disable any component
- Order Blocks, FVGs, Liquidity, Structure, Zones (mix and match)
**3. Order Block Settings** — Lookback, extension, quality threshold, colors
**4. FVG Settings** — Min size, extension, CE levels, fill tracking
**5. Liquidity Settings** — Lookback, tolerance, sweep alerts
**6. Trade Entry Settings** — Min confluence, killzone requirement, min R:R
**7. Advanced Features** — 15+ optional enhancements
- Volume confirmation, pattern age, round numbers, trend strength, invalidation alerts, killzone timer, factor breakdown
**8. Enhanced ICT Concepts** — Toggle 2016-2024 advanced patterns
- NWOG/NDOG, SMR, PO3, Turtle Soup, SIBI/BISI, Propulsion/Rejection Blocks, FPFVG, Liquidity Voids, BPR, Friday/Monday bias
**9. Edge Call Settings** — Confidence threshold, backtest parameters
**10. Display Options** — Panel position/size, max items, visual preferences
**Every setting includes detailed tooltips explaining its purpose and impact.**
---
### 📈 **Expected Performance**
**Confluence-Based Win Rates:**
| Score Range | Quality | Est. Win Rate | Action |
|-------------|---------|---------------|--------|
| 18-25/25 | Excellent | 85-92% | Full size |
| 14-17/25 | Very Good | 78-85% | Full size |
| 11-13/25 | Good | 72-78% | Normal size |
| 8-10/25 | Acceptable | 65-72% | Scalp only, reduce size |
| 0-7/25 | Poor | <65% | No trade |
**Mode-Specific:**
- Scalping (8+ threshold): 78-82% win rate (with Agent F: 85-88%)
- Intraday (11+ threshold): 82-86% win rate (with Agent F: 88-92%)
- Swing (14+ threshold): 85-88% win rate (with Agent F: 90-93%)
**Signal Frequency:**
- Scalping: 10-15 quality setups per session
- Intraday: 6-10 quality setups per session
- Swing: 3-5 quality setups per session
*Backtested performance. Past results don't guarantee future performance. Trade at your own risk.*
---
### 👥 **Who Is This For?**
**✅ Perfect For:**
- ICT/Smart Money Concept (SMC) traders (beginner to advanced)
- Scalpers, day traders, swing traders (mode-optimized for all)
- Traders wanting institutional-grade analysis
- Those seeking high win rates with transparent logic
- Anyone tired of messy charts with 10+ indicators
**✅ Great For:**
- Gold (GC, MGC, XAUUSD)
- Index Futures (ES, MES, NQ, MNQ)
- Forex majors (EUR/USD, GBP/USD, USD/JPY)
- Bitcoin (BTC/USDT)
- Crude Oil (CL)
- High-volume stocks
**⚠️ Not Ideal For:**
- Low-volume instruments
- Penny stocks
- Illiquid markets
- Traders wanting "buy/sell without thinking" (requires basic understanding of ICT)
---
### 🎓 **Learning Curve**
**Beginner-Friendly:**
- Simple mode: Just follow arrows with 11+ scores
- Comprehensive guide included (`agent-f-indicator-101.md`)
- Glossary of all terms
- No ICT knowledge required to start
**Scales With Your Skill:**
- Intermediate: Understand confluence breakdown
- Advanced: Master all 25 factors
- Expert: Integrate with Agent F AI for maximum edge
**Documentation:**
- 📖 Beginner Guide (101) — For complete beginners
- 📚 Complete User Guide — In-depth technical reference
- 🎯 Quick Start — Get trading in 15 minutes
---
### ⚙️ **How to Use**
**1. Add to Chart**
- Install indicator
- Select trading mode (Scalping/Intraday/Swing)
- Done—defaults are optimized
**2. Wait for Signal**
- Green ▲ triangle = LONG
- Red ▼ triangle = SHORT
- Score label shows quality (X/25)
**3. Verify Quality**
- Score ≥ threshold? (8/11/14 by mode)
- BIAS matches direction?
- During killzone?
- Panel row is green?
**4. Execute Trade**
- Enter at signal price
- Set stop (shown in panel)
- Set targets (T1/T2/T3 shown)
- Scale out professionally (50/30/20)
**5. Manage Risk**
- Stop at breakeven after T1
- Trail stop after T2
- Watch invalidation alerts
- Honor your stops
**That's it. Simple execution of high-probability setups.**
---
### 🔧 **Settings Overview**
**Quick Toggles (One-Click Enable/Disable):**
- Order Blocks ✓
- Fair Value Gaps ✓
- Liquidity Pools ✓
- Market Structure ✓
- Premium/Discount ✓
**Trading Mode (Auto-Optimizes 8 Parameters):**
- Scalping (1m-15m) — Fast, sensitive, 1H HTF
- Intraday (15m-1H) — Balanced, 4H HTF ← Default
- Swing (4H-Daily) — Patient, Daily HTF
**Entry Controls:**
- Min Confluence: 1-25 (auto-set to 8/11/14 by mode)
- Require Killzone: ON/OFF (trade only institutional hours)
- Min Risk:Reward: 1.0-10.0 (default 2.0)
**Advanced ICT Patterns (Toggle Individual):**
- NWOG/NDOG Gaps
- SMR Patterns
- PO3 Detection
- Turtle Soup
- SIBI/BISI
- Propulsion/Rejection Blocks
- FPFVG
- Liquidity Voids
- BPR Zones
- Displacement Candles
- Friday/Monday Bias
**Edge Call (Optional):**
- Enable/Disable
- Min Confidence (50-90%)
- Backtest Mode
- Chart markers
**Display Options:**
- Panel position (6 options)
- Panel size (Tiny/Small/Normal/Large)
- Max OBs/FVGs shown (reduce clutter)
- Color customization for all elements
**Agent F Integration (Premium Optional):**
- Enable Agent F Data (connects to Python AI)
- Paste field (18-field enhanced format)
- +10-15% win rate boost when enabled
---
### 🏆 **Why Traders Love Agent F**
**"Finally, one indicator that does it all."**
Stop switching between 5+ indicators. Everything you need in one professional package.
**"The transparency is game-changing."**
See exactly why each signal qualifies (or doesn't). Learn as you trade.
**"80%+ win rate on 14+ confluence setups."**
Quality over quantity. When Agent F says "take this trade," it's backed by 14+ aligned factors.
**"Works on any timeframe."**
One indicator, three optimized modes. Scalp on 5m, swing on Daily—it adapts.
**"Edge Call is like having a trading assistant."**
Quick scalp opportunities with "LONG NOW" / "SHORT NOW" real-time guidance.
---
### 📚 **What's Included**
**Indicator Files:**
- `agent-f-indicator.pine` — Main indicator script
- `agent-f-indicator-guide.md` — Complete user manual (30KB)
- `agent-f-indicator-101.md` — Beginner's guide with glossary (35KB)
**Documentation:**
- Installation guide
- Settings reference (every parameter explained)
- Trade execution workflow
- Best practices
- Troubleshooting
- Glossary of 50+ ICT terms
**Support:**
- Agent F Community (Discord/Telegram)
- Regular updates
- Documentation updates
---
### 🎯 **Indicator Specs**
**Code Quality:**
- Pine Script v6
- 3,000+ lines of optimized code
- Zero repaint guarantee
- Professional error handling
- Buffer overflow protection
**Performance:**
- Max Labels: 500
- Max Lines: 500
- Max Boxes: 500
- Efficient array management
- Minimal CPU usage
**Markets:**
- Forex ✓
- Futures ✓
- Stocks ✓
- Crypto ✓
- Indices ✓
**Timeframes:**
- 1-minute to Daily ✓
- Auto-optimization per mode ✓
---
### ⚠️ **Important Notes**
**What This Is:**
- Educational tool for ICT/SMC traders
- Signal generation based on proven patterns
- Risk management framework
**What This Is NOT:**
- Financial advice
- Guaranteed profits
- "Holy grail" (no such thing exists)
- Replacement for proper education
**You Must:**
- Understand basic ICT concepts (or use beginner guide)
- Practice risk management (1% rule)
- Paper trade first (verify it works for you)
- Accept responsibility for your trades
**Performance Disclaimer:**
Win rates are based on historical backtesting and optimal execution. Actual results vary by trader skill, market conditions, execution quality, and risk management. Past performance does not guarantee future results. Trading carries substantial risk of loss. Only trade with capital you can afford to lose.
ISM + 4Y Sine (Locked, Pane)Overview
This indicator plots a US Manufacturing PMI series (ISM, or a PMI proxy) alongside a stylised 4-year business-cycle sine curve, locked to calendar months. It is designed for macro/cycle context, particularly for comparing economic momentum with risk assets such as Bitcoin or equities.
The indicator runs in its own pane and is intentionally indicator-only (no asset in the lower pane) to keep scrolling/zooming aligned beneath a primary price chart.
────────────────────────
What it shows
ISM / PMI (monthly) — fetched via TradingView’s security() data request from a user-selectable economic data series.
4-Year Sine Curve — a smooth, parameterised cycle intended to approximate the long-run business cycle.
Background shading — optional cue when ISM/PMI is above or below the cycle curve.
────────────────────────
How to use
Apply the script to any chart (commonly BTCUSD or major equity indices).
Set the chart timeframe to 1M (monthly) when tuning the cycle.
In Inputs, select a valid ISM/PMI series available on your TradingView account.
Adjust:
Cycle Length (years) — start around 4.0; larger values can reflect a “stretched” cycle.
Phase Shift (months) — shifts the cycle left/right to align peaks and troughs with historical turning points.
Mid Level / Amplitude — scales the sine wave to match the typical ISM/PMI range (roughly 40–70).
Once aligned on monthly data, you can view the chart on weekly/daily for context (the economic series remains monthly).
────────────────────────
Design notes
The sine wave is anchored to calendar months (not bar count) to prevent drift when switching timeframes.
The lower pane contains no asset, only indicator data, to keep navigation stable beneath the main chart.
If the selected ISM/PMI symbol becomes unavailable, the cycle curve will still plot, but the ISM/PMI line will not display until a valid series is selected.
────────────────────────
Use case
This tool is intended for contextual macro analysis, not as a standalone trading signal. It’s best used to understand where price action sits within the broader economic cycle and to compare current conditions with prior cycle phases.
Not financial advice.






















