OPEN-SOURCE SCRIPT

Dow Theory Cockpit

177
1. 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 [Smart Adjust V14]

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 [F. Money Management], input your balance and Risk %. Set your start date in [T. Backtest Period].

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 [Smart Adjust V14]

形式: インジケーター (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)」 にローソク足が到達したら決済です。

**「スマートアジャスト」により、壁の手前で利確設定されているため、「反発して戻ってくる前に逃げ切る」**ことができます。

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.