I'm a newbie with mql5 language and I tried but I can't do it myself...
I use zigzagcolor to mark top and bottoms but the problem is that it plot "lines" and I like the
another way that polute less the graphics using only "up arrow" for bottom and "down arrow"
Could you help me changing the original zigzagcolor.mql5 to plot "arrows" in top and bottom instead of lines?
this will help me a lot..
There are multiple versions of Gann high low activator indicators, but decided to make one more version.
This version is showing the channel that needs to be broken if the trend is going to be changed, and it allows you to chose from the 4 basic averages type for calculation (by definition, Gann high low activator uses only simple moving average, but some other averages can give you results that are probably more acceptable for trading in some conditions)
PS: the example is suing 15 period smoothed moving average for calculation
PPS: alerts already included in the indicator
This is really just an experiment
What I am trying to do is to find as simple as it gets (to avoid the coding monsters that are sometimes used for mtf), efficient and reliable multi time frame way using metatrader 5. This is one of the attempts. There is a lot of work and testing and changes to come, but so far this is by far the simplest way how mtf can be done and it is reasonably reliable.
The example used is Gann high low activator (no interpolation in the indicator yet, that will be done once when the other possible issues are cleaned up). So the indicator is operational, and will be used as a template (as it developes) for future reliable mtf versions of metatrader indicators too
Two possible types of correlation used :
Prices are fixed (the open, close, high and low are used). Color of the candle does not depend on the "slope" of the candles but on the relation of correlation of open and close (the same as in usual candles coloring except in this case open and close are replaced with the desired correlation of open and close)
PS: even though shorter correlation periods are producing reasonable results too, quick visual inspection shows that somewhat longer periods are producing probably results that are cleaner to use
:) The usual : that style is not available in mt4. Sorry
I found the component for mt4 that has zigzag with arrows,
does it can be converted to mt5 ?
note: the original zigzagcolor.mq5 is better than this one, because you can input periods but it uses lines... I use MT5 (not Mt4)and this MT4 similar version has ARROWS (it's good , It's what I need) but It doesn't inputs period (only change it by code) and I don't use MT4 only mt5 to trade ;-(
Averages (all the averages, double smoothing + adaptive) + filters that can be used on ma, price or both :
Hello Mr. mladen,
Would be possible to post the averages8.mq5 file? I'm using the Ahrens average with very good results and I would like to make some changes to the indicator. Can you provide the source file? Thank you in advance. Best regards and thanks for your great work, I use a lot of your MT5 indicators in my tradings.
If you are using Ahrens average, this is the function that calculates it :
#define ahrensInstances 1
double iAhrens(double price, int period, int r, int bars, int instanceNo=0)
if (ArrayRange(workAhr,0)!= bars) ArrayResize(workAhr,bars); instanceNo *= 2;
workAhr[r][instanceNo] = price;
if (r>1 && period>1)
workAhr[r][instanceNo+1] = workAhr[r-1][instanceNo+1]+((price-(workAhr[r-1][instanceNo+1]+workAhr[(int)MathMax(r-period,0)][instanceNo+1])/2)/period);
else workAhr[r][instanceNo+1] = price;
Correlations for metatrader 5
Versions in this indicator :
Additionally, this indicator has an option to use some of the 22 price types as well as using floating levels - in which case it will look something like this :
or fixed levels, in which case it will look something like this :
PS: I would like to remind that both (Pearson and Spearman) are in this case, calculating the correlation that can be called auto correlation. Correlation of the symbol-to-symbol type will be handled in other indicator