Impulse MACD + VixFix Combo [TCMaster]🧠 Description (for TradingView)
Impulse MACD + VixFix Combo is a powerful dual-momentum indicator that combines the Impulse MACD (trend & momentum shifts) with the CM_Williams_VixFix (market top & bottom detector).
This hybrid tool provides early momentum signals while also identifying potential volatility-based reversals — helping traders spot both trend continuations and reversal zones in a single chart.
📊 Features
Impulse MACD (LazyBear style):
Detects early momentum shifts through ZLEMA & SMMA smoothing.
Displays trend color changes (green/red/orange/lime).
Generates Buy/Sell alerts when the MACD crosses its signal line below/above zero.
Can optionally color bars based on momentum direction.
CM_Williams_VixFix (Enhanced Version):
Identifies market tops and bottoms using volatility spikes.
Features independent visual scaling for better comparison with MACD.
Alerts when price volatility suggests a possible reversal zone.
Plotted as a histogram for clear contrast with MACD lines.
⚙️ Settings
Separated into two groups:
Impulse MACD Settings
VixFix Settings
Includes adjustable lookback periods, smoothing lengths, and scaling factor for better visual balance.
💡 How to Use
Look for Buy signals when the Impulse MACD crosses above its signal line below zero, ideally when VixFix shows a market bottom.
Look for Sell signals when the Impulse MACD crosses below its signal line above zero, ideally when VixFix shows a market top.
Combine with price structure, support/resistance, or volume for confirmation.
Chart patterns
Price Action IndicatorThis indicator is based on Price Action
Trend bar would be filled with Red/Green
Reversal bar would be tagged
RSI Divergence 1-20 Candlesthis is a rsi divergence indicator used to mark divergence on the candle for knowing the trend
Victoria Overlay - HTF 200 + VWAP + ATR Stop + MA TrioConsolidated road to minions
Buy Setup:
EMA1 crosses above SMA3.
RSI confirms above 50.
Volume increasing (confirming momentum).
Candle closes above SMA1 base.
Sell Setup:
EMA1 crosses below SMA3.
RSI drops below 50 or exits overbought.
Volume confirms (declining or reversing).
Candle closes below SMA1 base.
Tips:
Think of EMA1 as the scalper’s trigger.
SMA3 is your momentum check.
SMA1 (base) = short-term bias.
Avoid entries during low-volume chop.
Use for day trades or tight scalps; exits happen fast.
Overlay (Smoothed Heikin Ashi + Swing + VWAP + ATR Stop + 200-SMA)
Purpose: Multi-layer trend confirmation + clean structure.
Type: Swing alignment tool.
🟩 BUY / CALL Conditions
Green “Buy (Gated)” arrow appears.
Price is above VWAP, above 200-SMA, and above ATR stop.
ATR stop (green line) sits under price → support confirmed.
Heikin-Ashi candles are green/lime.
Bias label says “Above VWAP | Above 200 | Swing Up”.
🟥 SELL / PUT Conditions
Red “Sell (Gated)” arrow appears.
Price is below VWAP, below 200-SMA, and below ATR stop.
ATR stop (red line) sits above price → resistance confirmed.
Heikin-Ashi candles are red.
Bias label says “Below VWAP | Below 200 | Swing Down”.
Exit / Risk Control:
Close position when price crosses ATR stop.
If Heikin candles flip color, momentum is reversing.
Best Use Cases:
For next-day or multi-hour swing entries.
Use ATR Stop for dynamic stop loss.
Stay out when the bias label is mixed (e.g. “Above VWAP | Below 200 | Swing Down”).
Pro Tip:
On big news days, let VWAP reset post-open before acting on arrows — filters fake signals.
RSI Panel Pro (v6)
Purpose: Strength + exhaustion confirmation.
Type: Momentum filter.
Key Levels:
Overbought: 80+ → take profits soon.
Oversold: 20– → watch for bounce setups.
Bull regime: RSI above 60 = momentum strong.
Bear regime: RSI below 40 = weakness.
Buy / Entry Signals:
RSI crosses up from below 40 or 20.
RSI line is above RSI-EMA (gray line).
Higher timeframe RSI (if used) is also rising.
Trim / Exit:
RSI drops under 60 after being strong.
RSI crosses below its EMA.
Sell / Put Setup:
RSI fails at 60 or drops below 40.
RSI crosses under EMA after a bounce.
Tips:
Pair RSI panel with Victoria Overlay — only take gated buys when RSI confirms.
RSI < 40 but above 20 = “loading zone” for reversals.
RSI > 70 = overextended → wait for confirmation before entering.
Combined Execution Rules
Goal What to Watch Action
Entry (CALL) EMA1 > SMA3, Buy (Gated) arrow, RSI rising > 50 Buy call / open long
Entry (PUT) EMA1 < SMA3, Sell (Gated) arrow, RSI < 50 Buy put / open short
Exit Early Price crosses ATR stop or RSI flips under EMA Exit trade / protect gains
Trend Filter VWAP + 200-SMA alignment Only trade in that direction
Avoid Trades Conflicting bias label or low volume Stay flat
Pro Tips
VWAP → Intraday mean: above = bullish control, below = bearish control.
ATR Stop → Dynamic trailing stop: never widen it manually.
Smoothed Heikin-Ashi → filters noise: trend stays until color flips twice.
RSI Panel → confirms whether to hold through pullbacks.
If RSI and Overlay disagree — wait, not trade.
Average Price Calculator / VisualizerDCA Average Price Calculator - Visualize Your Breakeven & TP!
Ever wished you could visualize your trades and instantly see your average entry price right here on TradingView? Especially if you're a DCA (Dollar-Cost Averaging) trader like me, tracking multiple entries can be a hassle. You're constantly switching to a spreadsheet or calculator to figure out your breakeven and take-profit levels. Well I've developed this DCA Average Price Calculator to solve exactly that problem, bringing all your position planning directly onto your chart.
What It Does
This indicator is a interactive tool designed to calculate the weighted average price of up to 10 separate trade entries. It then plots your crucial breakeven (average price) and a customizable take-profit target directly on your chart, giving you a clear visual of your position.
Key Features
Up to 10 Order Entries: Plan complex DCA strategies with support for up to ten individual buys.
Flexible Size Input: Enter your position size in either USD Amount or Number of Shares/Contracts. The script is smart enough to know which one you're using.
Instant Average Price Calculation: Your weighted average price (your breakeven point) is calculated and plotted in real-time as a clean yellow line.
Customizable Take-Profit Target: Set your desired profit percentage and see your take-profit level instantly plotted as a green line.
Detailed On-Chart Labels: Each order you plot is marked with a detailed label showing the entry price, the number of shares purchased, and the total USD value of that entry.
Clean & Uncluttered UI: The main Average and TP labels are intelligently shifted to the right, ensuring they don't overlap with your entry markers, keeping your chart readable.
How to Use It - Simple Steps
Add the indicator to your chart.
Open the script's 'Settings' menu.
In the 'Take Profit' section, set your desired profit percentage (e.g., 1 for 1%).
Under the 'Orders' section, begin filling in your entries. For each 'Order #', enter the Price.
Next, enter the size. You can either fill in the 'Size (USD)' box OR the '/ Shares' box. Leave the one you're not using at 0.
As you add orders, the 'Avg' (yellow) and 'TP' (green) lines, along with the blue order labels, will automatically appear and adjust on your chart!
Who Is This For?
DCA Traders: This is the ultimate tool for you!
Position Traders: Keep track of scaling into a larger position over time.
Manual Backtesters: Quickly simulate and visualize how a series of buys would have played out.
Any Trader who wants a quick and easy way to calculate their average entry without leaving TradingView.
I built this tool to improve my own trading workflow, and I hope it helps you as much as it has helped me. If you find it useful, please consider giving it a 'Like' and feel free to leave any feedback or suggestions in the comments!
Happy trading
MTF OB & FVG detector w/ Alerts - Public Version# MTF OB & FVG検知器(アラート付き)
## 📊 概要
機関投資家のオーダーブロック(OB)検知とフェアバリューギャップ(FVG)分析を組み合わせた、包括的なマルチタイムフレームインジケーターです。複数の時間足にわたって高確率のサポート・レジスタンスゾーンを同時に識別し、統合された反発検知アラート機能を備えています。
## ✨ 主要機能
### 🎯 マルチタイムフレーム オーダーブロック(OB)
- **機関投資家のゾーン**: 大口機関が大量の注文を入れたエリアを検知
- **出来高分析**: 各オーダーブロック内の出来高分布(強気vs弱気)を表示
- **スマートスイング検知**: スイングハイ/ローに基づいてオーダーブロックを自動識別
- **ゾーン結合**: 異なる時間足の重複するオーダーブロックをインテリジェントに統合
- **自動無効化**: 価格がブレイクしたオーダーブロックを自動的に非表示
- **固定延長**: すべてのゾーンを右に50本分延長して表示の一貫性を確保
- **色オプション**:
- デフォルト(反転ON): 強気=赤、弱気=青
- 反転OFF: 強気=青、弱気=赤
### 📈 マルチタイムフレーム フェアバリューギャップ(FVG)
- **価格の非効率性検知**: 市場が急速に動きすぎた際の価格ギャップを識別
- **出来高分布**: 各ギャップ内の買い/売り出来高パーセンテージを表示
- **統計的フィルタリング**: 有意なギャップのみを表示(サイズ上位10%)
- **埋められた追跡**: 価格がギャップを埋めた際に自動的に非表示
- **固定延長**: すべてのギャップを右に50本分延長して表示の一貫性を確保
- **色オプション**:
- デフォルト(反転ON): 強気=オレンジ、弱気=水色
- 反転OFF: 強気=水色、弱気=オレンジ
### ⏱️ サポートする時間足
- **1分足** ✅(デフォルト有効)
- **5分足** ✅(デフォルト有効)
- **15分足** ✅(デフォルト有効)
- **60分足(1時間足)** ✅(デフォルト有効)
- **240分足(4時間足)** ⬜(デフォルト無効)
### 🔔 インテリジェント反発アラート
- **統合検知**: OBまたはFVGゾーンからの反発時にアラート発動
- **強気反発**: サポートゾーンから上方へ反発した際に通知
- **弱気反発**: レジスタンスゾーンから下方へ反発した際に通知
- **マルチタイムフレーム監視**: 有効化されたすべての時間足を同時に追跡
- **エッジ検知**: 新しい反発のみアラート(スパム防止)
## 📖 使用方法
### 初期セットアップ
1. インジケーターをTradingViewチャートに追加
2. どの時間足でも動作しますが、日中トレードには1分~15分足を推奨
3. 有効化されたすべての時間足のOBとFVGゾーンが表示されます
### 表示の理解
#### オーダーブロック(OB)
**視覚要素:**
- **ゾーンボックス**: オーダーブロックエリアを示す色付き長方形
- 赤色ボックス = 強気OB(サポート候補)
- 青色ボックス = 弱気OB(レジスタンス候補)
- **出来高バー**(左側): OB形成時の出来高分布を表示
- 緑部分 = 強気出来高
- 赤部分 = 弱気出来高
- **テキストラベル**(右側): 時間足と総出来高を表示
- 例: 「5m OB」と出来高量
**解釈:**
- 強気OB = 機関投資家が買い注文を持っている可能性が高いエリア
- 弱気OB = 機関投資家が売り注文を持っている可能性が高いエリア
- 高出来高 = より強力なゾーン
- 複数時間足の重なり = より重要なゾーン
#### フェアバリューギャップ(FVG)
**視覚要素:**
- **ギャップボックス**: 価格ギャップを示す色付き長方形
- オレンジ色ボックス = 強気FVG(サポート候補)
- 水色ボックス = 弱気FVG(レジスタンス候補)
- **出来高バー**(ギャップ内): 買い/売り出来高パーセンテージを表示
- **テキストラベル**: 時間足と出来高を表示
**解釈:**
- 強気FVG = 現在価格より下の価格ギャップで、サポートとして機能する可能性
- 弱気FVG = 現在価格より上の価格ギャップで、レジスタンスとして機能する可能性
- ギャップは価格が戻ってくる際に「埋められる」ことが多い
- 未埋めのギャップはサポート/レジスタンスとして機能する確率が高い
### トレード戦略
#### 1. コンフルエンストレード(最も高確率)
複数の要素が重なるエリアを探します:
- ✅ 複数時間足のOBが重なる
- ✅ FVGとOBが重なる
- ✅ 上位時間足のゾーンと下位時間足のエントリーポイントが一致
**例:**
```
15分足強気OB + 5分足強気FVG = 強力なサポートエリア
価格がこのゾーンに到達し、強気反転を示すのを待つ
```
#### 2. 反発トレード
- アラートで反発通知を監視
- プライスアクション(ローソク足パターン、出来高急増)で反発を確認
- 反発方向にエントリー、ゾーンの下/上にストップロス設置
- ターゲット: 次のOB/FVGゾーンまたは主要なレジスタンス/サポートレベル
#### 3. ブレイクアウトトレード
- ブレイクされるOB/FVGゾーンを監視
- 高出来高を伴う強いブレイクはトレンド継続を示唆
- ブレイクされたゾーンのリテストを待ってからエントリー
- ブレイク方向にトレード
#### 4. マルチタイムフレーム分析
- **上位時間足(60分、15分)**: 主要ゾーンと全体的なトレンドを識別
- **下位時間足(5分、1分)**: エントリーとエグジットポイントを微調整
- 常に下位時間足より上位時間足のゾーンを優先
### アラートの設定方法
1. 「その他」(⋯)→「アラートを追加」をクリック
2. 3つのアラート条件から1つ選択:
- **「OB/FVG Bounce (Any)」**: すべての反発でアラート(強気または弱気)
- **「Bullish Bounce (OB/FVG)」**: 強気反発のみ
- **「Bearish Bounce (OB/FVG)」**: 弱気反発のみ
3. 希望の通知方法を設定(ポップアップ、メール、ウェブフックなど)
4. 有効化された任意の時間足のゾーンから価格が反発した際にアラートが発動
### カスタマイズオプション
#### 一般設定
- **Show Historic Zones**: 無効化されたOBゾーンの表示/非表示を切り替え
- **Volumetric Info**: 出来高分布バーの表示/非表示
- **Zone Invalidation**: 無効化方法を「Wick」または「Close」から選択
- **Zone Count**: 過去のOBゾーン数を調整(High/Medium/Low/One)
- **Swing Length**: OB検知の感度(デフォルト: 3)
#### オーダーブロックの色
- **Invert Colors OB**: 強気/弱気の色を入れ替え
- ON: 強気=赤、弱気=青(デフォルト)
- OFF: 強気=青、弱気=赤
#### フェアバリューギャップ設定
- **Show Fair Value Gaps**: すべてのFVG表示のマスタートグル
- **FVG Mitigation Source**: ギャップ埋め検知に「close」または「high/low」を使用
- **Bullish/Bearish FVG**: 各ギャップタイプの個別トグル
- **FVG Volume Bars**: 出来高分布の表示/非表示
- **Invert FVG Colors**: 強気/弱気の色を入れ替え
- ON: 強気=オレンジ、弱気=水色(デフォルト)
- OFF: 強気=水色、弱気=オレンジ
#### マルチタイムフレーム選択
特定の時間足を有効化/無効化:
- ✅ 1分足(デフォルト ON)
- ✅ 5分足(デフォルト ON)
- ✅ 15分足(デフォルト ON)
- ✅ 60分足(デフォルト ON)
- ⬜ 240分足(デフォルト OFF)
#### アラート設定
- **Enable Alerts**: すべてのアラートのマスタートグル
- **Alert on Bullish Bounce**: 強気反発通知を受信
- **Alert on Bearish Bounce**: 弱気反発通知を受信
## ⚙️ 技術詳細
### パフォーマンス最適化
- **最大ボックス数**: 500(パフォーマンス最適化)
- **Max Bars Back**: 500(過去データとのバランス)
- **ゾーン延長**: 右に50本分固定
- **メモリ管理**: 古いゾーンの自動クリーンアップ
### 検知ロジック
**オーダーブロック形成:**
1. 指定されたスイング期間を使用してスイングハイ/ローを識別
2. 価格がスイングポイントをブレイク
3. スイング前の2-3本の足からOBゾーンを作成
4. 無効化を監視(価格がOBを突破)
**フェアバリューギャップ形成:**
1. 現在の足と2本前の足を比較
2. 高値/安値レベル間にギャップが存在するか確認
3. 統計的有意性でフィルタリング(上位10%)
4. ギャップエリアにFVGゾーンを作成
5. 消滅を監視(価格がギャップを埋める)
**反発検知:**
- OBの場合: 価格がゾーンに入る → 有利な方向にゾーン外で終値
- FVGの場合: 価格がゾーンに触れる → 有利な方向にゾーン外で終値
- エッジ検知: 新しい反発のみトリガー(繰り返しシグナルなし)
## 💡 Tips
1. **上位時間足から開始**: まず60分足と15分足のゾーンで全体的な市場構造を確認
2. **確認を待つ**: ゾーンで即座にエントリーせず、反発確認を待つ
3. **ストップロスを使用**: 常にゾーンの外にストップを配置(安全マージンとして5-10pips)
4. **出来高が重要**: 高出来高のゾーンは一般的により信頼性が高い
5. **時間経過**: 古いゾーン(左側)は一般的に新しいゾーンより信頼性が低い
6. **コンフルエンスが王様**: より多くの時間足/インジケーターが揃うほど、強力なセットアップ
7. **セッション認識**: 高出来高セッション(ロンドン、NY開始)で作成されたゾーンは通常より強い
## ⚠️ リスク免責事項
このインジケーターは教育および情報提供のみを目的として提供されています。金融商品の取引には重大な損失リスクが伴い、すべての投資家に適しているわけではありません。過去の実績は将来の結果を示すものではありません。常に:
- 独自の調査と分析を実施
- 適切なリスク管理を使用(ポジションサイジング、ストップロス)
- 失う余裕のある金額以上をリスクにさらさない
- 認可された金融アドバイザーへの相談を検討
- リアルマネーでトレードする前にデモ口座で練習
## 📝 クレジット
このインジケーターは以下のコンセプトを組み合わせ、強化したものです:
- **Volumized Order Blocks**: 出来高分析付き機関投資家オーダーブロック検知
- **Volumatic Fair Value Gaps**: 出来高分布付きフェアバリューギャップ検知
## 📜 ライセンス
Mozilla Public License 2.0 (MPL-2.0)
mozilla.org
---
**バージョン**: 1.0
**Pine Scriptバージョン**: 6
**最終更新**: 2024年11月
質問、提案、バグ報告については、下記にコメントしてください!
---
# MTF OB & FVG Detector with Alerts
## 📊 Overview
A comprehensive multi-timeframe indicator that combines institutional Order Blocks (OB) detection with Fair Value Gaps (FVG) analysis. This tool helps traders identify high-probability support and resistance zones across multiple timeframes simultaneously, with integrated bounce detection alerts.
## ✨ Key Features
### 🎯 Multi-Timeframe Order Blocks (OB)
- **Institutional Zones**: Detects areas where large institutions have placed significant orders
- **Volumetric Analysis**: Displays volume distribution (bullish vs bearish) within each order block
- **Smart Swing Detection**: Automatically identifies order blocks based on swing highs/lows
- **Zone Combination**: Intelligently merges overlapping order blocks from different timeframes
- **Automatic Invalidation**: Hides order blocks when price breaks through them
- **Fixed Extension**: All zones extend 50 bars to the right for consistent visualization
- **Color Options**:
- Default (Invert ON): Bullish = Red, Bearish = Blue
- Invert OFF: Bullish = Blue, Bearish = Red
### 📈 Multi-Timeframe Fair Value Gaps (FVG)
- **Price Inefficiency Detection**: Identifies gaps in price action where market moved too quickly
- **Volume Distribution**: Shows bull/bear volume percentage within each gap
- **Statistical Filtering**: Only displays significant gaps (top 10% by size)
- **Mitigation Tracking**: Automatically hides gaps when price fills them
- **Fixed Extension**: All gaps extend 50 bars to the right for consistent visualization
- **Color Options**:
- Default (Invert ON): Bullish = Orange, Bearish = Aqua
- Invert OFF: Bullish = Aqua, Bearish = Orange
### ⏱️ Supported Timeframes
- **1 Minute** ✅ (Enabled by default)
- **5 Minutes** ✅ (Enabled by default)
- **15 Minutes** ✅ (Enabled by default)
- **60 Minutes (1 Hour)** ✅ (Enabled by default)
- **240 Minutes (4 Hours)** ⬜ (Disabled by default)
### 🔔 Intelligent Bounce Alerts
- **Combined Detection**: Triggers when price bounces from either OB or FVG zones
- **Bullish Bounce**: Notifies when price bounces upward from support zones
- **Bearish Bounce**: Notifies when price bounces downward from resistance zones
- **Multi-Timeframe Monitoring**: Tracks all enabled timeframes simultaneously
- **Edge Detection**: Only alerts on new bounces to avoid spam
## 📖 How to Use
### Initial Setup
1. Add the indicator to your TradingView chart
2. Works on any timeframe, but 1-minute to 15-minute charts recommended for intraday trading
3. The indicator will display OB and FVG zones from all enabled timeframes
### Understanding the Display
#### Order Blocks (OB)
**Visual Elements:**
- **Zone Box**: Colored rectangle showing the order block area
- Red box = Bullish OB (potential support)
- Blue box = Bearish OB (potential resistance)
- **Volume Bars** (left side): Shows volume distribution during OB formation
- Green portion = Bullish volume
- Red portion = Bearish volume
- **Text Label** (right side): Displays timeframe and total volume
- Example: "5m OB" with volume amount
**Interpretation:**
- Bullish OB = Area where institutions likely have pending buy orders
- Bearish OB = Area where institutions likely have pending sell orders
- Higher volume = Stronger zone
- Multiple timeframe confluence = More significant zone
#### Fair Value Gaps (FVG)
**Visual Elements:**
- **Gap Box**: Colored rectangle showing the price gap
- Orange box = Bullish FVG (potential support)
- Aqua box = Bearish FVG (potential resistance)
- **Volume Bars** (within gap): Shows bull/bear volume percentage
- **Text Label**: Displays timeframe and volume
**Interpretation:**
- Bullish FVG = Price gap below current price that may act as support
- Bearish FVG = Price gap above current price that may act as resistance
- Gaps often get "filled" as price returns to these levels
- Unfilled gaps have higher probability of providing support/resistance
### Trading Strategies
#### 1. Confluence Trading (Highest Probability)
Look for areas where multiple elements align:
- ✅ OB from multiple timeframes overlap
- ✅ FVG overlaps with OB
- ✅ Higher timeframe zone aligns with lower timeframe entry
**Example:**
```
15min Bullish OB + 5min Bullish FVG = Strong support area
Wait for price to reach this zone and show bullish reversal
```
#### 2. Bounce Trading
- Monitor alerts for bounce notifications
- Confirm bounce with price action (candlestick patterns, volume spike)
- Enter in direction of bounce with stop loss below/above the zone
- Target: Next OB/FVG zone or key resistance/support level
#### 3. Breakout Trading
- Watch for OB/FVG zones that get broken
- A strong break with high volume indicates trend continuation
- Wait for retest of broken zone before entering
- Trade in direction of the break
#### 4. Multi-Timeframe Analysis
- **Higher timeframes (60min, 15min)**: Identify major zones and overall trend
- **Lower timeframes (5min, 1min)**: Fine-tune entry and exit points
- Always respect higher timeframe zones over lower timeframe zones
### Setting Up Alerts
1. Click on "More" (⋯) → "Add alert"
2. Choose one of three alert conditions:
- **"OB/FVG Bounce (Any)"**: Alerts on any bounce (bullish or bearish)
- **"Bullish Bounce (OB/FVG)"**: Only bullish bounces
- **"Bearish Bounce (OB/FVG)"**: Only bearish bounces
3. Set your preferred notification method (popup, email, webhook, etc.)
4. The alert will trigger when price bounces from any enabled timeframe's zone
### Customization Options
#### General Settings
- **Show Historic Zones**: Toggle display of invalidated OB zones
- **Volumetric Info**: Show/hide volume distribution bars
- **Zone Invalidation**: Choose "Wick" or "Close" for invalidation method
- **Zone Count**: Adjust number of historical OB zones (High/Medium/Low/One)
- **Swing Length**: Sensitivity for OB detection (default: 3)
#### Order Block Colors
- **Invert Colors OB**: Swap bullish/bearish colors
- ON: Bullish=Red, Bearish=Blue (default)
- OFF: Bullish=Blue, Bearish=Red
#### Fair Value Gap Settings
- **Show Fair Value Gaps**: Master toggle for all FVG display
- **FVG Mitigation Source**: "close" or "high/low" for gap filling detection
- **Bullish/Bearish FVG**: Individual toggles for each gap type
- **FVG Volume Bars**: Show/hide volume distribution
- **Invert FVG Colors**: Swap bullish/bearish colors
- ON: Bullish=Orange, Bearish=Aqua (default)
- OFF: Bullish=Aqua, Bearish=Orange
#### Multi-Timeframe Selection
Enable/disable specific timeframes:
- ✅ 1 Min (default ON)
- ✅ 5 Min (default ON)
- ✅ 15 Min (default ON)
- ✅ 60 Min (default ON)
- ⬜ 240 Min (default OFF)
#### Alert Settings
- **Enable Alerts**: Master toggle for all alerts
- **Alert on Bullish Bounce**: Receive bullish bounce notifications
- **Alert on Bearish Bounce**: Receive bearish bounce notifications
## ⚙️ Technical Details
### Performance Optimization
- **Max Boxes**: 500 (optimized for performance)
- **Max Bars Back**: 500 (balanced historical data)
- **Zone Extension**: Fixed 50 bars to the right
- **Memory Management**: Automatic cleanup of old zones
### Detection Logic
**Order Block Formation:**
1. Identify swing high/low using specified swing length
2. Price breaks the swing point
3. Create OB zone from the 2-3 bars before the swing
4. Monitor for invalidation (price breaking through OB)
**Fair Value Gap Formation:**
1. Compare current bar with 2 bars ago
2. Check if gap exists between high/low levels
3. Filter by statistical significance (top 10%)
4. Create FVG zone in the gap area
5. Monitor for mitigation (price filling the gap)
**Bounce Detection:**
- For OB: Price enters zone → Closes outside zone in favorable direction
- For FVG: Price touches zone → Closes outside zone in favorable direction
- Edge detection: Only triggers on new bounces (not repeated signals)
## 💡 Tips
1. **Start with Higher Timeframes**: Check 60min and 15min zones first for overall market structure
2. **Wait for Confirmation**: Don't enter immediately at a zone; wait for bounce confirmation
3. **Use Stop Losses**: Always place stops beyond the zone (5-10 pips for safety margin)
4. **Volume Matters**: Zones with higher volume are generally more reliable
5. **Time Decay**: Older zones (further left) are generally less reliable than recent zones
6. **Confluence is King**: The more timeframes/indicators align, the stronger the setup
7. **Session Awareness**: Zones created during high-volume sessions (London, NY open) are typically stronger
## ⚠️ Risk Disclaimer
This indicator is provided for educational and informational purposes only. Trading financial instruments involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always:
- Conduct your own research and analysis
- Use proper risk management (position sizing, stop losses)
- Never risk more than you can afford to lose
- Consider consulting with a licensed financial advisor
- Practice on a demo account before trading with real money
## 📝 Credits
This indicator combines and enhances concepts from:
- **Volumized Order Blocks**: Institutional order block detection with volume analysis
- **Volumatic Fair Value Gaps**: Fair value gap detection with volume distribution
## 📜 License
Mozilla Public License 2.0 (MPL-2.0)
mozilla.org
---
**Version**: 1.0
**Pine Script Version**: 6
**Last Updated**: November 2024
For questions, suggestions, or bug reports, please comment below!
MTF OB & FVG detector w/ Alerts# MTF OB & FVG検知器(アラート付き)
## 📊 概要
機関投資家のオーダーブロック(OB)検知とフェアバリューギャップ(FVG)分析を組み合わせた、包括的なマルチタイムフレームインジケーターです。複数の時間足にわたって高確率のサポート・レジスタンスゾーンを同時に識別し、統合された反発検知アラート機能を備えています。
## ✨ 主要機能
### 🎯 マルチタイムフレーム オーダーブロック(OB)
- **機関投資家のゾーン**: 大口機関が大量の注文を入れたエリアを検知
- **出来高分析**: 各オーダーブロック内の出来高分布(強気vs弱気)を表示
- **スマートスイング検知**: スイングハイ/ローに基づいてオーダーブロックを自動識別
- **ゾーン結合**: 異なる時間足の重複するオーダーブロックをインテリジェントに統合
- **自動無効化**: 価格がブレイクしたオーダーブロックを自動的に非表示
- **固定延長**: すべてのゾーンを右に50本分延長して表示の一貫性を確保
- **色オプション**:
- デフォルト(反転ON): 強気=赤、弱気=青
- 反転OFF: 強気=青、弱気=赤
### 📈 マルチタイムフレーム フェアバリューギャップ(FVG)
- **価格の非効率性検知**: 市場が急速に動きすぎた際の価格ギャップを識別
- **出来高分布**: 各ギャップ内の買い/売り出来高パーセンテージを表示
- **統計的フィルタリング**: 有意なギャップのみを表示(サイズ上位10%)
- **埋められた追跡**: 価格がギャップを埋めた際に自動的に非表示
- **固定延長**: すべてのギャップを右に50本分延長して表示の一貫性を確保
- **色オプション**:
- デフォルト(反転ON): 強気=オレンジ、弱気=水色
- 反転OFF: 強気=水色、弱気=オレンジ
### ⏱️ サポートする時間足
- **1分足** ✅(デフォルト有効)
- **5分足** ✅(デフォルト有効)
- **15分足** ✅(デフォルト有効)
- **60分足(1時間足)** ✅(デフォルト有効)
- **240分足(4時間足)** ⬜(デフォルト無効)
### 🔔 インテリジェント反発アラート
- **統合検知**: OBまたはFVGゾーンからの反発時にアラート発動
- **強気反発**: サポートゾーンから上方へ反発した際に通知
- **弱気反発**: レジスタンスゾーンから下方へ反発した際に通知
- **マルチタイムフレーム監視**: 有効化されたすべての時間足を同時に追跡
- **エッジ検知**: 新しい反発のみアラート(スパム防止)
## 📖 使用方法
### 初期セットアップ
1. インジケーターをTradingViewチャートに追加
2. どの時間足でも動作しますが、日中トレードには1分~15分足を推奨
3. 有効化されたすべての時間足のOBとFVGゾーンが表示されます
### 表示の理解
#### オーダーブロック(OB)
**視覚要素:**
- **ゾーンボックス**: オーダーブロックエリアを示す色付き長方形
- 赤色ボックス = 強気OB(サポート候補)
- 青色ボックス = 弱気OB(レジスタンス候補)
- **出来高バー**(左側): OB形成時の出来高分布を表示
- 緑部分 = 強気出来高
- 赤部分 = 弱気出来高
- **テキストラベル**(右側): 時間足と総出来高を表示
- 例: 「5m OB」と出来高量
**解釈:**
- 強気OB = 機関投資家が買い注文を持っている可能性が高いエリア
- 弱気OB = 機関投資家が売り注文を持っている可能性が高いエリア
- 高出来高 = より強力なゾーン
- 複数時間足の重なり = より重要なゾーン
#### フェアバリューギャップ(FVG)
**視覚要素:**
- **ギャップボックス**: 価格ギャップを示す色付き長方形
- オレンジ色ボックス = 強気FVG(サポート候補)
- 水色ボックス = 弱気FVG(レジスタンス候補)
- **出来高バー**(ギャップ内): 買い/売り出来高パーセンテージを表示
- **テキストラベル**: 時間足と出来高を表示
**解釈:**
- 強気FVG = 現在価格より下の価格ギャップで、サポートとして機能する可能性
- 弱気FVG = 現在価格より上の価格ギャップで、レジスタンスとして機能する可能性
- ギャップは価格が戻ってくる際に「埋められる」ことが多い
- 未埋めのギャップはサポート/レジスタンスとして機能する確率が高い
### トレード戦略
#### 1. コンフルエンストレード(最も高確率)
複数の要素が重なるエリアを探します:
- ✅ 複数時間足のOBが重なる
- ✅ FVGとOBが重なる
- ✅ 上位時間足のゾーンと下位時間足のエントリーポイントが一致
**例:**
```
15分足強気OB + 5分足強気FVG = 強力なサポートエリア
価格がこのゾーンに到達し、強気反転を示すのを待つ
```
#### 2. 反発トレード
- アラートで反発通知を監視
- プライスアクション(ローソク足パターン、出来高急増)で反発を確認
- 反発方向にエントリー、ゾーンの下/上にストップロス設置
- ターゲット: 次のOB/FVGゾーンまたは主要なレジスタンス/サポートレベル
#### 3. ブレイクアウトトレード
- ブレイクされるOB/FVGゾーンを監視
- 高出来高を伴う強いブレイクはトレンド継続を示唆
- ブレイクされたゾーンのリテストを待ってからエントリー
- ブレイク方向にトレード
#### 4. マルチタイムフレーム分析
- **上位時間足(60分、15分)**: 主要ゾーンと全体的なトレンドを識別
- **下位時間足(5分、1分)**: エントリーとエグジットポイントを微調整
- 常に下位時間足より上位時間足のゾーンを優先
### アラートの設定方法
1. 「その他」(⋯)→「アラートを追加」をクリック
2. 3つのアラート条件から1つ選択:
- **「OB/FVG Bounce (Any)」**: すべての反発でアラート(強気または弱気)
- **「Bullish Bounce (OB/FVG)」**: 強気反発のみ
- **「Bearish Bounce (OB/FVG)」**: 弱気反発のみ
3. 希望の通知方法を設定(ポップアップ、メール、ウェブフックなど)
4. 有効化された任意の時間足のゾーンから価格が反発した際にアラートが発動
### カスタマイズオプション
#### 一般設定
- **Show Historic Zones**: 無効化されたOBゾーンの表示/非表示を切り替え
- **Volumetric Info**: 出来高分布バーの表示/非表示
- **Zone Invalidation**: 無効化方法を「Wick」または「Close」から選択
- **Zone Count**: 過去のOBゾーン数を調整(High/Medium/Low/One)
- **Swing Length**: OB検知の感度(デフォルト: 3)
#### オーダーブロックの色
- **Invert Colors OB**: 強気/弱気の色を入れ替え
- ON: 強気=赤、弱気=青(デフォルト)
- OFF: 強気=青、弱気=赤
#### フェアバリューギャップ設定
- **Show Fair Value Gaps**: すべてのFVG表示のマスタートグル
- **FVG Mitigation Source**: ギャップ埋め検知に「close」または「high/low」を使用
- **Bullish/Bearish FVG**: 各ギャップタイプの個別トグル
- **FVG Volume Bars**: 出来高分布の表示/非表示
- **Invert FVG Colors**: 強気/弱気の色を入れ替え
- ON: 強気=オレンジ、弱気=水色(デフォルト)
- OFF: 強気=水色、弱気=オレンジ
#### マルチタイムフレーム選択
特定の時間足を有効化/無効化:
- ✅ 1分足(デフォルト ON)
- ✅ 5分足(デフォルト ON)
- ✅ 15分足(デフォルト ON)
- ✅ 60分足(デフォルト ON)
- ⬜ 240分足(デフォルト OFF)
#### アラート設定
- **Enable Alerts**: すべてのアラートのマスタートグル
- **Alert on Bullish Bounce**: 強気反発通知を受信
- **Alert on Bearish Bounce**: 弱気反発通知を受信
## ⚙️ 技術詳細
### パフォーマンス最適化
- **最大ボックス数**: 500(パフォーマンス最適化)
- **Max Bars Back**: 500(過去データとのバランス)
- **ゾーン延長**: 右に50本分固定
- **メモリ管理**: 古いゾーンの自動クリーンアップ
### 検知ロジック
**オーダーブロック形成:**
1. 指定されたスイング期間を使用してスイングハイ/ローを識別
2. 価格がスイングポイントをブレイク
3. スイング前の2-3本の足からOBゾーンを作成
4. 無効化を監視(価格がOBを突破)
**フェアバリューギャップ形成:**
1. 現在の足と2本前の足を比較
2. 高値/安値レベル間にギャップが存在するか確認
3. 統計的有意性でフィルタリング(上位10%)
4. ギャップエリアにFVGゾーンを作成
5. 消滅を監視(価格がギャップを埋める)
**反発検知:**
- OBの場合: 価格がゾーンに入る → 有利な方向にゾーン外で終値
- FVGの場合: 価格がゾーンに触れる → 有利な方向にゾーン外で終値
- エッジ検知: 新しい反発のみトリガー(繰り返しシグナルなし)
## 💡 Tips
1. **上位時間足から開始**: まず60分足と15分足のゾーンで全体的な市場構造を確認
2. **確認を待つ**: ゾーンで即座にエントリーせず、反発確認を待つ
3. **ストップロスを使用**: 常にゾーンの外にストップを配置(安全マージンとして5-10pips)
4. **出来高が重要**: 高出来高のゾーンは一般的により信頼性が高い
5. **時間経過**: 古いゾーン(左側)は一般的に新しいゾーンより信頼性が低い
6. **コンフルエンスが王様**: より多くの時間足/インジケーターが揃うほど、強力なセットアップ
7. **セッション認識**: 高出来高セッション(ロンドン、NY開始)で作成されたゾーンは通常より強い
## ⚠️ リスク免責事項
このインジケーターは教育および情報提供のみを目的として提供されています。金融商品の取引には重大な損失リスクが伴い、すべての投資家に適しているわけではありません。過去の実績は将来の結果を示すものではありません。常に:
- 独自の調査と分析を実施
- 適切なリスク管理を使用(ポジションサイジング、ストップロス)
- 失う余裕のある金額以上をリスクにさらさない
- 認可された金融アドバイザーへの相談を検討
- リアルマネーでトレードする前にデモ口座で練習
## 📝 クレジット
このインジケーターは以下のコンセプトを組み合わせ、強化したものです:
- **Volumized Order Blocks**: 出来高分析付き機関投資家オーダーブロック検知
- **Volumatic Fair Value Gaps**: 出来高分布付きフェアバリューギャップ検知
## 📜 ライセンス
Mozilla Public License 2.0 (MPL-2.0)
mozilla.org
---
**バージョン**: 1.0
**Pine Scriptバージョン**: 6
**最終更新**: 2024年11月
質問、提案、バグ報告については、下記にコメントしてください!
---
# MTF OB & FVG Detector with Alerts
## 📊 Overview
A comprehensive multi-timeframe indicator that combines institutional Order Blocks (OB) detection with Fair Value Gaps (FVG) analysis. This tool helps traders identify high-probability support and resistance zones across multiple timeframes simultaneously, with integrated bounce detection alerts.
## ✨ Key Features
### 🎯 Multi-Timeframe Order Blocks (OB)
- **Institutional Zones**: Detects areas where large institutions have placed significant orders
- **Volumetric Analysis**: Displays volume distribution (bullish vs bearish) within each order block
- **Smart Swing Detection**: Automatically identifies order blocks based on swing highs/lows
- **Zone Combination**: Intelligently merges overlapping order blocks from different timeframes
- **Automatic Invalidation**: Hides order blocks when price breaks through them
- **Fixed Extension**: All zones extend 50 bars to the right for consistent visualization
- **Color Options**:
- Default (Invert ON): Bullish = Red, Bearish = Blue
- Invert OFF: Bullish = Blue, Bearish = Red
### 📈 Multi-Timeframe Fair Value Gaps (FVG)
- **Price Inefficiency Detection**: Identifies gaps in price action where market moved too quickly
- **Volume Distribution**: Shows bull/bear volume percentage within each gap
- **Statistical Filtering**: Only displays significant gaps (top 10% by size)
- **Mitigation Tracking**: Automatically hides gaps when price fills them
- **Fixed Extension**: All gaps extend 50 bars to the right for consistent visualization
- **Color Options**:
- Default (Invert ON): Bullish = Orange, Bearish = Aqua
- Invert OFF: Bullish = Aqua, Bearish = Orange
### ⏱️ Supported Timeframes
- **1 Minute** ✅ (Enabled by default)
- **5 Minutes** ✅ (Enabled by default)
- **15 Minutes** ✅ (Enabled by default)
- **60 Minutes (1 Hour)** ✅ (Enabled by default)
- **240 Minutes (4 Hours)** ⬜ (Disabled by default)
### 🔔 Intelligent Bounce Alerts
- **Combined Detection**: Triggers when price bounces from either OB or FVG zones
- **Bullish Bounce**: Notifies when price bounces upward from support zones
- **Bearish Bounce**: Notifies when price bounces downward from resistance zones
- **Multi-Timeframe Monitoring**: Tracks all enabled timeframes simultaneously
- **Edge Detection**: Only alerts on new bounces to avoid spam
## 📖 How to Use
### Initial Setup
1. Add the indicator to your TradingView chart
2. Works on any timeframe, but 1-minute to 15-minute charts recommended for intraday trading
3. The indicator will display OB and FVG zones from all enabled timeframes
### Understanding the Display
#### Order Blocks (OB)
**Visual Elements:**
- **Zone Box**: Colored rectangle showing the order block area
- Red box = Bullish OB (potential support)
- Blue box = Bearish OB (potential resistance)
- **Volume Bars** (left side): Shows volume distribution during OB formation
- Green portion = Bullish volume
- Red portion = Bearish volume
- **Text Label** (right side): Displays timeframe and total volume
- Example: "5m OB" with volume amount
**Interpretation:**
- Bullish OB = Area where institutions likely have pending buy orders
- Bearish OB = Area where institutions likely have pending sell orders
- Higher volume = Stronger zone
- Multiple timeframe confluence = More significant zone
#### Fair Value Gaps (FVG)
**Visual Elements:**
- **Gap Box**: Colored rectangle showing the price gap
- Orange box = Bullish FVG (potential support)
- Aqua box = Bearish FVG (potential resistance)
- **Volume Bars** (within gap): Shows bull/bear volume percentage
- **Text Label**: Displays timeframe and volume
**Interpretation:**
- Bullish FVG = Price gap below current price that may act as support
- Bearish FVG = Price gap above current price that may act as resistance
- Gaps often get "filled" as price returns to these levels
- Unfilled gaps have higher probability of providing support/resistance
### Trading Strategies
#### 1. Confluence Trading (Highest Probability)
Look for areas where multiple elements align:
- ✅ OB from multiple timeframes overlap
- ✅ FVG overlaps with OB
- ✅ Higher timeframe zone aligns with lower timeframe entry
**Example:**
```
15min Bullish OB + 5min Bullish FVG = Strong support area
Wait for price to reach this zone and show bullish reversal
```
#### 2. Bounce Trading
- Monitor alerts for bounce notifications
- Confirm bounce with price action (candlestick patterns, volume spike)
- Enter in direction of bounce with stop loss below/above the zone
- Target: Next OB/FVG zone or key resistance/support level
#### 3. Breakout Trading
- Watch for OB/FVG zones that get broken
- A strong break with high volume indicates trend continuation
- Wait for retest of broken zone before entering
- Trade in direction of the break
#### 4. Multi-Timeframe Analysis
- **Higher timeframes (60min, 15min)**: Identify major zones and overall trend
- **Lower timeframes (5min, 1min)**: Fine-tune entry and exit points
- Always respect higher timeframe zones over lower timeframe zones
### Setting Up Alerts
1. Click on "More" (⋯) → "Add alert"
2. Choose one of three alert conditions:
- **"OB/FVG Bounce (Any)"**: Alerts on any bounce (bullish or bearish)
- **"Bullish Bounce (OB/FVG)"**: Only bullish bounces
- **"Bearish Bounce (OB/FVG)"**: Only bearish bounces
3. Set your preferred notification method (popup, email, webhook, etc.)
4. The alert will trigger when price bounces from any enabled timeframe's zone
### Customization Options
#### General Settings
- **Show Historic Zones**: Toggle display of invalidated OB zones
- **Volumetric Info**: Show/hide volume distribution bars
- **Zone Invalidation**: Choose "Wick" or "Close" for invalidation method
- **Zone Count**: Adjust number of historical OB zones (High/Medium/Low/One)
- **Swing Length**: Sensitivity for OB detection (default: 3)
#### Order Block Colors
- **Invert Colors OB**: Swap bullish/bearish colors
- ON: Bullish=Red, Bearish=Blue (default)
- OFF: Bullish=Blue, Bearish=Red
#### Fair Value Gap Settings
- **Show Fair Value Gaps**: Master toggle for all FVG display
- **FVG Mitigation Source**: "close" or "high/low" for gap filling detection
- **Bullish/Bearish FVG**: Individual toggles for each gap type
- **FVG Volume Bars**: Show/hide volume distribution
- **Invert FVG Colors**: Swap bullish/bearish colors
- ON: Bullish=Orange, Bearish=Aqua (default)
- OFF: Bullish=Aqua, Bearish=Orange
#### Multi-Timeframe Selection
Enable/disable specific timeframes:
- ✅ 1 Min (default ON)
- ✅ 5 Min (default ON)
- ✅ 15 Min (default ON)
- ✅ 60 Min (default ON)
- ⬜ 240 Min (default OFF)
#### Alert Settings
- **Enable Alerts**: Master toggle for all alerts
- **Alert on Bullish Bounce**: Receive bullish bounce notifications
- **Alert on Bearish Bounce**: Receive bearish bounce notifications
## ⚙️ Technical Details
### Performance Optimization
- **Max Boxes**: 500 (optimized for performance)
- **Max Bars Back**: 500 (balanced historical data)
- **Zone Extension**: Fixed 50 bars to the right
- **Memory Management**: Automatic cleanup of old zones
### Detection Logic
**Order Block Formation:**
1. Identify swing high/low using specified swing length
2. Price breaks the swing point
3. Create OB zone from the 2-3 bars before the swing
4. Monitor for invalidation (price breaking through OB)
**Fair Value Gap Formation:**
1. Compare current bar with 2 bars ago
2. Check if gap exists between high/low levels
3. Filter by statistical significance (top 10%)
4. Create FVG zone in the gap area
5. Monitor for mitigation (price filling the gap)
**Bounce Detection:**
- For OB: Price enters zone → Closes outside zone in favorable direction
- For FVG: Price touches zone → Closes outside zone in favorable direction
- Edge detection: Only triggers on new bounces (not repeated signals)
## 💡 Tips
1. **Start with Higher Timeframes**: Check 60min and 15min zones first for overall market structure
2. **Wait for Confirmation**: Don't enter immediately at a zone; wait for bounce confirmation
3. **Use Stop Losses**: Always place stops beyond the zone (5-10 pips for safety margin)
4. **Volume Matters**: Zones with higher volume are generally more reliable
5. **Time Decay**: Older zones (further left) are generally less reliable than recent zones
6. **Confluence is King**: The more timeframes/indicators align, the stronger the setup
7. **Session Awareness**: Zones created during high-volume sessions (London, NY open) are typically stronger
## ⚠️ Risk Disclaimer
This indicator is provided for educational and informational purposes only. Trading financial instruments involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always:
- Conduct your own research and analysis
- Use proper risk management (position sizing, stop losses)
- Never risk more than you can afford to lose
- Consider consulting with a licensed financial advisor
- Practice on a demo account before trading with real money
## 📝 Credits
This indicator combines and enhances concepts from:
- **Volumized Order Blocks**: Institutional order block detection with volume analysis
- **Volumatic Fair Value Gaps**: Fair value gap detection with volume distribution
## 📜 License
Mozilla Public License 2.0 (MPL-2.0)
mozilla.org
---
**Version**: 1.0
**Pine Script Version**: 6
**Last Updated**: November 2025
For questions, suggestions, or bug reports, please comment below!
OPTION DOMOPTION DOM
This script tell you abot option max pain where dealer needs to reverse and give direction of optio buy and sel plus option dom.
Paste Horizontal LinesThis script automictically will draw horizontal line for previous key Price Action levels. I created this script to facilitate line drawing process. I receive key price targets from a trading service for a few stocks every morning. I needed a fast way to lay them out. I copy and past and BAM! Unique situation I know, so you may or may have a need. So if you do it works perfectly. If you want changes let me know.
GTI Buy/SellGTI Buy/Sell – Precision Reversal & Trend Confirmation Tool
The GTI Buy/Sell is an indicator designed to identify potential trend reversals and confirm ongoing trends with precision.
What It Does
This indicator generates Buy and Sell signals based on dynamic positioning relative to price action. A Buy signal is printed when the GTI line closes below the candle’s close, indicating a potential transition from a bearish to bullish phase. A Sell signal occurs when the GTI line appears above the candle’s close, suggesting a possible bearish reversal.
The GTI Buy/Sell doesn’t repaint and provides clear, actionable signals based on live market conditions.
How It Works
GTI Buy/Sell combines Average True Range (ATR) for volatility filtering, Smoothed Moving Averages (RMA), Simple Moving Average (SMA), and Exponential Moving Average (EMA) to generate a responsive trend-following structure.
Rather than using static crossovers, the script evaluates price interaction with multiple weighted moving averages and ATR thresholds to identify exhaustion points and turning moments. These calculated confluences enhance signal quality and reduce false positives.
Strategy & Usage Tips
Combine with a 38-period SMA: When the GTI prints a Buy signal and price is above the 38 SMA, it reinforces bullish continuation or reversal. Similarly, a Sell signal with price under the 38 SMA supports a bearish outlook.
Use with VWAP for Validation: In high-liquidity assets such as indices, pairing GTI with VWAP helps identify institutional support/resistance zones to validate the signal strength.
Confluence with GTI Trend: For best results, use this indicator alongside our GTI Trend, which analyzes broader trend context across timeframes. This combination allows traders to align micro signals with macro market direction.
Recommended Assets
GTI Buy/Sell performs best on assets with significant intraday volatility such as:
NASDAQ
US30 / Dow Jones
S&P 500
Gold (XAUUSD)
Brazilian Mini Index (WIN)
However, it can be applied to any instrument where meaningful trend behavior and price movement are present.
RSI Mean-Reversion StrategyLong entry when RSI ≤ 30; exit at RSI ≥ 70. 100% equity per trade, 0.1% commission + 1 tick slippage. Optional 2% stop-loss. Visual buy/sell signals, dynamic SL line, and background highlight on oversold zones. Clean, backtest-ready Pine Script v5. Everything is easily adjustable to suit your liking.
Auto Fib Retracement-custom lines📈 Auto Fib Retracement (with Custom Line Thickness)
This indicator provides an automatic application of Fibonacci Retracement and Extension levels based on key Pivot points on the chart. It uses advanced logic to identify relevant momentum based on user-defined parameters, ensuring dynamic and accurate level drawing without the need for manual measurement.
Key Features of the Indicator ✨
Automatic Drawing: Fibonacci levels are automatically drawn based on the last significant Pivot swing detected by the indicator.
Fibonacci Retracement and Extension: Displays classic retracement levels (such as 0.382, 0.5, 0.618) and extensions (such as 1.272, 1.618, 2.618, etc.), with the option to individually toggle the visibility of each level.
Custom Line Width (New Feature): This is the key added functionality! For every Fibonacci level, an option has been included to individually adjust the line thickness (width). This allows traders to visually highlight (bold) critical support/resistance levels (like 0, 0.618, 1, etc.) to make them more noticeable on the chart.
Pivot Customization: Control the sensitivity of Pivot detection using the "Deviation" and "Depth" parameters.
Line Extension: Options to extend the Fibonacci lines to the left, right, or both sides.
Detail Display: Ability to show/hide Fibonacci values (levels) and prices on the labels.
⚙️ Input Parameters
This indicator offers complete control over how the Fibonacci levels are displayed:
Deviation: A multiplier that affects how much the price must deviate from the previous pivot for a new pivot to be formed. Increasing the value makes the indicator less sensitive; decreasing it makes it more sensitive.
Depth: The minimum number of bars considered when calculating the pivots.
Reverse: Option to reverse the drawing direction (from top to bottom or vice-versa).
Extend Left/Right: Controls the extension of the Fibonacci lines.
Level Settings (0, 0.236, 0.382, 0.5, 0.618, etc.):
Checkbox: Turn the display of each individual Fibonacci level on or off.
Value: Customize the Fibonacci value (e.g., you can change 0.618 to 0.65).
Color: Adjust the line color.
Line Width: Crucial option! Allows you to set the line thickness from 1 to 5. Use this to emphasize the most important levels.
Background Transparency: Adjust the transparency of the background fill between the Fibonacci levels.
How to Use It 💡
This tool is ideal for traders who use Fibonacci Retracement to determine potential areas of support and resistance, profit targets (extensions), and entry zones. Use the Custom Line Width option to visually set apart the key levels you believe have the most significant impact on the market (e.g., 0, 0.5, 0.618, and 1).
PDHL Breakout SMA50 By Ajit TiwariThis indicator help you to find buy sell from previous day high low basis
FVG Strategy with One Trade Per Hour and Tick-based TP/SLThis strategy hunts for Fair Value Gaps (FVGs)—three-bar displacement gaps that mark imbalances where price moved so fast it left a “void.” It detects bullish (green) and bearish (red) FVGs on the chart timeframe or a higher timeframe you choose via the Timeframe input. Each detected zone is stored and optionally drawn as a box (static or “dynamic” that tightens with price). A simple threshold lets you filter out tiny gaps: either set a fixed percent (Threshold %) or let the script estimate it automatically. As price trades later, the engine watches for interaction with any stored zone.
Entries are taken on a touch/retest of the zone: buy when price intersects a green (bullish) FVG; short when it intersects a red (bearish) FVG. Risk management is manual and straightforward—your stop loss and take profit are set in ticks, placed off the signal bar’s close. To avoid over-trading, there’s a cap of one trade per hour (it resets when the clock hour changes). In short, it’s an intraday “gap fill / bounce” system: identify an imbalance, wait for price to revisit it, and take a directional trade with fixed tick targets and stops.
A+ Trade Checklist (Bullish + Bearish Mode + Alerts) – Fixed v61. Trend direction (EMA alignment)
2. Relative Strength vs SPY (is your stock stronger than the market?)
3. Volume confirmation
4. RSI strength
5. Candle momentum
Orderflow [Pro+] (DeadCat)This indicator introduces a sophisticated, multi-timeframe approach to detecting and visualizing Fair Value Gaps (FVGs)—also known as price imbalances—in order flow analysis. FVGs represent inefficiencies in price delivery where rapid buying or selling pressure creates a "gap" between candles, often signaling areas where price is likely to return to "fill" the imbalance due to unfilled liquidity. Unlike basic single-timeframe FVG tools that simply highlight gaps without context, this script layers in hierarchical time-based rules (HTF influencing LTF) to filter noise, enforce directional bias, and project dynamic support/resistance levels post-mitigation.
The core innovation lies in its bias-driven ecosystem: Higher timeframes (HTF) establish a "master bias" (bullish or bearish) upon FVG mitigation, which then governs lower timeframes (LTF) by suppressing conflicting FVGs or deleting overlapping ones. This creates a cascading structure where, for example, a bullish daily FVG might invalidate bearish 15-minute gaps above its bottom edge, promoting confluence across scales. Additionally, it incorporates dynamic swing tracking (updating highs/lows in real-time post-mitigation) and overlapping liquidity lines (projecting prior swings trapped within the FVG), turning static gap detection into a proactive order flow mapper.
This isn't a mere mashup of standard FVG logic (e.g., 3-candle imbalance checks) or swing detectors; the components synergize to simulate institutional order flow dynamics—prioritizing liquidity sweeps and bias alignment—reducing false signals in choppy markets. It's designed for traders seeking edge in scalping, swing, or position trading without repainting or lookahead bias in historical data.
Key Concepts Underlying the Calculations
FVG Detection Mechanism:
Uses a classic 3-candle imbalance filter: For a bullish FVG, the low of the current bar must gap above the high of the bar two periods ago (low > high ), with the prior bar's low dipping below that high (low < high ) to confirm inefficiency. The inverse applies for bearish FVGs (high < low , high > low ).
Introduces a BAG filter (Bias-Aligned Gap): Checks if the close of the confirming candle aligns with the gap's midpoint (e.g., close > midpoint for bullish), discarding "weak" gaps where price closes against the expected direction. This refines raw imbalances to those backed by momentum.
Swing Identification and Projection:
Tracks fixed swings (static high/low from the FVG formation bar) and dynamic swings (updating to new extremes post-mitigation, e.g., highest high since a bullish FVG touch).
Equal Range Lines (ERL): Post-mitigation, projects horizontal lines from fixed/dynamic swings as potential support (bullish) or resistance (bearish). These extend rightward until breached, with optional pre-tap visibility for anticipation.
Overlapping Liquidity: Scans the 5-bar lookback within the FVG range for trapped highs/lows, drawing a dotted line to highlight "engineered liquidity" zones where stops might cluster.
Hierarchical Bias Rules (HTF-LTF Interaction):
Once an FVG is mitigated (price touches its opposite edge, e.g., low piercing a bullish FVG's top), it activates a bias state for that timeframe (bullish: +1; bearish: -1), storing the gap's bounds as a reference.
LTF Suppression: New LTF FVGs opposing the HTF bias are blocked if they form in invalid zones (e.g., bearish LTF FVG bottom > bullish HTF bottom). Existing LTF FVGs are deleted if engulfed, partially overlapped, or directionally misaligned (6 overlap rules, including full engulfment or same-direction displacement).
Reset Triggers: Bias resets on opposing swing breaks (e.g., low < fixed swing in bullish state) or exhaustive mitigation (all FVGs filled), ensuring adaptability.
Mitigation and Extension Logic:
FVGs extend as semi-transparent boxes until fully mitigated (price closes beyond the far edge), then halt extension and optionally change color (e.g., red tint for filled zones).
Current-timeframe FVGs shift left by 2 bars to align with real-time bar indexing, avoiding visual lag.
These concepts draw from ICT (Inner Circle Trader) order flow principles—focusing on liquidity voids and bias hierarchies—but implement them programmatically with cross-TF validation, which isn't standard in most FVG scripts.
How It Works: Step-by-Step Signal Generation
Data Fetching: Pulls OHLCV from up to 6 user-defined timeframes (default: 15m, 1H, 4H, D, W, M) using request.security with barmerge to sync HTF bars to LTF without gaps.
FVG Formation: On each HTF bar close, scans for imbalances. If valid (post-bias filter), initializes state: clears prior opposing data, sets fixed/dynamic swings, and draws the box from formation time to infinity.
Ongoing Updates:
Boxes/labels/midlines extend rightward.
Swings update dynamically if new highs/lows form post-mitigation.
HTF bias propagates downward, pruning LTF noise in real-time.
Mitigation Check: On every LTF bar, tests if price pierces the nearest FVG edge. If so, activates bias, projects ERLs/overlaps, and cascades deletions.
Visualization: Boxes (FVGs) with midlines/labels; solid/dashed ERLs for swings; dotted overlaps. Optional table summarizes bias status (e.g., "▲ bullish IRL reacting" if price respects the level).
No future data is used—calculations are historical and real-time safe. Max limits (500 boxes/lines/labels) prevent overload.
How to Use It: Practical Application
Setup: Add to your chart (overlay=true). Enable 2-4 timeframes for confluence (e.g., 15m for entries, 1H/4H for bias). Set biases to "Auto" for dynamic detection, or "▲"/"▼" to force bullish/bearish filtering. Use universal colors for clean multi-TF overlays; tweak line styles/widths for visibility.
Interpretation:
Watch for FVGs: Bullish (upward gap, blue box) suggests buy-side inefficiency—expect pullbacks to fill from above. Bearish (downward gap) indicates sell pressure.
Bias Alignment: Green table status (e.g., "▲ reacting") signals strength; red ("failing") warns of reversal. Prioritize trades where LTF FVGs align with HTF bias.
Entry/Exit Ideas: Enter longs on bullish FVG mitigation (low touches top, ERL projects support). Target the box bottom or dynamic swing. Exit on bias reset (opposing break).
Risk Management: FVGs act as dynamic S/R. Use overlaps for stop placement (e.g., below trapped low). Avoid non-standard charts (Heikin Ashi) as signals distort.
Backtest with realistic slippage (0.1-0.5%) and risk <2% per trade. Past fills don't guarantee future ones—always combine with discretion.
Disclaimer: For educational purposes. Not financial advice. Verify in a demo account.
Borsium MFI SignalsI'll add strong buy/sell signals to your indicator. You can use MFI values and momentum changes to create more specific buy/sell points.
DanteVita Broadening FormationsThis indicator marks off broadening formations. While many people think these are uncommon they are actually the core mechanic of price discovery that all trading is based on. Price discovery happens within a broadening formation until it breaks to another range, then more price discovery in the new range. These are used heavily by "The Strat" by Rob Smith. Learn it.
If it is running too slow for you, reduce number of bars or number of formations it will search for.
Complete DashboardPA+AI PRE/GO Trading Dashboard v0.1.2 - Publication Summary
Overview
A comprehensive multi-component trading system that combines technical analysis with an intelligent probability scoring framework to identify high-quality trade setups. The indicator features TTM Squeeze integration, volatility regime adaptation, and professional risk management tools—all presented in an intuitive 4-dashboard interface.
Key Features
🎯 8-Component Probability Scoring System (0-100%)
VWAP Position & Momentum - Price location and directional bias
MACD Alignment - Trend confirmation and momentum strength
EMA Trend Analysis - Multi-timeframe trend validation
Volume Surge Detection - Relative volume analysis (RVOL)
Price Extension Analysis - Distance from VWAP in ATR multiples
TTM Squeeze Status - Volatility compression/expansion cycles
Squeeze Momentum - Directional thrust measurement
Confluence Scoring - Multi-indicator alignment bonus
🔥 TTM Squeeze Integration
Squeeze Detection - Identifies consolidation phases (BB inside KC)
Strength Classification - Distinguishes tight vs. loose squeezes
Fire Signals - Premium entry alerts when squeeze releases
Building Alerts - Early warnings when tight squeezes are coiling
📊 Volatility Regime Adaptation
Dynamic Thresholds - Auto-adjusts based on ATR percentile (100-bar)
Three Regimes - LOW VOL, NORMAL, HIGH VOL classification
Adaptive Parameters - RVOL requirements and distance limits adjust automatically
Context-Aware Scoring - Volume expectations scale with market volatility
💰 Professional Risk Management
Position Sizing Calculator - Risk-based share calculation (% of account)
ATR Trailing Stops - Dynamic stop-loss that tightens with profits
Multiple Entry Strategies - VWAP reversion and pullback entries
Complete Trade Info - Entry, stop, target, and size for every signal
📈 Multi-Timeframe Analysis Dashboard
4 Timeframes - Daily, 4H, 15m, 5m (customizable)
6 Metrics per TF - Price change, MACD, RSI, RVOL, EMA trend
Alignment Visualization - Color-coded bull/bear indicators
HTF Context - Understand broader market structure
🛡️ Reliability Features
Confirm-on-Close - Eliminates intrabar repainting
Minimum Bars Filter - Prevents premature signals on chart load
NA-Safe Calculations - Works reliably on all symbols/timeframes
Zero Division Protection - Bulletproof math across all market conditions
What Makes This Indicator Unique
Intelligent Probability Weighting
Unlike binary "buy/sell" indicators, this system quantifies setup quality from 0-100%, allowing traders to:
Filter by confidence - Only take 70%+ probability setups
Size accordingly - Larger positions on higher probability signals
Understand context - Know exactly why a signal fired
Squeeze-Enhanced Entries
The integration of TTM Squeeze analysis adds a powerful timing dimension:
Premium Signals - 🔥 when squeeze fires + high probability (75%+)
Regular Signals - Standard entries during trending conditions
Avoid Chop - No entries during squeeze consolidation
Strength Matters - Tight squeezes (BB width <20th percentile) get bonus points
Adaptive Intelligence
The volatility regime system ensures the indicator performs across all market conditions:
Dead markets - Tighter thresholds prevent false signals
Volatile markets - Loosened requirements catch real moves
Automatic adjustment - No manual intervention needed
Dashboard-Centric Design
All critical information visible at a glance:
Top-right - Probability breakdown & regime status
Middle-right - Multi-timeframe alignment matrix
Middle-left - RVOL status (volume confirmation)
Bottom-right - Entry strategies with exact prices & sizes
Ideal For
✅ Day Traders - Intraday setups with clear entry/exit
✅ Swing Traders - Multi-timeframe confirmation for position trades
✅ Options Traders - Squeeze timing for volatility expansion plays
✅ Systematic Traders - Quantified probabilities for rule-based systems
✅ Risk Managers - Built-in position sizing & stop placement
Technical Specifications
Indicator Type: Overlay (draws on price chart)
Pine Script Version: v6
Calculation Method: Real-time, confirm-on-close option
Alerts: 8 different alert types (premium entries, exits, squeeze warnings)
Customization: 30+ input parameters
Performance: Optimized for real-time updates
Entry Strategies Included
1. VWAP Reversion
Enter when price bounces off VWAP ± 0.7 ATR
Targets mean reversion moves
Best for range-bound or choppy markets
2. Pullback to Structure
Enter on 50% retracement from swing high/low
Targets trend continuation after healthy pullback
Best for strong trending markets
Both strategies include:
Precise entry levels
ATR-based stop placement
Risk/reward targets
Position size calculation
Alert System
8 Alert Types:
🔥 Premium Long - Squeeze firing + bullish + high probability
🔥 Premium Short - Squeeze firing + bearish + high probability
🟢 High Probability Long - Standard bullish setup (70%+)
🔴 High Probability Short - Standard bearish setup (70%+)
⚡ Squeeze Coiling Long - Tight squeeze building, bullish bias
⚡ Squeeze Coiling Short - Tight squeeze building, bearish bias
Exit Long - Long position exit signal
Exit Short - Short position exit signal
Settings & Customization
Basic Settings
ATR Length (default: 14)
Confirm on Close (default: ON)
Minimum Bars Required (default: 50)
Squeeze Settings
Bollinger Band Length & Multiplier
Keltner Channel Length & Multiplier
Momentum Length
Squeeze strength classification
Probability Settings
MACD Parameters (12, 26, 9)
Volume Surge Multiplier (1.5x)
High/Medium Probability Thresholds (70%/50%)
Volatility Regime Adaptation (ON/OFF)
Risk Management
Account Equity
Risk % per Trade (default: 1%)
ATR Trailing Stop (ON/OFF)
Trail Multiplier (default: 2.0x)
Visual Settings
RVOL Period (20 bars)
Fast/Slow EMA (9/21)
Show/Hide each timeframe
Dashboard positioning
Use Cases
Conservative Trading
Set High Probability Threshold to 75%+
Enable Confirm-on-Close
Only take Premium (🔥) entries
Use 0.5% risk per trade
Aggressive Trading
Set Medium Probability Threshold to 50%
Disable Confirm-on-Close (live signals)
Take all High Probability entries
Use 1.5-2% risk per trade
Squeeze Specialist
Focus exclusively on Premium entries (squeeze firing)
Wait for "TIGHT SQUEEZE" status
Monitor squeeze building alerts
Enter immediately on fire signal
Range Trading
Use VWAP reversion entries only
Lower probability threshold to 60%
Tighter trailing stops (1.5x ATR)
Focus on low volatility regime periods
Performance Expectations
Based on backtesting and design principles:
Signal Quality:
False signals reduced ~20-30% vs. single-indicator systems
Win rate improvement ~5-10% from regime adaptation
Average win size +15-20% from trailing stops
Execution:
Clear entry signals with exact prices
Defined risk on every trade (stop loss)
Consistent position sizing (% of account)
Professional trade management
Adaptability:
Works across stocks, futures, forex, crypto
Performs in trending and ranging markets
Adjusts to changing volatility automatically
Version History
v0.1.2 (Current)
Added squeeze momentum scoring (was calculated but unused)
Implemented volatility regime adaptation
Added confluence scoring (multi-indicator alignment)
Enhanced squeeze strength classification (tight vs. loose)
Improved reliability (confirm-on-close, NA-safe calculations)
Added ATR trailing stops
Added position sizing calculator
Consolidated alert system
v0.1.1
Initial release with 6-component probability system
Basic TTM Squeeze integration
Multi-timeframe analysis
Entry strategy frameworks
Limitations & Disclaimers
⚠️ Not a Holy Grail - No indicator is 100% accurate; losses will occur
⚠️ Requires Judgment - Use probability scores to guide, not replace, decision-making
⚠️ Backtesting Recommended - Test on paper/demo before live trading
⚠️ Market Dependent - Performance varies by asset class and market conditions
⚠️ Risk Management Essential - Always use stops; never risk more than you can afford to lose
Installation & Setup
Copy the Pine Script code
Open TradingView chart
Pine Editor → Paste code → "Add to Chart"
Configure inputs for your trading style
Set up alerts via TradingView alert menu
Paper trade for 20+ signals before going live
Future Development Roadmap
Phase 3 (Planned)
HTF alignment filter (require Daily + 4H confirmation)
Session filters (avoid low-liquidity periods)
Probability decay (signals lose value over time)
Squeeze pre-alert enhancements
Phase 4 (AI Integration)
Feature vector export via webhooks
ML-based parameter optimization
Neural network regime classification
Reinforcement learning for exits
Support & Documentation
Included Documentation:
Complete changelog with implementation details
Technical guide explaining all components
Risk management best practices
Alert configuration guide
Best Practices:
Start with default settings
Enable Confirm-on-Close initially
Use 1% risk per trade or less
Focus on Premium (🔥) entries first
Keep a trade journal to track performance
Credits & Methodology
Indicators Used:
TTM Squeeze (John Carter)
VWAP (Volume-Weighted Average Price)
MACD (Gerald Appel)
Exponential Moving Averages
Average True Range (Wilder)
Relative Volume
Original Contributions:
Multi-component probability weighting system
Volatility regime adaptation framework
Confluence scoring methodology
Integrated risk management calculator
Dashboard-centric visualization
License & Terms
Usage: Free for personal trading
Modification: Open source, modify as needed
Distribution: Credit original author if sharing modified versions
Commercial Use: Contact author for licensing
No Warranty: This indicator is provided "as-is" without guarantees of profitability. Trading involves substantial risk. Past performance does not guarantee future results.
Quick Stats
📊 Components: 8
🎯 Probability Range: 0-100%
📈 Timeframes: 4 (customizable)
🔔 Alert Types: 8
⚙️ Input Parameters: 30+
📱 Dashboards: 4
💰 Entry Strategies: 2 (VWAP + Pullback)
🛡️ Risk Management: Integrated
Status: Production Ready ✅
Version: 0.1.2
Last Updated: November 2025
Pine Script: v6
File Name: PA_AI_PRE_GO_v0.1.2_FIXED.pine
One-Line Summary
A professional-grade trading dashboard combining 8 technical components with TTM Squeeze analysis, volatility-adaptive thresholds, and integrated risk management—delivering quantified probability scores (0-100%) for every trade setup.
davidqqq//@version=5
indicator('CD', overlay=false, max_bars_back=500)
// 输入参数
S = input(12, title='Short EMA Period')
P = input(26, title='Long EMA Period')
M = input(9, title='Signal Line Period')
// 计算DIFF, DEA和MACD值
fastEMA = ta.ema(close, S)
slowEMA = ta.ema(close, P)
DIFF = fastEMA - slowEMA
DEA = ta.ema(DIFF, M)
MACD = (DIFF - DEA) * 2
// 计算N1和MM1
N1 = ta.barssince(ta.crossunder(MACD, 0))
MM1 = ta.barssince(ta.crossover(MACD, 0))
// 确保长度参数大于0
N1_safe = na(N1) ? 1 : math.max(N1 + 1, 1)
MM1_safe = na(MM1) ? 1 : math.max(MM1 + 1, 1)
// 计算CC和DIFL系列值
CC1 = ta.lowest(close, N1_safe)
CC2 = nz(CC1 , CC1)
CC3 = nz(CC2 , CC2)
DIFL1 = ta.lowest(DIFF, N1_safe)
DIFL2 = nz(DIFL1 , DIFL1)
DIFL3 = nz(DIFL2 , DIFL2)
// 计算CH和DIFH系列值
CH1 = ta.highest(close, MM1_safe)
CH2 = nz(CH1 , CH1)
CH3 = nz(CH2 , CH2)
DIFH1 = ta.highest(DIFF, MM1_safe)
DIFH2 = nz(DIFH1 , DIFH1)
DIFH3 = nz(DIFH2 , DIFH2)
// 判断买入条件
AAA = CC1 < CC2 and DIFL1 > DIFL2 and MACD < 0 and DIFF < 0
BBB = CC1 < CC3 and DIFL1 < DIFL2 and DIFL1 > DIFL3 and MACD < 0 and DIFF < 0
CCC = (AAA or BBB) and DIFF < 0
LLL = not CCC and CCC
XXX = AAA and DIFL1 <= DIFL2 and DIFF < DEA or BBB and DIFL1 <= DIFL3 and DIFF < DEA
JJJ = CCC and math.abs(DIFF ) >= math.abs(DIFF) * 1.01
BLBL = JJJ and CCC and math.abs(DIFF ) * 1.01 <= math.abs(DIFF)
DXDX = not JJJ and JJJ
DJGXX = (close < CC2 or close < CC1) and (JJJ or JJJ ) and not LLL and math.sum(JJJ ? 1 : 0, 24) >= 1
DJXX = not(math.sum(DJGXX ? 1 : 0, 2) >= 1) and DJGXX
DXX = (XXX or DJXX) and not CCC
// 判断卖出条件
ZJDBL = CH1 > CH2 and DIFH1 < DIFH2 and MACD > 0 and DIFF > 0
GXDBL = CH1 > CH3 and DIFH1 > DIFH2 and DIFH1 < DIFH3 and MACD > 0 and DIFF > 0
DBBL = (ZJDBL or GXDBL) and DIFF > 0
DBL = not DBBL and DBBL and DIFF > DEA
DBLXS = ZJDBL and DIFH1 >= DIFH2 and DIFF > DEA or GXDBL and DIFH1 >= DIFH3 and DIFF > DEA
DBJG = DBBL and DIFF >= DIFF * 1.01
DBJGXC = not DBJG and DBJG
DBJGBL = DBJG and DBBL and DIFF * 1.01 <= DIFF
ZZZZZ = (close > CH2 or close > CH1) and (DBJG or DBJG ) and not DBL and math.sum(DBJG ? 1 : 0, 23) >= 1
YYYYY = not(math.sum(ZZZZZ ? 1 : 0, 2) >= 1) and ZZZZZ
WWWWW = (DBLXS or YYYYY) and not DBBL
// plot买入和卖出信号
if DXDX
label.new(bar_index, low, text='抄底', style=label.style_label_up, color=color.red, textcolor=color.white, size=size.small)
if DBJGXC
label.new(bar_index, high, text='卖出', style=label.style_label_down, color=color.green, textcolor=color.white, size=size.small)
ATR Trend Table with DI both waysThis indicator is used confirm entry point whether it has met ATR and DI direction criterias






















