Dow Theory Market Structure [Levels]Theory and User Guide for "Dow Theory Market Structure " Indicator
Theoretical Background
The indicator applies the core principles of Dow Theory in a modern context, suitable for any market (stocks, indices, crypto, forex). Developed by Charles Dow in the late 19th century, Dow Theory is the foundation of trend analysis. Its key tenets implemented in the indicator are:
1. Trend Defined by Successive Peaks and Troughs
Bullish Uptrend – each new high is higher than the previous one (Higher High, HH), and each new low is higher than the previous (Higher Low, HL).
Bearish Downtrend – each new high is lower (Lower High, LH), and each new low is lower (Lower Low, LL).
A violation of this structure signals a potential trend reversal.
2. Support and Resistance Levels
Previous significant highs and lows become future support (former highs after breakout) and resistance (former lows after breakout). The indicator automatically draws horizontal lines from each confirmed pivot and extends them until price closes beyond the level.
3. Volume Confirmation
Volume should expand in the direction of the primary trend and contract during corrections. The indicator uses directional volume:
In an uptrend, average volume on up‑bars (close > open) must exceed average volume on down‑bars.
In a downtrend, down‑bar volume must exceed up‑bar volume.
4. Inter‑Market Confirmation
Two key indices (e.g., Industrials and Transports) must confirm each other. The indicator allows selecting a confirming asset (an index or correlated instrument). The trend is considered confirmed when the confirming asset’s trend direction matches the main chart.
5. BOS (Break of Structure) and CHoCH (Change of Character)
Modern interpretation of Dow’s reversal signals:
BOS – continuation of the current trend when an extreme is renewed in its direction.
CHoCH – first reversal signal when price breaks the last opposing extreme (e.g., a new high after a series of lower highs). For strict Dow compliance, the indicator offers Strict Dow CHoCH: the signal appears only when both index and volume confirmations are satisfied (if active).
User Guide
Purpose
Visualize Dow market structure, auto‑plot key levels, determine the current trend, and generate continuation/reversal signals with optional strict confirmation.
Main Chart Elements
HH / HL / LH / LL Labels at each confirmed pivot.
Horizontal Levels – lines drawn from HH (resistance), HL (support), LH (resistance), LL (support). Levels are automatically deleted when price closes beyond them (or on a wick touch, depending on settings).
ZigZag Lines connecting consecutive highs and lows.
BOS ▲ / BOS ▼ Labels – trend continuation.
CHoCH ▲ / CHoCH ▼ Labels – potential reversal.
Info Panel (bottom‑right) – shows current trend, number of active levels, index and volume confirmation status.
Settings
Organized into functional groups:
⚙️ Main Parameters
Swing Length (bars) – number of bars left/right to confirm an extreme. Smaller values give micro‑structure; larger values capture the main trend.
📐 Levels (Horizontal Lines)
Customize visibility, color, line style, width, and break conditions (close vs. wick).
Limit the maximum number of displayed levels per type.
〰️ ZigZag
Color and thickness for up and down segments.
🏷️ HH/HL/LH/LL Labels
Size, color of labels and text.
🔔 BOS / CHoCH
Toggle BOS/CHoCH display, colors, label size.
📊 Confirmation (Dow Theory)
Use Confirming Asset – enable inter‑market confirmation.
Confirming Asset Symbol – ticker of the confirming instrument.
Confirming Swing Length – swing period for the confirming asset.
Confirming Asset Timeframe – timeframe (empty = current).
Volume Confirms Trend – enable directional volume check.
Volume Lookback Period – averaging period for volume.
Strict Dow CHoCH (require confirmations) – when on, a CHoCH appears only if the index trend matches and volume supports the new direction (when those confirmations are active).
Signal Interpretation
Trend Identification:
Check the info panel («Trend: ▲ Bullish Uptrend» or «▼ Bearish Downtrend»).
Visually: rising price makes HH and HL; falling price makes LH and LL.
Levels:
Use horizontal lines as potential support/resistance zones.
When a level is broken, it disappears – price “confirms” beyond it.
BOS:
BOS ▲ – price makes a new high in an uptrend, signaling strength.
BOS ▼ – new low in a downtrend, continuation of weakness.
CHoCH:
CHoCH ▲ – price exceeds the previous high after a series of lower highs (LH). Possible upward reversal.
CHoCH ▼ – price breaks the previous low after a series of higher lows (HL). Possible downward reversal.
When Strict Dow CHoCH is active, the signal will only appear if the index trend already aligns and volume supports the new direction.
Index Confirmation:
The panel shows «✓ Confirmed» – trends align; «✗ Divergence» – discrepancy (caution); «Waiting…» – not enough data.
Volume Confirmation:
«✓ Volume confirms» – directional volume agrees with the trend.
«✗ Volume weak» – volume does not support the move (potential weakness).
Usage Recommendations
Start with default settings. For long‑term analysis, increase Swing Length to 20–50.
For strict Dow Theory compliance, activate both confirmations and enable «Strict Dow CHoCH».
Choose a confirming asset correlated with the main chart (e.g., SPX for stocks, TOTAL for crypto).
Note: with strict filtering, CHoCH signals will be rare but more reliable. Indicator

NORN WEAVE | THURISAZ# NORN WEAVE ᚦ THURISAZ
---
### Overview
NORN WEAVE ᚦ THURISAZ is the third version of the NORN WEAVE series, built on URUZ as its foundation.
The core logic is unchanged — EMA slope, Dow Theory swing structure, ADX trend confirmation. What changed is the entry filter. THURISAZ adds one question before every trade: *where are we standing on the daily chart?*
URUZ was built to survive. THURISAZ is built to choose. Bad entries don't just lose money — they consume time, margin, and mental bandwidth. The goal of this version is to stop entering trades that look right on the current timeframe but are wrong on the bigger picture.
The philosophy remains: survival first, profit second. THURISAZ adds a third principle — *don't enter where you shouldn't be standing.*
---
### What's New: Daily Fibonacci Filter
THURISAZ introduces a daily timeframe Fibonacci filter as a structural context layer.
When the current timeframe trend and the daily trend align, the strategy behaves exactly like URUZ — no additional friction.
When they diverge, THURISAZ evaluates *where* price sits within the daily swing range using Fibonacci retracement levels (0.382 and 0.618):
- **Mid zone (0.382–0.618)** — Price is in the middle of the daily range. This is the "landing zone": the most likely area for a pullback to stall and reverse, not complete. Entries are blocked.
- **Shallow zone (below 0.382)** — The pullback is still early. Entry is allowed, but TP1 is adjusted to the 0.382 level rather than the standard ATR-based target. Partial profit is taken before the natural resistance zone.
- **Deep zone (above 0.618)** — Price has retraced significantly. Potential reversal territory. Entry is allowed with standard targets.
The daily swing detection period is independently configurable from the current timeframe's Focus Level, giving finer control over what constitutes a "daily swing."
---
### Entry Conditions
**Long:** EMA rising AND Dow Theory trend up AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bullish (if filter enabled)
**Short:** EMA falling AND Dow Theory trend down AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bearish (if filter enabled)
---
### Exit Conditions
- TP1 — ATR × Factor × 1 → closes 30% (or Fibo 0.382 if shallow counter-trend entry)
- TP2 — ATR × Factor × 2 → closes another 30%
- TP3 — ATR × Factor × 3 → closes a further 30%
- Stop Loss — fixed % from entry → closes full position
- Break Even Stop — once floating profit reaches the BE trigger %, stop moves to entry price and closes on pullback
- Trend Reversal — when Dow Theory swing flips → closes full position
---
### Focus Level & Auto Calibration
Unchanged from URUZ. Focus Level is the primary knob — adjust it first when applying to a new symbol or timeframe.
Auto Calibration computes ADX threshold, ATR factor, and Stop Loss from the chart's own volatility data. When enabled, no manual tuning is required.
---
### Break Even Stop
Unchanged from URUZ. One parameter: how far price must move from entry before the stop activates. Stop is always placed at entry price.
---
### Footprint Delta Filter *(Premium plan required)*
Unchanged from URUZ. Uses BTC or ETH footprint delta as a directional confirmation filter. Blocks entries when order flow contradicts the trade direction.
---
### Parameters
- **Focus Level** (default 13) — Main knob. Controls swing detection and EMA scaling.
- **EMA Scale Ratio** (default 5) — EMA length = Focus Level × this value.
- **Daily Swing Length** (default 10) — Swing detection period for the daily timeframe. Independent from Focus Level.
- **Show Daily Fibo Zone** (default ON) — Displays the 0.382 and 0.618 levels on the chart for visual reference.
- **Auto Calibration** (default ON) — Computes ADX threshold, ATR factor, and SL automatically.
- **BE Trigger %** (default 5.5%) — How far price must move before the BE stop activates.
- **ATR Factor** — Manual mode only. Default 3.8.
- **Stop Loss %** — Manual mode only. Default -10.0%.
- **ADX Threshold** — Manual mode only. Default 20.5.
- **Footprint SMA Period** (default 21) — Smoothing period for delta signal.
---
### On Overfitting
One of the design principles of the NORN WEAVE series has been to minimize the number of configurable parameters. More parameters means more room to fit historical data — and less reason to trust that the results will hold going forward.
THURISAZ adds one new parameter: Daily Swing Length. That's it.
The Fibonacci levels themselves (0.382 and 0.618) are not parameters — they are fixed, widely recognized structural levels used by traders across markets and timeframes. They were not chosen by optimizing against backtest data.
The Daily Fibonacci Filter was validated across six symbols (SOL, DOGE, ETH, SUI, NEAR, PEPE). Five of the six showed improvement in profit factor and drawdown. The one exception — PEPE — deteriorated, which is the expected behavior: PEPE's explosive, non-structural price action doesn't respect daily swing context the way trend-following instruments do. A filter that improves everything uniformly would be suspicious. This result is not.
The filter works because the idea behind it is sound, not because it was tuned to work.
---
### Visual Guide
- **EMA line** — 3-layer glow. Teal when rising, red when falling.
- **Dow Theory zones** — gradient fill from current swing level to current price.
- **Daily Fibo lines** — gold lines at 0.382 and 0.618 of the daily swing. Shaded zone between them marks where entries are blocked.
- **TP lines** — semi-transparent. TP1 faintest, TP3 most visible.
- **BE Stop line** — gold, appears only when active.
- **Gray background** — ADX below threshold. No entries.
- **Orange background** — Footprint Delta Filter blocking entry, or Daily Fibo mid zone active.
- **Status table** — real-time display of all conditions. Japanese/English toggle included. Daily Fibo status shown as: Same Dir / Mid Zone (blocked) / Shallow (TP adjusted) / Deep (reversal watch).
---
---
### 概要
NORN WEAVE ᚦ THURISAZ は、URUZを土台とした NORN WEAVE シリーズ第3バージョンです。
コアロジックは変わっていません——EMAの傾き・ダウ理論のスイング構造・ADXトレンド確認。変わったのはエントリーフィルターです。THURISAZは、すべてのトレードの前に一つの問いを加えます。*日足でみたとき、今どこに立っているのか?*
URUZは「生き残る」ために設計されました。THURISAZは「選ぶ」ために設計されています。悪いエントリーは資金を失うだけでなく、時間・証拠金・集中力を消費します。このバージョンの目標は、現在足ではシグナルが正しく見えても、大きな地形では立ってはいけない場所へのエントリーを止めることです。
哲学は変わっていません。まず生き残る、利益はその次。THURISAZは三つ目の原則を加えます——*立つべきでない場所には立たない。*
---
### 追加機能:日足フィボフィルター
THURISAZは、相場の地形を把握するための「日足フィボナッチフィルター」を新たに導入しました。
現在足のトレンドと日足のトレンドが同じ方向の場合、ストラテジーはURUZとまったく同じ挙動をします——追加の制約はありません。
方向が逆の場合、THURISAZはフィボナッチリトレースメント水準(0.382・0.618)を使い、日足スイングのどの位置に価格があるかを評価します。
- **中間ゾーン(0.382〜0.618)** — 価格が日足レンジの真ん中にある状態。「踊り場」と呼ぶべき位置で、押し目・戻しが途中で止まって反転する可能性が最も高い。エントリーをブロックします。
- **浅いゾーン(0.382以下)** — 押し目・戻しがまだ浅い段階。エントリーは許可しますが、TP1を通常のATRベースから日足フィボ0.382水準に調整します。自然な抵抗ゾーンの手前で部分利確します。
- **深いゾーン(0.618以上)** — 大きく押し込まれた位置。反転の可能性がある水準として通常通りエントリーします。
日足のスイング検出期間は現在足のフォーカスレベルとは独立して設定できます。
---
### エントリー条件
**ロング:** EMA上向き AND ダウ理論上昇 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ買い優勢(フィルター有効時)
**ショート:** EMA下向き AND ダウ理論下降 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ売り優勢(フィルター有効時)
---
### イグジット条件
- TP1 — ATR×倍率×1 → 30%決済(逆張り・浅いゾーン時はフィボ0.382水準)
- TP2 — ATR×倍率×2 → さらに30%決済
- TP3 — ATR×倍率×3 → さらに30%決済
- ストップロス — エントリーから設定%に達したら全決済
- ブレークイーブンストップ — 含み益がBE発動しきい値%に達したらストップが建値に移動。価格が戻ったら全決済
- トレンド反転 — ダウ理論スイングが逆転した時点で全決済
---
### フォーカスレベルとオートキャリブレーション
URUZから変更なし。フォーカスレベルが主軸ノブです。新しい銘柄・時間足に適用するときはここを最初に調整してください。
オートキャリブレーションをONにすると、ADXしきい値・ATR倍率・SLがチャートのボラティリティデータから自動算出されます。
---
### ブレークイーブンストップ
URUZから変更なし。設定項目は一つ——「何%動いたら発動するか」だけ。ストップ位置は常に建値です。
---
### フットプリント・デルタフィルター *(Premiumプラン以上が必要)*
URUZから変更なし。BTCまたはETHのフットプリントデルタを方向性確認フィルターとして使用します。
---
### パラメーター
- **フォーカスレベル**(デフォルト13)— 主軸ノブ。スイング検出・EMAスケールを制御。
- **EMAスケール倍率**(デフォルト5)— EMA期間 = フォーカスレベル × この値。
- **日足スイング検出期間**(デフォルト10)— 日足フィボ計算に使うスイング検出期間。フォーカスレベルとは独立。
- **日足フィボゾーン表示**(デフォルトON)— 0.382・0.618ラインをチャートに表示。
- **オートキャリブレーション**(デフォルトON)— ADXしきい値・ATR倍率・SLを自動算出。
- **BE発動しきい値%**(デフォルト5.5%)— エントリーからこの%動いたらBEストップが発動。
- **ATR倍率**(手動)— オートキャリブレーションOFF時に有効。デフォルト3.8。
- **損切り%**(手動)— オートキャリブレーションOFF時に有効。デフォルト-10.0%。
- **ADXしきい値**(手動)— オートキャリブレーションOFF時に有効。デフォルト20.5。
- **フットプリントSMA期間**(デフォルト21)— デルタシグナルの平滑化期間。
---
### 過剰最適化について
NORN WEAVE シリーズの設計方針の一つは、パラメーター数をできる限り減らすことでした。パラメーターが増えるほど過去データへの過剰適合が起きやすくなり、将来の結果を信頼する根拠が薄れるからです。
THURISAZで追加したパラメーターは「日足スイング検出期間」の一つだけです。
フィボナッチ水準(0.382・0.618)自体はパラメーターではありません——バックテストデータを最適化して選んだ値ではなく、多くのトレーダーが長年にわたって参照してきた普遍的な構造水準です。
日足フィボフィルターは6銘柄(SOL・DOGE・ETH・SUI・NEAR・PEPE)で検証しました。そのうち5銘柄でPFとDDが改善しました。唯一悪化したのはPEPEですが、これは想定内の結果です——PEPEの急騰急落型の値動きは日足スイング構造を参照するロジックとそもそも相性が悪い。すべての銘柄で一様に改善するフィルターの方が、むしろ過剰最適化を疑うべきです。
このフィルターが機能するのは、チューニングの結果ではなく、背後にある考え方が正しいからだと考えています。
---
### チャートの見方
- **EMAライン** — 3層グロー効果。上向きはティール、下向きはレッド。
- **ダウ理論ゾーン** — 現在のスイングレベルから現在価格へのグラデーション。
- **日足フィボライン** — 日足スイングの0.382・0.618をゴールドラインで表示。その間のシェードが「踊り場ゾーン(エントリーブロック)」。
- **TPライン** — 半透明。TP1が最も薄く、TP3が最も濃い。
- **BEストップライン** — ゴールド。発動中のみ表示。
- **グレー背景** — ADXがしきい値以下。エントリーなし。
- **オレンジ背景** — フットプリントデルタフィルターがブロック中、または日足フィボ踊り場ゾーンが有効。
- **ステータステーブル** — 全条件・パラメーター値をリアルタイム表示。日英切り替え対応。日足フィボの状態は「同方向 / 踊り場(ブロック)/ 浅い(TP調整)/ 深い(反転狙い)」で表示。 Strategy

