Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Sistemi Esperti

Singleton Example - sistema esperto per MetaTrader 5

Visualizzazioni:
5823
Valutazioni:
(10)
Pubblicato:
2019.01.05 19:42
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

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