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 อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