Weekly/Monthly is not supported in the MT4 tester.
Testing Features and Limits in MetaTrader 4 - MQL4 Articles
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - MQL4 programming forum - Page 3 #26.4 (2019)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
retun the atr1 And atr2 Value is 0 ;
why? int weekly period, i can read the K-line,so ,I Have data