OPEN-SOURCE SCRIPT

6 SMA&look back 20SMA strategy

6 SMA&look back 20SMA strategy

The moving average is calculated based on historical prices and is a backward indicator,Unable to forcast future prices.
But the moving average still represents the price trend, so we can forcast by moving average.
Each point of the 20-day SMA is calculated based on the closing price of the past 20 days.
Therefore, we can know that the closing price of the first 20 days directly affects the latest point of SMA.
The last 20 days are the prices included in the calculation, which directly affect the trend of the latest points.
For example,if the day before the 20th is a sharp fall, the latest SMA becomes an upward trend;If the day before the 20th is a sharp rise, the latest SMA becomes a downward trend,it showing the opposite trend

Recommended to use the daily trend.

Good Luck


移動平均線是根據歷史價格計算,屬於落後指標
但是移動平均線仍代表價格趨勢,因此我們可以通過移動平均線進行預測。
20天均線的每個點都是基於過去20天的收盤價計算的。
因此,我們可以知道前20天的收盤價直接影響SMA的最新點。
最近20天是計算中包括的價格,它直接影響最新點的趨勢。
例如,如果20日之前的一天是急劇下跌,則最新的SMA成為上升趨勢;如果20日之前的一天是急劇上漲,則最新的SMA成為下降趨勢,呈現相反的趨勢。

參考老王對SMA扣抵值的簡易版應用
使用20MA的扣抵蹺蹺板來判斷今日可能是UP或DOWN

建議使用日線
祝好運

Moving AveragesSimple Moving Average (SMA)smaSMASstragegy

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer