OPEN-SOURCE SCRIPT

Moving Average - fade when crossed [cajole]

已更新
This indicator simply provides a moving average (SMA, EMA, etc. can be selected) which hides itself when touched by the price.

Two potential uses:
  • Set the growth rate to be slow, to highlight only very rapid moves on a chart.
  • Use the default settings and change the averaging period until the MA line remains bright. This MA can then act as a good trailing stop for the specific security.


TradingView does not remember indicator settings for specific charts. Consider adding a text label to your chart after you identify the ideal trailing stop. Similar trailing-stop methods are recommended by Kristjan Qullamagie is identical to Jesse Stine's "magic line" concept.
版本注释
Add an option to label the last value. Useful when using the script as a trail stop.
Exponential Moving Average (EMA)LINEmagicqullamagieSimple Moving Average (SMA)trailingstopWeighted Moving Average (WMA)

开源脚本

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

想在图表上使用此脚本?


更多:

免责声明