
06-06-2006, 04:07 AM
|
 |
Senior Member
|
|
Join Date: May 2006
Posts: 690
|
|
Quote:
|
Originally Posted by Maji
Please correct me if I am wrong, but I think this indicator maybe cheating.
Here is a code fragment:
int dist=24;
for (i=limit;i>=0;i--) {
hhb = Highest(NULL,0,MODE_HIGH,dist,i-dist/2);
llb = Lowest(NULL,0,MODE_LOW,dist,i-dist/2);
if (i==hhb)
b1[i]=High[hhb]+SignalGap*Point;
if (i==llb)
b2[i]=Low[llb]-SignalGap*Point;
}
Let us check the line:
hhb = Highest(NULL,0,MODE_HIGH,dist,i-dist/2);
Suppose, limit = 30, and dist/2 = 12, as dist = 24. Consider the case when i = 1. The Highest shifts is a negative number, which means that it is looking forward or cheating.
Am I wrong? Looks like this indicator will be repainting.
Maji
|
Thanks for your help, it starts off great then as it progresses, it gets mixed up signals and more and more appear, one for the basket I think, thanks anyway I will keep looking
|