Instead of using the main
Each of these handlers receives as a parameter the individual FXB.Order which is being opened, changed, or closed. For example:
Framework.OnOrderOpen = function(newOrder)
{
// newOrder is an FXB.Order describing the new trade or pending order.
// Ticket ID is in newOrder.id. Symbol is in newOrder.instrumentId etc
};