거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Singleton Example - MetaTrader 5용 expert

조회수:
5921
평가:
(10)
게시됨:
2019.01.05 19:42
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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