Alım-satım fırsatlarını kaçırıyorsunuz:
- Ücretsiz alım-satım uygulamaları
- İşlem kopyalama için 8.000'den fazla sinyal
- Finansal piyasaları keşfetmek için ekonomik haberler
Kayıt
Giriş yap
Gizlilik ve Veri Koruma Politikasını ve MQL5.com Kullanım Şartlarını kabul edersiniz
Hesabınız yoksa, lütfen kaydolun
Kusura bakmayın aslında biraz kafam karıştı.
if (iOpenOrders_Buy = 3 )
Burada Toplam Açılan Satın Alma emri '3'e eşitse, kod bir sonraki bölüme geçecektir.
if (iOpenOrders_Buy > 0 )
Ardından, Toplam Açılan Satın Alma siparişinin sayısı '0'dan büyükse, bir sonrakine geçecektir.
if (iOpenOrders_Buy == 3 )
Ardından, Açık Alış emri sayısı 3'e eşitse BuyOrder_1, '2'ye eşitse BuyOrder_2'yi açar ve ardından BuyOrder_3 Açılmış Alış emri sayısı 1'e eşittir.
haklı mıyım?
haklısın değiştirilen koda tekrar bak tamam mı ??
haklısın değiştirilen koda tekrar bak tamam mı ??
Öyle düşünmüyorum.
if (Satın Alma Koşulları Karşılandı && iOpenOrders_Buy == 0 )
Bu, 'Alma Koşulu Karşılandı' ve 'Açık Alış' emri olmadığı anlamına geliyor, değil mi?
daha sonra kod, iOpenOrders_Buy = 3 olan bir sonraki satıra ilerleyecektir ;
Yani EA'ya zaten orada 3 tane açılmış emir olduğu söyleniyor, değil mi?
Ama orada Açık Satın Alma emri olmadığını bilerek koda giriyorsam neden iOpenOrders_Buy = 3 ; ?
Ayrıca hedef, Üç işlemden birinin çalışmaya devam etmesi ve son işlem kapandığında yalnızca 'Yeni' alış emrinin açılmasıdır.
Yani bu olmalı
if (iOpenOrders_Buy== 0 ) // Açılmış Alış emri olmadığı için yeni Alış emirleri açmamız gerekiyor
EA Satın Alma koşulunu aldığında, farklı Kâr Al ile Üç işlem açacaktır.
Ardından, işlemlerden ikisi yine de (TP veya SL tarafından) kapatılırsa, üçüncüsü çalışmaya devam eder.
Bunun hakkında ne düşünüyorsun? Yukarıda belirtilenle aynı şeyi yapar mı?
Saygılarımızla
Öyle düşünmüyorum.
Bunun hakkında ne düşünüyorsun? Yukarıda belirtilenle aynı şeyi yapar mı?
Saygılarımızla
hayır emirler başarılı olmazsa ne olur, biri başarısız olursa hangi ticareti açmanız gerektiğini nasıl kontrol edersiniz
neden iOpenOrders_Buy = 3 atadık ; ?
siparişler başarılı olursa 3 yeni işlem açmalısın iOpenOrders_Buy yeni değer yap
Eğer iOpenOrders_Buy 0 olur 3 işlemimiz var
hayır emirler başarılı olmazsa ne olur, biri başarısız olursa hangi ticareti açmanız gerektiğini nasıl kontrol edersiniz
neden iOpenOrders_Buy = 3 atadık ; ?
siparişler başarılı olursa 3 yeni işlem açmalısın iOpenOrders_Buy yeni değer yap
Eğer iOpenOrders_Buy 0 olur 3 işlemimiz var
Evet, 'Ordersend()' emrini açamaması çok olasıdır.
Şimdi nedenini anladım
if (iOpenOrders_Buy > 0 ) // yeni Alış emirleri açmalıyız
kodunuzda kullanıldı. Zaten iopendOrders=3 olarak ayarladığımız için, bunu doğrulayacaktır.
Ancak daha sonra iopendOrders değerinin nasıl değişmeye devam edeceği konusunda kafam karıştı.
Muhtemelen sınırlı beynim için mekanizmayı çözemedim. Bu yüzden mantığınızı yukarıdaki şekilde uygulamaya çalıştım.
Verdiğiniz koda atıfta bulunduğunuz şey bu mu?
Saygılarımızla
Evet, 'Ordersend()' emrini açamaması çok olasıdır.
Şimdi nedenini anladım
if (iOpenOrders_Buy > 0 ) // yeni Alış emirleri açmalıyız
kodunuzda kullanıldı. Zaten iopendOrders=3 olarak ayarladığımız için, bunu doğrulayacaktır.
Ancak daha sonra iopendOrders değerinin nasıl değişmeye devam edeceği konusunda kafam karıştı.
Muhtemelen sınırlı beynim için mekanizmayı çözemedim. Bu yüzden mantığınızı yukarıdaki şekilde uygulamaya çalıştım.
Verdiğiniz koda atıfta bulunduğunuz şey bu mu?
Saygılarımızla
Lütfen kusura bakmayın ama yine kafam karıştı!
eğer kullanırsam
say=say-1; sonrasında
Print ( " Sipariş 1 Başarıyla Açıldı" );
yani ilk satın alma emri açılırsa, sayım değeri 1 azalır.
Yani bir sonraki fonksiyona girerken, işte bir sonraki 'if' koşulu:
if (sayım== 2 ) {}
bunun için count değeri '2' olmuştur. [sayım=3-1=2]
Bu doğru mu?
Lütfen kusura bakmayın ama yine kafam karıştı!
eğer kullanırsam
say=say-1; sonrasında
Print ( "Sipariş 1 Başarıyla Açıldı" );
yani ilk satın alma emri açıldıysa, sayım değeri 1 azalacaktır.
Yani bir sonraki fonksiyona girerken, burada bir sonraki 'if' koşulu:
if (sayım== 2 ) {}
bunun için count değeri '2' olmuştur. [sayım=3-1=2]
Bu doğru mu?
deneyin.... biraz test yapın
deneyin.... biraz test yapın
Yorgun ve Sonuç bu.
Muhtemelen 'Satın Almadan Önce Kapanış Satış Emri' kodunu doğru yere yerleştiremedim. Bu nedenle, Orijinal koda aykırı olmasına rağmen, Sat ve Al'ı tamamen elde etmek.
Ve toplamda '4' satın alma emri var!
Başarısız oldum :(
opps, iOpenOrders_Buy == 0 koymayı unuttum
Şimdi bununla tekrar test edin.