My code is:
if (Close[0] > Close[1]
&& Close[1] > Close[2]
&& Close[2] > Close[3])
Tradicional.Set(1);
else
Tradicional.Set(-1);
Compared with:
if (CurrentBar < Period)
return;
for (int i = 0; i < Period; i++)
{
if (Close[i] > Close[i+1])
Iterativos.Set(1);
else
Iterativos.Set(-1);
}
I do not get the same results.
TIA. Best regards.
Comment