handling real time data
2 views (last 30 days)
Show older comments
Hi everyone, for the past few days I have been working on a trading system. The problem is the I cant seem to find a way to handle prices that come in once every 5 mins. I have developed couple of indicators that take in prices and generate the most probable outcome. Everything worked fine when I had the data stored. How do i work with data which is constantly updated every few minutes. The indicators need to store their past decisions, upon which they make their present decisions. Everytime I update my data, the system has to work all over again on the previous data plus the current data. Every run takes about a minute. Is there a way to some how pause the system ...to constantly receive data and output the outcome and then increase the array size and wait till the new batch of data arrives????
PS The source of data is metatrader dde server. PPS I have never worked with constantly updating data
0 Comments
Accepted Answer
Walter Roberson
on 2 Jan 2014
You would probably be best off using a timer()
4 Comments
Walter Roberson
on 2 Jan 2014
What mechanisms exist to probe whether there is data available ?
If you were to fire a timer every 2 minutes and do the probe, then you will not miss any and you will be finished the processing before the next timer fires.
More Answers (0)
See Also
Categories
Find more on Transaction Cost Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!