NORN WEAVE | URUZ Overview
NORN WEAVE ᚢ URUZ is the second version of NORN WEAVE ᚠ FEHU. The core logic — EMA slope, Dow Theory swing structure, ADX trend confirmation — is unchanged. What changed is the settings.
FEHU had too many parameters to configure manually. URUZ reduces that friction in three ways.
Focus Level replaces the raw EMA period with a single knob. Set the swing detection period, and the EMA scales automatically. One number instead of two.
Auto Calibration computes the ADX threshold, ATR factor, and Stop Loss directly from the chart's volatility data. When enabled, you don't need to touch those values at all.
Break Even Stop now has a single parameter: how far price must move before the stop activates. The stop is always placed at entry price — no buffer to configure, no edge cases.
The philosophy hasn't changed. Survival first, profit second.
Entry Conditions
- Long: EMA rising AND Dow Theory trend up AND ADX above threshold AND Footprint Delta bullish (if filter enabled)
- Short: EMA falling AND Dow Theory trend down AND ADX above threshold AND Footprint Delta bearish (if filter enabled)
Exit Conditions
- TP1 — ATR × Factor × 1 → closes 30% of position
- TP2 — ATR × Factor × 2 → closes another 30%
- TP3 — ATR × Factor × 3 → closes a further 30%
- Stop Loss — fixed % from entry → closes full position
- Break Even Stop — once floating profit reaches the BE trigger %, stop moves to entry price and closes on pullback
- Trend Reversal — when Dow Theory swing flips → closes full position
Focus Level & Auto Calibration
Focus Level is the primary control knob. It sets the swing detection period, and the EMA period is derived automatically (Focus Level × EMA Scale Ratio, default ×5). Adjust Focus Level first when applying to a new symbol or timeframe — everything else follows.
Auto Calibration computes three values from the chart's own data:
- ADX Threshold — 50th percentile of ADX over 300 bars. The strategy only enters when the current ADX exceeds its own historical median, filtering weak trends automatically.
- ATR Factor — shifts based on current volatility vs. the 200-bar average. High volatility → tighter targets. Low volatility → wider targets.
- Stop Loss — 50-bar smoothed ATR × 3.5, clamped between -5% and -20%.
When Auto Calibration is off, the Manual Tune group values are used instead.
Break Even Stop
Once price moves the BE Trigger % from entry, the stop is placed exactly at the entry price. The position closes if price returns to break-even. One parameter to set — how far price must travel before the stop activates. The stop position is always entry.
Footprint Delta Filter (Premium plan required)
Uses BTC or ETH footprint delta (buy volume − sell volume) as a directional confirmation filter. Blocks entries when order flow contradicts the trade direction. Meaningful reduction in false signals during ranging and choppy markets.
Parameters
- Focus Level (default 13) — Main knob. Controls swing detection and EMA scaling. Adjust first when changing asset or timeframe.
- EMA Scale Ratio (default 5) — EMA length = Focus Level × this value. Default gives EMA 65.
- Auto Calibration (default ON) — Computes ADX threshold, ATR factor, and SL from chart data automatically.
- BE Trigger % (default 5.5%) — How far price must move from entry before the BE stop activates. Recommended: 50–70% of |SL|.
- ATR Factor — active when Auto Calibration is OFF. Controls TP distance. Default 3.8.
- Stop Loss % — active when Auto Calibration is OFF. Default -10.0%.
- ADX Threshold — active when Auto Calibration is OFF. Default 20.5.
- Footprint SMA Period (default 21) — Smoothing period for delta signal.
Recommended Settings
- Meme coins (DOGE, SHIB): Focus 10–15, Auto Calibration ON, BE trigger 6–10%
- Major assets (BTC, ETH): Focus 13–18, Auto Calibration ON, BE trigger 4–7%
- Mid-cap alts (SOL, SUI, ADA): Focus 12–16, Auto Calibration ON, BE trigger 5–8%
For timeframe selection, ADX threshold 15–20 suits 1–5 min charts, 18–23 for 15 min–1H, and 20–25 for 2–4H charts. Default settings are optimized for the 2H timeframe.
Visual Guide
- EMA line — 3-layer glow effect. Teal when rising, red when falling.
- Dow Theory zones — gradient fill from the current swing level to the current price.
- TP lines — semi-transparent. TP1 faintest, TP3 most visible.
- BE Stop line — gold, appears only when the break even stop is active.
- Gray background — ADX below threshold. No entries occur in this zone.
- Orange background — Footprint Delta Filter is blocking entry.
- Orange warning bar — Auto Calibration is OFF. Manual mode is in effect.
- Status table — real-time display of all conditions, current parameter values, and mode. Japanese/English toggle included.
概要
NORN WEAVE ᚢ URUZ は、NORN WEAVE ᚠ FEHU の第2バージョンです。エントリーのコアロジック——EMAの傾き・ダウ理論のスイング構造・ADXトレンド確認——は変わっていません。変わったのは設定です。
FEHUは手動で調整するパラメーターが多すぎました。URUZはその煩わしさを3つの形で減らしています。
フォーカスレベル は、EMA期間という直感的でない数値を一本のノブに置き換えます。スイング検出期間を設定するだけで、EMAが自動的にスケールします。2つの数値が1つになりました。
オートキャリブレーション をONにすると、ADXしきい値・ATR倍率・ストップロスがチャートのボラティリティデータから自動算出されます。有効にしていれば、これらの値に触れる必要はありません。
ブレークイーブンストップ の設定項目は一つになりました——「何%動いたら発動するか」だけです。ストップ位置は常に建値(エントリー価格)で固定。バッファーの設定も、落とし穴もありません。
哲学は変わっていません。 まず生き残る、利益はその次。
エントリー条件
- ロング: EMA上向き AND ダウ理論上昇トレンド AND ADXしきい値以上 AND フットプリントデルタ買い優勢(フィルター有効時)
- ショート: EMA下向き AND ダウ理論下降トレンド AND ADXしきい値以上 AND フットプリントデルタ売り優勢(フィルター有効時)
イグジット条件
- TP1 — ATR×倍率×1 → ポジションの30%を決済
- TP2 — ATR×倍率×2 → さらに30%を決済
- TP3 — ATR×倍率×3 → さらに30%を決済
- ストップロス — エントリーから設定%に達したらポジションを全決済
- ブレークイーブンストップ — 含み益がBE発動しきい値%に達したら、ストップが建値に移動。価格が戻ったら全決済
- トレンド反転 — ダウ理論のスイングが逆転した時点でポジションを全決済
フォーカスレベルとオートキャリブレーション
フォーカスレベル は主軸の操作ノブです。スイング検出期間を設定し、EMA期間はフォーカスレベル×EMAスケール倍率(デフォルト×5)で自動決定されます。新しい銘柄・時間足に適用するときは、まずここを調整してください。
オートキャリブレーション はチャート自身のATR履歴を読み取り、3つの値をリアルタイムで算出します。
- ADXしきい値 — 過去300本のADXの50パーセンタイル(中央値)から算出。現在のADXが過去の中央値を超えているときのみエントリー。
- ATR倍率 — 現在のボラティリティを200本平均と比較して動的に変化。高ボラ時はTPを短く、低ボラ時はTPを長く。
- ストップロス — 50本平滑ATR×3.5で算出し、-5%〜-20%の範囲にクランプ。
オートキャリブレーションをOFFにすると、マニュアルチューングループの値が使われます。
ブレークイーブンストップ
エントリーからBE発動しきい値%以上動いたら、ストップがエントリー価格(建値)に設定されます。価格が建値まで戻った時点でポジションが決済されます。設定項目は一つ——「何%動いたら発動するか」だけ。ストップ位置は常に建値です。
フットプリント・デルタフィルター (Premiumプラン以上が必要)
BTCまたはETHのフットプリント・デルタ(買い出来高から売り出来高を引いた値)を方向性確認フィルターとして使用します。オーダーフローがトレードの方向と逆行しているときはエントリーをブロックします。横ばい・荒れた相場でのだましシグナルを大幅に削減します。
パラメーター
- フォーカスレベル(デフォルト13)— 主軸ノブ。銘柄・時間足変更時はここを最初に調整。
- EMAスケール倍率(デフォルト5)— EMA期間 = フォーカスレベル × この値。デフォルトでEMA65。
- オートキャリブレーション(デフォルトON)— ADXしきい値・ATR倍率・SLをチャートデータから自動算出。
- BE発動しきい値%(デフォルト5.5%)— エントリーからこの%動いたらBEストップが発動。推奨:|SL|の50〜70%。
- ATR倍率(手動)— オートキャリブレーションOFF時に有効。デフォルト3.8。
- 損切り%(手動)— オートキャリブレーションOFF時に有効。デフォルト-10.0%。
- ADXしきい値(手動)— オートキャリブレーションOFF時に有効。デフォルト20.5。
- フットプリントSMA期間(デフォルト21)— デルタシグナルの平滑化期間。
銘柄タイプ別おすすめ設定
- ミーム系(DOGE・SHIB): フォーカス10〜15、オートキャリブレーションON、BE発動6〜10%
- 主要銘柄(BTC・ETH): フォーカス13〜18、オートキャリブレーションON、BE発動4〜7%
- 中堅アルト(SOL・SUI・ADA): フォーカス12〜16、オートキャリブレーションON、BE発動5〜8%
時間足については、1〜5分足ではADXしきい値15〜20、15分〜1時間足では18〜23、2〜4時間足では20〜25を推奨します。デフォルト設定はADA 2時間足向けに最適化されています。
チャートの見方
- EMAライン — 3層グロー効果。上向きはティール、下向きはレッド。
- ダウ理論ゾーン — 現在のスイングレベルから現在価格へのグラデーション。
- TPライン — 半透明。TP1が最も薄く、TP3が最も濃い。
- BEストップライン — ゴールド。BEストップが発動している間のみ表示。
- グレー背景 — ADXがしきい値以下。このゾーンではエントリーが発生しない。
- オレンジ背景 — フットプリント・デルタフィルターがエントリーをブロック中。
- オレンジ警告 — オートキャリブレーションがOFF。手動モードが有効。
- ステータステーブル — 全エントリー条件・現在のパラメーター値・モードをリアルタイム表示。日本語・英語切り替え対応。
Strategy

HH/HL/LH/LL Structure Tracker [AGPro Series]HH/HL/LH/LL Structure Tracker
🔹 Overview
HH/HL/LH/LL Structure Tracker automatically classifies every confirmed swing on your chart using pure Dow Theory — the original price-action framework that precedes and underlies every modern market-structure methodology. Each pivot high is labeled as a Higher High (HH) or Lower High (LH), and each pivot low as a Higher Low (HL) or Lower Low (LL). The sequence of the last four swings derives a live trend state: Bullish, Bearish, or Ranging.
No oscillators. No lagging averages. Just the raw geometry of price.
💎 What Makes This Different
While most "market structure" indicators focus on Break-of-Structure or Change-of-Character logic layered with Smart Money terminology, this script returns to the foundation: the four-swing classification that Charles Dow documented over a century ago. The result is an uncluttered, universally readable overlay that communicates structural context at a glance — regardless of which higher-level methodology you apply next (SMC, Wyckoff, Elliott, or classical technical analysis).
Key differentiators versus generic HH/HL scripts on the public library:
• Live structure range zone that dynamically recolors with the trend state (bullish teal, bearish pink, ranging amber).
• Bull Streak and Bear Streak counters — a quantifiable measure of trend persistence (e.g. "3 consecutive HH-HL swings").
• Semantic break classification: the panel distinguishes a continuation break (HH or LL broken in trend direction) from a reversal break (LH or HL broken against the prior structure).
• Progressive label offset algorithm: when several same-type swings cluster without an intervening opposite swing, each subsequent label is offset further from price, eliminating the overlap that plagues most swing scripts on fast-moving charts.
• AGPro design language: premium info panel, adjustable font size and theme, and a disciplined color palette.
🧠 Methodology
1. Pivot detection. A confirmed swing high is a bar whose high exceeds the preceding and following N bars (N = Pivot Length, default 5). Confirmed swing lows mirror the rule. Confirmation occurs N bars after the pivot bar, never repaints.
2. Swing classification. Each new confirmed high is compared to the previous confirmed high. If greater, it is HH; if lesser, LH. Lows are compared to the previous low: greater means HL, lesser means LL.
3. Trend derivation. If the most recent high is HH and the most recent low is HL, the trend state is Bullish. If LH and LL, Bearish. Any mixed sequence (HH + LL, LH + HL) returns Ranging.
4. Structure range zone. A rectangle is drawn between the most recent swing high and most recent swing low. The zone is always current: as new swings confirm, the zone updates in place. Zone color tracks the trend state.
5. Structure break. A close above the most recent swing high (or below the most recent swing low) fires a break event. The type of swing broken is reported — breaking an LH or HL typically precedes a trend reversal; breaking an HH or LL typically signals continuation.
📊 Signals & Alerts
Three optional alert types are available, each using "once per bar close" frequency to prevent intrabar noise:
• New Higher High confirmed — fires when a fresh HH is classified.
• New Lower Low confirmed — fires when a fresh LL is classified.
• Structure break — fires on a close outside the current structure range, labeled as either (reversal signal) or (continuation).
The live info panel reports: Trend state, Bull Streak, Bear Streak, Last High (with type and price), and Last Break (with type and price).
⚙️ Key Inputs
• Pivot Length — sensitivity of swing detection (2 to 50). Lower values capture minor structure; higher values isolate major swings only. Typical: 3–8 intraday, 5–15 swing trading.
• Max Visible Labels — caps the number of historical labels kept on the chart to preserve a premium uncluttered look.
• Label & Panel Font Size — five sizes from Tiny to Huge, default Normal.
• Label Distance from Price (ATR) — base vertical offset of labels from pivot candles.
• Structure Range Zone — toggle, transparency, and border.
• Trend Background Tint — subtle bullish or bearish chart shading.
• Info Panel — toggle, location (six positions), and theme (Dark or Light).
• Alerts — independent toggles for new HH, new LL, and structure break.
🎯 How to Use
Context tool, not a standalone signal generator. Use the trend state to filter entries from your primary methodology: take long setups only while Trend is Bullish and Bull Streak is building, or vice versa. The structure range zone highlights the active battleground between buyers and sellers — trades taken inside the zone are counter-trend by definition, trades taken on a decisive break of the zone align with the emerging new trend.
Reversal breaks (LH or HL broken) are high-information events — they are often the first objective signal that a prevailing trend is losing conviction, ahead of any moving-average cross or momentum divergence. Continuation breaks (HH or LL broken) are confirmation events that validate staying with the trend.
Works on all markets and all timeframes. Particularly effective on liquid instruments with clear structural rhythm: major crypto pairs, FX majors, index futures, and large-cap equities.
⚠️ Limitations & Transparency
• Pivot confirmation requires N bars after the swing; the most recent unconfirmed swing is never labeled.
• In low-volatility sideways regimes, pivot clustering is inevitable — the Pivot Length input should be raised to filter noise on ranging charts.
• The trend state is derived from only the last two swings; it does not account for higher-timeframe context. Pair with a higher-timeframe version of the same script for multi-timeframe confluence.
• Does not provide entry, stop, or target levels. It is a structural framework, not a complete trading system.
📌 Risk Disclosure
This indicator is for educational and analytical purposes only. It does not constitute financial advice, a trading recommendation, or a guarantee of future performance. All trading involves risk of loss. Past structural patterns do not guarantee future outcomes. Always conduct your own due diligence and use appropriate risk management. Indicator

NORN WEAVE | FEHUOverview
NORN WEAVE ᚠ FEHU is a trend-following strategy built around one philosophy: survival first, profit second.
The core logic is three filters in sequence — EMA slope, Dow Theory swing structure, and ADX trend confirmation. All three must align before an entry is taken. If the market is ranging, the strategy stands aside.
What defines NORN WEAVE is how it protects what it earns. The Break Even Stop automatically moves the stop to entry price once floating profit reaches a threshold. The Footprint Delta Filter adds a second layer, blocking entries when BTC or ETH order flow contradicts the trade direction. Fewer trades. Fewer unnecessary losses. A drawdown profile that stays flat even across five years of volatile crypto markets.
This is not a strategy designed to make you rich overnight. It is designed to keep you in the game.
Performance Highlights (DOGE / 2H / 2021–2026)
Backtested on DOGE 2H from January 2021 to March 2026, with 0.055% commission included. Net profit +25.4%, max drawdown 1.71%, win rate 70.7%, profit factor 1.80, total trades 557.
Always backtest on your target asset before live trading.
Entry Conditions
Long: EMA rising AND Dow Theory trend up AND ADX above threshold.
Short: EMA falling AND Dow Theory trend down AND ADX above threshold.
Exit Conditions
TP1 triggers at ATR × Factor × 1, closing 30% of the position. TP2 at × 2, closing another 30%. TP3 at × 3, closing a further 30%. The Stop Loss closes the full position at a fixed percentage from entry. The Break Even Stop automatically triggers once floating profit reaches the BE threshold, closing the full position at entry price. A Trend Reversal — when Dow Theory swing flips — also closes the full position.
Footprint Delta Filter (Premium plan required)
Uses BTC or ETH footprint delta (buy volume − sell volume) as a directional confirmation filter. Blocks entries when order flow contradicts the trade direction. Meaningful reduction in false signals during ranging markets.
Parameters
EMA Period defaults to 58, recommended range 30–100. Use shorter values for high-volatility assets, longer for stable ones.
ATR Factor defaults to 3.8, recommended range 2.5–6.0. Controls TP distance — higher means wider targets.
Stop Loss defaults to -5.0%, recommended range -4 to -10%. Wider for volatile assets, tighter for BTC/ETH.
ADX Threshold defaults to 20.5, recommended range 15–28. Higher values produce fewer but cleaner trades.
Swing Length defaults to 13, recommended range 2–20. Larger values reduce sensitivity to minor swings.
BE Trigger defaults to 9.0%, recommended range 3–15%. Set below TP1 distance to protect profits before TP1 is reached.
Footprint Delta SMA defaults to 21, recommended range 1–50. Controls smoothing of the delta signal.
Recommended Settings
For meme coins such as DOGE and SHIB: EMA 44–58, ATR 3.5–5.0, stop loss -5 to -8%, ADX 18–22, BE trigger 7–10%.
For major assets such as BTC and ETH: EMA 55–80, ATR 2.5–4.0, stop loss -4 to -6%, ADX 20–25, BE trigger 5–8%.
For mid-cap alts such as SOL and SUI: EMA 35–55, ATR 4.0–5.5, stop loss -5 to -7%, ADX 18–23, BE trigger 6–10%.
For timeframe selection, an ADX threshold of 15–20 suits 1–5 minute charts. 18–23 suits 15 minutes to 1 hour. 20–25 suits 2–4 hour charts. Default settings are optimized for the 2H timeframe.
Visual Guide
The EMA line uses a 3-layer glow effect — teal when rising, red when falling. Dow Theory zones show a gradient from the current swing level to the current price. TP lines are semi-transparent, with TP1 the faintest and TP3 the most visible. The BE Stop line appears in gold only when the break even stop is active. A gray background indicates ADX is below the threshold — the strategy does not enter trades in this zone. An orange background means the Footprint Delta Filter is blocking entry. The status table shows all entry conditions and current state in real time, with a Japanese/English toggle.
概要
NORN WEAVE ᚠ FEHU は、「まず生き残る、利益はその次」 という一つの哲学から作られたトレンドフォロー型ストラテジーです。
エントリー条件はシンプルな3つのフィルターで構成されています——EMAの傾き、ダウ理論のスイング構造、ADXトレンドフィルター。この3つが同時に揃ったときだけエントリーします。レンジ相場と判断されたときは、何もせずに待ちます。
NORN WEAVEを特徴づけているのは、稼いだ利益をどう守るかという設計です。ブレークイーブンストップは、含み益が一定の閾値に達した瞬間に損切りラインをエントリー価格へ自動移動します。フットプリント・デルタフィルターはBTCまたはETHのオーダーフローを確認し、トレードの方向と逆行している場合はエントリーをブロックします。結果としてトレード数は絞られ、不要な損失が減り、ドローダウンが5年間の荒れた暗号資産市場でも極めて小さく抑えられています。
一夜にして資産を増やすストラテジーではありません。長くゲームに居続けるためのストラテジーです。
バックテスト結果
DOGEの2時間足、2021年1月から2026年3月まで、手数料0.055%を含む条件でバックテストを実施しています。総損益は+25.4%、最大ドローダウンは1.71%、勝率は70.7%、プロフィットファクターは1.80、トレード総数は557件です。
実運用の前に必ずご自身の対象銘柄でバックテストを行ってください。
エントリー条件
ロングエントリーはEMAが上向き、ダウ理論トレンドが上昇、ADXがしきい値以上の3条件が揃ったときに発動します。ショートエントリーはEMAが下向き、ダウ理論トレンドが下降、ADXがしきい値以上の3条件が揃ったときに発動します。
イグジット条件
TP1はエントリーからATR×倍率×1の地点でポジションの30%を決済します。TP2は×2の地点でさらに30%、TP3は×3の地点でさらに30%を決済します。損切りは設定した%を超えた時点でポジションを全決済します。ブレークイーブンストップは含み益がしきい値%に達した瞬間に自動発動し、エントリー価格でポジションを全決済します。ダウ理論のスイングが逆転したトレンド反転時も、ポジションを全決済します。
フットプリント・デルタフィルター(Premiumプラン以上が必要)
BTCまたはETHのフットプリント・デルタ(買い出来高から売り出来高を引いた値)を方向性確認フィルターとして使用します。オーダーフローがトレードの方向と逆行しているときはエントリーをブロックします。横ばい相場でのだましシグナルを大幅に削減します。
パラメーター
EMA期間のデフォルトは58で、推奨範囲は30〜100です。ボラティリティが高い銘柄は短め、安定した銘柄は長めに設定します。
ATR倍率のデフォルトは3.8で、推奨範囲は2.5〜6.0です。TP距離の基準となる値で、大きいほど利確ラインが遠くなります。
損切りのデフォルトは-5.0%で、推奨範囲は-4〜-10%です。ボラティリティが高い銘柄は広め、BTC・ETHなどはタイトに設定します。
ADXしきい値のデフォルトは20.5で、推奨範囲は15〜28です。高いほどトレード数が減り、精度が上がります。
スイング検出期間のデフォルトは13で、推奨範囲は2〜20です。大きいほど小さなスイングに反応しにくくなります。
BE発動しきい値のデフォルトは9.0%で、推奨範囲は3〜15%です。TP1到達距離より低めに設定することで、TP1到達前に元本を保護できます。
フットプリントSMA期間のデフォルトは21で、推奨範囲は1〜50です。デルタシグナルの平滑化期間です。
銘柄タイプ別おすすめ設定
ミーム系銘柄(DOGE・SHIBなど)ではEMAを44〜58、ATR倍率を3.5〜5.0、損切りを-5〜-8%、ADXしきい値を18〜22、BEトリガーを7〜10%に設定することを推奨します。
主要銘柄(BTC・ETH)ではEMAを55〜80、ATR倍率を2.5〜4.0、損切りを-4〜-6%、ADXしきい値を20〜25、BEトリガーを5〜8%に設定することを推奨します。
中堅アルト(SOL・SUIなど)ではEMAを35〜55、ATR倍率を4.0〜5.5、損切りを-5〜-7%、ADXしきい値を18〜23、BEトリガーを6〜10%に設定することを推奨します。
時間足については、1〜5分足ではADXしきい値を15〜20、15分〜1時間足では18〜23、2〜4時間足では20〜25に設定することを推奨します。デフォルト設定はDOGEの2時間足向けに最適化されています。
チャートの見方
EMAラインは3層のグロー効果で描画されます。上向きのときはティール、下向きのときはレッドで表示されます。ダウ理論ゾーンは現在のスイングレベルから現在価格へ向かうグラデーションで表示されます。TPラインは半透明で、TP1が最も薄く、TP3が最も濃く表示されます。BEストップラインはブレークイーブンストップが発動している間のみゴールドのラインで表示されます。グレーの背景はADXがしきい値以下の横ばいゾーンを示しており、このゾーンではエントリーは発生しません。オレンジの背景はフットプリント・デルタフィルターがエントリーをブロックしていることを示します。ステータステーブルは全エントリー条件と現在の状態をリアルタイムで表示し、日本語・英語の切り替えに対応しています。
デフォルト設定はDOGEの2時間足向けに最適化されています。実運用の前に必ずご自身の対象銘柄・時間足でバックテストを行ってください。過去の結果は将来の利益を保証するものではありません。
NORN WEAVEは今後も継続的にアップデートされます。ただし、コアコンセプト——生き残ること——は変わりません。
Strategy

EMA and Dow Theory Strategies V4━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Overview
EMA and Dow Theory Strategies V4 is a refinement of V3, focused on one core problem: protecting profits on trades that moved in your favor but reversed before reaching the take-profit levels.
The entry logic is unchanged from V3 — EMA slope direction, Dow Theory swing structure, and ADX trend filter. V4 adds a Break Even Stop mechanism that automatically moves the stop-loss to the entry price once floating profit reaches a defined threshold. This single addition meaningfully improves the risk-adjusted performance without sacrificing the strategy's core edge.
The visual interface has also been fully redesigned — gradient Dow Theory zones, a neon EMA glow effect, minimal trade labels, and a real-time status table showing all entry conditions at a glance.
──────────────────────────────
What Changed from V3
Added:
- Break Even Stop (BE Stop) — When floating profit reaches the BE Trigger % threshold, the stop-loss automatically moves to entry price (+ 0.1% buffer for fees). Trades that previously resulted in a loss after being in profit now exit at breakeven instead.
- Real-time Status Table — Displays EMA direction, Dow Theory trend, ADX value, position status, and BE state. Supports Japanese / English toggle.
- Per-element display toggles — Each visual element can be shown or hidden independently via checkboxes.
- Higher TF swing repainting fix — Rebuilt using lookahead_off and confirmed pivot bars to reduce repainting. Note: the higher timeframe swing lines have always been display-only and were never used in entry conditions, so this change does not affect strategy logic.
- Bilingual support — Full Japanese / English language toggle.
Redesigned:
- EMA line now uses a 3-layer glow effect (neon teal / neon red)
- Dow Theory gradient zones simplified from 5 layers to 2 layers
- TP lines changed to semi-transparent lines (TP1 faint → TP3 visible)
- Trade labels now show only final exit results
- Higher TF swing lines thinned and made semi-transparent as reference-only
──────────────────────────────
Parameters & Recommended Ranges
EMA Period — Default: 58 — Range: 30–100
Shorter for high-volatility assets, longer for stable ones.
ATR Factor — Default: 3.8 — Range: 2.5–6.0
Controls TP distance. Higher = wider targets.
Stop Loss (%) — Default: -5.0 — Range: -4 to -10
Wider for volatile assets, tighter for BTC/ETH.
ADX Threshold — Default: 20.5 — Range: 15–28
Higher = stricter range filter, fewer but higher-quality trades.
Swing Length — Default: 13 — Range: 2–20
Larger = less sensitive to minor swings.
BE Trigger (%) — Default: 9.0 — Range: 3.0–15.0
Set below TP1 distance for protection before TP1 is reached.
──────────────────────────────
Recommended Settings by Asset Type
Meme coins (DOGE, SHIB, etc.)
EMA: 44–58 / ATR: 3.5–5.0 / SL: -5 to -8% / ADX: 18–22 / Swing: 10–15 / BE: 7–10%
Major assets (BTC, ETH)
EMA: 55–80 / ATR: 2.5–4.0 / SL: -4 to -6% / ADX: 20–25 / Swing: 8–15 / BE: 5–8%
Mid-cap alts (SOL, SUI, etc.)
EMA: 35–55 / ATR: 4.0–5.5 / SL: -5 to -7% / ADX: 18–23 / Swing: 8–15 / BE: 6–10%
Small-cap alts
EMA: 30–50 / ATR: 4.5–6.0 / SL: -7 to -10% / ADX: 18–22 / Swing: 5–12 / BE: 8–12%
──────────────────────────────
Recommended Settings by Timeframe
1–5 min: ADX threshold 15–20
15 min – 1 hour: ADX threshold 18–23
2–4 hour: ADX threshold 20–25 (default settings optimized for 2H)
──────────────────────────────
Entry Conditions
Long: EMA slope rising AND Dow Theory trend up AND ADX > threshold
Short: EMA slope falling AND Dow Theory trend down AND ADX > threshold
──────────────────────────────
Exit Conditions
TP1: Entry + ATR x Factor x 1 → close 30%
TP2: Entry + ATR x Factor x 2 → close 30%
TP3: Entry + ATR x Factor x 3 → close 30%
Stop Loss: Fixed % from entry → full close
Break Even Stop: Triggered once profit >= BE Trigger % → full close at entry price
Trend Reversal: Dow Theory swing flip → full close
──────────────────────────────
Visual Features
EMA line: 3-layer neon glow — teal when rising, red when falling
Dow Theory zones: 2-layer gradient from swing high/low to current price
Swing lines: Horizontal support/resistance at current swing high/low
TP lines: Semi-transparent lines, TP1 faint to TP3 visible
BE Stop line: Gold line shown when BE is active
Higher TF swing: Thin reference lines from the 4H timeframe
Gray background: ADX below threshold (range-bound zone, no entries)
Status Table: Real-time display of all entry conditions and current state
This strategy is designed for trend-following on crypto assets, primarily on the 1H–4H timeframe. Default settings are optimized for DOGE on the 2H chart. Always backtest on your target asset before live trading. Past performance does not guarantee future results.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
概要
EMA and Dow Theory Strategies V4 は、V3をベースに改良したバージョンです。解決した課題は一つ——含み益が出ていたにもかかわらず、TP到達前に相場が反転して損失になるトレードを減らすことです。
エントリーロジックはV3から変わっていません。EMAの傾き、ダウ理論のスイング構造、ADXトレンドフィルターの3条件です。V4ではこれにブレークイーブンストップを追加しました。含み益が設定したしきい値%に達すると、損切りラインが自動的にエントリー価格に移動します。このシンプルな追加一つで、ストラテジーの本質的なエッジを損なわずにリスク調整後のパフォーマンスが改善されています。
また、チャートの視覚表現も全面的に刷新しました。ダウ理論ゾーンのグラデーション、EMAのネオングロー効果、すっきりしたトレードラベル、そしてエントリー条件をひと目で確認できるステータステーブルを追加しています。
──────────────────────────────
V3からの主な変更点
追加したもの:
- ブレークイーブンストップ(BE Stop) — 含み益がBE発動しきい値%に達すると、損切りラインがエントリー価格(+手数料分0.1%バッファ)に自動移動。以前は「プラスになったのに最終的にマイナス」で終わっていたトレードがブレークイーブン撤退になります。
- ステータステーブル — EMA方向・ダウ理論トレンド・ADX値・ポジション状態・BEの状態をリアルタイムで一覧表示。日本語・英語の切り替えに対応。
- 描画要素の個別ON/OFF — 各表示要素をチェックボックスで個別に切り替え可能。
- 上位足スイングラインの再描画修正 — lookahead_off と確定済みピボットバーを使用して再描画を低減。なお、上位足スイングラインはもともとエントリー条件には使用しておらず、あくまで参考表示のみです。この修正はストラテジーのロジックに影響しません。
- 日英バイリンガル対応 — ステータステーブルと表示ラベルの日本語・英語切り替えに対応。
刷新したもの:
- EMAラインが3層グロー効果(ネオンティール / ネオンレッド)に
- ダウ理論グラデーションゾーンを5層→2層に簡略化
- TPラインを半透明ラインに変更(TP1が最も薄く、TP3が最も濃い)
- トレードラベルは最終決済時のみ表示(部分利確のラベルは非表示)
- 上位足スイングラインを細く・半透明にして参考表示に
──────────────────────────────
パラメーターと推奨設定範囲
EMA期間 — デフォルト: 58 — 推奨範囲: 30〜100
ボラが高い銘柄は短め、安定銘柄は長め。
ATR倍率 — デフォルト: 3.8 — 推奨範囲: 2.5〜6.0
TP距離の基準。大きいほど利確ラインが遠くなる。
損切り(%) — デフォルト: -5.0 — 推奨範囲: -4〜-10
ボラが高い銘柄は広め、BTC/ETHはタイトでOK。
ADXしきい値 — デフォルト: 20.5 — 推奨範囲: 15〜28
高いほどレンジ除外が厳しく、トレード数が減り精度が上がる。
スイング検出期間 — デフォルト: 13 — 推奨範囲: 2〜20
大きいほど小さなスイングに反応しにくくなる。
BE発動しきい値(%) — デフォルト: 9.0 — 推奨範囲: 3.0〜15.0
TP1到達距離より低めに設定すると、TP1到達前に元本を守れる。
──────────────────────────────
銘柄タイプ別おすすめ設定
ミーム系(DOGE・SHIBなど)
EMA: 44〜58 / ATR倍率: 3.5〜5.0 / 損切り: -5〜-8% / ADX: 18〜22 / スイング: 10〜15 / BE: 7〜10%
主要銘柄(BTC・ETH)
EMA: 55〜80 / ATR倍率: 2.5〜4.0 / 損切り: -4〜-6% / ADX: 20〜25 / スイング: 8〜15 / BE: 5〜8%
中堅アルト(SOL・SUIなど)
EMA: 35〜55 / ATR倍率: 4.0〜5.5 / 損切り: -5〜-7% / ADX: 18〜23 / スイング: 8〜15 / BE: 6〜10%
小型アルト
EMA: 30〜50 / ATR倍率: 4.5〜6.0 / 損切り: -7〜-10% / ADX: 18〜22 / スイング: 5〜12 / BE: 8〜12%
──────────────────────────────
時間足別おすすめ設定
1〜5分足: ADXしきい値 15〜20
15分〜1時間足: ADXしきい値 18〜23
2〜4時間足: ADXしきい値 20〜25(デフォルト設定は2時間足向けに最適化)
──────────────────────────────
エントリー条件
ロング: EMAが上向き AND ダウ理論トレンドが上昇 AND ADX > しきい値
ショート: EMAが下向き AND ダウ理論トレンドが下降 AND ADX > しきい値
──────────────────────────────
イグジット条件
TP1: エントリーから +ATR×倍率×1 → 30%決済
TP2: エントリーから +ATR×倍率×2 → 30%決済
TP3: エントリーから +ATR×倍率×3 → 30%決済
損切り: 設定%を超えたら全決済
BEストップ: 含み益がBE発動しきい値%以上になると自動発動 → エントリー価格で全決済
トレンド反転: ダウ理論のスイングが逆転したら全決済
──────────────────────────────
チャートの見方
EMAライン: 3層グローエフェクト。上向きのときネオンティール、下向きのときネオンレッド
ダウ理論ゾーン: スイング高値・安値から現在価格までの2層グラデーション
スイングライン: 現在のサポート・レジスタンス水平線
TPライン: 半透明ライン。TP1が最も薄く、TP3が最も濃い
BEストップライン: BE発動中にゴールドのラインで表示
上位足スイング: 4時間足のスイングレベルを参考表示(細い半透明ライン)
グレー背景: ADXがしきい値以下の横ばいゾーン(このゾーンではエントリーしません)
ステータステーブル: 全エントリー条件と現在の状態をリアルタイム表示
このストラテジーは主に1時間〜4時間足の暗号資産トレンドフォローを想定して設計されています。デフォルト設定はDOGEの2時間足で最適化されています。実運用の前に必ずご自身の対象銘柄・時間足でバックテストを行ってください。過去の結果は将来の利益を保証するものではありません。 Strategy

