Indicator modification

val1 = iFractals(NULL, 0, MODE_UPPER,i);
if (val1 > 0)
v1=High;
else
v1 = v1[i+1];

val2 = iFractals(NULL, 0, MODE_LOWER,i);
if (val2 > 0)
v2=Low;
else
v2 = v2[i+1];

i--;
}


NB: First copy the indicator and call it something else.
If you mess it up, you still have the original to fall back on.
(sorry if that sounds patronising, dont know if you're a programmer or not)
Have you tried replacing the terms I have highlighted in red with "Open"?
Then eyeball the result.
 
Top