TradingViewGPL-3.0-onlyIndicatorインジケーターPine v4 · Legacy sourcePine v4 · 旧版ソース

Moving Average Channel

Locate price above, inside or below a smoothed high/low channel.

高値・安値の平均で作るチャネルに対する価格位置を表示。

Open code — free email verificationメール確認してコードを開く(無料)

What it does

仕組みと使い道

The upper and lower boundaries have separate SMA sources, periods and visual offsets. Candle colors compare close with the unshifted calculated boundaries.

上限・下限それぞれに平均する価格、期間、描画シフトを設定。足の色はシフトしていない計算値と終値を比較します。

Settings to understand first

最初に確認する設定

Both periods default to 20 and offsets to zero. Keep offsets at zero for a direct visual comparison with candle colors.

上下とも期間20、シフト0が初期値。足の色と位置を直接比較する場合はシフト0を保ちます。

What to watch out for

注意点と制約

A visual offset moves a drawing; it does not add future information. Colors and shifted lines can appear misaligned.

描画シフトは未来の情報を追加しません。シフトした線と足の色は位置がずれて見える場合があります。

Install, inspect, then test

導入から検証まで

  1. Download the source-and-license ZIP and extract it. Keep LICENSE.txt with the source when you share a copy.
  2. 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.
  3. 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.
  4. 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.
  1. ソースとライセンスのZIPを取得して展開します。再配布する際はLICENSE.txtを原本と一緒に保持します。
  2. TradingViewのチャートでPineエディタを開き、空のスクリプトへ貼り付けます。先頭のバージョン指定を残します。このライブラリの.psはPine Scriptで、PowerShell用ではありません。
  3. 保存してチャートに追加します。Pine v3/v4はまず原版のまま確認し、変換が必要なら公式の移行機能で段階的に移行します。BSVではコンパイルを実施していません。
  4. 入力とスタイルを設定し、小さな過去例を再現します。リプレイと隔離したペーパー環境で未確定バーの変化を観察します。インジケーターの表示だけで自動発注されるわけではありません。

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コンパイルNot performed未実施
Backtest / demo / live runバックテスト・デモ・実運用Not performed未実施
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.

パターン検査は完全な安全性監査ではありません。ターミナル標準ライブラリとブローカーでの実行は確認対象外です。

Original author原作者
Alex Orekhov (everget)
Licenseライセンス
GPL-3.0-only
Source version取得対象の版
60c93d3711d222b8f2db96160defe568429348e0
Checked確認日
2026-10-01
Evidence出典
Machine-readable provenance出典・ハッシュの記録