<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">

<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I am trying to create a NewSingleOrder with a NoLegs group, but there is an error occurring (no message to tell me what ) and the FIX message is being created in
 numeric order (apart from the group which is tagged onto the end). Added to this the group has an additional tag of 1=1 that I don’t want.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">I suspect that it is the group that I am adding that is causing the issue. I am looping through each leg that I need to add and creating a group as follows<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">            for (var counter = 1; counter <= legs.Count; counter++)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">{<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">            var legToAdd = legs[counter - 1];<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">            var legsGroup = new Group(counter, Fix.Delimiter);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">            legsGroup.SetField(new StringField(<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                SideField,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                legToAdd.Side == TradeSide.Buy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                ? QuickFix.Fields.Side.BUY.ToString()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">                                                                                                : QuickFix.Fields.Side.SELL.ToString()));<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">The fix that is being created is
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">8=FIX.4.4 9=280 35=D 34=2 49=XXXXXX 52=20150910-13:22:52.741 56=XXX 11=XXX123456 55=NID 75=20150909 109=02582 167=F 375=XXX 423=0 555=1
 6004=S 7931=2 20011=012345 20012=012345 1=1 54=1 60=20150910-14:22:49.000 687=1 5474=9875 5475=041215 5476=012345 5477=CROSS 10=169</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">The first part of the FIX message is wrong because it is in the wrong order and the group should follow the 555 NoLeg indicator. I have a function that creates the message
 correctly and passes it into the constructor of a Message object. This uses the DataDictionary and creates a correct Fix Message, so I know my DataDictionary is correct. I think it is the way that I am creating the group that is wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Can any body help?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB">Damion Saunders |</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#CCCCCC;mso-fareast-language:EN-GB"> </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">Back
 Office Development<br>
</span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB">Sucden Financial Limited |</span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB"> Plantation
 Place South</span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#999999;mso-fareast-language:EN-GB">
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB">|</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB"> </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">60
 Great Tower Street</span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:EN-GB">
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB">| </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">London EC3R 5AZ</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB">Telephone (DDI): </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">+44
 (0)20 3207 5285</span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB"> | Switchboard:</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB"> </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">+44
 (0)20 3207 5000</span><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB"> | Facsimile: </span></b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#666666;mso-fareast-language:EN-GB">+44
 (0)20 3207 5010</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB"><br>
<b>Email: </b><a href="mailto:Damion.Saunders@sucfin.com"><span style="color:blue">Damion.Saunders@sucfin.com</span></a> |
<b>Website:</b> <a href="http://www.sucdenfinancial.com"><span style="color:blue">www.sucdenfinancial.com</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#003568;mso-fareast-language:EN-GB"><br>
</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:purple;mso-fareast-language:EN-GB"><img border="0" width="620" height="148" id="_x0000_i1025" src="cid:image001.jpg@01D0EC6F.CA448EC0"></span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:purple;mso-fareast-language:EN-GB">         
</span><o:p></o:p></p>
</div>

<font style="BACKGROUND-COLOR: #ffffff">
<p><span style="FONT-SIZE: 10pt; BACKGROUND: white"><a title="http://www.sucdenfinancial.com/" href="http://www.sucdenfinancial.com/" target="_blank"><font face="Arial, Helvetica, sans-serif" color="#0000ff"></font></a><font face="Arial, Helvetica, sans-serif" color="#0000ff"><a href="http://www.sucdenfinancial.com/" target="_blank">www.sucdenfinancial.com</a></font></span><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font></p>
<p><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white">Sucden Financial Limited, Plantation Place South, 60 Great Tower Street, London EC3R 5AZ<br />Telephone +44 203 207 5000<br /><br />Registered in England no. 1095841<br />VAT registration no. GB 446 9061 33</span></font></p>
<p><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white">Authorised and Regulated by the Financial Conduct Authority (FCA) and entered in the FCA register under no. 114239<br /><br /></span></font><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial, Helvetica, sans-serif">This email, including any files transmitted with it, is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you are not the intended recipient of this message, please notify <u><a href="mailto:postmaster@sucfin.com" target="_blank">postmaster@sucfin.com</a></u> immediately and delete it from your computer system.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial, Helvetica, sans-serif"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial, Helvetica, sans-serif">We believe, but do not warrant, that this email and its attachments are virus-free, but you should check.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial"></font></span> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial, Helvetica, sans-serif"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial, Helvetica, sans-serif">Sucden Financial Limited may monitor traffic data of both business and personal emails. By replying to this email, you consent to Sucden Financial 's monitoring the content of any emails you send to or receive from Sucden Financial . Sucden Financial is not liable for any opinions expressed by the sender where this is a non-business email.</font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial"></font></span> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"><font face="Arial"></font></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 10pt; mso-ansi-language: EN-GB"></span><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white">The contents of this e-mail do not constitute advice and should not be regarded as a recommendation to buy, sell or otherwise deal with any particular investment.</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font></p>
</font><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white"></span></font><font face="Arial, Helvetica, sans-serif"><span style="FONT-SIZE: 10pt; BACKGROUND: white">This message has been scanned for viruses by </span><span style="FONT-SIZE: 10pt"><a title="http://www.mimecast.com/" href="http://www.mimecast.com/" target="_blank"><span style="BACKGROUND: white; COLOR: black">Mimecast</span></a></span></font></font></p>
</body>
</html>