I need access to past data - Ask & Bid data

 
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.


 
Some body help please :)
 
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.
 
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.
Reason: