// kapanış fiyatlarını oku
var C = Sistem.GrafikFiyatSec("Kapanis");

var MA1 = Sistem.MA(C, "Exp", 10);

var ATR = Sistem.AverageTrueRange(14) ;

var F1 = Sistem.Liste(0) ;
var F2 = Sistem.Liste(0) ;
var pivot1 = Sistem.Liste(0);
var pivot2 = Sistem.Liste(0);

for (int i = 1; i<Sistem.BarSayisi; i++)
{
F1[i] = C[i] - ATR[i] ;
F2[i] = C[i] + ATR[i] ;
}
// strateji
var SonYon = "";
for (int i = 1; i<Sistem.BarSayisi; i++)
{
if (MA1[i] < F1[i-1] && MA1[i-1] > F1[i-2] < pivot1[i] = F1[i];
else pivot1[i] = pivot1[i-1];

if (MA1[i] > F2[i-1] && MA1[i-2] > F2[i-1] > pivot2[i] = F2[i];
else pivot2[i] = pivot2[i-1];
}
if (MA1[i] > pivot2[i] && MA1[i-1] > pivot2[i-1] && SonYon != "A") // AL
if (MA1[i] > MA3[i] && SonYon != "A") // AL
{
Sistem.Yon[i] = SonYon = "A"; // alış
}
else if (MA1[i] < pivot1[i] && MA1[i-1] > pivot1[i-1] && SonYon != "S") // SAT
else if (MA1[i] < MA2[i] && SonYon != "S") // SAT
{
Sistem.Yon[i] = SonYon = "S"; // satış
}
Sistem.Cizgiler[0].Deger = MA1;
Sistem.Cizgiler[1].Deger = F1 ;
Sistem.Cizgiler[2].Deger = F2;
Sistem.Cizgiler[3].Deger = pivot1;
Sistem.Cizgiler[4].Deger = pivot2 ;

YUKARIDA SÜREKLİ HATA VERİYOR

c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(12, 16) : error CS1514: { bekleniyor
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(12, 16) : error CS1519: class, struct veya interface üyesi bildiriminde geçersiz '-' belirteci
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(13, 1) : error CS1519: class, struct veya interface üyesi bildiriminde geçersiz '{' belirteci
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(67, 1) : error CS1519: class, struct veya interface üyesi bildiriminde geçersiz 'catch' belirteci
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(67, 23) : error CS1002: ; bekleniyor
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(69, 23) : error CS1519: class, struct veya interface üyesi bildiriminde geçersiz '(' belirteci
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(69, 39) : error CS1519: class, struct veya interface üyesi bildiriminde geçersiz ')' belirteci
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(73, 1) : error CS1022: Tür veya ad alanı tanımı ya da dosya sonu bekleniyor
c:\Users\USER\AppData\Local\Temp\xpjwvkwy.0.cs(74, 1) : error CS1022: Tür veya ad alanı tanımı ya da dosya sonu bekleniyor