EMA and Dow Theory Strategies V3Overview
EMA and Dow Theory Strategies V3 is a major refinement of V2, focused on three goals: reducing overfitting, filtering out range-bound markets, and simplifying the parameter set from 13 inputs down to just 5.
The core logic remains the same — combining Dow Theory swing structure with EMA trend direction — but V3 replaces the dual-EMA crossover system and OTHERS.D correlation filter with a single EMA slope judgment and an ADX-based range filter. The result is a cleaner, more robust strategy that performs more consistently across different assets and timeframes.
What Changed from V2
Removed:
Fast EMA / Slow EMA crossover → replaced by single EMA slope direction
Index Fast EMA / Index Slow EMA (OTHERS.D correlation) → removed entirely
RSI filter (overbought/oversold) → removed (was not functioning effectively)
Scale adjustment parameter → removed
Added:
ADX filter (period fixed at 14) → skips entries during sideways/ranging markets
Single EMA slope judgment → trend direction determined by whether EMA is rising or falling
Result: Parameters reduced from 13 → 5
Parameters & Recommended Ranges
EMA Period | Default: 50 | Range: 30–100
Shorter for high-volatility assets, longer for stable ones.
ATR Multiplier | Default: 4.0 | Range: 2.5–6.0
Controls TP distance. Higher = wider targets.
Stop Loss (%) | Default: -6.0 | Range: -4 to -10
Wider for volatile assets, tighter for BTC/ETH.
ADX Threshold | Default: 18.0 | Range: 15–28
Higher = stricter range filter, fewer but higher-quality trades.
Swing Detection Period | Default: 4 | Range: 2–14
Smaller = more sensitive to swing highs/lows.
Recommended Settings by Asset Type
Meme coins (DOGE, SHIB, etc.)
EMA: 44–55 / ATR: 3.5–5.0 / SL: -6 to -8% / ADX: 18–22 / Swing: 3–5
Major assets (BTC, ETH)
EMA: 55–80 / ATR: 2.5–4.0 / SL: -4 to -6% / ADX: 20–25 / Swing: 5–10
Mid-cap alts (SOL, SUI, etc.)
EMA: 35–55 / ATR: 4.0–5.5 / SL: -5 to -7% / ADX: 18–23 / Swing: 4–7
Small-cap alts
EMA: 30–50 / ATR: 4.5–6.0 / SL: -7 to -10% / ADX: 18–22 / Swing: 3–5
Recommended Settings by Timeframe
1–5 min: ADX threshold 15–20 (ADX tends to be lower on short timeframes)
15 min – 1 hour: ADX threshold 18–23
2–4 hour: ADX threshold 20–25
Entry Conditions
Long: EMA slope rising AND Dow Theory trend up AND ADX > threshold
Short: EMA slope falling AND Dow Theory trend down AND ADX > threshold
Exit Conditions
TP1: +ATR×1 → close 30%
TP2: +ATR×2 → close 30%
TP3: +ATR×3 → close 30%
Stop Loss: fixed % from entry price → full close
Trend reversal: Dow Theory swing flip → full close
Visual Features
EMA line: green when rising, red when falling
Gray background: ADX below threshold (range-bound zone — no entries)
Gradient zones: distance from price to swing high/low
4H reference: higher timeframe swing levels displayed
This strategy is designed for trend-following on crypto assets, primarily on the 1H–4H timeframe. Always backtest on your target asset before live trading. Past performance does not guarantee future results.
🇯🇵 日本語
EMA and Dow Theory Strategies V3
概要
EMA and Dow Theory Strategies V3 は、V2を大幅に改良したバージョンです。主な改善点は3つ——過学習リスクの低減、横ばい相場のフィルタリング、そしてパラメーター数を13個から5個へのスリム化です。
コアロジックはV2から引き継いでいます。ダウ理論のスイング構造とEMAのトレンド方向を組み合わせてエントリーを判断します。ただしV3では、デュアルEMAクロスとOTHERS.D相関フィルターを廃止し、1本のEMA傾きとADXによるレンジフィルターに置き換えました。結果として、より汎用性が高く、異なる銘柄・時間足でも安定して機能する設計になっています。
V2からの主な変更点
削除したもの:
Fast EMA / Slow EMA クロス → EMA1本の傾き判断に統合
Index Fast EMA / Index Slow EMA(OTHERS.D相関)→ 完全削除
RSIフィルター(過熱・売られすぎ判定)→ 削除(実質機能していなかったため)
スケール調整パラメーター → 削除
追加したもの:
ADXフィルター(期間14固定)→ 横ばい相場でのエントリーをスキップ
EMA傾き判断 → EMAが上向きか下向きかでトレンド方向を判定
結果:パラメーター数を 13個 → 5個 に削減
パラメーターと推奨設定範囲
EMA期間 | デフォルト: 50 | 推奨範囲: 30〜100
ボラが高い銘柄は短め、安定銘柄は長め。
ATR倍率 | デフォルト: 4.0 | 推奨範囲: 2.5〜6.0
TP距離の基準。大きいほど利確ラインが遠くなる。
損切り(%) | デフォルト: -6.0 | 推奨範囲: -4〜-10
ボラが高い銘柄は広め、BTC/ETHはタイトでOK。
ADXしきい値 | デフォルト: 18.0 | 推奨範囲: 15〜28
高いほどレンジ除外が厳しく、トレード数が減り精度が上がる。
スイング検出期間 | デフォルト: 4 | 推奨範囲: 2〜14
小さいほどスイング高値・安値への感度が高くなる。
銘柄タイプ別おすすめ設定
ミーム系(DOGE・SHIBなど)
EMA: 44〜55 / ATR倍率: 3.5〜5.0 / 損切り: -6〜-8% / ADX: 18〜22 / スイング: 3〜5
主要銘柄(BTC・ETH)
EMA: 55〜80 / ATR倍率: 2.5〜4.0 / 損切り: -4〜-6% / ADX: 20〜25 / スイング: 5〜10
中堅アルト(SOL・SUIなど)
EMA: 35〜55 / ATR倍率: 4.0〜5.5 / 損切り: -5〜-7% / ADX: 18〜23 / スイング: 4〜7
小型アルト
EMA: 30〜50 / ATR倍率: 4.5〜6.0 / 損切り: -7〜-10% / ADX: 18〜22 / スイング: 3〜5
時間足別おすすめ設定
1〜5分足:ADXしきい値 15〜20(短期足はADXが低めになる傾向)
15分〜1時間足:ADXしきい値 18〜23
2〜4時間足:ADXしきい値 20〜25
エントリー条件
ロング:EMAが上向き AND ダウ理論トレンドが上昇 AND ADX > しきい値
ショート:EMAが下向き AND ダウ理論トレンドが下降 AND ADX > しきい値
イグジット条件
TP1:エントリーから +ATR×1 → 30%決済
TP2:エントリーから +ATR×2 → 30%決済
TP3:エントリーから +ATR×3 → 30%決済
損切り:設定%を超えたら全決済
トレンド反転:ダウ理論のスイングが逆転したら決済
チャートの見方
EMAライン:上向きのとき緑、下向きのとき赤に色が変わります
グレー背景:ADXがしきい値を下回っている横ばいゾーン(このゾーンではエントリーしません)
グラデーションゾーン:現在値からスイング高値・安値までの距離を視覚化
上位足表示:4時間足のスイングレベルを参考表示
このストラテジーは主に1時間〜4時間足の暗号資産トレンドフォローを想定して設計されています。実運用の前に必ずご自身の対象銘柄・時間足でバックテストを行ってください。過去の結果は将来の利益を保証するものではありません。 Strategy

EMA and Dow Theory Strategies V2 DOGE Current Optimum Value
📘 Overview
These are the current optimal values for DOGE.
They are intended for use on the 2‑hour timeframe.
This script requires complex configuration, but there is an optimal set of values somewhere.
Here, I’m sharing the settings that I personally use at the moment.
Turning Take Profit off can lead to higher profits, but it also increases risks such as a lower win rate.
With Take Profit on, you can adjust the settings by increasing the values.
I have been trading using Dow Theory for many years.
Trading with Dow Theory and EMA has been my main strategy.
Although it has been profitable, I have long struggled with its low win rate.
The issue lies in the immaturity of the exit strategy, and I’m currently experimenting to see if I can solve that.
In V2, I added three take‑profit lines, securing 30% of the profit at each level to ensure a minimum level of gain.
Additionally, when the trend weakens, half of the position is closed.
In all scenarios, the remaining position is held until the trend reverses.
The system provides precise entries, adaptive exits, and highly visual guidance that helps traders understand trend structure at a glance.
🧠 Key Features
🔹 1. Dual‑EMA Trend Logic (Symbol + External Index)
Both the chart symbol and an external index (OTHERS.D) are evaluated using fast/slow EMAs to determine correlation‑based trend bias.
🔹 2. Dow Theory Swing Detection (Real‑time)
The script identifies swing highs/lows and updates trend direction when price breaks them. This creates a structural trend model that reacts faster than EMAs alone.
🔹 3. Gradient Trend Zones (Visual Trend Strength)
When trend is up or down, the area between price and the latest swing level is filled with a multi‑step gradient. This makes trend strength and distance-to-structure visually intuitive.
🔹 4. Higher‑Timeframe Swing Trend (htfTrend)
Swing highs/lows from a higher timeframe (e.g., 4H) are plotted to show macro structure. Used only for visual context, not for filtering entries.
🔹 5. RSI‑Based Entry Protection
RSI prevents entries during extreme overbought/oversold conditions.
🔹 6. Dynamic Exit System
Includes:
Custom stop‑loss (%)
Partial take‑profit (TP1/TP2/TP3)
Automatic scale‑out when trend color weakens
“Color‑change lockout” to prevent immediate re‑entry
Real‑time PnL tracking and labels
🔹 7. Alerts for All Key Events
Entry, stop‑loss, partial exits, and trend‑change exits all generate structured JSON alerts.
🔹 8. Visual PnL Labels & Equity Tracking
PnL for the latest trade is displayed directly on the chart, including scale‑out adjustments.
⚙️ Input Parameters
Parameter Description
Fast EMA / Slow EMA EMAs used for symbol trend detection
Index Fast / Slow EMA EMAs applied to external index
StopLoss (%) Custom stop‑loss threshold
Scale‑Out % Portion to exit when trend color weakens
RSI Period / Levels Overbought/oversold filters
Swing Detection Length Bars used to detect swing highs/lows
Stats Display Position of statistics table
🧭 About htfTrend (Higher Timeframe Trend)
The higher‑timeframe swing trend is displayed visually but not used for entry logic.
Why? Strict HTF filtering reduces trade frequency and often removes profitable setups. By keeping it visual‑only, traders retain flexibility while still benefiting from macro structure awareness.
Use it as a contextual guide, not a constraint.
📘 概要
DOGEの現在の最適値です。
2時間足での使用を想定しています。
このスクリプトは複雑な設定が必要ですが、どこかに最適値が存在します。
今回は現在私が個人的に使っている設定値の公開です。
Take ProfitをOFFにするとさらなる利益が望めますが、勝率が下がるなどのリスクが上がります。
ONにした状態で数値を上げることによって調整することが可能です。
私はダウ理論を使ったトレードを長年続けてきました。
ダウ理論とEMAを使ったトレードが私の主力です。
しかし利益は出るものの、長年その勝率の低さに悩んでいました。
問題は出口戦略が未熟なためで、現在はそれらの解決ができないかと試行錯誤を続けています。
V2では3本の利益確定ラインを引き、それぞれ30%ずつ利益を確定し、最低限の利益がでるようにしました。
それ以外にはトレンドが弱まったタイミングで半分の利益確定をし、どのパターンでも残ったポジションはトレンド転換まで持ち続けます。
🧠 主な機能
🔹 1. 銘柄+外部インデックスの EMA クロス判定
対象銘柄と OTHERS.D の EMA を比較し、相関を考慮したトレンド方向を判定します。
🔹 2. ダウ理論に基づくスイング高値・安値の自動検出
スイング更新によりトレンド方向を切り替える、構造ベースのトレンド判定を採用。
🔹 3. グラデーション背景によるトレンド強度の可視化
スイングラインから現在価格までを段階的に塗り分け、 「どれだけトレンドが伸びているか」を直感的に把握できます。
🔹 4. 上位足スイングトレンド(htfTrend)の表示
4H などの上位足でのスイング高値・安値を表示し、 大局的なトレンド構造を視覚的に把握できます(ロジックには未使用)。
🔹 5. RSI による過熱・売られすぎフィルター
極端な RSI 状態でのエントリーを防止。
🔹 6. 動的イグジットシステム
カスタム損切り(%)
TP1/TP2/TP3 の段階的利確
トレンド色の弱まりによる自動スケールアウト
色変化後の再エントリー制限(waitForColorChange)
リアルタイム PnL の追跡とラベル表示
🔹 7. アラート完備(JSON 形式)
エントリー、損切り、部分利確、トレンド反転などすべてに対応。
🔹 8. 損益ラベル・統計表示
直近トレードの損益をチャート上に表示し、視覚的に把握できます。
⚙️ 設定項目
設定項目名 説明
Fast / Slow EMA 銘柄の EMA 設定
Index Fast / Slow EMA 外部インデックスの EMA 設定
損切り(%) カスタム損切りライン
部分利確割合 トレンド弱化時のスケールアウト割合
RSI 期間・水準 過熱/売られすぎフィルター
スイング検出期間 スイング高値・安値の検出に使用
統計表示位置 テーブルの表示位置
🧭 上位足トレンド(htfTrend)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。 Strategy

