Download MetaTrader 5

Tester deletes files (MQL5)

To add comments, please log in or register
Spy_Lord
102
Spy_Lord 2014.04.08 21:37 

Hi,

 I am trying to backtest a strat which involves reading some external data from a CSV.

 I read in the documentation that FileOpen only works if I place the file in the MetaTrader 5\tester\\MQL5\Files directory, so I did this.

 However as soon as I run the backtest the file gets deleted and can no longer be read. Why does this happen and is there a solution?

 Thanks. 

Alain Verleyen
Moderator
31085
Alain Verleyen 2014.04.08 22:45  
Spy_Lord:

Hi,

 I am trying to backtest a strat which involves reading some external data from a CSV.

 I read in the documentation that FileOpen only works if I place the file in the MetaTrader 5\tester\\MQL5\Files directory, so I did this.

 However as soon as I run the backtest the file gets deleted and can no longer be read. Why does this happen and is there a solution?

 Thanks. 

You don't have to move the file.

See also All (not yet) about Strategy Tester, Optimization and Cloud

Spy_Lord
102
Spy_Lord 2014.04.08 22:56  

Thank you. I found that thread after posting this!

To add comments, please log in or register