jessebadry

Color Changing Moving Average

This is a script for creating a EMA or SMA that changes between red and green based on the calculated angle of the moving average, green when up red when down, which colors can be changed within style settings.

You can change how the angle is calculated changing the "Angle Period", "ATR Period" and "Angle Level" within input settings.
other input settings:
Length - length of the moving
Source - source of moving average data, recommend to keep this on "close"
Offset - plot the moving average on the chart with this given offset
Use EMA? - Choose either EMA or a SMA to plot

This script uses the angle calculation from this script: - Mango2Juice
And uses the same coloring technique from this script: - zathura643

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?