OPEN-SOURCE SCRIPT

Moving Average Gap Analyzer

已更新
Extremely simple algorithm in order to calculate the gap between 2 simple moving averages. Analyzing perspective defines the line of color as white, green or red. This is done by checking sources of both moving averages and evaluate their past values with the mutual length respectively. Analysis is done by scoring the movements of sources.

What to expect?
- Higher the gap, higher the volatility.
- If the analysis line is green sources have been raising (most likely bull market), if the analysis line is white the market is mostly likely close to horizontal, if the analysis line is red, sources have been decreasing gradually (most likely bear market).

ps. Genuine indicator idea of me. This indicator is not a product or an idea of any group I work with. Completely clear of all types of IP.
版本注释
- Option for selecting MA type added.
版本注释
  • Script updated from Pine Script v4 to Pine Script v5
  • Dynamic moving average function moved to a library (Tools)
  • Strict variable types implemented & applied
gapmoving_averageMoving AveragesTrend AnalysisVolatilityvolatilityindicator

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明