function CEL_OrderChanged(Source, EventID, Change, Order, OldProperties, Fill, Cqgerr, varargin)

global m_OrderID;

try
    % Informing about order's status.
    if strcmp(m_OrderID, Order.get('GUID'))
        if (Change == 0)
            disp('The order has been placed.');
        end
        if (Order.get('IsFinal'))
            disp(['The order is final. Its GWStatus is: ', Order.get('GWStatus')]);
            m_OrderID = '';
        end
    end
catch
    CEL_ShutDown;
    disp('An error occurred in CEL_OrderChanged.m file.');
end