Request for additional "events" or "special functions"

 
Hello,

I think it would be a big help to have more "special functions" in addition to start(), init(), and deinit().

It would be a big help to have a function for every time an order stops out or limits out, and have that pass the ticket number.

For example, and order stops out and it calls to the module:

OrderStopped(ticketNumber)

or if an order limits it calls to the module:

OrderLimited(ticketNumber)

Even if there were multiple expert advisers running and each OrderStopped() was sent to every expert adviser, at least the adviser could then check on the ticket number for a magic number and figure out if it was an order that it was responsible for.

This would be VERY useful IMHO.

It seems possible a difficult and slow way to do this with the OrderCloseTime() could be accomplished, but that seems like a lame work-around when adding these events would be so efficient.

Any comments please?
 
Yes this very helpfull!
I think it will be great if there are events for :

OnOrderClose()
OnOrderOpen()
OnOrderPlaced()
OnOrderExpired()
OnOrderModified()
OnOrderStopLossReached()
OnOrderTakeProfitReached()
etc.
 
No. Trade server should provide quotes but no events
 
No. Trade server should provide quotes but no events


Thank you for your answer. Please explain:

How is this different than start() ??

Thanks so much Slawa,
 
It will be too hard system.
Server dispatches events: stop loss, take profit, order expired etc. Additionally server must transfer this events to orders owners. There is additional work and non-specific for the trade server.
Second problem with client terminal. Big problem!
Client terminal is off. Where are events going? To dev/null or to some repository for futher processing?
Client terminal is on. No expert attached. What will process incoming events?
Severe experts are attached to charts. Which expert will process events?
Expert is working at the same time, let it interrupt its work when some event incomes?
No sorry, it will be very very hard system. We don't wish
 
It will be too hard system.
Server dispatches events: stop loss, take profit, order expired etc. Additionally server must transfer this events to orders owners. There is additional work and non-specific for the trade server.
Second problem with client terminal. Big problem!
Client terminal is off. Where are events going? To dev/null or to some repository for futher processing?
Client terminal is on. No expert attached. What will process incoming events?
Severe experts are attached to charts. Which expert will process events?
Expert is working at the same time, let it interrupt its work when some event incomes?
No sorry, it will be very very hard system. We don't wish


Thank you for your explanation.