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

The CWPROnArray class is intended for calculation of Williams' Percent Range (%R) on indicator buffers.

Usage:

The Init() method with the following parameters is called in the OnInit() function of the indicator:

  • int aPeriod is indicator period.

The Solve() method with the following parameters is called in the OnCalculate() function:

  • const int aRatesTotal is the rates_total variable from the OnCalculate() function parameters;
  • const int aPrevCalc is the prev_calculated variable from the OnCalculate() function parameters;
  • double aDataHigh[] is the buffer with the High data for the indicator calculation;
  • double aDataLow[] is the buffer with the Low data for the indicator calculation;
  • double aDataClose[] is the buffer with the Close data for the indicator calculation;
  • double aWPR[] is the buffer with calculated value of WPR.

Additional methods:

  • int BarsRequired() returns the minimal number of bars required for calculation of ADX;
  • string Name() returns a string with the indicator name;

The Test_WPROnArray.mq5 file is an indicator demonstrating how to use the CWPROnArray class. The IncWPROnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).

Williams’ Percent Range Technical Indicator (%R) is a dynamic technical indicator, which determines whether the market is overbought/oversold. Williams’ %R is very similar to the Stochastic Oscillator. The only difference is that %R has an upside down scale and the Stochastic Oscillator has internal smoothing.

An example of using the CWPROnArray class

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

IncBullsBearsOnArray IncBullsBearsOnArray

CBullsBearsOnArray class is designed for calculation of Bulls Power and Bears Power values on indicator buffers. The example of use of the class is provided.

Fine_Fractals_MTF Fine_Fractals_MTF

The indicator creates fractals from another larger timeframe on a current chart based on Fine_Fractals indicator data.

IncForceOnArray IncForceOnArray

The CForceOnArray class is intended for calculation of Force Index on indicator buffers.

IncVidyaOnArray IncVidyaOnArray

The CVidyaOnArray class is intended for calculation of VIDYA (Variable Index Dynamic Average) on an indicator buffer.