Tags : :
Maybe some of the more advanced botters can offer some inside into the more general structure of bot programming. Specifically im now running into some problems with the amount of time it takes to update all the observed markets. So far im watching up to about 110 markets at the same time. Each market has its own "MarketFormWindow" with all sorts of data on it. Each form gets its marketdataupdate by either 1 call to getcompletemarketpricescompressed alternating with 4 calls from getmarketpricescompressed, getMUBets, getmarkettradedvolumecompressed and getMarketprofitandloss. i do this alternating to double the priceupdates to 120 markets/min instead of the 60call/min limit however i find its totally useless to me as the single call only updates prices AND NOT any change in position in this market(which is only done at 60 Markets/min). I dont really want to use just the pricedatachange all by itself to enter(or exit) trades when i cant be sure about my current position in this market.How do you people handle this ??. My first idea was to use a "centralised" database or multidimensional array to hold ALL Marketdata and feed it to the datagridviews on the MarketForms. As my programming skills are still "developing" :) im wondering what would be the right path. I think the database idea is probably in the longterm the most flexible(also beeing able to save marketdata permanently could be a good idea( as was mentioned multiple times in different threads lately). Then again even that dosent change anything about the 60call/min position update problem as they only come half as fast as pricedatachange.
Well that was worded a bit complicated but maybe someone has been there already and knows what i mean. It would be great if someone has some more inside than me and wants to share a bit of that. Also it would be greatly appreciated for a lead about how to go about my "central database" idea, never had anything to do with that programmaticly and wondering if that is something way beyond me(not even knowing what the letters SQL stand for) or "just a piece of cake".
thanks for all replys