This is something I should know, but I don't (yet) and would be greatful for some C# help.
From a broker connection I have set up to receive trade events only (think "last price") , I get a stream of data like the attached console window.
I need to parse it to make it useful, I believe.
Each event is always in the same format, starting with 'Tradeinfo:' and ending with 'Timestamp:'
Can anyone off the top of their head throw me a bone on the best way to deal with that kind of event? If it contains 11 variables like that and I only wanted to Console.WriteLine, say, 'price', 'size', and 'timestamp'?
Its basic C# stuff but I'm still learning the basics.
Of course if the answer is "Dude! Don't parse it, do xyz instead!" I'm open to ideas.
It isn't an index/array? like  is price,  time etc?
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
Last edited by Big Mike; December 30th, 2010 at 11:37 AM.