OPEN-SOURCE SCRIPT

True Range Moving Average Deviation

🔶 Overview

  • The True Range Moving Average Deviation Indicator (TRMAD) is a technical analysis tool that combines elements of price deviation, volatility, and overbought/oversold conditions.



🔶 Key Components

  • Current price (Close): most recent closing price of the asset.

  • *Moving Average (MA): represents a smoothed trendline of the asset's closing prices over a specified period. By default, TRMAD uses the Simple Moving Average (SMA) with a 20-period setting.

  • *Average True Range (ATR): reflects the average price range between the high and low over a given time frame. By default, TRMAD uses a 14-period ATR setting with a Simple Moving Average (SMA) calculation. ATR quantifies the historical price volatility of the asset, which is crucial for normalizing the price deviation.



🔶 Calculation



🔶 Interpretation

  • When TRMAD is above +3 ATR, it is often considered an indication that the asset may be overbought, suggesting a potential reversal or correction to the downside.

  • When TRMAD is below -3 ATR, it is often considered an indication that the asset may be oversold, suggesting a potential reversal or bounce to the upside.

  • TRMAD values around 0 ATR may indicate a balanced market condition.



🔶 Usage

🔹 Overbought and Oversold Conditions:

  • TRMAD can help identify overbought and oversold conditions. When TRMAD reaches or exceeds certain user-defined thresholds (e.g., +3 ATR or -3 ATR), it can signal that the asset is in an extreme condition.

  • Traders can use these extreme conditions to adjust their positions or look for potential reversal opportunities.

สแนปชอต

🔹 Divergence Analysis:

  • Traders often analyze divergences between the TRMAD indicator and price movements. For example, if the price is making higher highs while TRMAD is making lower highs (bearish divergence), it could indicate a potential trend reversal.

สแนปชอต

🔹 Trend Confirmation:

  • TRMAD can be used in conjunction with other technical indicators to confirm trends. For example, if TRMAD is consistently positive during an uptrend, it can provide confirmation of the trend's strength.

  • Positive TRMAD: When TRMAD is positive but hasn't reached the overbought threshold (e.g., +3 ATR), it suggests that there is some bullish momentum, but traders may exercise caution and look for other confirming signals before considering a long position.

  • Negative TRMAD: When TRMAD is negative but hasn't reached the oversold threshold (e.g., -3 ATR), it suggests some bearish sentiment, but traders may want to seek additional confirmation before considering a short position.

สแนปชอต

🔹 Risk Management:

  • Traders can use TRMAD as part of their risk management strategy. For instance, if TRMAD suggests that an asset is overbought, a trader might consider tightening their stop-loss orders to manage potential downside risk.



🔶 Credits

  • The idea about this indicator came from Fabio Figueiredo (Vlad)

Average True Range (ATR)mmtrMoving AveragestrmadVolatility

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?

คำจำกัดสิทธิ์ความรับผิดชอบ