Tester deletes files (MQL5)

 

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. 

 
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

 

Thank you. I found that thread after posting this!

Reason: