Originally Posted by
burrn
Sayın @kenten;
hata alıyorum. yardımcı olur musunuz rica etsem?
// RSI hesapla
var RSI = Sistem.RSI (14);
var Veriler = Sistem.GrafikFiyatSec("Kapanis");
var kacbar=5;
var trail=5;
var ustseviye=60;
var toprsi=Sistem.HHV(kacbar,Sistem.RSI(14));
// sistemin pozisyon işlem kısmına
if (toprsi[veri.Count-2]>ustseviye && Sistem.RSI(14)[veri.Count-2]<toprsi[veri.Count-2]-trail && (pozisyon longsa)
{sat}
//benim veri olarak yazdığım Sistem grafikverileri ni atadığınız değişken. onu değiştirin. yalnız sadece kapanıştan rsi hesaplanmaz dikkat tüm veri lazım
Sistem.Cizgiler[0].Deger = RSI;
var SonYon = "";
for (int i = 2; i < Veriler.Count; i++)
{
if (RSI[i-1] < 30 && RSI[i] > 30 )
if ( SonYon != "A")
{
Sistem.Yon[i] = "A";
SonYon = "A";
}
if (RSI[i-1] > 70 && RSI[i] < 70 )
{
if ( SonYon != "S")
{
Sistem.Yon[i] = "S";
SonYon = "S";
}
}
}