Interesting solution! Thank you
You have written the PeriodToStr(Period(),sPeriod) function; Now you can do without it, look at EnumToString()
is there no such script for MT4?
Hi,
Thank you for your work. Is it possible to modify this script to only allow the indicator values of the last bar complete to be exported while backtesting? For example, i am going through the history of EurUsd, i notice a specific bar that i want to record indicator values for. I run your script and it records down the date/time of bar and the indicator value of the last complete bar? Is that possible?
Can we also use more than 1 indicator? Or will this require multiple scripts?
Hi,
Thank you for the job. Unfortunately, when I run the script, no file is created. I updated the script to write in C:/temp/. When i run in debug I can see that the filename is correct and I don't get any error but there is no file.
Any clue ?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Export Indicator's Values v1:
After searching for such script, I decided to create mine, and decided to share it with the MQL5 community.
This script exports indicator's values to CSV File along with date and time (you can change the iCustom function parameters to change what indicator to export).
Author: NFTrader