Forum

Freakish no enough money error

Hi all, I've backtested my EA without any problems for nearly a week now. However, after 1 day of live trading (24th december), I tried backtsting the EA again with the exact same code and parameters, same symbol and data, and the same starting balance in the expert properties ($1000). Infact, same

How to set variables by currency symbol value - what's wrong with this code?

Hi all, (I'm a newbie). I'm trying to set some variable values according to the currency pair being traded at the moment, using the code below. But when I try to compile it, I get the error "EURUSD - more than 1 symbol". Please what is wrong with my code? Here it is: switch ( Symbol ()) { case '