Disparity Index
Measure the percentage gap between price and its moving average.
価格と移動平均の乖離を百分率で把握。
Open code — no sign-upコードを開く(無料・登録不要)
What it does
仕組みと使い道
Calculates 100 × (source − SMA) / SMA and colors the result around zero.
100 ×(価格−単純移動平均)÷単純移動平均を計算し、ゼロを境に色を変えます。
Settings to understand first
最初に確認する設定
Length 14; source close. Compare the distribution of deviations within the same instrument and timeframe before choosing thresholds.
初期値は期間14・終値。閾値を決める前に、同じ銘柄・時間足で乖離の分布を比較します。
What to watch out for
注意点と制約
A large deviation can persist in a trend. A zero moving average creates a zero denominator; no stop or trade logic is included.
強いトレンドでは乖離が続くことがあります。平均がゼロの系列では分母がゼロになります。発注や損切りの機能はありません。
Install, inspect, then test
導入から検証まで
- Download the source-and-license ZIP and extract it. Keep LICENSE.txt with the source when you share a copy.
- Open a TradingView chart, open Pine Editor, and create a blank script. Paste the chosen Pine source, preserving its version line. The .ps files in this collection are Pine Script examples, not PowerShell programs.
- Save and use Add to chart. For Pine v3/v4 code, try the original version first; use TradingView’s official migration tools sequentially if conversion is necessary. Compilation has not been performed by BSV.
- Open Inputs and Style. Reproduce a small historical example, then use replay and an isolated paper workflow to observe how the current bar changes. A plotted indicator does not automatically place orders.
- ソースとライセンスのZIPを取得して展開します。再配布する際はLICENSE.txtを原本と一緒に保持します。
- TradingViewのチャートでPineエディタを開き、空のスクリプトへ貼り付けます。先頭のバージョン指定を残します。このライブラリの.psはPine Scriptで、PowerShell用ではありません。
- 保存してチャートに追加します。Pine v3/v4はまず原版のまま確認し、変換が必要なら公式の移行機能で段階的に移行します。BSVではコンパイルを実施していません。
- 入力とスタイルを設定し、小さな過去例を再現します。リプレイと隔離したペーパー環境で未確定バーの変化を観察します。インジケーターの表示だけで自動発注されるわけではありません。
Verification scope
確認の範囲
| Check確認項目 | Status状態 |
|---|---|
| Source provenance and license出典とライセンス | Pinned original and license text checked固定版の原本とライセンス原文を確認 |
| Source byte equality原本とのバイト一致 | Git blob SHA1 and SHA256 recordedGit blob SHA1とSHA256を記録 |
| Compilationコンパイル | Compilation covered by BSV evidenceBSV証拠でコンパイル確認済み |
| Backtest / demo / live runバックテスト・デモ・実運用 | Backtest / demo covered by BSV evidenceBSV証拠でバックテスト/デモ確認済み |
| DLL / direct web request patternsDLL・直接Web通信のパターン | Not detected in these source files掲載ファイルの該当パターンは未検出 |
A pattern scan is not a complete security audit. Platform libraries and broker execution are outside this check.
パターン検査は完全な安全性監査ではありません。ターミナル標準ライブラリとブローカーでの実行は確認対象外です。
Runtime evidence実行検証の証拠
- Result結果
- Runtime verified — compiled with no error and added to a chart実行検証済み — エラーなくコンパイルされ、チャートに追加
- Tested検証日時
- 2026-10-07 06:18 JST
- Platformプラットフォーム
- TradingView Pine Editor · Pine Script v3
- Test chart検証チャート
- NASDAQ:AAPL 1h
- What rendered表示された内容
- Indicator added with no compile error and rendered
- Source hashソースのハッシュ
- sha256
769d3756f8ea…(matches the catalogued source)(掲載ソースと一致) - Records記録
- Runtime Index row実行検証インデックスの行 · Evidence JSON証拠JSON
Runtime verification is not a backtest result, a profitability claim, a security audit or approval for live trading.実行検証はバックテスト結果・収益性の主張・安全性監査・ライブ取引の承認ではありません。
Prerequisites / compatibility前提条件・互換性
- Requires必要なもの
- TradingView account with the Pine Editor; source written for Pine Script v3Pineエディタが使えるTradingViewアカウント。ソースはPine Script v3で記述
- Platformプラットフォーム
- TradingView
- Pine versionPineのバージョン
- Pine Script v3
- Inputs (2)入力項目(2)
- Length, Source
- Original author原作者
- Alex Orekhov (everget)
- Licenseライセンス
- GPL-3.0-only
- Source version取得対象の版
60c93d3711d222b8f2db96160defe568429348e0- Checked確認日
- 2026-10-01
- Evidence出典
- Machine-readable provenance出典・ハッシュの記録 · Runtime evidence実行検証の証拠