OPEN-SOURCE SCRIPT

Colored MA with crossovers

已更新
The indicator is used to identify trends in different MA and mark crossovers/crossunders with triangles on chart. Each MA line has different linewidth to easier identify it's value. Lines are transparent not draw to much attention, crossovers marked to draw attention to pivotal moments.

Choose SMA or EMA type.
Enable/disable crossover/crossunder.

Each MA line is adjustable in the input tab.
Each MA line has different linewidth to easier identify it's value (higher value bigger linewidth).
Each MA line changes color depending on it's gradient, green if positive, red if negative, gray if flat.

Edit which crossovers/crossunders to be visible in the style tab. In the same tab colors is adjustable.
發布通知
* Updated SMA/EMA selection for each MA.
* Updated MA max value to 200.
* Code refactoring.

Exponential Moving Average (EMA)Simple Moving Average (SMA)

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明