Yeni başlayanlardan sorular MQL5 MT5 MetaTrader 5 - sayfa 1239
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
Hiçbir şey tavsiye edemem. Optimizasyon kullanmıyorum. Ben bunu şarlatanlık olarak görüyorum.
Aynı fikirde olmamak. Bence optimizasyon, belirli bir çift ve strateji için en uygun parametrelerin seçimidir.
PS Şimdi spreadler normal görünüyor.
Aynı fikirde olmamak.
Senin için kampanya yapmadım. Sadece kişisel fikrimi belirttim.
Senin için kampanya yapmadım. Sadece kişisel fikrimi belirttim.
Belki de fikrim yanlıştır. Ben de kampanya yapmıyorum.
Merhaba. Yardıma ihtiyacım var. Bekleyen bir emrin ömrünü, tercihen çubuk sayısıyla sınırlamak gerekir. mql4'te şu işlevi kullandım:
nerede
harici int ExpDate = 6; // sipariş ömrü çubuklarının sayısı
Her şey çalıştı.
mql5'te benzer bir şey denedim:
nerede
intExpDate = 6 girin; // sipariş ömrü çubuklarının sayısı
Sonra, örneğin satın almak için bekleyen bir sipariş verirken onu (yukarıdaki işlevi) kullanmaya çalıştım.
Bekleyen bir sipariş verilir, ancak etkinleştirilene kadar (test cihazında) geçerlidir. request.expiration'a sadece bir sayı koymaya çalıştım, hiçbir şey yardımcı olmadı. Google'da herhangi bir bilgi bulamadım. Benimle ilgili sorun ne? Belirli bir süre sonra sipariş neden silinmiyor?
PS Açıklamada çıkarıldığında, DateExp() işlevi tarih ve saati gösterir.
Eklemeyi unuttum:
Eklemeyi unuttum:
Teşekkür ederim zaten kendim buldum, sorunun kaldırıldığını yazmak istedim. Bunlar ayarlanmadan önce, ancak ayarlandığında, doğru parametre olmadığı ortaya çıkıyor request.type_time = ORDER_TIME_GTC; request.type_time = ORDER_TIME_SPECIFIED için düzeltildi; ve her şey çalışıyor. Ama geri bildiriminiz ve tavsiyeniz için çok teşekkür ederim.
Alexey, ilk başta göstergenizi en azından mum çizdirmeniz gerektiğini söyledi. Nasıllarsa öyle. En azından mevcut çubukta. Bu nasıl yapılır - anlamaya yönelik ilk adımın geçtiğini düşünün. Ancak, farklı parametreleri yazarak ve sıralayarak değil, kendi zihninizle ortaya çıkması arzu edilir.
Ve burada "önceden gerekli / gerekli değil"? Gerçekten buna ihtiyacınız var - çünkü sadece dört değerden bir mum çizemezsiniz.
Burada USDJPY,H8 grafiğinden 5 mum (gerçek) çekmesi gereken çok basit bir test göstergesi yazdım.
Sadece bu mumları çiziyor, başka bir şey değil.
Ama çalıştırırsam, çizgiyi çiziyor...
Açıkla bana aptal, neyi yanlış yapıyorum?
Bu arada, belgelerde bir yazım hatası var:
Burada USDJPY,H8 grafiğinden 5 mum (gerçek) çekmesi gereken çok basit bir test göstergesi yazdım.
Sadece bu mumları çiziyor, başka bir şey değil.
Ama çalıştırırsam, çizgiyi çiziyor...
Açıkla bana aptal, neyi yanlış yapıyorum?
Bu arada, belgelerde bir yazım hatası var:
Hata ayıklayıcıda, zamanı[0] kontrol edin ve şu soruyu yanıtlayın: "Neden grafiğin SOL SOL KENARINDAN mum çizmeye çalışıyorsunuz???
Size söyledim - DRAW_CANDLES üzerindeki yardımı kullanın. DRAW_CANDLES yardımından örneği kopyalayın. Anlayın. Ve tiki'de senin için hala çok erken.
Hata ayıklayıcıda, zamanı[0] kontrol edin ve şu soruyu yanıtlayın: "Neden grafiğin SOL SOL KENARINDAN mum çizmeye çalışıyorsunuz???
Size söyledim - DRAW_CANDLES üzerindeki yardımı kullanın. DRAW_CANDLES yardımından örneği kopyalayın. Anlayın. Ve tiki'de senin için hala çok erken.
Vladimir, en sol kenardan çizmeye çalıştığım şeyi zaten anladım. Testte şimdi sağ kenardan bir çizim var
Ve mum fiyatları gerçek alındı... Ve kene yok...
Vladimir, en sol kenardan çizmeye çalıştığım şeyi zaten anladım. Testte şimdi sağ kenardan bir çizim var
Ve mum fiyatları gerçek alındı... Ve kene yok...
Son olarak, yardımdan bir örnek alın! Peki, ne kadar yapabilirsin? Anlamlarını gerçekten anlamadıysanız, icat ettiğiniz yapıları kullanmanıza gerek yoktur. Standart yapıları kullanın - nasıl çalıştıklarını anlayın. Bundan sonra, tasarımlarınızı çöp kutusuna atın.
Ve şablonu oluşturmak için 'MQL Sihirbazı'nı kullanın.
kod
ve sonuç