Join our fan page
- Views:
- 3037
- Rating:
- Published:
- 2012.01.23 11:18
- Updated:
- 2017.09.06 10:18
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
CDeMarkerOnArray class is designed for calculation of DeMarker 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 aDataHigh[] - the buffer with the High data for the indicator calculation;
- double aDataLow[] - the buffer with the Low 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 aDeMarker[] - the buffer with the indicator calculated value.
- int BarsRequired() - returns the minimum number of bars for the indicator calculation;
- string Name() - returns the line with the indicator name;
Test_DeMarkerOnArray.mq5 is a sample indicator showing CDeMarkerOnArray class application. IncDeMarkerOnArray 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.
Demarker Technical Indicator (DeM) is based on the comparison of the current period maximum with the previous period maximum.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/653
![Polarized Fractal Efficiency](https://c.mql5.com/i/code/indicator.png)
Polarized Fractal Efficiency is a technical indicator that displays the current market prices efficiency.
![SL_ATR](https://c.mql5.com/i/code/indicator.png)
The indicator creates areas of preferable stop-losses location for long and short positions at any time.
![SVS_Trend](https://c.mql5.com/i/code/indicator.png)
Trend Indicator. There are 10 possible variants of changing the averaging of the signal line in this indicator.
![RBVI](https://c.mql5.com/i/code/indicator.png)
The basis of the RBVI Forex indicator is an attribute of the night market to sharply decrease the volatility due to absence of active trading on exchanges. The indicator considers the price flow and the volatility (changeability) of the market what helps to successfully behave in a flat market. It is recommended to use RBVI in Expert Advisors that run in night time.