veryblues

kou_di

veryblues Cập nhật   
The Simple Moving Average (SMA) is the most basic and widely used type of moving average. It’s calculated by taking the arithmetic mean of a given set of prices or data points over a specified period.

SMA = (P1 + P2 + ... + Pn) /n

Where

P1, P2, ... , Pn = prices of data points

n = number of periods

When a new SMA is calculated for a new candle stick, the oldest data point P1 is removed from the original data points (P1 + P2 + ... + Pn) and a new price Pn+1 is added to form a new SMA:

SMA_new = (P2 + ... + Pn + Pn+1) /n

If Pn+1 < P1, SMA line will become downward trend, or if Pn+1 > P1, SMA line will become upward trend. This logic help us predict the moving direction of SMA line which will form the prices trend in the future.

So it's important to highlight the "P1" candle stick for SMAs of different periods to help us predict the trend of SMA lines.

Since SMA5, SMA10, SMA20, SMA60, SMA120, SMA250 are the most popular SMAs, this indicator marks the "P1" candle stick for all of them by default, but you can optionally disable them.


该指标用于显示SMA5, SMA10, SMA20, SMA60, SMA120, SMA250 的扣抵位来监测均线拐点的出现
Phát hành các Ghi chú:
Fix a bug
Phát hành các Ghi chú:
Update the display of labels
Phát hành các Ghi chú:
Addressed comment - Allow changing the color of label and label text
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?