Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Platform: TradeLink, OpenQuant, considering anything that works...
Trading: if it trades...
Posts: 94 since Oct 2010
Thanks Given: 24
Thanks Received: 39
Hi,
I've found a better solution for parsing the number from the order number string. I would recommend this method above the previous one posted. The previous isn't as robust.
protected string GetOrderNumber(IOrder order)
{
string b = string.Empty;
for (int i = 0; i < order.Name.Length; i++)
{
if (Char.IsDigit(order.Name[i]))
b += order.Name[i];
}
return b;
}
thank you for this interesting thread. How difficult it is to find the right indications sometimes...!
I posted a -still unanswered- thread on Ninja forum, (though my username there is different). I cannot paste links here because I am newbie, but it goes about "Managing multiple trades without string names".
From what I have read here, it seems that the only solution is parsing strings, is it correct?
finally, important, in OnTermination() unsubscribe:
acct.Execution -= ExecutionUpdateHandler;
This should populate the list with new Orders and modify the existing ones. There might be some typos in the code, but that's the general idea. Use at your own risk.