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

IncIchimokuOnArray - MetaTrader 5용 라이브러리

조회수:
6058
평가:
(23)
게시됨:
2012.01.17 09:03
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The CIchimokuOnArray class is intended for calculation of Ichimoku (Ichimoku Kinko Hyo) values on indicator buffers.

Usage:

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

  • int aPeriodTenkan is the Tenkan period;
  • int aPeriodKijun is the Kijun period;
  • int aPeriodSenkou is the Senkou period;
  • bool aABShift determines whether to calculate the SpanA and SpanB lines with shift or not. If the value is True, the SpanA and SpanB lines are shifted during calculation; in this case, there will be no future data for these lines. If the value if False, shift the SpanA and SpanB lines using the PlotIndexSetInteger() function with the PLOT_SHIFT identifier.

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 & aTenkan[] is the buffer with calculated values of the Tenkan line;
  • double & aKijun[] is the buffer with calculated values of the Kijun line;
  • double & aSpanA[] is the buffer with calculated values of the SpanA line;
  • double & aSpanB[] is the buffer with calculated values of the SpanB line.

Additional methods:

  • int SpanABShift() returns the shift of the SpanA and SpanB lines;
  • int BarsRequiredTK() returns the number of bars required for calculation of the Tenkan and Kijun lines;
  • int BarsRequiredAB() returns the number of bars required for calculation of the SpanA and SpanB lines;
  • string Name() returns a string with the indicator name;
  • string NameT() returns a string with the Tenkan line name;
  • string NameK() returns a string with the Kijun line name;
  • string NameSA() returns a string with the SpanA line name;
  • string NameSB() returns a string with the SpanB name.

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

Ichimoku Kinko Hyo Technical Indicator is predefined to characterize the market Trend, Support and Resistance Levels, and to generate signals of buying and selling. This indicator works best at weekly and daily charts.

An example of using the CIchimokuOnArray class

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

IncStdDevOnArray IncStdDevOnArray

CStdDevOnArray class is designed for calculation of Standard Deviation (StdDev) on indicator buffers. The example of use of the class is provided.

LeMan Objective LeMan Objective

The indicator shows possible targets of price movement. It calculates the distance from the market entry price to the highs and lows displaying the quartiles deviation.

IncBandsOnArray IncBandsOnArray

The CBandsOnArray is intended for calculation of the Bollinger Bands ® (BB) on an indicator buffer.

SilverTrend_HTF_Signal SilverTrend_HTF_Signal

SilverTrend_HTF_Signal shows a trend direction or a signal for performing a deal generated by SilverTrend_Signal indicator as a graphic object with colored trend indication or deal direction.