SashaSasha Plutov wrote:hello mrtools and mladen.I tried to use some Mladen's indicators with my expert advisors, but it doesn't work.
I attach simple example.
Could you explain me how to fix it and what is my mistake?
Thx for your help
P.s.: open buy if there is a bullish divergence
sell - bearish
First you have to use 2 instead of 1 for shiftInd1 parameter. The thing is that divergence will not be displayed on the first closed bar but on the 2nd closed bar (it is done so in order to have 2 bars confirmation for divergence).
Also there were some problems with parameters passing to the indicator. Attaching the version that opens orders - you shall see what have been changed