There are two moving average algorithms: 1. Arithmetic average MA 2. Weighted average WMA.
Generally, the weighted moving average is used to avoid the arithmetic average being too lagging behind.
M3:=WMA(C,60); n:= 5;
LLV(M3, north) =LLV(M3, n+30); & ampM3 & gt; REF(M3, 1);
You can use these two lines to select stocks, where n can be adjusted by yourself, but n cannot be less than 3.
The significance of adjusting the size of n is that the smaller the value of n, the closer it is to the inflection point, and the larger the value of n, the inflection point may have appeared long ago. For example, when n is greater than 20, the selected stock may have a 60-day inflection point last month, and the closer it is to the inflection point, the safer it is, that is to say, it is necessary to trade in this safe area in the early stage of the inflection point, so n should not be too large.
Attached is the daily chart of Cangzhou Dahua. The dotted line is the 60-day arithmetic average and the solid line is the 60-day weighted average. It can be clearly seen that the inflection point of the weighted average is advanced by several trading days. When the inflection point of the arithmetic average appears, the market has passed, which is seriously lagging behind and has no use value.