Body length filter Problem
- fly7680: but sometimes it happens that in the historic this filter does not work"Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
- Print out your variables, and find out why.
- for(int i = limit-1; i >= 0; i--){Do your lookbacks correctly.
if (i >= MathMin(5000-1, rates_total-1-50)) continue; //omit some old rates to prevent "Array out of range" or slow calculation
The body of the candle must be above 0.3 pips and it works, but sometimes it happens that in the historic this filter does not work.
I've been wrong a few line of code?
It could be the "for" loop to bother to filter "Doji"?
Thank you