Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

Singleton Example - MetaTrader 5 için Uzman Danışman

Görüntülemeler:
5779
Derecelendirme:
(10)
Yayınlandı:
2019.01.05 19:42
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

I was working on an EA and identified that an object should never have more than one copy. Most EA's never get large enough for it to actually matter that a singleton is used, but I like the clarity in the code for the object's type.  This is just an update to a years earlier post of this for MQ4; it may be getting to be time to convert everything to MQ5.
The code follows closely the tutorial at http://www.yolinux.com/TUTORIALS/C++Singleton.html

The display of the event count is just to show that the singleton object is working.
Averages crosses Averages crosses

Averages crosses

Heiken ashi - histogram Heiken ashi - histogram

Heiken ashi - histogram

Nonlinear Kalman filter - floating levels Nonlinear Kalman filter - floating levels

Nonlinear Kalman filter - floating levels

Zero mean normalized nonlinear Kalman filter Zero mean normalized nonlinear Kalman filter

Zero mean normalized nonlinear Kalman filter