Discussion of article "Auto search for divergences and convergences" - page 3

 
::)
 

Thanks , yes its for MT5 and EA.I read all your info, very thanks!!!!in these days i write you!


Very very very thanks!!!!

 

Hello again:


I was able to fix the program at the end and find the error, I had to take the data from buffer 1 and 2 and transfer it to the buffer using "CopyBuffer" and say that it is not "0" for EMPTY_VALUE.

Also add an "If" with a larger and smaller than, as it had other variables.


Correct what you said about the int type, instead of the double, completely ignore this function, I am very grateful to you.


For a beginner, it cost me a little, but in the end it turned out to be easier than I imagined, and this greatly complicated me.


On the other hand:

I am trying to create prices of another index in one indicator. Instead of the RSI or MACD oscillator showing me linearly the price of an asset (future, currency), etc. But let's see how I can find a solution :)


Thank you very much for the information, very useful and what I noted.

 
odlambda:

...

I am trying to create prices of another index in one indicator. Instead of the RSI or MACD oscillator showing me linearly the price of an asset (future, currency), etc. But let's see how I can find a solution :)

...

First of all, you need to be sure that the prices of the other symbol are ok. You can do this with the Bars (OtherSymbol) function. If the function Bars () returns 0 or -1, then do return(0) from OnCalculate(), so that the next tick will attempt to recalculate the indicator.

To get the bar index of another symbol corresponding to the index of the calculated bar, use the CopyRates() function, but specify not the bar index, but time (3rd parameter).

Example: https://www.mql5.com/en/code/19832

 
Dmitry Fedoseev :

En primer lugar, debe haber de los precios del otro símbolo estaban bien. Puede hacer esto con la función Bars (OtherSymbol). If the Bars () function devuels 0 o -1, entonces devuels (0) of OnCalculate (), so that the siguiente tick intends to recalcularise the indicator.

To obtener el índice de la barra de otro símbolo correspondente al índice de la barra calculada, use the function CopyRates (), but no especifique el índice de la barra, sino el tiempo (parámetro 3-th).

Ejemplo: https://www.mql5.com/en/code/19832


Are you a machine or a super programmer. This envy gives me everything you know (in the healthy way that I tell you). In a few days I will tell you how it went. I like to study programming, I teach it in my country, and the truth is that this is a vice :).


Very grateful for your time.

Regards from Spain!!!!!

 
It works well.

You need to change in the parameter list to OscUni_OSMA and enter the input parameter you want like 13, 26,9  then it will work (default were 14,14,14)
 

Thanks it is marvelous.

One question As you had found out 15 options of divergence or convergences, at least. As you put 3 for default setting in the indicator, does it mean it only shows divergent number 3 or 3 divergent. However, there are at least 15. So, in order to catch all, do we have to change the number to 15 or do we have to try each by each number to catch the divergence or convergence variation on the chart

Thanks, regards

 
I LOVE this indicator!!  The one thing I cannot figure out is how to get the Buy and Sell signals from this indicator into an EA.  Any ideas? 
 
thank you for your articles and helpful information for the community. you da man :)
 

... on the default settings, it misses obvious divergences (!).


How to cure it ???