PureBytes Links
Trading Reference Links
|
Okay, I'll see if I can do better this time. :-)
> If high[5]<=high[3] and high[4]<=high[3] and
> high[2]<=high[3] and high[1]<=high[3]
> Then SHigh[2] = SHigh[1];
> SHigh[1] = SHigh[0];
> SHigh[0] = high[3];
If high[5]<=high[3] and high[4]<=high[3] and
high[2]<=high[3] and high[1]<=high[3]
Then begin
SHigh[2] = SHigh[1];
SHigh[1] = SHigh[0];
SHigh[0] = high[3];
End;
Actually, that's detecting the swing a bar later than you need to. I'd
try:
If high[4]<=high[2] and high[3]<=high[2] and
high[1]<=high[2] and high<=high[2]
Then begin
SHigh[2] = SHigh[1];
SHigh[1] = SHigh[0];
SHigh[0] = high[2];
End;
--
Dennis
|