Hello, I would really appreciate it if someone could help me out with a tiny bit of coding. I have an alert indicator that I only want to go off if the previous bar is greater then 20 pips. Here is the piece of code I am inserting to tell the indicator to CONTINUE or STOP.
if (iOpen(NULL, p, 2) - iClose(NULL, p, 2) > 0.002) continue;
However, I do not think this is the right code to enter because the indicator still goes off. Here is more of the code that I am inserting the above statement into:
----------------
if (Close[0] == iHigh(NULL, p, 0)) {
if (iClose(NULL, p, i+1) > iOpen(NULL, p, i+1)) continue;
if (Close[0] <= z) continue;
if (Old > z) continue;
if (iOpen(NULL, p, 2) - iClose(NULL, p, 2) > 0.002) continue;
DisplayAlert("Look for a "+Symbol()+" SHORT on "+PeriodNice(p)+" (wick)");
t = iTime(NULL, p, 0);
return(0);
}
----------------
Any help would be much appreciated!
Thanks
if (iOpen(NULL, p, 2) - iClose(NULL, p, 2) > 0.002) continue;
However, I do not think this is the right code to enter because the indicator still goes off. Here is more of the code that I am inserting the above statement into:
----------------
if (Close[0] == iHigh(NULL, p, 0)) {
if (iClose(NULL, p, i+1) > iOpen(NULL, p, i+1)) continue;
if (Close[0] <= z) continue;
if (Old > z) continue;
if (iOpen(NULL, p, 2) - iClose(NULL, p, 2) > 0.002) continue;
DisplayAlert("Look for a "+Symbol()+" SHORT on "+PeriodNice(p)+" (wick)");
t = iTime(NULL, p, 0);
return(0);
}
----------------
Any help would be much appreciated!
Thanks