Hello Everyone,
I'm trying to store tickdata and not sure what would be the most effective way to store this data. The Tick Data I want to store will be up to 1 minute of data and based on this I would like to do some calculations therefore I will require to access that data at any millisecond time interval.
But I'm not sure if I should store it in an
1) Array
2) File
3) Database
4) Better method i'm not aware of?
Any advice in the direction I should head would be highly appreciated.
Thank you in advance all.
Audai,
Depends... on the size of tick data, why you're storing it and how frequently you need to access this data.
Thank you Raymond.
Honestly if I'm storing tick data in milliseconds I assume its over 60,000 chars and I know that the array can only hold 40,000 chars max.
So there is an option of creating multiple arrays, as receiving data will be faster from RAM rather than file or DB.
The short of it I'm storing data in milliseconds, or the closest I can get to storing in milliseconds, and requesting them per tick.
Wouldn't harm if you tried the array with milsec fields and watch out for Ticks that get lost in high frequency hours.
Hi Pennyhunter,
That was one of my concerns, if I set the timer to 1 milisec that tickdata can be lost.
But I believe array is the fastest option there.
My only concern is that arrays can only hold 40,000 chars.
Hi Pennyhunter,
That was one of my concerns, if I set the timer to 1 milisec that tickdata can be lost.
But I believe array is the fastest option there.
My only concern is that arrays can only hold 40,000 chars.
Dynamic arrays can have 2147483647 elements.
![Documentation on MQL5: Array Functions / ArrayResize Documentation on MQL5: Array Functions / ArrayResize](https://c.mql5.com/36/52/documentation-on-mql5-array-functions.png)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Everyone,
I'm trying to store tickdata and not sure what would be the most effective way to store this data. The Tick Data I want to store will be up to 1 minute of data and based on this I would like to do some calculations therefore I will require to access that data at any millisecond time interval.
But I'm not sure if I should store it in an
1) Array
2) File
3) Database
4) Better method i'm not aware of?
Any advice in the direction I should head would be highly appreciated.
Thank you in advance all.
Audai,