The commonly calculated averages are ma (simple moving average) and ema (exponential moving average), with the following formula: SMA = SUM ((Close, N) /N) EMA is (CLOSE(i)P)+(EMA(i-1)(1-P)) or (M*CLOSE(i) + ((N-M) *EMA(i-1)) /N The MA is characterized by a lag, so giving more weight to the most recent price in the EMA improves the tracking effect of the trend. There are various versions of the specific ma indicator, ma, EMA, SM, WMA, etc., although the principle is similar. Traditional averages do not take into account ever-changing market conditions, using a fixed calculation process, short-term averages frequently shift when the market is repeatedly volatile, while long-term averages are sluggish when the market is rapidly rising or falling. While trend-tracking strategies require indicators to be able to adapt to different market characteristics, according to the direction and speed of the market, and respond intelligently, applying fast averages in one-sided markets, applying slower averages in volatile situations. Perry Kaufman developed the concept of the Adaptive Moving Average (AMA) in his book Smarter Trading, which attempts to automate the adjustment of an indicator in a complex market environment to filter out noise and unpredictable price movements and better track market trends.
Efficiency Ratio ER The efficiency ratio is the ratio of price displacement to fluctuation divided by the net change in price over the entire price movement distance (price trajectory). Assuming that at the past n closing prices p1, p2,...pn, then the efficiency of this price sequence
As can be seen from the formula, the range of the er value is 0 (market is uncertain, full of noise) ~ 1 (high trend)
Second, define the trend speed range
So let's just expand on the simple idea of exponential smoothness and make it more stable.
Scaled smoothing constant: sc = ER* ((fast sc
The third is AMA.
The final calculation of the AMA is as follows:
AMA[i] is equal to AMA[i-1] + c * (p[i]
The AMA trend line has the following characteristics: 1) Use a certain number of days to specify the trend range 2) When the market has no direction, the ama trend line stops moving 3) When there is a significant price change, ama is able to track quickly, with less delay. 4) Change one parameter to apply to different markets 5) Ama is based on predictive analysis, not simple verification
The above content is mainly a description or translation of the original author, and I think that this idea of cleverly extending traditional indicators is worth learning, and the subsequent need to test the strategy of adaptive equatorial AMA to see how the real effect of the battle in the A-share market.
The smarter trading platform Unified securities currencies adapt to the uniform application currencies
Thank you very much. First of all, I would like to say that programmatic trading is not about strengthening one's judgment, nor is it about data mining, nor is it about data processing.
I've been reading this blog for the past few months.