Dow Theory Cockpit1. Evolution History
The system has reached its final form through five distinct development phases:
Phase 1: Logic Development (V1–V6)
Established four core logics: BREAK and DIP (Dow Theory), SNIPER (Reversal), and PUSH (Trend continuation).
Implemented the Multi-Timeframe (MTF) panel and Market Scanner.
Phase 2: Strategy Transition (V7–V9)
Integrated backtesting features, but found the Pine Script calculation load too heavy for real-time charting.
Phase 3: Optimization & Performance (V10–V11)
Prioritized smooth real-time execution by returning to a lightweight indicator format.
Introduced the on-chart stats panel for Win Rate and P&L tracking.
Phase 4: Visual Completion (V12–V13)
High-Vis Fib: Bold orange lines highlighting the Golden Zone (38.2%/61.8%).
Visual Zones: Introduced Green and Red bands for intuitive trade tracking.
Phase 5: Smart Adjust Implementation (V14 - Current)
Barrier Avoidance: Automatically detects nearby Support/Resistance boxes and shortens the TP to secure profits before a potential reversal.
Dynamic RR Optimization: Automatically adjusts the SL in tandem with the shortened TP to maintain a healthy Risk-Reward ratio.
2. Specifications
Name: Dow Theory Cockpit
Format: Indicator
Trading Style: Scalping to Day Trading
Timeframes: 5M, 15M (Recommended), 1H
Assets: All pairs (Gold, Crypto, Forex, Indices)
3. Features
① Quad-Logic Entry Signals
🎯 SNIPER: Reversal logic targeting "Tops and Bottoms" when the market is overextended.
🌊 DIP: Trend-following logic for "Deep Pullbacks" with clean Moving Average alignment.
⚡ PUSH: Scalping logic for "Shallow Pullbacks" during high-momentum trends.
🚀 BREAK: Classic Dow Theory momentum entry on recent High/Low breakouts.
② Visual Analysis Tools
S/R BOX: Displays key price levels as shaded zones to account for market noise and wick volatility.
High-Vis Auto Fib: Automatically plots Fibonacci levels, highlighting the Golden Zone with bold lines.
③ Bulletproof Money Management
Calculated Lot Size: Displays the precise lot size based on your account balance and Risk % directly on the signal label.
TP/SL Zones: Dynamic Green and Red bands show exactly where your profit and loss targets lie.
④ Smart Adjust Function (NEW)
Logic: Automatically scans for strong S/R walls near your entry.
Normal Condition: Displays TP/SL at your default Risk-Reward ratio.
Wall Detected: Automatically pulls the TP to the edge of the barrier and tightens the SL to maintain the ratio.
Alert: A "⚠️Adj" warning appears on the label when this adjustment is active.
⑤ Integrated Info Panel
Main Panel: Trends across all timeframes, real-time Win Rate, and Period Net P&L.
Scanner: Constant monitoring of Gold/JPY/BTC and major US/JP economic data.
4. How to Use
Configuration: In the settings under , input your balance and Risk %. Set your start date in .
Entry Decision: Wait for the "★ BUY" or "★ SELL" label.
"⚠️Adj" displayed: The system has detected a nearby barrier and narrowed the TP/SL for safety. This results in a higher win rate with smaller gains.
No warning: No barriers detected. Targets the default wide Risk-Reward ratio.
Execution: Enter using the exact Lot size on the label. Set your Limit/Stop orders at the provided TP/SL prices.
Exit: The trade concludes when the price reaches the Green or Red zone. Smart Adjust ensures you exit the market before a potential bounce.
1. 大幅なアップデート履歴 (Evolution History)
このシステムは、以下の5つのフェーズを経て完成しました。
フェーズ1:ロジック構築期 (V1〜V6)
ダウ理論に基づく「BREAK」「DIP」に加え、逆張り「SNIPER」、順張り追撃「PUSH」の4つのロジックを搭載。
マルチタイムフレーム(MTF)パネル、市場監視スキャナーの実装。
フェーズ2:ストラテジー化への挑戦 (V7〜V9)
バックテスト機能を搭載したが、Pine Scriptの計算負荷増大によりチャート動作が重くなる問題が発生。
フェーズ3:軽量化と原点回帰 (V10〜V11)
**「実戦での快適さ」**を最優先し、indicator 形式へ戻して超軽量化。
期間損益や勝率を、チャート上のパネルで簡易確認できる仕様に変更。
フェーズ4:視認性の完成 (V12〜V13)
High-Vis Fib: フィボナッチの重要ライン(38.2%/61.8%)を太いオレンジ実線で強調。
Visual Zone: トレード中、チャート上に「緑(利益)/赤(損失)」の帯を表示し、直感的な判断を可能に。
フェーズ5:スマート・アジャスト実装 (V14 - Current)
障害物回避機能: エントリー方向の直近に「逆側のレジサポBOX(壁)」がある場合、TPをその手前に自動短縮し、反発による含み益消滅リスクを回避。
RR自動最適化: TPの短縮に合わせて、最低限のリスクリワード(RR)を維持するようSLも自動調整する機能を搭載。
2. 全体の仕様 (Specifications)
名称: Dow Theory Cockpit
形式: インジケーター (Indicator)
※TradingViewの「ストラテジーテスター」タブは使用しません。
推奨スタイル: スキャルピング 〜 デイトレード
推奨時間足: 5分足、15分足(推奨)、1時間足
通貨ペア: 全通貨対応(Gold, Crypto, Forex, Index)
3. 特徴と機能 (Features)
① 4つの「高期待値」エントリーロジック
相場の状況に合わせて最適なサインが点灯します。
🎯 SNIPER: 行き過ぎた相場の反転(天底)を狙う逆張り。
🌊 DIP: 移動平均線の並びが良い状態での「深い押し目」を拾う順張り。
⚡ PUSH: 強いトレンド(ADX上昇中)の「浅い押し目」で飛び乗るスキャルピング用。
🚀 BREAK: ダウ理論の基本、直近高値・安値ブレイクでのエントリー。
② 視覚的環境認識ツール
レジサポ BOX: 重要価格帯を「面(ボックス)」で表示。ヒゲのダマシを許容します。
High-Vis Auto Fib: 直近の波を検知し、38.2%/61.8%(ゴールデンゾーン)を太線で強調表示。
③ 鉄壁の資金管理 (Money Management)
推奨ロット表示: 口座資金と許容リスク(%)に基づき、適正ロット数を自動計算して表示します。
TP/SL ゾーン: エントリー中、チャート上に「利確までの緑の帯」と「損切までの赤の帯」が表示され、価格の進行度合いが一目で分かります。
④ スマート・アジャスト機能 (Smart Adjust) ★NEW
機能: エントリー時、目標地点の手前に「強力なレジサポBOX」があるかを自動検知します。
動作:
通常時: 設定通りのRR(2.5倍など)でTP/SLを表示。
壁がある時: **「壁の手前」**にTPを引き下げ、それに合わせてSLも浅く調整します。
表示: 調整が行われた場合、ラベルに 「⚠️Adj(調整済み)」 と警告が出ます。
⑤ 情報集約パネル
Main Panel: 全時間足のトレンド方向、直近の勝率、期間内の純損益を表示。
Scanner: Gold / JPY / BTC の動向と、日米経済指標を常時監視。
4. 使い方 (How to Use)
STEP 1: 初期設定
インジケーター設定の 【F. 資金管理】 を開き、口座資金 と リスク(%) を入力します。
【T. バックテスト期間】 で損益計算を開始したい日付を設定します。
STEP 2: エントリー判断
チャートに 「★ BUY」 または 「★ SELL」 のラベルが出現するのを待ちます。
ラベルの確認:
「⚠️Adj」 と出ている場合 → 「近くに壁があるため、TP/SLを狭く調整しました」という意味です。勝率は上がりますが、値幅は小さくなります。
何も出ていない場合 → 「障害物なし。通常のRRで大きく狙います」という意味です。
STEP 3: 注文 (Execution)
ラベルの数値を信頼して注文を出します。
Lot: 表示された数量を入力。
TP/SL: 表示された価格に指値・逆指値を置く。
STEP 4: 決済 (Exit)
チャート上の 「緑の帯(TP)」 か 「赤の帯(SL)」 にローソク足が到達したら決済です。
**「スマートアジャスト」により、壁の手前で利確設定されているため、「反発して戻ってくる前に逃げ切る」**ことができます。
Penunjuk dan strategi
DuoBlocks - ICT Order Block detectorDuoBlocks (ICT Order Block Detector)
(An ICT(Inner Circle Trading)-style Order Block(OB) tool that highlights only the most relevant and recent Demand/Supply zones using FVG and Engulfing based OB sources.)
Overview
DuoBlocks is an ICT-inspired Order Block detector that uses the mostly used two major order block types: FVG(Fair Value Gap) or Engulfing. There are many Order Block indicators out there, but I couldn’t find one that consistently highlights the most relevant, most recent OB relative to the current price without making the chart a mess and that's why so I built this script.
FVG-based OB (FVG-OB): OBs derived from 3-candle fair value gap logic.
Engulfing-based OB (Engulfing-OB): OBs derived from strong 2-candle reversal/displacement (engulf) logic.
Usage
FVG-OB (Fair Value Gap Order Blocks)
This script finds bullish/bearish FVGs and draws an Order Block zone from the candle that created the move. Think of these zones as your potential next support (bullish) and resistance (bearish) levels.
Engulfing-OB (Engulfing Order Blocks)
This script also finds strong bullish/bearish engulfing candles and draws an Order Block zone from the candle that got engulfed.
Same idea: treat them as potential next support (bullish) and resistance (bearish) levels.
**Use these zones like “next level” support/resistance areas. Don’t blindly buy/sell—wait for your own confirmation and manage risk properly.
Settings
Show FVG-OB
Toggle display of the selected FVG-based bullish/bearish OB (one per side).
Show Engulfing-OB
Toggle display of the selected Engulfing-based bullish/bearish OB (one per side).
Max Invalidation Attempts (FVG OB or Engulf OB)
Controls how many separate breach events a stored OB can absorb before it is marked invalid (discarded). The counting happens when either of below occurs.
Bullish OB: price prints a low below the OB bottom.
Bearish OB: price prints a high above the OB top.
Each time this happens, the OB’s invalidation counter increments by +1.
Once the counter reaches your Max Attempts, that OB is flagged as no longer live, so it will stop being eligible for selection. Then the script automatically falls through to the next best/next nearest valid OB in memory.
Right Extend (bars)
How far to extend the selected OB boxes to the right.
Lookback bars
Maximum historical bars scanned for detection. Lower values = faster/cleaner, higher values = more history retained.
Max stored OB per side
Maximum stored bullish and bearish OBs in memory (per source).
Bullish/Bearish OB Color
Controls border/midline coloring for bullish and bearish zones.
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice or investment recommendations. Trading cryptocurrencies and other financial instruments involves significant risk, and you are solely responsible for your own decisions based on your financial situation, objectives, and risk tolerance. The author assumes no liability for losses arising from the use of this indicator.
Conditional Background & Bar Colorsℹ️ Conditional Background & Bar Colors is a lightweight utility indicator that applies conditional background and candle/bar colors based on user-defined logical rules.
This script is not a trading indicator and does not generate buy or sell signals.
It is designed purely as a visual enhancement layer to help highlight market states or indicator conditions.
🔧 Features
Define multiple independent conditions using:
➤ Comparisons (>, <, =, ≥, ≤)
➤ Cross, crossover, crossunder
➤ Value changes and slope direction
➤ NA / non-NA states
Apply colors to:
➤ Chart background
➤ Candles / bars
➤ Optional “all conditions matched” logic for confluence highlighting
➤ Works with any indicator or price source
Can be applied to:
➤ Main price chart
➤ Indicator panes (e.g. RSI, MACD, custom indicators)
➤ No repainting
➤ No alerts
➤ No strategy or execution logic
🎯 Use Cases
➤ Visual confirmation of indicator alignment
➤ Market regime or bias highlighting
➤ Context awareness for discretionary trading
➤ Conditional coloring inside indicator panes
🎨 Color behavior
➤ Background colors overlap and can be combined using transparency
➤ The “all conditions matched” color overrides individual background colors
➤ Bar colors override each other, where the lowest active condition in the list takes priority
⚠️ Disclaimer
This script provides visual assistance only.
All trading decisions remain the sole responsibility of the user.
Global Sovereign Spread MonitorIn the summer of 2011, the yield on Italian government bonds rose dramatically while German Bund yields fell to historic lows. This divergence, measured as the BTP-Bund spread, reached nearly 550 basis points in November of that year, signaling what would become the most severe test of the European monetary union since its inception. Portfolio managers who monitored this spread had days, sometimes weeks, of advance warning before equity markets crashed. Those who ignored it suffered significant losses.
The Global Sovereign Spread Monitor is built on a simple but powerful observation that has been validated repeatedly in academic literature: sovereign bond spreads contain forward-looking information about systemic risk that is not fully reflected in equity prices (Longstaff et al., 2011). When investors demand higher yields to hold peripheral government debt relative to safe-haven bonds, they are expressing a view about credit risk, liquidity conditions, and the probability of systemic stress. This information, when properly analyzed, provides actionable signals for traders across all asset classes.
The Science of Sovereign Spreads
The academic study of government bond yield differentials began in earnest following the creation of the European Monetary Union. Codogno, Favero and Missale (2003) published what remains one of the foundational papers in this field, examining why yields on government bonds within a currency union should differ at all. Their analysis, published in Economic Policy, identified two primary drivers: credit risk and liquidity. Countries with higher debt-to-GDP ratios and weaker fiscal positions commanded higher yields, but importantly, these spreads widened dramatically during periods of market stress even when fundamentals had not changed significantly.
This observation led to a crucial insight that Favero, Pagano and von Thadden (2010) explored in depth in the Journal of Financial and Quantitative Analysis. They found that liquidity effects can amplify credit risk during stress periods, creating a feedback loop where rising spreads reduce liquidity, which in turn pushes spreads even higher. This dynamic explains why sovereign spreads often move in non-linear fashion, remaining stable for extended periods before suddenly widening rapidly.
Longstaff, Pan, Pedersen and Singleton (2011) extended this research in their American Economic Review paper by examining the relationship between sovereign credit default swap spreads and bond spreads across multiple countries. Their key finding was that a significant portion of sovereign credit risk is driven by global factors rather than country-specific fundamentals. This means that when spreads widen in Italy, it often reflects broader risk aversion that will eventually affect other asset classes including equities and corporate bonds.
The practical implication of this research is clear: sovereign spreads function as a leading indicator for systemic risk. Aizenman, Hutchison and Jinjarak (2013) confirmed this in their analysis of European sovereign debt default probabilities, finding that spread movements preceded rating downgrades and provided earlier warning signals than traditional fundamental analysis.
How the Indicator Works
The Global Sovereign Spread Monitor translates these academic findings into a systematic framework for monitoring credit conditions. The indicator calculates yield differentials between peripheral government bonds and German Bunds, which serve as the benchmark safe-haven asset in European markets. Italian ten-year yields minus German ten-year yields produce the BTP-Bund spread, the single most important metric for Eurozone stress. Spanish yields minus German yields produce the Bonos-Bund spread, providing a secondary confirmation signal. The transatlantic US-Bund spread captures divergence between the two major safe-haven markets.
Raw spreads are converted to Z-scores, which measure how many standard deviations the current spread is from its historical average over the lookback period. This normalization is essential because absolute spread levels vary over time with interest rate cycles and structural changes in sovereign debt markets. A spread of 150 basis points might have been concerning in 2007 but entirely normal in 2023 following the European debt crisis and subsequent ECB interventions.
The composite index combines these individual Z-scores using weights that reflect the relative importance of each spread for global risk assessment. Italy receives the highest weight because it represents the third-largest sovereign bond market globally and any Italian debt crisis would have systemic implications for the entire Eurozone. Spain provides confirmation of peripheral stress, while the US-Bund spread captures flight-to-quality dynamics between the two primary safe-haven markets.
Regime classification transforms the continuous Z-score into discrete states that correspond to different market environments. The Stress regime indicates that spreads have widened to levels historically associated with crisis periods. The Elevated regime signals rising risk aversion that warrants increased attention. Normal conditions represent typical spread behavior, while the Calm regime may actually signal complacency and potential mean-reversion opportunities.
Retail Trader Applications
For individual traders without access to institutional research teams, the Global Sovereign Spread Monitor provides a window into the macro environment that typically remains opaque. The most immediate application is risk management for equity positions.
Consider a trader holding a diversified portfolio of European stocks. When the composite Z-score rises above 1.0 and enters the Elevated regime, historical data suggests an increased probability of equity market drawdowns in the coming days to weeks. This does not mean the trader must immediately liquidate all positions, but it does suggest reducing position sizes, tightening stop-losses, or adding hedges such as put options or inverse ETFs.
The BTP-Bund spread specifically provides actionable information for anyone trading EUR/USD or European equity indices. Research by De Grauwe and Ji (2013) demonstrated that sovereign spreads and currency movements are closely linked during stress periods. When the BTP-Bund spread widens sharply, the Euro typically weakens against the Dollar as investors question the sustainability of the monetary union. A retail forex trader can use the indicator to time entries into EUR/USD short positions or to exit long positions before spread-driven selloffs occur.
The regime classification system simplifies decision-making for traders who cannot constantly monitor multiple data feeds. When the dashboard displays Stress, it is time to adopt a defensive posture regardless of what individual stock charts might suggest. When it displays Calm, the trader knows that risk appetite is elevated across institutional markets, which typically supports equity prices but also means that any negative catalyst could trigger a sharp reversal.
Mean-reversion signals provide opportunities for more active traders. When spreads reach extreme levels in either direction, they tend to revert toward their historical average. A Z-score above 2.0 that begins declining suggests professional investors are starting to buy peripheral debt again, which historically precedes broader risk-on behavior. A Z-score below minus 1.0 that starts rising may indicate that complacency is ending and risk-off positioning is beginning.
The key for retail traders is to use the indicator as a filter rather than a primary signal generator. If technical analysis suggests a long entry in European stocks, check the sovereign spread regime first. If spreads are elevated or rising, the technical setup becomes higher risk. If spreads are stable or compressing, the technical signal has a higher probability of success.
Professional Applications
Institutional investors use sovereign spread analysis in more sophisticated ways that go beyond simple risk filtering. Systematic macro funds incorporate spread data into quantitative models that generate trading signals across multiple asset classes simultaneously.
Portfolio managers at large asset allocators use sovereign spreads to make strategic allocation decisions. When the composite Z-score trends higher over several weeks, they reduce exposure to peripheral European equities and bonds while increasing allocations to German Bunds, US Treasuries, and other safe-haven assets. This rotation often happens before explicit risk-off signals appear in equity markets, giving these investors a performance advantage.
Fixed income specialists at banks and hedge funds use sovereign spreads for relative value trades. When the BTP-Bund spread widens to historically elevated levels but fundamentals have not deteriorated proportionally, they may go long Italian government bonds and short German Bunds, betting on mean reversion. These trades require careful risk management because spreads can widen further before reversing, but when properly sized they offer attractive risk-adjusted returns.
Risk managers at financial institutions use sovereign spread monitoring as an input to Value-at-Risk models and stress testing frameworks. Elevated spreads indicate higher correlation among risk assets, which means diversification benefits are reduced precisely when they are needed most. This information feeds into position sizing decisions across the entire trading book.
Currency traders at proprietary trading firms incorporate sovereign spreads into their EUR/USD and EUR/CHF models. The relationship between the BTP-Bund spread and EUR weakness is well-documented in academic literature and provides a systematic edge when combined with other factors such as interest rate differentials and positioning data.
Central bank watchers use sovereign spreads to anticipate policy responses. The European Central Bank has demonstrated repeatedly that it will intervene when spreads reach levels that threaten financial stability, most notably through the Outright Monetary Transactions program announced in 2012 and the Transmission Protection Instrument introduced in 2022. Understanding spread dynamics helps investors anticipate these interventions and position accordingly.
Interpreting the Dashboard
The statistics panel provides real-time information that supports both quick assessments and deeper analysis. The composite Z-score is the primary metric, representing the weighted average of all spread Z-scores. Values above zero indicate spreads are wider than their historical average, while values below zero indicate compression. The magnitude matters: a reading of 0.5 suggests modestly elevated stress, while 2.0 or higher indicates conditions similar to historical crisis periods.
The regime classification translates the Z-score into actionable categories. Stress should trigger immediate review of risk exposure and consideration of hedges. Elevated warrants increased vigilance and potentially reduced position sizes. Normal indicates no immediate concerns from sovereign markets. Calm suggests risk appetite may be elevated, which supports risk assets but also creates potential for sharp reversals if sentiment changes.
The percentile ranking provides historical context by showing where the current Z-score falls within its distribution over the lookback period. A reading of 90 percent means spreads are wider than they have been 90 percent of the time over the past year, which is significant even if the absolute Z-score is not extreme. This metric helps identify when spreads are creeping higher before they reach official stress thresholds.
Momentum indicates whether spreads are widening or compressing. Rising momentum during elevated spread conditions is particularly concerning because it suggests stress is accelerating. Falling momentum during stress suggests the worst may be past and mean reversion could be beginning.
Individual spread readings allow traders to identify which component is driving the composite signal. If the BTP-Bund spread is elevated but Bonos-Bund remains normal, the stress may be Italy-specific rather than systemic. If all spreads are widening together, the signal reflects broader flight-to-quality that affects all risk assets.
The bias indicator provides a simple summary for traders who need quick guidance. Risk-Off means spreads indicate defensive positioning is appropriate. Risk-On means spread conditions support risk-taking. Neutral means spreads provide no clear directional signal.
Limitations and Risk Factors
No indicator provides perfect signals, and sovereign spread analysis has specific limitations that users must understand. The European Central Bank has demonstrated its willingness to intervene in sovereign bond markets when spreads threaten financial stability. The Transmission Protection Instrument announced in 2022 specifically targets situations where spreads widen beyond levels justified by fundamentals. This creates a floor under peripheral bond prices and means that extremely elevated spreads may not persist as long as historical patterns would suggest.
Political events can cause sudden spread movements that are impossible to anticipate. Elections, government formation crises, and policy announcements can move spreads by 50 basis points or more in a single session. The indicator will reflect these moves but cannot predict them.
Liquidity conditions in sovereign bond markets can temporarily distort spread readings, particularly around quarter-end and year-end when banks adjust their balance sheets. These technical factors can cause spread widening or compression that does not reflect fundamental credit risk.
The relationship between sovereign spreads and other asset classes is not constant over time. During some periods, spread movements lead equity moves by several days. During others, both markets move simultaneously. The indicator provides valuable information about credit conditions, but users should not expect mechanical relationships between spread signals and subsequent price moves in other markets.
Conclusion
The Global Sovereign Spread Monitor represents a systematic application of academic research on sovereign credit risk to practical trading decisions. The indicator monitors yield differentials between peripheral and safe-haven government bonds, normalizes these spreads using statistical methods, and classifies market conditions into regimes that correspond to different risk environments.
For retail traders, the indicator provides risk management information that was previously available only to institutional investors with access to Bloomberg terminals and dedicated research teams. By checking the sovereign spread regime before executing trades, individual investors can avoid taking excessive risk during periods of elevated credit stress.
For professional investors, the indicator offers a standardized framework for monitoring sovereign credit conditions that can be integrated into broader macro models and risk management systems. The real-time calculation of Z-scores, regime classifications, and component spreads provides the inputs needed for systematic trading strategies.
The academic foundation is robust, built on peer-reviewed research published in top finance and economics journals over the past two decades. The practical applications have been validated through multiple market cycles including the European debt crisis of 2011-2012, the COVID-19 shock of 2020, and the rate normalization stress of 2022.
Sovereign spreads will continue to provide valuable forward-looking information about systemic risk for as long as credit conditions vary across countries and investors respond rationally to changes in default probabilities. The Global Sovereign Spread Monitor makes this information accessible and actionable for traders at all levels of sophistication.
References
Aizenman, J., Hutchison, M. and Jinjarak, Y. (2013) What is the Risk of European Sovereign Debt Defaults? Fiscal Space, CDS Spreads and Market Pricing of Risk. Journal of International Money and Finance, 34, pp. 37-59.
Codogno, L., Favero, C. and Missale, A. (2003) Yield Spreads on EMU Government Bonds. Economic Policy, 18(37), pp. 503-532.
De Grauwe, P. and Ji, Y. (2013) Self-Fulfilling Crises in the Eurozone: An Empirical Test. Journal of International Money and Finance, 34, pp. 15-36.
Favero, C., Pagano, M. and von Thadden, E.L. (2010) How Does Liquidity Affect Government Bond Yields? Journal of Financial and Quantitative Analysis, 45(1), pp. 107-134.
Longstaff, F.A., Pan, J., Pedersen, L.H. and Singleton, K.J. (2011) How Sovereign Is Sovereign Credit Risk? American Economic Review, 101(6), pp. 2191-2212.
Manganelli, S. and Wolswijk, G. (2009) What Drives Spreads in the Euro Area Government Bond Market? Economic Policy, 24(58), pp. 191-240.
Arghyrou, M.G. and Kontonikas, A. (2012) The EMU Sovereign-Debt Crisis: Fundamentals, Expectations and Contagion. Journal of International Financial Markets, Institutions and Money, 22(4), pp. 658-677.
SEPA Sell Signal IndicatorSEPA Sell Signal Indicator - Documentation
Overview
A comprehensive exit signal indicator designed to work alongside the main SEPA (Stage, EMA, Price Action) indicator. It detects entry points via SEPA base breakouts and provides intelligent sell signals to protect profits and limit losses.
Core Features
Entry Detection
Automatically detects SEPA base breakout patterns
Tracks entry price and calculates swing low reference
Monitors position status (LONG/FLAT)
5 Sell Triggers
Price < EMA50 (Technical weakness)
Protected by EMA10 system (see below)
Trend Broken (Price < EMA150 AND EMA200)
Major trend reversal signal
Not protected - always fires
EMA Cross (EMA50 < EMA150)
Death cross indicating momentum shift
Not protected - always fires
Swing Low Broken (Price < Previous Swing Low)
Hard stop loss trigger
Lookback period: 10 bars (adjustable 5-50)
Not protected - always fires
Relative Strength Negative (RS vs NIFTY500 < 0)
Stock underperforming benchmark index
Based on 21-period EMA comparison
Not protected - always fires
EMA10 Protection System (Refinement Feature)
Purpose
Prevents premature exits during healthy pullbacks in strong uptrends.
Protection Criteria (All must be true)
✅ Stock in uptrend (EMA50 > EMA150 > EMA200)
✅ Price above EMA10
✅ Price above EMA50
✅ Only protects Condition 1 (Price < EMA50)
Two-Stage Warning System
Stage 1: Yellow "CAUTION" Signal
Appears when Condition 1 triggers but protection is active
Grace period begins (default: 5 bars)
Allows time for price to recover
Stage 2: Red "SELL" Signal
Fires when ANY of these occur:
Warning timer expires (5/5 bars)
Price drops below EMA10
Price drops below EMA50
Uptrend ends
Any other sell condition (2-5) triggers
Settings
Enable EMA10 Protection: ON/OFF toggle (default: ON)
Protection Time Limit: 1-20 bars (default: 5)
Visual Elements
Chart Signals
🔴 Red Triangle (SELL): Confirmed sell signal - exit position
🟡 Yellow Circle (CAUTION): Warning - monitor closely
🟢 Green Background Tint: Currently in position
Information Tables
Top Right - Sell Conditions Table
Shows real-time status of all 5 conditions
✓ (Green) = Condition NOT met (safe)
✓ (Red) = Condition met (danger)
⚠ (Yellow) = Warning active (monitoring)
Displays EMA10 protection status (ON/OFF)
Shows warning timer (e.g., "3/5")
Bottom Right - Position Details (when in position)
Entry price
Swing low level
Relative strength value (color-coded)
Current P&L percentage
Bottom Right - Status (when flat)
Shows "NO POSITION"
Indicates waiting for "BASE BREAKOUT"
Alert System
Entry Signal: SEPA base breakout detected
Warning Alert: Caution - price below EMA50 but protected
EMA50 Break: Sell confirmed after protection expires
Trend Break: Major reversal - exit immediately
EMA Cross: Death cross - exit immediately
Swing Low Break: Hard stop - exit immediately
RS Negative: Underperformance - exit immediately
Configuration Parameters
ParameterDefaultRangeDescriptionEMA 10101-50Fast moving average for protectionEMA 50501-200Primary trend indicatorEMA 1501501-300Medium-term trendEMA 2002001-500Long-term trendSwing Low Lookback105-50Bars to find previous swing lowRS EMA215-50Period for relative strength calcBenchmarkCNX500-Index for RS comparisonProtection Time Limit51-20Max bars for warning stateTable Text Size1 (Small)0-40=Tiny, 4=HugeEMA10 ProtectionONON/OFFEnable/disable protection
Trading Workflow
Entry: Indicator detects SEPA base breakout
Monitoring: Track 5 sell conditions in real-time
Warning: Yellow CAUTION if minor weakness (Condition 1 only)
Grace Period: 5 bars to recover or confirm breakdown
Exit: Red SELL signal when conditions confirm weakness
Reset: Returns to flat, waits for next base breakout
Key Advantages
✅ Selective Protection: Only protects shallow pullbacks, not real breakdowns
✅ Time-Limited: Won't delay exits indefinitely (5-bar max)
✅ Multi-Layered: 5 independent sell conditions
✅ Visual Clarity: Color-coded signals and comprehensive tables
✅ Customizable: All parameters adjustable for your style
✅ Alert System: Never miss a critical signal
Philosophy
The indicator balances two competing goals:
Stay in winning trades during healthy pullbacks
Exit quickly when trends genuinely reverse
The refined EMA10 protection system achieves this by giving breathing room for minor dips while ensuring swift exits on confirmed weakness.
Session By BullancePrime Multi-Session VisualizerThe Session BullancePrime indicator allows you to visualize the major trading sessions (Asia, London, New York) directly on your chart. It provides:
✅ Customizable session times in AM/PM or 24-hour format
✅ Enable/disable each session independently
✅ Background highlighting for each session
✅ Open line, high/low tracking, vertical line, and midline for precise session analysis
✅ Midline centered on the session range, updating in real-time
✅ Fully customizable colors, line styles, and widths
Use it to identify key trading ranges, session overlaps, and potential breakout zones across global markets. Ideal for day traders, swing traders, and anyone looking to analyze session-based price action.
The Blessed AnchorThe Blessed Anchor is a high-precision execution tool designed for intraday traders who specialize in the Opening Range Breakout (ORB) and ICT/SMC confluences.
While the 9:30 AM market open is often filled with "noise" and stop-hunts, the 9:45 AM candle (15-minute timeframe) often acts as the "Truth Candle"—the anchor that defines the genuine institutional bias for the morning session. This script automates the identification of this candle and provides the exact equilibrium levels needed for high-probability entries.
Key Features
The 9:45 Anchor: Automatically highlights the 09:45–10:00 AM candle in high-visibility yellow.
The Mean Threshold (50% Level): Automatically plots a white dotted equilibrium line. This is the "discount" or "premium" entry point traders look for after displacement.
Dynamic Range Cloud: Visualizes the high and low of the anchor candle, creating a "support/resistance" zone that often holds for the entire session.
Smart Plotting (V6): Uses style_linebr logic to ensure your charts stay clean, with no diagonal lines stretching across previous days.
Instant Alerts: Built-in alerts for when price tests the range boundaries or returns to the 50% Mean Threshold.
How to Trade the "Blessed Anchor" Strategy
This script is best used as a confluence filter. For a "Blessed" entry, follow these four steps:
The Anchor: Wait for the 9:45 AM candle to complete (Yellow highlight).
The Displacement: Look for a strong, energetic move away from the high or low of the yellow zone.
The FVG (Fair Value Gap): Ensure the displacement leaves behind a Fair Value Gap (imbalance).
he Execution: Wait for price to return to the 50% Mean Threshold (the white dotted line). Enter when a Bullish or Bearish Engulfing Candle forms at this level.Settings & Optimization
Timezone: Defaulted to America/New_York (NYSE).
Visuals: Fully customizable colors for the Anchor candle and the Zone Cloud.
Timeframe: Optimized for the 15-minute chart for the anchor, but functions perfectly on lower timeframes (1m, 5m) to track internal price action.
DISCLAIMER :This script is for educational purposes only. Past performance does not guarantee future results. Always practice proper risk management.
Strategy H4-H1-M15 Triple Screen + TableMaster of Multi-Timeframe Trading: "Triple Screen" Strategy
"▲▼ & BUY/SELL M15 Tags" — H1 Ready signals warn the trader in advance that a reversal is brewing on the medium timeframe.
Settings:
Stochastic Settings: Oscillator length and smoothing adjustment.
Overbought/Oversold: Overbought/oversold level settings (default 80/20).
SL Offset: Buffer in ticks/pips for setting stop-loss beyond extremes.
Usage Instructions:
Long: Background painted light green (H4 Trend UP + H1 Stoch Low), wait for green "BUY M15" tag.
Short: Background painted light red (H4 Trend DOWN + H1 Stoch High), wait for red "SELL M15" tag.
Entry → SL → TP = PROFIT
Short Description (for preview):
Comprehensive "Triple Screen" strategy based on MACD (H4) and Stochastic (H1, M15). Features trend monitoring panel and precise entry signals with automatic Stop Loss calculation.
Technical Notes (for developers):
Hardcoded Timeframes: "240" (H4) and "60" (H1) are hardcoded. For universal use on other timeframe combinations (D1-H4-H1), make these input.timeframe variables.
Repainting: request.security may cause repainting on historical bars (current bar is honest). Standard practice for multi-timeframe TradingView indicators.
Alerts: Built-in alert support for one-click trading convenience.
Laguerre Timeframe OscillatorLaguerre Timeframe Breadth Oscillator
Multi-timeframe × multi-gamma Laguerre breadth model
────────────────────────
Usage Notes
────────────────────────
• This is a regime & consensus indicator, not a trigger
• Best used for trend validation and risk filtering
• Extreme values tend to persist during strong regimes
This indicator answers a single question:
“Out of 198 independent Laguerre filters, how many are currently rising?”
────────────────────────
Concept
────────────────────────
Using Laguerre polynomials, we aggregate price behavior across:
• 11 explicit timeframes (1-minute → 1-day)
• 18 gamma responsiveness levels (0.10 → 0.95)
This produces 198 independent Laguerre curves.
The final oscillator is NOT price.
It represents a directional consensus across timescales and smoothing sensitivities.
────────────────────────
Laguerre Filter Mathematics
────────────────────────
For each Laguerre line i:
L0ᵢ(t) = (1 − γᵢ) · x(t) + γᵢ · L0ᵢ(t−1)
L1ᵢ(t) = −γᵢ · L0ᵢ(t) + L0ᵢ(t−1) + γᵢ · L1ᵢ(t−1)
L2ᵢ(t) = −γᵢ · L1ᵢ(t) + L1ᵢ(t−1) + γᵢ · L2ᵢ(t−1)
L3ᵢ(t) = −γᵢ · L2ᵢ(t) + L2ᵢ(t−1) + γᵢ · L3ᵢ(t−1)
Smoothed output:
Yᵢ(t) = ( L0ᵢ + 2·L1ᵢ + 2·L2ᵢ + L3ᵢ ) / 6
This weighted sum smooths noise while preserving phase better than a traditional EMA.
────────────────────────
Gamma Responsiveness
────────────────────────
Gamma controls responsiveness vs stability:
0.10 — Very fast, noisy
0.40 — Momentum-sensitive
0.70 — Trend-stable
0.95 — Very slow, structural
Each timeframe is evaluated across all gamma levels.
────────────────────────
Timeframes Used (11)
────────────────────────
Minutes: 1, 3, 5, 10, 15, 30, 45
Hours: 1, 2, 4
Days: 1
────────────────────────
Direction Test
────────────────────────
Each Laguerre line votes “up” or “down”:
Iᵢ(t) = 1 if Yᵢ(t) > Yᵢ(t−1)
Iᵢ(t) = 0 otherwise
────────────────────────
Breadth Calculation
────────────────────────
greenCount(t) =
I₁(t) + I₂(t) + I₃(t) + … + I₁₉₈(t)
Total number of rising Laguerre filters.
────────────────────────
Centered Breadth Oscillator
────────────────────────
oscRaw(t) = greenCount(t) − 99
(99 = half of 198; zero represents balanced breadth)
────────────────────────
Smoothing & Amplification
────────────────────────
EMA smoothing:
oscSmooth(t) = EMA₁₀₀(oscRaw)
Extreme emphasis:
oscExtreme(t) = 2 · oscSmooth(t)
────────────────────────
Clamped Final Output
────────────────────────
osc(t) = max( −99 , min( 99 , oscExtreme(t) ) )
Range:
• −99 → all filters falling
• 0 → mixed / neutral
• +99 → all filters rising
────────────────────────
Optional Probabilistic Interpretation
────────────────────────
p(t) = greenCount(t) / 198
Interpretable as the probability of upward directional alignment.
Reach out on Discord if you need further guidance. - Coño Vista
Delta/Volume Bubble Signals [Quant Z-Score] Maxxed Version Delta/Volume Bubble Signals Maxxed Verison
This indicator combines advanced volume delta analysis with smart filtering to generate high-conviction intraday signals on futures like YM, ES, and NQ (5-minute charts perform particularly well in testing).
Special thanks to L&L Capital for the LNL Trend System, which provides the excellent dynamic chop detection and cloud visuals used here.
A very BIG thanks to tncylyv for the original volume delta bubble script — its Z-score normalization on extreme volume/delta is the foundation of the core detection logic.This entire system is now possible thanks to TradingView's addition of Volume Delta data in the Footprint chart, allowing accurate lower-timeframe delta aggregation without external feeds. Core Concept the indicator identifies extreme volume/delta spikes — moments when significant buying or selling pressure appears — and only signals when multiple confluence filters align. This results in lower-frequency, higher-quality trades that aim to capture institutional momentum while avoiding noise.
How It Works — Key Components Volume Delta Detection (The Heart of the System) Uses TradingView's built-in footprint delta (aggregated from lower TF, default 1-second bars).
Calculates absolute delta and applies a rolling Z-score (default lookback 60 bars) to normalize extremes across different volatility regimes and instruments.
Bubbles visualize spikes above threshold (default 1.7σ).
BUY/SELL signals require the same threshold plus additional filters.
Absorption Filter (Enabled by Default) Detects high volume/delta with minimal price movement ("effort vs result" failure = trapped traders).
Purple glow on bubbles + optional alert.
Signals are suppressed on absorption bars to avoid counter-trend traps.
Trend Filter (Nadaraya-Watson from jdehorty as default) Non-repainting kernel regression line for smooth, adaptive trend following.
Signals only fire when price is on the correct side of the trend line (above for longs, below for shorts). Can be disabled or switched to EMA/WMA/KAMA.
LNL Chop Filter (Tight Mode by Default) Dynamic ATR-based stop zones from L&L's system.
When stop levels appear on both sides of price = sideways/chop (no-go zone).
Signals completely suppressed during chop.
Signals & Visuals
BUY: Small blue "BUY" label below bar.
SELL: Small red "SELL" label above bar.
CLOSE LONG: Tiny dark grey "CLOSE" label above bar (on opposite SELL signal or stop hit).
CLOSE SHORT: Tiny dark grey "CLOSE" label below bar (on opposite BUY signal or stop hit).
No overlap — closes only appear on actual exit/reversal bars.
Alerts (Fully Separate)Individual toggles for:
BUY Signal
SELL Signal
CLOSE LONG (opposite SELL)
CLOSE SHORT (opposite BUY)
Absorption Detected
Unusual Volume/Delta
Usage Tips Best on intraday futures (YM 5-min has shown strong results in testing).
Defaults are tuned for balance: 1.7σ threshold, Tight LNL mode, absorption on.
Strategy version (separate script) adds LNL trailing stops for actual backtesting/exits.
Customize freely — try different LNL modes (Net for wider range), trend types, or Z-thresholds.
To backtest and optimize using the matching strategy which I created as well.
Important: Forward Test Thoroughly This indicator was refined on historical data, so there's always risk of over-fitting.
Always forward test on live or paper accounts for weeks/months before real capital: Validate across different market regimes (trending, ranging, high/low volatility).
Compare out-of-sample periods.
Adjust one parameter at a time and re-validate forward.
Markets change — what worked yesterday may need tweaking tomorrow.
Feel free to use, modify, and share. Good luck, and trade well! — Max
KCP MACD + RSI Overlay [Dr.K.C.Prakash]KCP MACD + RSI Overlay is a price-chart indicator that combines MACD crossovers (momentum change) with RSI strength confirmation.
It gives BUY when momentum turns bullish and RSI shows strength, and SELL when momentum turns bearish with weak RSI—helping filter false signals and trade only higher-quality moves.
Discipline Sleeping TimeThe Sleeping Time indicator highlights a predefined time window on the chart that represents your sleeping hours. This will help doing backtest easily by filtering out unrealistic result of trades while we are still sleeping.
During the selected period:
- The chart background is softly shaded to visually mark your sleep window
- The first candle of the range is labeled “Sleep”
- The last candle of the range is labeled “Wake Up”
You can also use it for other purpose.
This makes it easy to:
- Visually avoid trading during sleep hours
- Identify when a trading session should be inactive
- Maintain discipline and consistency across different markets and timezones
Key Features:
- Custom Time Range
Define your sleeping hours using a start and end time.
- UTC Offset Selector
Adjust the time window using a UTC offset dropdown (−10 to +13), so the indicator aligns correctly with your local time.
- Clear Visual Markers
Background shading during sleep hours
- Start label: Sleep
- End label: Wake Up
- Customizable Labels
Change label text, size, and style to suit your chart layout.
Best Use Case
Use this indicator to lock in rest time, avoid emotional trades, and respect personal trading boundaries. Because good trades start with good sleep 😴
Intermarket Divergence (Futures vs Equity)Intermarket Divergence (Futures vs Equity)
This indicator detects intermarket divergence between a traded instrument (futures, CFD, or spot) and a related equity or ETF.
It highlights moments where price and its underlying market drivers disagree, often appearing before reversals or expansions.
🎯 What It Shows
Bullish divergence:
Price makes a lower low while the equity makes a higher low
Bearish divergence:
Price makes a higher high while the equity makes a lower high
Based on swing pivots, not candle noise
Designed for intraday context, not mechanical entries
✅ Recommended Use
XAUUSD (Gold) → GDX (default)
XAGUSD (Silver) → SIL
USOIL / WTI → XLE
(These guidelines are included directly in the indicator settings.)
🧭 How to Use
Apply on 15m–30m
Look for signals near key levels (PDH/PDL, Asia high/low, HTF structure)
Use price action for entries
Divergence is context, not a signal.
⚠️ Notes
Non-repainting
Signals are selective by design
Best during London & New York sessions
Demand Index - Metastock VersionThis script implements the Demand Index, a complex technical indicator originally developed by James Sibbet. This specific version is adapted from the classic MetaStock formula to ensure accuracy and consistency with the original methodology.
The Demand Index combines price and volume data to relate price pressure to volume intensity. It is often used as a leading indicator to predict price trends by assessing the balance between buying pressure (Demand) and selling pressure (Supply).
How It Works
The calculation involves several steps to normalize volume and price changes:
Weighted Close: It calculates a weighted close price giving extra weight to the closing price (High + Low + 2*Close) / 4.
Volatility & Volume Averages: It computes the Average True Range (ATR) proxy and an Exponential Moving Average (EMA) of the volume to establish a baseline.
Buying & Selling Pressure: The core logic compares the current weighted close to the previous one.
If prices rise, the volume is assigned to Buying Pressure.
If prices fall, the volume is assigned to Selling Pressure.
A decay factor (Constant) is applied based on volatility to smooth the reaction to extreme price moves.
The Index: The final oscillator is derived from the ratio of smoothed Buying Pressure to Selling Pressure.
How to Use It
The Demand Index oscillates around a zero line. Traders typically look for the following signals:
Divergence: This is the most common use.
Bullish Divergence: Prices are making new lows, but the Demand Index is making higher lows. This suggests selling pressure is waning and a reversal may be imminent.
Bearish Divergence: Prices are making new highs, but the Demand Index is making lower highs. This suggests buying pressure is drying up.
Zero Line Crossovers:
A cross above zero indicates that Buying Pressure has overtaken Selling Pressure (Bullish).
A cross below zero indicates that Selling Pressure has overtaken Buying Pressure (Bearish).
Trend Confirmation: In a strong trend, the Demand Index should generally move in the same direction as the price.
Settings
Length: The lookback period for the moving averages (Default is 19, consistent with the standard MetaStock setting).
Originality & Credits
This script is a direct translation of the mathematical formula used in MetaStock software. While the Demand Index concept belongs to James Sibbet, this specific Pine Script implementation is provided as open source for the community to study and utilize.
Disclaimer:
This script is for educational and informational purposes only. It DOES NOT constitute financial advice. Trading involves significant risk, and past performance is not indicative of future results. Always do your own research before making investment decisions.
Sesion Operativa - Codigo InstitucionalThis indicator is designed for institutional and precision traders who need to visualize market liquidity and key session operating ranges without visual clutter.
Unlike standard session indicators, this tool focuses on clarity and the projection of key levels (Highs and Lows) to identify potential future reaction zones.
Key Features:
4 Customizable Sessions: Pre-configured with key institutional times (Pre-NY, NY Open, London, and Asia). Each session is fully adjustable in time, color, and style.
Minimalist Labeling: Displays the session name and operating range (in pips/points) in a clean, direct format (e.g., NY - 45), removing decimals and unnecessary text to keep the chart clean.
Range Projections: Option to project the Highs and Lows of each session forward (N candles) to use them as dynamic support or resistance levels.
Opening Highlight (NYSE): Special feature to highlight candle colors during specific high-volatility times (default 09:30 - 09:35 UTC-5), perfect for identifying manipulation or liquidity injections at the stock market open.
Adjustable Time Zone: Default setting is UTC-5 (New York), but fully adaptable to any user time zone.
BB37BB37
WHAT IS SUPPORT AND RESISTANT ?
Support and resistance are fundamental concepts in technical analysis used to identify price levels on charts that are likely to act as barriers, preventing the price from moving in a certain direction.
Support:
Definition: Support refers to a price level at which an asset tends to stop falling because demand is strong enough to prevent further declines. It acts as a "floor" for the price, where buyers step in to buy the asset, causing the price to rebound or stabilize.
Example: If a stock is trading at $50 and repeatedly fails to drop below that level, $50 would be considered a support level.
Resistance:
Definition: Resistance is the opposite of support. It refers to a price level at which selling pressure is strong enough to prevent the price from rising further. It acts as a "ceiling," where sellers are more willing to sell, causing the price to reverse or consolidate.
Example: If the price of an asset repeatedly fails to rise above $100, $100 would be considered a resistance level.
In Practice:
Support and resistance levels are used by traders to make decisions about buying and selling. If the price approaches support, traders may see it as a potential buying opportunity. If the price approaches resistance, they may consider selling or shorting the asset.
If price breaks through a support or resistance level, it can signal a significant price movement. For example, a price moving above resistance may indicate an uptrend, while a price falling below support could indicate a downtrend.
These levels are not always exact and may vary slightly, often being identified as areas rather than precise lines on a chart. They are key tools for understanding market psychology and price behavior.
ORB Session BreakoutORB Session Breakout
Overview
The ORB Session Breakout indicator automatically identifies Opening Range Breakouts across multiple trading sessions (Asia, London, and New York) and provides visual trade setups with entry, stop loss, and take profit levels.
Opening Range Breakout (ORB) is a classic trading strategy that captures momentum when price breaks out of an initial trading range established at the start of a session. This indicator automates the entire process - from detecting the opening range to plotting trade setups when breakouts occur.
🎯 Key Features
Multi-Session Support
Asia Session - Captures the Asian market open (default: 19:00-19:15 NY time)
London Session - Captures the London market open (default: 03:00-03:15 NY time)
New York Session - Captures the NY market open (default: 09:30-09:45 NY time)
Each session is fully customizable with independent time windows and colors
Enable/disable individual sessions based on your trading preferences
Automatic Trade Visualization
Entry Level - Marked at the breakout candle close
Stop Loss Zone - Configurable as ORB High/Low or Breakout Candle High/Low
Take Profit Zone - Calculated automatically based on your Risk:Reward ratio
Visual zones make it easy to see risk/reward at a glance
Smart Breakout Detection
Detects breakouts on the exact candle that closes beyond the ORB range
Supports direction changes - if price breaks one way then reverses, a new trade is signaled
Configurable max breakouts per session (1-4) to control trade frequency
Tracking hours setting limits how long after the ORB to look for entries
Futures Compatible
Special detection logic for futures markets where session times may fall during market close
Works reliably on instruments with non-standard trading hours
📊 How It Works
Opening Range Formation
At the start of each enabled session, the indicator tracks the high and low of the first candle(s)
This range becomes your ORB box (displayed in the session color)
Breakout Detection
When a candle closes above the ORB High → LONG signal
When a candle closes below the ORB Low → SHORT signal
The breakout candle is highlighted in yellow (customizable)
Trade Setup Visualization
Entry line drawn at the breakout candle's close price
Stop Loss placed at ORB Low (longs) or ORB High (shorts) - or breakout candle extreme
Take Profit calculated as: Entry + (Risk × R:R Ratio) for longs
Direction Changes
If you're in a LONG and price closes below the ORB Low, the indicator signals a SHORT
This counts as your 2nd breakout (configurable up to 4 per session)
💡 Trading Tips
Best Practices
Wait for candle close - The indicator only signals on confirmed closes beyond the ORB, reducing false breakouts
Use with trend - ORB breakouts work best when aligned with the higher timeframe trend
Respect the levels - The ORB High/Low often act as support/resistance throughout the session
Monitor multiple sessions - Sometimes the best setups come from Asia or London, not just NY
Recommended Settings by Style
Conservative: Max Breakouts = 1, R:R = 2.0+, SL Mode = ORB Level
Aggressive: Max Breakouts = 3-4, R:R = 1.5, SL Mode = Breakout Candle
Scalping: Shorter tracking hours (1-2), tighter R:R (1.0-1.5)
What to Avoid
Trading ORB breakouts during major news events (high volatility can cause whipsaws)
Taking every signal without considering market context
Using on timeframes higher than 1 hour (the ORB concept works best intraday)
🔔 Alerts
The indicator includes built-in alerts for:
Entry Signal - When a breakout is detected (LONG or SHORT)
Take Profit Hit - When price reaches the TP level
Stop Loss Hit - When price reaches the SL level
To set up alerts: Right-click on the chart → Add Alert → Select "ORB Session Breakout"
📝 Notes
This indicator is designed for intraday trading on timeframes up to 1 hour
Session times are based on the selected timezone (default: America/New_York)
The indicator works on all markets including Forex, Futures, Stocks, and Crypto
For futures with non-standard hours, the indicator includes special detection logic
BUY Sell Signal (Kewme)//@version=6
indicator("EMA Cross RR Box (1:4 TP Green / SL Red)", overlay=true, max_lines_count=500, max_boxes_count=500)
// ===== INPUTS =====
emaFastLen = input.int(9, "Fast EMA")
emaSlowLen = input.int(15, "Slow EMA")
atrLen = input.int(14, "ATR Length")
slMult = input.float(1.0, "SL ATR Multiplier")
rr = input.float(4.0, "Risk Reward (1:4)") // 🔥 1:4 RR
// ===== EMA =====
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
plot(emaFast, color=color.green, title="EMA Fast")
plot(emaSlow, color=color.red, title="EMA Slow")
// ===== ATR =====
atr = ta.atr(atrLen)
// ===== EMA CROSS =====
buySignal = ta.crossover(emaFast, emaSlow)
sellSignal = ta.crossunder(emaFast, emaSlow)
// ===== VARIABLES =====
var box tpBox = na
var box slBox = na
var line tpLine = na
var line slLine = na
// ===== BUY =====
if buySignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry - atr * slMult
tp = entry + atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=tp,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=sl,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
// ===== SELL =====
if sellSignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry + atr * slMult
tp = entry - atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=tp,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=sl,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)






















