Originally Posted by
alekss
arkadaşlar merhaba
var C = Sistem.GrafikFiyatSec("Kapanis");
var DIPlus = Sistem.DirectionalIndicatorPlus(13);
var DIMinus = Sistem.DirectionalIndicatorMinus(13);
var ADX = Sistem.ADX(8);
Sistem.Cizgiler[0].Deger = DIPlus ;
Sistem.Cizgiler[1].Deger = DIMinus;
Sistem.Cizgiler[2].Deger = Sistem.ADX(8);
Sistem.Cizgiler[3].Deger = Sistem.Liste(25F);
Sistem.Cizgiler[4].Deger = Sistem.Liste(15F);
var SonYon="";
float Fiyat = 0.0f;
for (int i = 1; i < Sistem.BarSayisi; i++)
{
if (DIPlus[i] > DIMinus[i] && ADX[i] >= 25 && SonYon != "A")
{
Sistem.Yon[i] = "A";
SonYon="A";
Fiyat = C[i];
}
else if (DIPlus[i] < DIMinus[i] && ADX[i] >= 25 && SonYon != "S")
{
Sistem.Yon[i] = "S";
SonYon="S";
Fiyat = C[i];
}
}
yukarıdaki formülde adx 25 e eşit veya buyukse di+- kesisimlerinde pozisyon acıyor
mesela bu formülde adx <25 ken di-+ kesisiyor sonrada meselas 2 -3 bar sonra adx kapanışı >25 ten buyuk olunca al veya sat veriyor
benim istediğim şey ise
adx >=25 teyken di+- kesisimlerinde işlem yapsın
yani bar kapanısında adx>=25 di+- kesisimlerinde işlem yapsın
bar kapanısı şart bu olsun
şimdiden teşekkürler