Forum

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

Expression has no effect compilation error

Hi, When I compile my code below, I get the error: 'type' - some operator expected and also ' ORDER_TYPE_SELL ' - expression has no effect. It only happens for my 'else' bit which is trying to execute a market order. My limit order works fine and does what I want. (note: I define stuff like sl, tp