mike_dominguez

Moving Average with Start Line

mike_dominguez 已更新   
This script paints a vertical line on the starting bar of a simple moving average to help anticipate directional changes. The line is the same color as the MA.
版本注释:
This simple moving average paints a vertical line indicating the oldest data point of a moving average. For example, a 10-period moving average would have a vertical line 10 bars back. This helps anticipate directional changes in the moving average as taught by Brian Shannon of Alphatrends.

For those who wish, you can modify the code to change from a vertical line to a diamond label placed on the moving average.
版本注释:
This simple moving average paints a vertical line on the oldest data point in the data set to help anticipate directional changes. For example, a 10-period moving average should have a line 10 bars back. This helps anticipate directional changes in a moving average as popularized by Brian Shannon of Alphatrends.
版本注释:
This simple moving avearge prints a line on the oldest data point in the data set for the length of the MA. For example, a 10-period MA would have a line 10 bars back. When the next bar prints, that data point will fall off. This helps anticipate directional changes in a MA as popularized by Brian Shannon of Alphatrends.
版本注释:
Updated line to indicate the actual start of the data set rather than the bar before.

开源脚本

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

免责声明

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

想在图表上使用此脚本?