kai700 Posted October 2, 2014 Report Share Posted October 2, 2014 Hallo,in der Docu und in vielen Büchern werden die "Special Functions", wie init(), deinit() und start() benutzt, alles int. In EAs und auch in Indicatoren u.s.w.Erstelle ich im Metaeditor einen EA neu, kommt: int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- } Ist das besser oder moderner (in Richtung MQL5?)? Beim Indicator ebenfalls OnInit() und vor allem int OnCalculate(const..... Sollte man neue Indicatoren lieber mit OnCalculate() programmieren oder ist das mehr oder weniger egal? Vorausgesetzt, man kommt mit beiden Varianten ans Ziel.Gruss Kai Quote Link to comment Share on other sites More sharing options...
kai700 Posted October 2, 2014 Author Report Share Posted October 2, 2014 Einiges steht natürlich hier: http://docs.mql4.com/basis/function/events Wie zum Bsp. für Indicators: "...This usually happens when a new tick is received for the symbol, for which the indicator is calculated..." Mit int start() ist das doch auch so(?) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.