EMA and Dow Theory Strategies V2📘 Overview
This strategy is an advanced evolution of the original EMA × Dow Theory hybrid model. V2 introduces true swing‑based trend detection, gradient trend‑zones, higher‑timeframe swing overlays, and dynamic exit logic designed for intraday to short‑term trading across crypto, forex, stocks, and indices.
The system provides precise entries, adaptive exits, and highly visual guidance that helps traders understand trend structure at a glance.
🧠 Key Features
🔹 1. Dual‑EMA Trend Logic (Symbol + External Index)
Both the chart symbol and an external index (OTHERS.D) are evaluated using fast/slow EMAs to determine correlation‑based trend bias.
🔹 2. Dow Theory Swing Detection (Real‑time)
The script identifies swing highs/lows and updates trend direction when price breaks them. This creates a structural trend model that reacts faster than EMAs alone.
🔹 3. Gradient Trend Zones (Visual Trend Strength)
When trend is up or down, the area between price and the latest swing level is filled with a multi‑step gradient. This makes trend strength and distance-to-structure visually intuitive.
🔹 4. Higher‑Timeframe Swing Trend (htfTrend)
Swing highs/lows from a higher timeframe (e.g., 4H) are plotted to show macro structure. Used only for visual context, not for filtering entries.
🔹 5. RSI‑Based Entry Protection
RSI prevents entries during extreme overbought/oversold conditions.
🔹 6. Dynamic Exit System
Includes:
Custom stop‑loss (%)
Partial take‑profit (TP1/TP2/TP3)
Automatic scale‑out when trend color weakens
“Color‑change lockout” to prevent immediate re‑entry
Real‑time PnL tracking and labels
🔹 7. Alerts for All Key Events
Entry, stop‑loss, partial exits, and trend‑change exits all generate structured JSON alerts.
🔹 8. Visual PnL Labels & Equity Tracking
PnL for the latest trade is displayed directly on the chart, including scale‑out adjustments.
⚙️ Input Parameters
Parameter Description
Fast EMA / Slow EMA EMAs used for symbol trend detection
Index Fast / Slow EMA EMAs applied to external index
StopLoss (%) Custom stop‑loss threshold
Scale‑Out % Portion to exit when trend color weakens
RSI Period / Levels Overbought/oversold filters
Swing Detection Length Bars used to detect swing highs/lows
Stats Display Position of statistics table
🧭 About htfTrend (Higher Timeframe Trend)
The higher‑timeframe swing trend is displayed visually but not used for entry logic.
Why? Strict HTF filtering reduces trade frequency and often removes profitable setups. By keeping it visual‑only, traders retain flexibility while still benefiting from macro structure awareness.
Use it as a contextual guide, not a constraint.
📘 概要
本ストラテジーは、V1 を大幅に拡張した EMA × ダウ理論 × スイング構造 × 上位足トレンド可視化 の複合型モデルです。 短期〜デイトレード向けに最適化されており、仮想通貨・FX・株式・指数など幅広いアセットで利用できます。
V2 では、スイング構造の自動検出、グラデーションによるトレンド強度の可視化、上位足スイングライン、動的な利確/損切りロジック が追加され、視覚的にもロジック的にも大幅に強化されています。
🧠 主な機能
🔹 1. 銘柄+外部インデックスの EMA クロス判定
対象銘柄と OTHERS.D の EMA を比較し、相関を考慮したトレンド方向を判定します。
🔹 2. ダウ理論に基づくスイング高値・安値の自動検出
スイング更新によりトレンド方向を切り替える、構造ベースのトレンド判定を採用。
🔹 3. グラデーション背景によるトレンド強度の可視化
スイングラインから現在価格までを段階的に塗り分け、 「どれだけトレンドが伸びているか」を直感的に把握できます。
🔹 4. 上位足スイングトレンド(htfTrend)の表示
4H などの上位足でのスイング高値・安値を表示し、 大局的なトレンド構造を視覚的に把握できます(ロジックには未使用)。
🔹 5. RSI による過熱・売られすぎフィルター
極端な RSI 状態でのエントリーを防止。
🔹 6. 動的イグジットシステム
カスタム損切り(%)
TP1/TP2/TP3 の段階的利確
トレンド色の弱まりによる自動スケールアウト
色変化後の再エントリー制限(waitForColorChange)
リアルタイム PnL の追跡とラベル表示
🔹 7. アラート完備(JSON 形式)
エントリー、損切り、部分利確、トレンド反転などすべてに対応。
🔹 8. 損益ラベル・統計表示
直近トレードの損益をチャート上に表示し、視覚的に把握できます。
⚙️ 設定項目
設定項目名 説明
Fast / Slow EMA 銘柄の EMA 設定
Index Fast / Slow EMA 外部インデックスの EMA 設定
損切り(%) カスタム損切りライン
部分利確割合 トレンド弱化時のスケールアウト割合
RSI 期間・水準 過熱/売られすぎフィルター
スイング検出期間 スイング高値・安値の検出に使用
統計表示位置 テーブルの表示位置
🧭 上位足トレンド(htfTrend)について
上位足スイングの更新に基づくトレンド判定を表示しますが、 エントリー条件には使用していません。
理由: 上位足を厳密にロジックへ組み込むと、トレード機会が大幅に減るためです。
本ストラテジーでは、 「大局の把握は視覚で、エントリーは柔軟に」 という設計思想を採用しています。
→ 裁量で利確判断や逆張り回避に活用できます。
Strategy

EMA and Dow Theory Strategies🌐 Strategy Description
📘 Overview
This is a hybrid strategy that combines EMA crossovers, Dow Theory swing logic, and multi-timeframe trend overlays. It is suitable for intraday to short-term trading on any asset class: crypto, forex, stocks, and indices.
The strategy provides precise entry/exit signals, dynamic stop-loss and scale-out, and highly visual trade guidance.
🧠 Key Features
・Dual EMA crossover system (applied to both symbol and external index)
・Dow Theory-based swing high/low detection for trend confirmation
・Visual overlay of higher timeframe swing trend (htfTrend)
・RSI filter to avoid overbought/oversold entries
・Dynamic partial take-profit when trend weakens
・Custom stop-loss (%) control
・Visualized trade PnL labels directly on chart
・Alerts for entry, stop-loss, partial exit
・Gradient background zones for swing zones and trend visualization
・Auto-tracked metrics: APR, drawdown, win rate, equity curve
⚙️ Input Parameters
| Parameter | Description |
| ------------------------- | -------------------------------------------------------- |
| Fast EMA / Slow EMA | Periods for detecting local trend via EMAs |
| Index Fast EMA / Slow EMA | EMAs applied to external reference index |
| StopLoss | Maximum loss threshold in % |
| ScaleOut Threshold | Scale-out percentage when trend changes color |
| RSI Period / Levels | RSI period and overbought/oversold levels |
| Swing Detection Length | Number of bars used to detect swing highs/lows |
| Stats Display Options | Toggle PnL labels and position of statistics table |
🧭 About htfTrend (Higher Timeframe Trend)
The script includes a higher timeframe trend (htfTrend) calculated using Dow Theory (pivot highs/lows).
This trend is only used for visual guidance, not for actual entry conditions.
Why? Strictly filtering trades by higher timeframe often leads to missed opportunities and low frequency.
By keeping htfTrend visual-only, traders can still refer to macro structure but retain trade flexibility.
Use it as a contextual tool, not a constraint.
ストラテジー説明
📘 概要
本ストラテジーは、EMAクロスオーバー、ダウ理論によるスイング判定、**上位足トレンドの視覚表示(htfTrend)**を組み合わせた複合型の短期トレーディング戦略です。
仮想通貨・FX・株式・指数など幅広いアセットに対応し、デイトレード〜スキャルピング用途に適しています。
動的な利確/損切り、視覚的にわかりやすいエントリー/イグジット、統計表示を搭載しています。
🧠 主な機能
・対象銘柄+外部インデックスのEMAクロスによるトレンド判定
・ダウ理論に基づいたスイング高値・安値検出とトレンド判断
・上位足スイングトレンド(htfTrend)の視覚表示
・RSIフィルターによる過熱・売られすぎの回避
・トレンドの弱まりに応じた部分利確(スケールアウト)
・**損切り閾値(%)**をカスタマイズ可能
・チャート上に損益ラベル表示
・アラート完備(エントリー・決済・部分利確)
・トレンドゾーンを可視化する背景グラデーション
・勝率・ドローダウン・APR・資産増加率などの自動表示
| 設定項目名 | 説明内容 |
| --------------------- | -------------------------- |
| Fast EMA / Slow EMA | 銘柄に対して使用するEMAの期間設定 |
| Index Fast / Slow EMA | 外部インデックスのEMA設定 |
| 損切り(StopLoss) | 損切りラインのしきい値(%で指定) |
| 部分利確しきい値 | トレンド弱化時にスケールアウトする割合(%) |
| RSI期間・水準 | RSI計算期間と、過熱・売られすぎレベル設定 |
| スイング検出期間 | スイング高値・安値の検出に使用するバー数 |
| 統計表示の切り替え | 損益ラベルや統計テーブルの表示/非表示選択 |
🧭 上位足トレンド(htfTrend)について
本スクリプトには、上位足でのスイング高値・安値の更新に基づく**htfTrend(トレンド判定)が含まれています。
これは視覚的な参考情報であり、エントリーやイグジットには直接使用されていません。**
その理由は、上位足を厳密にロジックに組み込むと、トレード機会の損失が増えるためです。
このスクリプトでは、**判断の補助材料として「表示のみに留める」**設計を採用しています。
→ 裁量で「利確を早める」「逆張りを避ける」判断に活用可能です。
Strategy

