TVC:GOLD   黄金差价合约(美元/盎司)
//@version=4
study(title="Moving Average Example", shorttitle="MA Example", overlay=true)

// Thiết lập độ dài của Moving Average
length = input(20, minval=1, title="Length")

// Tính toán giá trị trung bình động
sma_value = sma(close, length)

// Hiển thị giá trị trung bình động trên biểu đồ
plot(sma_value, color=color.blue, linewidth=2, title="Moving Average")
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。