描述:
Moving average, as well as any other indicator, may be calculated on the basis of 7 price constants 僅有的. The proposed modification of moving average will allow to calculate the indicator on the basis of any combination of 4 basic prices (關閉, 打開, 高的, 低的).
輸入參數:
- MA_期間 - period for calculation of indicator,
- MA_Shift - indicator's shift related to the chart,
- MA_Method - method of averaging (0 - 形狀記憶合金, 1 - 歐洲市場協會, 2 - SMMA, 3 - LWMA),
- Close_coef - coefficient of the use of CLOSE in individual price,
- Open_coef - coefficient of the use of OPEN in individual price,
- High_coef - coefficient of the use of HIGH in individual price,
- Low_coef - coefficient of the use of LOW in individual price.
例子:
- Calculate indicator by OPEN price: Close_coef = 0, Open_coef = 1, High_coef = 0, Low_coef = 0.
- Calculate indicator by WEIGHTED price: Close_coef = 2, Open_coef = 0, High_coef = 1, Low_coef = 1.
- Calculate indicator by individual price constant: Close_coef = 0, Open_coef = 7, High_coef = 25, Low_coef = 80. Price = (7*打開 + 25*高的 + 80*低的)/112.
所以, the trader may draw moving average by any combination of 4 basic prices. In case if coefficient will be balow or equel zero, the appropriate price will not be used for calculation of individual price constant.
圖像:
Indicator Imp_MA
|