당사 팬 페이지에 가입하십시오
- 조회수:
- 5035
- 평가:
- 게시됨:
- 2018.11.11 18:27
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Theory :
Almost all averages can be made as an average with a generalized formula that could be simply written down as : sum of price*(something) / sum of (something). The usual averages that we have are simple moving average (SMA, where the (something) is always equal to 1), linear weighted moving average (LWMA, where the (something) depends on the calculation length), volume weighted average (where the (something) depends on the current volume) and some more ...
This version :
This version is using the range (high-low) of the bar it is calculated for as the weight. That way the bars with higher volatility are getting more emphasized and the response to price changes at those bars is accelerated. Basically, as almost all weighted averages, it is similar to simple moving average with an important difference at the times of high ranges where this indicator is much "faster" than the SMA
Usage :
You can use the color changes of this indicators as signals
![Range weighted average MACD](https://c.mql5.com/i/code/indicator.png)
Range weighted average MACD
![Range weighted EMA](https://c.mql5.com/i/code/indicator.png)
Range weighted exponential moving average (EMA)