PROTECTED SOURCE SCRIPT

MA Deviation

41
English Description
Overview
The "MA Deviation" indicator is a powerful tool designed to measure and visualize the percentage difference between three separate moving averages. By quantifying the deviation, traders can gain insights into trend strength, potential reversals, and periods of market consolidation. When the moving averages diverge significantly, it often signals a strong, directional move.

This indicator is displayed in a separate pane below the main price chart.

Key Features
Three Customizable Moving Averages: You can independently configure the type (SMA, EMA, WMA, etc.) and length for three distinct moving averages (MA1, MA2, MA3).

Multiple Deviation Plots: The indicator plots the percentage deviation between:

MA1 and MA2 (Blue Line)

MA2 and MA3 (Red Line)

MA1 and MA3 (Green Line)
You can toggle each of these lines on or off.

Visual Threshold Signals: A key feature is the dynamic background color.

The background turns green when all enabled deviation lines move above a user-defined positive threshold (e.g., +0.5%), indicating a strong bullish consensus among the moving averages.

The background turns red when all enabled deviation lines fall below the negative threshold (e.g., -0.5%), indicating a strong bearish consensus.

Built-in Alerts: The script includes three specific alert conditions that trigger only on the first bar where the condition is met, preventing repetitive notifications:

The Color Came Out: Triggers when the background first turns either green or red.

Long Chance: Triggers only when the background first turns green.

Short Chance: Triggers only when the background first turns red.

How to Use
This indicator can be used to confirm trend strength or identify potential entry/exit points. For example:

A green background can be interpreted as a potential long entry signal or confirmation of a strong uptrend.

A red background can suggest a potential short entry opportunity or confirmation of a strong downtrend.

When the deviation lines hover around the zero line, it indicates that the market is consolidating or ranging.

Adjust the moving average lengths and the threshold percentage to tailor the indicator to your specific trading strategy and timeframe.

日本語説明 (Japanese Description)
概要
「MA Deviation」インジケーターは、3つの異なる移動平均線間の乖離率(パーセンテージ)を測定し、視覚化するために設計された強力なツールです。この乖離を数値化することで、トレーダーはトレンドの強さ、潜在的な反転、市場のレンジ相場についての洞察を得ることができます。移動平均線が大きく乖離する時、それはしばしば強力な方向性のある動きを示唆します。

このインジケーターは、メインの価格チャートの下にある別ペインに表示されます。

主な特徴
3つのカスタム可能な移動平均線: 3つの移動平均線(MA1, MA2, MA3)それぞれに対して、タイプ(SMA, EMA, WMAなど)と期間を個別に設定できます。

複数の乖離率プロット: このインジケーターは、以下の乖離率をラインでプロットします。

MA1とMA2の乖離率(青ライン)

MA2とMA3の乖離率(赤ライン)

MA1とMA3の乖離率(緑ライン)
これらのラインはそれぞれ表示・非表示を切り替えることが可能です。

背景色による視覚的なシグナル: このツールの最大の特徴は、動的に変化する背景色です。

有効になっている全ての乖離率ラインが、ユーザーが設定した正のしきい値(例:+0.5%)を上回ると、背景が緑色に変わります。これは移動平均線間で強気なコンセンサスが形成されていることを示します。

有効になっている全ての乖離率ラインが、負のしきい値(例:-0.5%)を下回ると、背景が赤色に変わります。これは弱気なコンセンサスを示します。

ビルトイン・アラート: スクリプトには、条件が成立した最初のバーでのみ作動する3種類のアラート機能が含まれており、繰り返し通知されるのを防ぎます。

The Color Came Out: 背景色が緑または赤に初めて変化した時にトリガーされます。

Long Chance: 背景色が初めて緑色に変化した時にのみトリガーされます。

Short Chance: 背景色が初めて赤色に変化した時にのみトリガーされます。

使用方法
このインジケーターは、トレンドの強さを確認したり、エントリー/エグジットのポイントを探るために使用できます。例えば、

緑色の背景は、ロングエントリーのシグナル、または強い上昇トレンドの確認と解釈できます。

赤色の背景は、ショートエントリーの機会、または強い下降トレンドの確認を示唆します。

乖離率ラインがゼロライン付近で推移しているときは、市場がレンジ相場であることを示します。

ご自身のトレーディング戦略や時間足に合わせて、移動平均線の期間やしきい値(%)を調整してご活用ください。

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.