거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
14669
평가:
(7)
게시됨:
2013.05.31 11:11
업데이트됨:
2016.11.22 07:32
Imp_MA.mq4 (9.65 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Moving average, as well as any other indicator, may be calculated on the basis of 7 price constants only. The proposed modification of moving average will allow to calculate the indicator on the basis of any combination of 4 basic prices (close, open, high, low).

Input parameters:

  • MA_Period - period for calculation of indicator,
  • MA_Shift - indicator's shift related to the chart,
  • MA_Method - method of averaging (0 - SMA, 1 - EMA, 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.

Examples:

  • 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*Open + 25*High + 80*Low)/112.

So, 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

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/10861

PZ Progressive Trading Scripts PZ Progressive Trading Scripts

This set of scripts has been designed to scale-in your trades as price action runs in your favor. This will maximize profits due to proper pyramiding, decrease the impact of unprofitable trading decisions and in general, make your life easier.

VR---ORDERS VR---ORDERS

Indicator displays information about the current positions

SK-Days of Week SK-Days of Week

Writes days of week above candles.

VR---FIGURA VR---FIGURA

Different view of the figures and the patterns of the day ....