<div dir="ltr"><div class="gmail_default" style="font-size:small">Looks about right.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
You can always call ToString() on the message and check that it matches your expectation.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 10:18 AM, Selvaraj, Karthik (London) <span dir="ltr"><<a href="mailto:Karthik.Selvaraj@man.com" target="_blank">Karthik.Selvaraj@man.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif"">Thanks Grant. So something along these lines ?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> var orderList = new QuickFix.FIX42.NewOrderList(); <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> orderList.ListID = new ListID(tickets[0].OrderId.ToString(CultureInfo.InvariantCulture));<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> orderList.TotNoOrders = new TotNoOrders(tickets.Count);<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Arial","sans-serif""> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> for (var i = 0; i < tickets.Count; i++)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> var seqGroup = new QuickFix.FIX42.NewOrderList.NoOrdersGroup();<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(new ClOrdID(tickets[i].Id.ToString(CultureInfo.InvariantCulture)));<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(new ListSeqNo(i + 1));<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(new Symbol(tickets[i].TradingSecId.ToString(CultureInfo.InvariantCulture)));<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(tickets[i].Quantity > 0 ? new Side(Side.BUY) : new Side(Side.SELL));<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(new TransactTime(DateTime.Now));<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Arial","sans-serif""> seqGroup.SetField(new OrderQty(Math.Abs(tickets[i].Quantity)));<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> orderList.AddGroup(seqGroup);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif""> }<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";background:white"> Session.SendToTarget(</span><span style="font-size:9.5pt;font-family:"Arial","sans-serif"">……………)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif"">Can you confirm if the above appears ok ?<u></u><u></u></span></p><p class="MsoNormal" style="text-indent:36.0pt">
<span style="font-size:9.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif"">Reg,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif"">Karthik</span><span style="font-size:11.0pt;font-family:"Arial","sans-serif""><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a> [mailto:<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>] <b>On Behalf Of </b>Grant Birchmeier<br>
<b>Sent:</b> 26 March 2014 15:09<br><b>To:</b> Mailing list for QuickFIX/n<br><b>Subject:</b> Re: {{Quickfixn}} NewOrderList with repeating groups<u></u><u></u></span></p><div><div><p class="MsoNormal"><u></u> <u></u></p>
<div><div><p class="MsoNormal"><span>I think you want to create a NoOrdersGroup object, not a generic Group object. There are no arguments.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span><u></u> <u></u></span></p>
</div><div><p class="MsoNormal"><span>var v = new QuickFix.FIX42.NewOrderList.NoOrdersGroup();</span><u></u><u></u></p></div><div><p class="MsoNormal"><span><u></u> <u></u></span></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><p class="MsoNormal">On Wed, Mar 26, 2014 at 7:06 AM, Selvaraj, Karthik (London) <<a href="mailto:Karthik.Selvaraj@man.com" target="_blank">Karthik.Selvaraj@man.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">Hi there,<u></u><u></u></p><p class="MsoNormal"> I need an example to create repeating groups of orders using NewOrderList in FIX 4.2. <u></u><u></u></p><p class="MsoNormal">Not sure what should be the arguments for the <b>QuickFix.Group</b> constructor. <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks. <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div><p><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#999999">This email has been sent by a member of the Man group (“Man”). Man’s parent company, Man Group plc, is registered in England and Wales (company number 08172396) at Riverbank House, 2 Swan Lane, London, EC4R 3AD.<br>
The contents of this email are for the named addressee(s) only. It contains information which may be confidential and privileged. If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man reserves the right to monitor, record and retain all electronic and telephone communications through its network in accordance with applicable laws and regulations.</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#666666"> </span><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#cccccc">--UwQe9f5k7pI3vplngP</span><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Quickfixn mailing list<br><a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all">
<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal"><span style="background:white">Grant Birchmeier</span><u></u><u></u></p></div><div>
<p class="MsoNormal">
<b><span style="color:#3333ff;background:#ffcc00">Connamara Systems, LLC</span></b><u></u><u></u></p></div><div><p class="MsoNormal"><b>Made-To-Measure Trading Solutions.</b><u></u><u></u></p></div><div><p class="MsoNormal">
Exactly what you need. No more. No less.<u></u><u></u></p></div><div><p class="MsoNormal"><a href="http://connamara.com" target="_blank">http://connamara.com</a><u></u><u></u></p></div></div></div></div></div></div><br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>
</font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br>
</div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></div>
</div></div>