bitssuecredit

【 中文程式碼附註 】10條自訂均線(預設維加斯通道)

Pine Script 是很好自學的簡易程式,均線是很不錯的開頭,在程式碼中附上中文附註,方便繁體中文市場學習。
既然已經寫了均線的指標,便多建立幾條,目前為 10 條,可自行依據程式再增加。

功能開啟可以更換時框的功能,例如在 4 小時線看均線顯示 1 小時時框,預設為跟隨當下觀看時框。
定義五種不同類型的均線可以選擇,五種分別為SMA、EMA、RMA、WMA、VWMA,10條可以獨立選擇。
可自行修改均線數值,10 條可以獨立更改,其中五條預設為維加斯通道 ( EMA12、EMA144、EMA169、EMA576、EMA676 )。
Release Notes:
修正輸入為 Close

Open-source script

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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?