Scripts: Export Indicator's Values v1

 

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

Export Indicator's Values

 
Interesting solution! Thanks
 
Vladon:
Interesting solution! Thank you
You are welcome
 
is there no such script for MT4?
 
You have written PeriodToStr(Period(),sPeriod); Now you can do without it, see EnumToString()
 
Rosh:
You have written the PeriodToStr(Period(),sPeriod) function; Now you can do without it, look at EnumToString()

Thanks, will do that in V2
 
in-yan:
is there no such script for MT4?

https://www.mql5.com/en/code/7716
 
This is a good and simple sample. Think you.
 

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 ?

 
The output file is in wrong format / corrupted. And the script is designed exclusively for RSI indicator, but you can use it as a template.