for (int i=2; i < Sistem.BarSayisi; i++)
{
if ((Z[i] > Z[i-1] && Z[i-1] < Z[i-2] ) || ( Z[i] < Z[i-1] && Z[i-1] > Z[i-2]))
last[i] = Z[i-1];
else
last[i] = last[i-1];
}
var SonYon = "";
for (int i=2; i < Sistem.BarSayisi; i++)
{
if ((SonYon != "A" && C[i-1] > last[i]) ) // alış
{
Sistem.Yon[i] = "A";
SonYon = "A";
}
else if ((SonYon != "S" && C[i-1] < last[i]) ) // satış
{
Sistem.Yon[i] = "S";
SonYon = "S";
}
}
hocam burada ki yanlışlık ne olabilir ??
Yer İmleri