DinGrogu

MA (%) - Moving Average Percentage [HODLER]

DinGrogu 已更新   
This indicator computes and indicates the average distance between the source and moving average, based on previous uptrend and downtrend reversals.

Firstly, this indicator offers three inputs: ma type, length, and source. These inputs allow you to customize the length, type, and source of the moving average used in the calculation.

Following this, you can select an offset percentage and a lookback value. The offset percentage enables you to fine-tune the automatically calculated distances, and only operates if the above and below percentages have not been set manually. The lookback value determines the number of highs and lows that are taken into account when calculating the averages.

Lastly, to filter out noise in the results, you can enable and adjust the Commodity Channel Index (CCI). The CCI has been normalized between 0 and 100 and oscillates around a zero line, making it a valuable tool for filtering out noise and more accurately depicting the average percentage changes within the overbought and oversold conditions.

The indicator plots the average distances in blue when the conditions of the settings are met. If the average is below, it is shown in blue, and if it is above, it is shown in yellow. The green and red colors represent whether the trend, based on the moving average, is rising or falling.

The attached chart is merely an example, and the indicator can be fully optimized when you have selected the appropriate moving average and offset percentages. These values may differ across different timeframes, and it is essential to set the right values for each timeframe.

It is worth noting that this indicator is specifically designed to identify tops and bottoms. However, it is important to keep in mind that no indicator can guarantee 100% accuracy, and the market can always behave unpredictably with unexpected price movements. Despite this, the indicator can be a useful tool when utilized in combination with other indicators.

Please don't hesitate to reach out if you have any questions or suggestions regarding this indicator.
版本注释:
Fix coloring issues when using offset percentage.
版本注释:
- Fixed a bug that caused offset percentage to be incorrectly calculated.
- Changed the offset percentage to a multiplier, allowing more accurate adjustment of the upside and downside.
- Updated the calculation from using the close price to using both fast and slow moving averages. However, you can still achieve the same results as the previous version by using a 1 MA fast length.
- Changed the colors to more commonly used ones, similar to the MACD indicator.
版本注释:
- The name of the indicator has been updated.
- The offset percentage has been divided for upward and downward percentages instead of using a single offset for both.
- RSI has been added to improve the accuracy of the indicator's reversal predictions and filter noise.
受保护脚本
该脚本是闭源发布的,您可以自由使用它。您可以收藏它以在图表上使用。您无法查看或修改其源代码。
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?