ideal robot çalıştıran kurumlar
a1 capıtal
ak yatırım
ata yatırım
deniz yatırım
gedik yatırım
halk yatırım
info yatırım
meksa yatırım
osmanlı yatırım
oyak yatırım
vakıf yatırım
yapı kredi yatırım
yatırım finansman
Printable View
Sistem.SorguBaslik[0] = "Kapanis";
Sistem.SorguBaslik[1] = "MACD(12, 26)";
Sistem.SorguBaslik[2] = "MA("Kapanis", "EXP", 9)";
var MACDUp = Sistem.MACD(12, 26);
var MADown = Sistem.MA("Kapanis", "EXP", 9);
var MACDUpUpSonBar = MACDUp[Sistem.BarSayisi-1];
var MADownSonBar = MADown[Sistem.BarSayisi-1];
if (Sistem.YukariKestiyse(MACDUp,MADown) || Sistem.AsagiKestiyse(MACDUp,MADown ))
{
Sistem.SorguDeger[0] = Sistem.GrafikVerileri[Sistem.BarSayisi-1].Close;
Sistem.SorguDeger[1] = MACDUpUpSonBar;
Sistem.SorguDeger[2] = MADownSonBar;
if (Sistem.YukariKestiyse (MACDUp, MADown) )
Sistem.SorguAciklama = "Yukarı Kesti";
else if (Sistem.AsagiKestiyse (MACDUp, MADown) )
Sistem.SorguAciklama = "Aşağı Kesti";
Sistem.SorguEkle();
}
formülü düzeltmeme yardımcı olur musunuz hata veriyor
PHP Code:
Sistem.SorguBaslik[0] = "Kapanis";
Sistem.SorguBaslik[1] = "MACD";
Sistem.SorguBaslik[2] = "MA";
var MACDUp = Sistem.MACD(12, 26);
var MADown = Sistem.MA(MACDUp , "Exp", 9);
var MACDUpUpSonBar = MACDUp[Sistem.BarSayisi-1];
var MADownSonBar = MADown[Sistem.BarSayisi-1];
if (Sistem.YukariKestiyse(MACDUp,MADown) || Sistem.AsagiKestiyse(MACDUp,MADown ))
{
Sistem.SorguDeger[0] = Sistem.GrafikVerileri[Sistem.BarSayisi-1].Close;
Sistem.SorguDeger[1] = MACDUpUpSonBar;
Sistem.SorguDeger[2] = MADownSonBar;
if (Sistem.YukariKestiyse (MACDUp, MADown) )
Sistem.SorguAciklama = "Yukarı Kesti";
else if (Sistem.AsagiKestiyse (MACDUp, MADown) )
Sistem.SorguAciklama = "Aşağı Kesti";
Sistem.SorguEkle();
}
Merhabalar;
iDeal ile yeni tanışıyorum. Kod bilgim var ancak programla ilgili yeterli kaynak olamadığı için çözemediğim konular var. Aşağıdaki kodla ilgili yardımcı olursanız sevinirim. Problem şöyle:
1. Döngüden önce Sistem.PozisyonKontrolGuncelle ile pozisyonu "0" olarak güncelliyorum.
2. Daha sonra döngü içinde şart sağlanınca yönü "Alış" yapıp pozisyonu 4 olarak güncellemesini istiyorum ancak pozisyon tablosunu güncellemiyor, "0" da kalıyor.
3. Oysa aynı döngü içinde aynı şarta bağlı Sistem.Yon[i] ve SonYon değişkenlerine atama yapılıyor.
4. Döngü çıkışında ne yazık ki Pozisyon tablosu güncellenmediği için emir iletim komutları yanlış çalışıyor. Fakat Sistem.Yon[i] ve SonYon değişkenleri doğru değerleri almış oluyor.
Kısaca döngü içerisinde pozisyon tablosuna güncelleme yapamazmıyız, yada ben nerede hata yapıyorum.
Şimdiden teşekkürler.
PHP Code:
var Sembol = "FX'EURUSD";
var Periyot = "1";
var Anahtar=DateTime.Now.ToString("yyyyMMdd");
var alisTrh=DateTime.ParseExact(Sistem.Parametreler[0],"dd.MM.yyyy",null);
var alisZmn=DateTime.ParseExact(Sistem.Parametreler[1],"HH:mm",null);
alisTrh=new DateTime(alisTrh.Year,alisTrh.Month,alisTrh.Day,alisZmn.Hour,alisZmn.Minute,alisZmn.Second);
float alisFyt=float.Parse(Sistem.Parametreler[2],System.Globalization.CultureInfo.InvariantCulture);
// stop fiayatını okuyalım
float stopFyt=float.Parse(Sistem.Parametreler[3],System.Globalization.CultureInfo.InvariantCulture);
float hdfFyt=float.Parse(Sistem.Parametreler[4],System.Globalization.CultureInfo.InvariantCulture);
var veri = Sistem.GrafikVerileriniOku(Sembol,"1");
var Barsayisi = veri.Count ;
var SonYon = "";
int i;
Sistem.PozisyonKontrolGuncelle(Sembol, 0);
for( i = 1; i < Barsayisi; i++ )
{
//ALIŞ
if (veri[i].Date==alisTrh && SonYon!="A")
{
Sistem.Yon[i]="A";
SonYon="A";
Sistem.PozisyonKontrolGuncelle(Sembol, 4);
}
if(SonYon=="A" && veri[i].Close<=stopFyt)
{
SonYon="S";
Sistem.Yon[i]="S";
}
if(SonYon=="A" && veri[i].Close>=hdfFyt)
{
SonYon="S";
Sistem.Yon[i]="S";
}
}
var kontrol=0;
kontrol=Sistem.PozisyonKontrolOku(Sembol);
if(SonYon=="S" && kontrol >0)
{
Sistem.PozisyonKontrolGuncelle(Sembol, 0);
Sistem.Mesaj("4 satış yapıldı");
var Miktar = 4;
Sistem.EmirSembol = Sembol;
Sistem.EmirIslem = "Satış";
Sistem.EmirMiktari = Miktar;
Sistem.EmirFiyati = "Aktif";
Sistem.EmirSuresi = "SEANS"; // SEANS, GUN
Sistem.EmirTipi = "NORMAL"; // NORMAL, KIE, KPY, AFE/KAFE
Sistem.EmirGonder();
}
if(SonYon=="A" && kontrol <=0)
{
Sistem.PozisyonKontrolGuncelle(Sembol, 4);
}
İdealde takas pitesinin taraması yapabiliyoruyuz. Gün ici mesajla ilk iki kurumum maliyeti x hissede şunun altındaysa diye
Sağlıcakla,
Merhabalar,
iDeal üzerinden Toma(Most) indikatörünü kullanıyorum, Ancak daha temiz veriler için Toman'nın Heikin Ashi değerleri ile çalışmasını istiyorum Toma formülünün içerisine heikin ashi nasıl eklebilirim.
yardımlarınız için teşekkür ederim.