I have a script that writes the values of technical indicators per candle, but I do not know how to get the script to run on a specified date range. If I attach the script to a chart it counts backwards the number of candles from the current date which is a limitation because I want to get the data as far back as I can for even a one minute chart. I have ran an EA for 2001-2002 and attached the script and yet it still counted back from the current date. I have also tried setting the 'max bars in chart' parameter to unlimited, but it seems to not work with a million or more candles
![Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Client Terminal Properties Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Client Terminal Properties](/i/community/logo_mql5_small.png)
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Client Terminal Properties
- www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Client Terminal Properties - Documentation on MQL5
- MetaTrader Market - the largest store of trading applications
- Charts in MetaTrader 5 trading platform for Forex and stocks
- Download MetaTrader 5 build 1730 with new trader features
If your 'script' doesn't work, you have to fix it, not ?
EDIT: Is your question about mql5 or mql4 ?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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