<div dir="ltr"><div>Hi Javier</div><div><br></div><div>Answer to your question depends mostly on your exchange; QuickFix is a library to construct/parse FIX messages, and each exchange has its own specifics of messages.</div><div>Generally it should be something like the below:</div><div>QuickFix.FIX44.NewOrderSingle newOrderSingle = new QuickFix.FIX44.NewOrderSingle(<br>                new ClOrdID(<your order ID>),<br>                new Symbol(<traded symbol>),<br>                new Side(<buy or sell>),<br>                new TransactTime(<...>),<br>                new OrdType(<e.g. OrdType.Market - see spec of your exchange>);</div><div>newOrderSingle.Set(new Currency(<your currency>));<br>newOrderSingle.Set(new OrderQty(<order quantity>));<br>newOrderSingle.Set(new Price(<...>)); // usually not needed for Market</div><div>...</div><div><br></div><div>Once again, the above is just an example (for FIX4.4), which you need to adjust to construct a message satisfying your particular exchange's message specification.</div><div>
So I guess if you follow the Exchange's documentation on how to fill the fields in the message, it should work.

<br></div><div><br></div><div>Regards,</div><div>Pavel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 July 2018 at 16:34, Javier Hertfelder <span dir="ltr"><<a href="mailto:javier@fxstreet.com" target="_blank">javier@fxstreet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>We are kind of new in FIX and we are struggling with a very simple action, place an Market Order with an Stop loss and Take Profit.</div><div><br></div><div>Any suggestions?</div><div><br></div><div><br clear="all"><div><div class="m_-5440952362098198036gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8000001907349px"><span style="font-size:13.3px">Javier Hertfelder, CTO | </span><a href="http://www.fxstreet.com/" style="color:rgb(17,85,204);font-size:13.3px" target="_blank">www.fxstreet.com</a><span style="font-size:13.3px"> </span><span style="font-size:13.3px">|</span><br></div><div style="font-size:12.8000001907349px"><div dir="ltr"><p style="font-size:13.3333339691162px;font-family:Verdana,Arial,Helvetica,sans-serif;margin:0px"><span style="font-family:arial,sans-serif">Tel. </span><a value="+34933040495" style="font-family:arial,sans-serif">+34 93 3040495</a></p><p style="font-size:13.3333339691162px;font-family:Verdana,Arial,Helvetica,sans-serif;margin:0px"><span style="font-family:arial,sans-serif">Gtalk: <a href="http://goog_2145176996" target="_blank">javier</a></span><font color="#1155cc"><a href="mailto:javier@fxstreet.com" target="_blank">@fxstreet.com</a></font> - <a href="http://about.fxstreet.com/stay-connected-social-media/" style="color:rgb(17,85,204);font-family:arial,sans-serif" target="_blank">Stay connected</a></p><p style="font-size:13.3333339691162px;font-family:Verdana,Arial,Helvetica,sans-serif;margin:0px"><br></p></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/<wbr>listinfo.cgi/quickfixn-<wbr>quickfixn.com</a><br>
<br></blockquote></div><br></div>