I need access to past data - Ask & Bid data

To add comments, please log in or register
Ehsan Tavakoli
161
Ehsan Tavakoli  
Hi . I need access to past data -  Ask & Bid data 

I know "CopyTick Function" do copy ask data &... in array. but this way have a problem 

Problem 1 - limit 2000 tick
Problem 2 - This function just work in Market hours


But I know all data more than 2000 tick & any time unlimited exist on my hard drive

For test when I use "comment function"  &  "MqlTick structure" & disconnect the internet & run strategy tester I can show ask data tick by tick on chart. so this data exist on my hard drive.

but i dont know how copy past data to array for use.

For example I want draw line with plot in indicator by ask value from 10 month ago until today

How I can copy ask data from 10 month ago until today in to an array?

Thanks.


Ehsan Tavakoli
161
Ehsan Tavakoli  
Some body help please :)
quebralim
2535
quebralim  
I believe MT5 only has limited space as far as ticks go, unlike bars.

I'd suggest you use the info contained in bars instead.
Alain Verleyen
38024
Alain Verleyen  
Ehsan Tavakoli:
Hi . I need access to past data -  Ask & Bid data 

I know "CopyTick Function" do copy ask data &... in array. but this way have a problem 

Problem 1 - limit 2000 tick
Problem 2 - This function just work in Market hours


But I know all data more than 2000 tick & any time unlimited exist on my hard drive

For test when I use "comment function"  &  "MqlTick structure" & disconnect the internet & run strategy tester I can show ask data tick by tick on chart. so this data exist on my hard drive.

No, ticks are not saved on your hard drive. Strategy Tester ticks are calculated history data, which is only OHLC prices.


but i dont know how copy past data to array for use.

For example I want draw line with plot in indicator by ask value from 10 month ago until today

How I can copy ask data from 10 month ago until today in to an array?

Thanks.


You need to save the ticks yourself if you want historical ticks.
To add comments, please log in or register