MQL4 ve MQL5 ile ilgili herhangi bir acemi sorusu, algoritmalar ve kodlar hakkında yardım ve tartışma - sayfa 1292
Ticaret fırsatlarını kaçırıyorsunuz:
- Ücretsiz ticaret 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
Merhaba.
Ben acemiyim, bu yüzden bana fazla yüklenme. )
https://www.mql5.com/en/articles/100
Bu makale, yalnızca bir satın alma sinyali olması ve açık uzun pozisyon olmaması durumunda satın alma siparişi vermesi gereken bir EA'nın bir örneğini sağlar. Benzer şekilde, bir satış durumunda - satış koşulları ve açık kısa pozisyonların olmaması.
İlk test sırasında, bir pozisyonun değil, birkaç pozisyonun açıldığı ortaya çıktı. Soru - neden?
Danışman kodunu okudum, nedenini anlamaya ve bulmaya çalıştım ama her şey yolunda görünüyor.
Merhaba.
Ben acemiyim, bu yüzden bana fazla yüklenme. )
https://www.mql5.com/en/articles/100Bu makale, yalnızca bir satın alma sinyali olması ve açık uzun pozisyon olmaması durumunda satın alma siparişi vermesi gereken bir EA'nın bir örneğini sağlar. Benzer şekilde, bir satış durumunda - satış koşulları ve açık kısa pozisyonların olmaması.
İlk test sırasında, bir pozisyonun değil, birkaç pozisyonun açıldığı ortaya çıktı. Soru - neden?
Danışman kodunu okudum, nedenini anlamaya ve bulmaya çalıştım ama her şey yolunda görünüyor.
değiştirmeyi dene
if (Buy_opened)
üzerinde
Aynı satılık
değiştirmeyi dene
üzerinde
Aynı satılık
yardım etmeyecek. Daha fazla belge okuyun.
geleceğe bir trend "çizmek"
Düz bir çizgi üzerinde iki nokta ile, gelecekte de dahil olmak üzere (ve tersi) bu düz çizgide isteğe bağlı bir üçüncü noktanın fiyatını bulabilirsiniz.
Merhaba.
Lütfen " Çako "ya dikkat edin.
Koddaki hataları belirtmek gerekir, çünkü test cihazında, EA siparişleri açmıyor...
Aynı zamanda, derleyici hata ve uyarı vermez, günlük benzer - hata yoktur ...
Merhaba.
Ben acemiyim, bu yüzden bana fazla yüklenme. )
https://www.mql5.com/en/articles/100
Bu makale, yalnızca bir satın alma sinyali olması ve açık uzun pozisyon olmaması durumunda satın alma siparişi vermesi gereken bir EA'nın bir örneğini sağlar. Benzer şekilde, bir satış durumunda - satış koşulları ve açık kısa pozisyonların olmaması.
İlk test sırasında, bir pozisyonun değil, birkaç pozisyonun açıldığı ortaya çıktı. Soru - neden?
Danışman kodunu okudum, nedenini anlamaya ve bulmaya çalıştım ama her şey yolunda görünüyor.
Merhaba Ivan! Burada kimse yeni gelenleri azarlamıyor, aksine yardım etmeye çalışıyorlar. Ben kendim bir acemiyim. Şimdi, sorunuzla ilgili olarak. Bir pozisyon açmak için bir çek yapıldığı için birkaç pozisyon açıldı, ancak kontrolü durdurmayı unuttular. Return ifadesi , kontrolü çağıran programa döndürür (MQL5 Referansından alınır).
EA koduna geri dönüş eklemeniz gerekir (sarı renkle vurgulanmıştır):
Ayrıca derleyicinin uyarı vermemesi için Al ve Sat pozisyonları açma koşullarında OrderSend(mrequest,mresult) kontrol etmek için bir koşul daha eklenmelidir. Bu koşul, if ifadesi tarafından belirlenir ve şöyle görünür:
Ve bir şeyin daha dikkate alınması gerekiyor. 23:59:59'da bir işlem gününden diğerine geçerken, daha önce açılan pozisyon kapatılır ve 00:00:00'da hemen yeni bir pozisyon açılır. Bu, belirli forex satıcısına ve ticaret koşullarına bağlı olan, rollover kapanışı ve rollover açılışıdır. Forumda biraz araştırın bir yerlerde bununla ilgili bilgiler var.
Saygılarımla, Vladimir.
Merhaba. İnsanların yardımınıza ihtiyacı var. Farklı parametrelere sahip iki zikzağı tek bir göstergeye bağladım (hata veya uyarı yok) Sorun şu ki 2. zikzak yanlış çizilmiş.
İşte kodun kendisi (MQL5)
Merhaba. İnsanların yardımınıza ihtiyacı var. Farklı parametrelere sahip iki zikzağı tek bir göstergeye bağladım (hata veya uyarı yok) Sorun şu ki 2. zikzak yanlış çizilmiş.
İşte kodun kendisi (MQL5)
her şey sizin için çalışıyor - sayıları biraz üstte düzeltin
her şey sizin için çalışıyor - sayıların üzerinde biraz düzeltin
Yardım için teşekkürler. Bana bir şey daha söyle, neden bir zikzak her zamanki gibi (maksimum, minimum) oluşturuldu ve ikincisi sadece maksimumda oluşturuldu.