Rejoignez notre page de fans
IncMFIOnArray - bibliothèque pour MetaTrader 5
- Vues:
- 3304
- Note:
- Publié:
- 2011.12.28 09:40
- Mise à jour:
- 2017.09.06 10:13
- Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
CMFIOnArray class is designed for calculation of MFI (Money Flow Index) values on indicator buffers.
Usage:
Init() method with the following parameters is called in the OnInit() function:
- int aPeriod - indicator period.
- ENUM_MA_METHOD aMethod - smoothing method.
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 aDataPrice[] - data buffer for the indicator calculation;
- double aDataVolume[] - the buffer with the volume data for the indicator calculation;
- double aP[] - intermediate buffer for a positive component;
- double aM[] - intermediate buffer for a negative component;
- double aPS[] - intermediate buffer for a smoothed positive component;
- double aMS[] - intermediate buffer for a smoothed negative component;
- double aMFI[] - the buffer with MFI calculated value.
Additional methods:
- int BarsRequired() - returns the minimum number of bars for the indicator calculation;
- string Name() - returns the line with the indicator name.
Test_MFIOnArray.mq5 is a sample indicator showing CMFIOnArray class application. IncMFIOnArray 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.
Money Flow Index (MFI) is the technical indicator, which indicates the rate at which money is invested into a security and then withdrawn from it. Construction and interpretation of the indicator is similar to Relative Strength Index with the only difference that volume is important to MFI.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/662
CRSIOnArray class is designed for calculation of RSI (Relative Strength Index, RSI) values on indicator buffers. The example of use of the class is presented.
WiOverThe indicator shows the average percentage value of the last candlesticks overlap. It is useful for those, who enters the market manually using limit orders during price consolidation, as it allows to select order direction. Blue line - recommended BUY-LIMIT, red one - SELL-LIMIT.
Candlesticks length volatility indicator useful for tracking gaps on the market and having the settings analogous to the Bollinger Channel. The indicator can show flats and trend beginnings.
StochasticExpansionGood old stochastic oscillator. The difference from the standard one is that it shows overbought and oversold areas in a more visually convenient fashion.