fxmaruchan

[code-piece] change plotted color with input()

plotted colored moving average.

Plotted color can be changed by indicator's setting dialog.
It's useful for user to be able to change the color according to background color.

1 = red
2 = blue
3 = green
4 = yellow
5 = lime
6 = aqua
7 = orange
8 = white
other = black
リリースノート: Updated to Pine V4.
オープンソーススクリプト

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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