Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

# IncIchimokuOnArray - library for MetaTrader 5

Views:
2205
Rating:
Published:
2012.01.17 09:03
Updated:
2016.11.22 07:32

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.

• 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.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/673

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

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

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

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.