If it would happen that "max" equals "min" you'd get a zero
divide on the "stoch[i]" assignment attempt, and an upset MT4...
Have you checked with a Print statement towards the end (print out the last 100
values or something)?
Maybe comment out the indicator_maximum directive?
Why are ind1 and ind2 initialized with ArrayInitialize?
Maybe comment out the indicator_maximum directive?
Why are ind1 and ind2 initialized with ArrayInitialize?
irusoh1 wrote:
Thanks irusoh1.
Now it paints, but it´s a mess and the behavior changed a lot..
I think it´s time to write Ehlers indicators from scratch using the easy L code provided with the books, one by one, and using simple MQ4 code, and stop to waste time on this.
it might paint initially and then not paint on a continuous basis.
int limit=Bars-2*length-counted_bars;
on 2nd pass count_bars is equal to Bars-1 so limit is less than zero.
The correct statement would be
limit=MathMin(Bars-counted_bars,Bars-2*length)
Now it paints, but it´s a mess and the behavior changed a lot..
I think it´s time to write Ehlers indicators from scratch using the easy L code provided with the books, one by one, and using simple MQ4 code, and stop to waste time on this.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is the original code of Fisher Stochastic. it was made by Luis Guilherme Damiani.
Have some troubles with arrays or custom function, but not big deal. I´m working on a fixed version.
But the main problem is this code is not painting, and I can´t see where the problem is.
I appreciate if somebody could help me.