This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Event model for MQL4


Back to topics list
avatar
39
davidwt 2005.02.02 23:18 
It may be too late for this suggestion, but it would be nice if MQL4 provided specified functions that if a programmer defined, would be called by MT4 on certain events. Instead of the Start() function that only responds to ticks (ie, a tick event triggers a call to Start()) and then requires the developer to distinguish what events he actually wishes to respond to, it would be nice to have different event functions the developer can choose to provide in an indicator/expert. Some useful event functions would be OnTick()--for each tick, OnNewBar()--for each new bar, OnTrade()--for each new, closed, deleted, or modified trade, OnNews()--for each incoming news story/event, .... The developer could choose any or all of them to develop and MT4 would call the provided event functions for the respective events. Useful/needed parameters could be part of each function signature.
avatar
153
CoenWillemse 2005.02.02 23:39 
Brilliant idea!
avatar
5
Smoothice 2005.02.03 07:24 
I too agree that this is a brilliant idea, but I fear that it is too late in development to initiate.

Smoothice
avatar
80
tonyc2a 2005.02.04 01:58 
Wow.....agreed.

maybe the next verion...
avatar
4464
Slawa 2005.02.04 11:01 
yeah. far far future version. may be 6 or 7
this model should be very good considered and embedded into our new architecture. but testing of our current architecture is not ending yet.
sorry
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets