How can I let MT5 client download history data from year 2002 before EA run

 
codeidea:
can you give me the guide?

Firstly you have to be sure your broker offers data from 2002.

Then you can use the CheckLoadHistory script from this page, or from the Codebase.