거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
3983
평가:
(16)
게시됨:
2018.09.08 13:02
업데이트됨:
2018.11.21 12:37
Alb average.mq5 (13.61 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

A version of averages that is using adaptive (variable) periods for calculation instead of using fixed length average calculation. This version is using adaptive lookback method


Of adaptive lookback

The Adaptive lookback is truly a market-driven indicator used to determine the variable lookback period for many different indicators, instead of a traditional, fixed figure.

It is based on the frequency of market swings - the time between swing highs or swing lows. A swing high is defined as two consecutive higher highs followed by two consecutive lower highs; a swing low is defined by two consecutive lower lows followed by two consecutive higher lows. As swing points typically accompany reversals, they occur more frequently in choppier and volatile markets than in trends.

Adaptive lookback period is determined as :

  1. Determine the initial number of swing points (swing count parameter) to use in the calculation.
  2. Count the number of price bars it takes for the n swing points to form.
  3. Divide step 2 by step 1 and round the result.
  4. As an addition, adjust the "speed" of the produced period using the speed parameter - the smaller the speed parameter, the "slower" the average, and vice versa
PS: the "speed' is a deviation from the original adaptive lookback idea. The original is somewhat hard to precisely control, and the speed parameter is helping in that (precise control) largely.

Interpretation

This makes the variable lookback period grow in calm or trending markets, and shorten in range-bound and volatile markets. For a trend-following system you would like the opposite to prevent being whipsawed, therefore this indicator and it's usage as a period modifier is more suitable for short-term traders and counter-trend systems (so, in all systems where maximal speed of reaction and signaling is required).

Averages calculated

  • simple moving average
  • exponential moving average
  • smoothed moving average
  • linear weighted moving average


Stochastic - with normalized zones Stochastic - with normalized zones

Stochastic - with normalized zones

Rsi of average - with normalized zones Rsi of average - with normalized zones

Rsi of average - with normalized zones

Alb stochastic Alb stochastic

Adaptive lookback stochastic

Phase change index - JMA Phase change index - JMA

Phase change index - JMA