OPEN-SOURCE SCRIPT

Distance From moving average

Distance From Moving Average is designed to help traders visualize the deviation of the current price from a specified moving average. Users can select from four different types of moving averages: Simple Moving Average (SMA), Exponential Moving Average (EMA), Weighted Moving Average (WMA), and Hull Moving Average (HMA).

Key Features:
User-Friendly Input Options:

Choose the type of moving average from a dropdown menu.
Set the length of the moving average, with a default value of 200.
Custom Moving Average Calculations:

The script computes the selected moving average using the appropriate mathematical formula, allowing for versatile analysis based on individual trading strategies.
Distance Calculation:

The indicator calculates the distance between the current price and the chosen moving average, providing insight into market momentum. A positive value indicates that the price is above the moving average, while a negative value shows it is below.
Visual Representation:

The distance is plotted on the chart, with color coding:
Lime: Indicates that the price is above the moving average (bullish sentiment).
Red: Indicates that the price is below the moving average (bearish sentiment).
Customization:

Users can further customize the appearance of the plotted line, enhancing clarity and visibility on the chart.
This indicator is particularly useful for traders looking to gauge market conditions and make informed decisions based on the relationship between current prices and key moving averages.
Moving AveragesOscillatorssentiment

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항