Code covered by the BSD License  

Highlights from
Automated Trading with MATLAB - 2012

image thumbnail

Automated Trading with MATLAB - 2012


Stuart Kozola (view profile)


31 Aug 2012 (Updated )

Files from the Automated Trading webinar showing X_Trader and QuickFIX/J integration.

function q = createMSMQ()

% Copyright 2010-2012, The MathWorks, Inc.

%% Add the Assembly for MSMQ

%% Create the Queue (if it doesn't already exist)
if ~(System.Messaging.MessageQueue.Exists('.\private$\seminarQ'))
    q = System.Messaging.MessageQueue.Create('.\private$\seminarQ');

%% Connect to the queue
q = System.Messaging.MessageQueue('.\private$\seminarQ');

% Change the formatting to ActiveX so Excel can parse the messages
ax = System.Messaging.ActiveXMessageFormatter;
q.Formatter = ax;

Contact us