View Single Post
  #2 (permalink)  
Old 03-25-2006, 01:33 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Unhappy

Quote:
Originally Posted by cardio
Hi

I find my code becoming more unmanageable as its complexity increases. What I think is needed is event driven programming. Then when an event like a buy or a close occurs, other functions will just react to that. Currently one always has to check all the orders to see if something has happended. Does anyone have some event driven code for mql?

Thanks
cradio,

Unfortunately MQL4 leaks the event driven concept.
There are only three events out these. init(, dinit and start.
I hope to see even driven and object oriented in MQL5 !
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote