거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

IncStochasticOnArray - MetaTrader 5용 라이브러리

조회수:
3101
평가:
(23)
게시됨:
2011.12.21 10:20
업데이트됨:
2016.11.22 07:32
\MQL5\Include\IncOnArray\ \MQL5\Indicators\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

CStochasticOnArray class is designed for calculation of Stochastic on indicator buffers.

Usage:

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

  • int STPeriodK - K period;
  • int STPeriodD - D period;
  • int STPeriodS - S period.
  • ENUM_MA_METHOD STMethod - smoothing method signal line.

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

  • const int aRatesTotal - is a rates_total variable from the OnCalculate() function parameters;
  • const int aPrevCalc - prev_calculated variable from the OnCalculate() function;
  • double aDataClose[] - the buffer with the data used for the indicator calculation;
  • double aDataHigh[] - the buffer with the High data for the indicator calculation;
  • double aDataLow[] - the buffer with the Low data for the indicator calculation;
  • double & aStochMain[] - calculated value of the main line;
  • double & aStochSignal[] - calculated value of the signal line.

Additional methods:

  • int BarsRequiredSignal() - returns the minimum number of bars for the signal line calculation;
  • int BarsRequiredMain() - returns the minimum number of bars for the main line calculation;
  • string Name() - returns the line with the indicator name.

Test_StochasticOnArray.mq5 is a sample indicator showing CStochasticOnArray class usage. IncStochasticOnArray file must be placed to MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created).

CMAOnArray class from the IncMAOnArray file is needed for the proper work. It can be found here.

The Stochastic Oscillator Technical Indicator compares where a security’s price closed relative to its price range over a given time period. The Stochastic Oscillator is displayed as two lines.

Example of use of CStochasticOnArray class

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

Trinity-Impulse Trinity-Impulse

Trinity-Impulse indicator shows market entries and periods of flat.

VGridLine_Intraday X3 VGridLine_Intraday X3

Vertical time grid with three hours step.

RSI Strike RSI Strike

The indicator displays the crossing points of RSI (Relative Strength Index) indicators belonging to various periods.

FiboCandles FiboCandles

The indicator displays colored candlesticks depending on the current trend and considering Fibonacci levels correction and also gives alerts or audio warnings in case of a trend change.