Join our fan page
CDonchian class - library for MetaTrader 5
- Views:
- 20286
- Rating:
- Published:
- 2014.04.25 14:52
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Uses the idea of the classical Donchian channel.
The class is optimized by speed, i. e. instead of 2 for loops, 1 while loop is executed.
The class sample requires the following:
- Fill in the arrays: double in_masH[], double in_masL[];
- Set variable values: int in_period (number of bars in the period), int in_size (size of arrays);
- Perform the procedure ini() to initialize the arrays;
- Perform the procedure void main(), which forms 2 arrays (channels): double out_massH[],double out_massL[],
An example of class use is available in the indicator Donchian.mq5
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/2271
The FisherCGOscillator_Signal indicator shows information on the current trend using the values of the FisherCGOscillator indicator with a fixed timeframe.
TrendRSI_v1The RSI oscillator with two signal lines.
A set of support and resistance levels built on the last tops of GannZIGZAG_HTF with an option of fixing the timeframe, on which the zigzag is calculated.
XD-RangeSwitch_HTFThe XD-RangeSwitch indicator with the timeframe selection option available in input parameters.