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

PAC (Periods After Crossing MA) is an oscillator displaying the number of bars elapsed after the last crossing of the price and the moving average.

If the moving average crossed the price upwards, then the positive histogram columns are drawn in green; if the last crossing was downwards, the negative columns are drawn in red.

The indicator has three configurable parameters:

  • Period - MA period;
  • Method - MA calculation method;
  • Applied price - MA calculation price and crossing price.

Calculations:

  • If Price > MA and PrevPrice > PrevMA:

    PAC = PrevPAC + 1
  • If Price < MA and PrevPrice < PrevMA:

    PAC = PrevPAC - 1
  • If Price > MA:

    PAC = 1
  • If Price < MA:

    PAC = -1

where:

Price - SMA(Applied price, 1)
MA - MA(Applied price, Period, Method)

Fig 1. By default, SMA(Close,14)

Fig 1. By default, SMA(Close,14)


Fig 1. In the price chart, the SMA(Close,14)

Fig 1. In the price chart, the SMA(Close,14)

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

DMI_Difference DMI_Difference

Indicator showing the difference between the +DI and -DI of indicator ADX.

BuffAverage BuffAverage

Buff Dormeier's moving average weighted by volume.

RP RP

Indicator RP (Range Position) displays the price position within the range (from Low to High) reached over the previous N periods.

Self_Adjusting_RSI Self_Adjusting_RSI

In pscillator Self-Adjusting RSI, we have implemented the methods of automated adjusting the RSI oscillator overbought/oversold levels, described in David Sepiashvili's article The Self-Adjusting RSI.