Dow Theory Trend StrategyDow Theory Trend Strategy (Pine Script)
Overview
This Pine Script implements a trading strategy based on the core principles of Dow Theory. It visually identifies trends (uptrend, downtrend) by analyzing pivot highs and lows and executes trades when the trend direction changes. This script is an improved version that features refined trend determination logic and strategy implementation.
Core Concept: Dow Theory
The script uses a fundamental Dow Theory concept for trend identification:
Uptrend: Characterized by a series of Higher Highs (HH) and Higher Lows (HL).
Downtrend: Characterized by a series of Lower Highs (LH) and Lower Lows (LL).
How it Works
Pivot Point Detection:
It uses the built-in ta.pivothigh() and ta.pivotlow() functions to identify significant swing points (potential highs and lows) in the price action.
The pivotLookback input determines the number of bars to the left and right required to confirm a pivot. Note that this introduces a natural lag (equal to pivotLookback bars) before a pivot is confirmed.
Improved Trend Determination:
The script stores the last two confirmed pivot highs and the last two confirmed pivot lows.
An Uptrend (trendDirection = 1) is confirmed only when the latest pivot high is higher than the previous one (HH) AND the latest pivot low is higher than the previous one (HL).
A Downtrend (trendDirection = -1) is confirmed only when the latest pivot high is lower than the previous one (LH) AND the latest pivot low is lower than the previous one (LL).
Key Improvement: If neither a clear uptrend nor a clear downtrend is confirmed based on the latest pivots, the script maintains the previous trend state (trendDirection := trendDirection ). This differs from simpler implementations that might switch to a neutral/range state (e.g., trendDirection = 0) more frequently. This approach aims for smoother trend following, acknowledging that trends often persist through periods without immediate new HH/HL or LH/LL confirmations.
Trend Change Detection:
The script monitors changes in the trendDirection variable.
changedToUp becomes true when the trend shifts to an Uptrend (from Downtrend or initial state).
changedToDown becomes true when the trend shifts to a Downtrend (from Uptrend or initial state).
Visualizations
Background Color: The chart background is colored to reflect the currently identified trend:
Blue: Uptrend (trendDirection == 1)
Red: Downtrend (trendDirection == -1)
Gray: Initial state or undetermined (trendDirection == 0)
Pivot Points (Optional): Small triangles (shape.triangledown/shape.triangleup) can be displayed above pivot highs and below pivot lows if showPivotPoints is enabled.
Trend Change Signals (Optional): Labels ("▲ UP" / "▼ DOWN") can be displayed when a trend change is confirmed (changedToUp / changedToDown) if showTrendChange is enabled. These visually mark the potential entry points for the strategy.
Strategy Logic
Entry Conditions:
Enters a long position (strategy.long) using strategy.entry("L", ...) when changedToUp becomes true.
Enters a short position (strategy.short) using strategy.entry("S", ...) when changedToDown becomes true.
Position Management: The script uses strategy.entry(), which automatically handles position reversal. If the strategy is long and a short signal occurs, strategy.entry() will close the long position and open a new short one (and vice-versa).
Inputs
pivotLookback: The number of bars on each side to confirm a pivot high/low. Higher values mean pivots are confirmed later but may be more significant.
showPivotPoints: Toggle visibility of pivot point markers.
showTrendChange: Toggle visibility of the trend change labels ("▲ UP" / "▼ DOWN").
Key Improvements from Original
Smoother Trend Logic: The trend state persists unless a confirmed reversal pattern (opposite HH/HL or LH/LL) occurs, reducing potential whipsaws in choppy markets compared to logic that frequently resets to neutral.
Strategy Implementation: Converted from a pure indicator to a strategy capable of executing backtests and potentially live trades based on the Dow Theory trend changes.
Disclaimer
Dow Theory signals are inherently lagging due to the nature of pivot confirmation.
The effectiveness of the strategy depends heavily on the market conditions and the chosen pivotLookback setting.
This script serves as a basic template. Always perform thorough backtesting and implement proper risk management (e.g., stop-loss, take-profit, position sizing) before considering any live trading. Strategy

Breadth Indicators NYSE Percent Above Moving AverageBreadth Indicators NYSE - transmits the processed data from the Barchart provider
NYSE - Breadth Indicators
S&P 500 - Breadth Indicators
DOW - Breadth Indicators
RUSSEL 1000 - Breadth Indicators
RUSSEL 2000 - Breadth Indicators
RUSSEL 3000 - Breadth Indicators
Moving Average - 5, 20, 50, 100, 150, 200
The "Percentage above 50-day SMA" indicator measures the percentage of stocks in the index trading above their 50-day moving average. It is a useful tool for assessing the general state of the market and identifying overbought and oversold conditions.
One way to use the "Percentage above 50-day SMA" indicator in a trading strategy is to combine it with a long-term moving average to determine whether the trend is bullish or bearish. Another way to use it is to combine it with a short-term moving average to identify pullbacks and rebounds within the overall trend.
The purpose of using the "Percentage above 50-day SMA" indicator is to participate in a larger trend with a better risk-reward ratio. By using this indicator to identify pullbacks and bounces, you can reduce the risk of entering trades at the wrong time.
Bull Signal Recap:
150-day EMA of $SPXA50R crosses above 52.5 and remains above 47.50 to set the bullish tone.
5-day EMA of $SPXA50R moves below 40 to signal a pullback
5-day EMA of $SPXA50R moves above 50 to signal an upturn
Bear Signal Recap:
150-day EMA of $SPXA50R crosses below 47.50 and remains below 52.50 to set the bearish tone.
5-day EMA of $SPXA50R moves above 60 to signal a bounce
5-day EMA of $SPXA50R moves below 50 to signal a downturn
Tweaking
There are numerous ways to tweak a trading system, but chartists should avoid over-optimizing the indicator settings. In other words, don't attempt to find the perfect moving average period or crossover level. Perfection is unattainable when developing a system or trading the markets. It is important to keep the system logical and focus tweaks on other aspects, such as the actual price chart of the underlying security.
What do levels above and below 50% signify in the long-term moving average?
A move above 52.5% is deemed bullish, and below 47.5% is deemed bearish. These levels help to reduce whipsaws by using buffers for bullish and bearish thresholds.
How does the short-term moving average work to identify pullbacks or bounces?
When using a 5-day EMA, a move below 40 signals a pullback, and a move above 60 signals a bounce.
How is the reversal of pullback or bounce identified?
A move back above 50 after a pullback or below 50 after a bounce signals that the respective trend may be resuming.
How can you ensure that the uptrend has resumed?
It’s important to wait for the surge above 50 to ensure the uptrend has resumed, signaling improved breadth.
Can the system be tweaked to optimize indicator settings?
While there are various ways to tweak the system, seeking perfection through over-optimizing settings is advised against. It's crucial to keep the system logical and focus tweaks on the price chart of the underlying security.
RUSSIAN \ Русская версия.
Индикатор "Процент выше 50-дневной скользящей средней" измеряет процент акций, торгующихся в индексе выше их 50-дневной скользящей средней. Это полезный инструмент для оценки общего состояния рынка и выявления условий перекупленности и перепроданности.
Один из способов использования индикатора "Процент выше 50-дневной скользящей средней" в торговой стратегии - это объединить его с долгосрочной скользящей средней, чтобы определить, является ли тренд бычьим или медвежьим. Другой способ использовать его - объединить с краткосрочной скользящей средней, чтобы выявить откаты и отскоки в рамках общего тренда.
Цель использования индикатора "Процент выше 50-дневной скользящей средней" - участвовать в более широком тренде с лучшим соотношением риска и прибыли. Используя этот индикатор для выявления откатов и отскоков, вы можете снизить риск входа в сделки в неподходящее время.
Краткое описание бычьего сигнала:
150-дневная ЕМА на уровне $SPXA50R пересекает отметку 52,5 и остается выше 47,50, что задает бычий настрой.
5-дневная ЕМА на уровне $SPXA50R опускается ниже 40, сигнализируя об откате
5-дневная ЕМА на уровне $SPXA50R поднимается выше 50, сигнализируя о росте
Обзор медвежьих сигналов:
150-дневная ЕМА на уровне $SPXA50R пересекает уровень ниже 47,50 и остается ниже 52,50, что указывает на медвежий настрой.
5-дневная ЕМА на уровне $SPXA50R поднимается выше 60, сигнализируя о отскоке
5-дневная ЕМА на уровне $SPXA50 опускается ниже 50, что сигнализирует о спаде
Корректировка
Существует множество способов настроить торговую систему, но графологам следует избегать чрезмерной оптимизации настроек индикатора. Другими словами, не пытайтесь найти идеальный период скользящей средней или уровень пересечения. Совершенство недостижимо при разработке системы или торговле на рынках. Важно поддерживать логику системы и уделять особое внимание другим аспектам, таким как график фактической цены базовой ценной бумаги.
Что означают уровни выше и ниже 50% в долгосрочной скользящей средней?
Движение выше 52,5% считается бычьим, а ниже 47,5% - медвежьим. Эти уровни помогают снизить риски, используя буферы для бычьих и медвежьих порогов.
Как краткосрочная скользящая средняя помогает идентифицировать откаты или отскоки?
При использовании 5-дневной ЕМА движение ниже 40 указывает на откат, а движение выше 60 указывает на отскок.
Как определяется разворот отката или отскока?
Движение выше 50 после отката или ниже 50 после отскока сигнализирует о возможном возобновлении соответствующего тренда.
Как вы можете гарантировать, что восходящий тренд возобновился?
Важно дождаться скачка выше 50, чтобы убедиться в возобновлении восходящего тренда, сигнализирующего о расширении диапазона.
Можно ли настроить систему для оптимизации настроек индикатора?
Хотя существуют различные способы настройки системы, не рекомендуется стремиться к совершенству с помощью чрезмерной оптимизации настроек. Крайне важно сохранить логичность системы и сфокусировать изменения на ценовом графике базовой ценной бумаги. Indicator

Market Average TrendThis indicator aims to be complimentary to SPDR Tracker , but I've adjusted the name as I've been able to utilize the "INDEX" data provider to support essentially every US market.
This is a breadth market internal indicator that allows quick review of strength given the 5, 20, 50, 100, 150 and 200 simple moving averages. Each can be toggled to build whatever combinations are desired, I recommend reviewing classic combinations such as 5 & 20 as well as 50 & 200.
It's entirely possible that I've missed some markets that "INDEX" provides data for, if you find any feel free to drop a comment and I'll add support for them in an update.
Markets currently supported:
S&P 100
S&P 500
S&P ENERGIES
S&P INFO TECH
S&P MATERIALS
S&P UTILITIES
S&P FINANCIALS
S&P REAL ESTATE
S&P CON STAPLES
S&P HEALTH CARE
S&P INDUSTRIALS
S&P TELECOM SRVS
S&P CONSUMER DISC
S&P GROWTH
NAS 100
NAS COMP
DOW INDUSTRIAL
DOW COMP
DOW UTILITIES
DOW TRANSPORTATION
RUSSELL 1000
RUSSELL 2000
RUSSELL 3000
You can utilize this to watch stocks for dip buys or potential trend continuation entries, short entries, swing exits or numerous other portfolio management strategies.
If using it with stocks, it's advisable to ensure the stock often follows the index, otherwise obviously it's great to use with major indexes and determine holdings sentiment.
Important!
The "INDEX" data provider only supplies updates to all of the various data feeds at the end of day, I've noticed quite some delays even after market close and not taken time to review their actual update schedule (if even published). Therefore, it's strongly recommended to mostly ignore the last value in the series until it's the day after.
Only works on daily timeframes and above, please don't comment that it's not working if on other timeframes lower than daily :)
Feedback and suggestions are always welcome, enjoy! Indicator

Indicator

Indicator

Dow Factor Relative Strength IndexThis script was written to create a new, rapid relative strength index inspired by the Dow Theory.
More info about Dow Theory : www.investopedia.com
According to the Dow Theory, volume should confirm market trends.
The correlation coefficient between prices and volume is negative in weakening trends and negative trends , positive in strengthening or positive trends.a factor was formed based on the correlation coefficient between volume and prices.
This factor was added to the relative strength index.
Period 5 is selected because the volume is very volatile and can be slow.
You can use the period you want, but I recommend the period as a minimum of 5.
It is suitable for all instruments and timeframes and thanks to its design, it provides control over gradual buying and selling points.
I haven't fully tested it, it's open to updates. For now, just use it to create ideas.
If I find it necessary,
I'll update after the tests.
If you have suggestions on these issues,
Leave your comments in the comment window.
This code is open source under the MIT license. If you have any improvements or corrections to suggest, please send me a pull request via the github repository github.com
Stay tuned , best regards. Indicator

Indicator

Indicator

Strategy

Indicator

Indicator

Indicator
