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
İşte benim eksi gerçek ticaret mantığı.
Ve RaptorUK'un yorumu için yaptığım düzeltme:
Çoklu çizgi kodunu bindirmelere izin verecek şekilde değiştirdim, ..
TLne Geriye dönük uyumlu:
Alt çizelge üzerinde çizim yapmak için sadece iWin = WindowFind("indicatorName"); işlevini kullanın.
Hem ana çizelgede hem de alt çizelgede gösterge çizimiyle ilgili bir gönderiden, TLine değişikliklerle her ikisi için de kullanılabilir.
Alt çizelge üzerinde çizim yapmak için sadece iWin = WindowFind("indicatorName"); işlevini kullanın.
teşekkürler
Piyasa kapanış zamanı.
SL'yi geçerek hafta sonundaki pazar boşluğunun zarar görmesini önlemek için tüm siparişleri hafta sonundan önce kapatmak istedim (piyasa Cuma günü kapanır). (Bu, test cihazında modellenmemiştir.)
Yani soru şu ki, piyasa ne zaman kapanıyor (veya açılıyor)? İnternetteki tüm ilanlar ve aramalar tamamen yanlış. Forex Eğitiminden - Forex'e Giriş - IBFX Forex piyasası haftanın 5.5 günü, günde 24 saat çalışır (Pazar günü 18:00 ET'den Cuma 16:00 ET'ye kadar) Bu, ET - New York yerel saatidir.
Bu, DST sınırları yıldan yıla değiştiğinden, Tüm kayıtların ne zaman yapıldığına bağlı olduğu anlamına gelir.
Bu, söz konusu çubuk için NY DST'nin ne zaman başlayıp bittiğini hesaplamanın gerekli olduğu anlamına gelir. (Geriye dönük testler için en azından 2000 değerlerine ihtiyacımız var.) Sorun şu ki, Windows mevcut TZ ve UTC arasında ve yalnızca mevcut yıl için dönüştürme rutinleri sağlamaz. PC ET'de değilse, doğrudan yapılamaz. Dahası, Windows8 çıkana kadar ET ve önceki yıllar için dönüşüm alamazsınız. Ve Win7'deki Kayıt Defterine baktığımda, değerler sadece 2005'i kapsıyor (ve eğer doğru okursam bunlar yanlıştı.) Yani Win8'in daha iyi olacağına bahse girmiyorum.
Bu, DST'yi kendim hesaplamam gerektiği anlamına gelir. Kodumu güncelledim: TimeGmt() ve LocalTimeGMT() varsayılan argümanlar, bazı ek belgeler ve kontrollerle ve piyasa kapanış zamanını hesaplamak için kod yazdım. Zevk almak.
Bunlar iyi noktalar, MT4 işlevlerinde bile her zaman doğru değeri döndürmeyen tahmin niteliğinde olan daha birçok şey var. Örneğin, komisyoncu ve sunucu bilgileri ve değişken spread, ECN veya değil, SL gerekli veya değil gibi ticaret parametreleri, yalnızca hata işleme, sembol bilgileri vb.
Bunların çoğu, kolayca kontrol edilemeyen (ve kontrol edilmesi gereken) basit temel şeylerdir. Örneğin, açık grafikler ve geçmiş verileri hakkında bilgi, zaman bilgisi (GMT, saat dilimi, DST gibi), piyasa açılışı, kapanış bilgisi.
Olağanüstü Durum Kurtarma gerçekten iyi olurdu, MT4'ün istediği gibi kapanmaması ve yeniden başlatılması (güncelleme), ayrıca terminalin kapanmasından saatler sonra bile görev yöneticisinde donmuş kalan terminal.exe düzgün kapanması (ve kapalı olduğu düşünülüyor) herhangi bir hata mesajı olmadan kapat düğmesiyle düzgün şekilde).
Bir tür yerel veri merkezi desteği de iyi olurdu, sınırlı global değişkenler ve açılan dosyalar yerine çalışmayı kolaylaştırırdı. Eksik olan talep, teklif, (yayılma) onay verilerinin depolanmasından bahsetmiyorum bile.
Birlikte hayatı daha da zorlaştıran birçok basit eksik şey var ve mümkünse bunları doğru bir şekilde halletmek için korkunç miktarda iştir. Kapsamlı düzgün çalışma için birçok harici ipucu ve püf noktası, hatta hack'ler gereklidir. Kod tabanında bir strateji yayınlayan ve MT4 veya sunucuyla ilgili tüm olası (çoğu aracıya özgü) sorunları çözmeyen hiç kimseyi suçlamıyorum - özellikle de nokta hata işlemede değil stratejideyse.
Çok basit şeyler bile eksiktir, bir şeyler gerçekten ters gittiğinde kolayca yüzlerce megabayt veya daha fazla büyüyebilen günlük dosyalarıyla ilgilenemiyoruz. Disk dolana kadar büyürler ve hiçbir şey yapılamaz, hatta günlük dosyası işlemede terminal ayarlarında bir seçenek bile yoktur.