Invalid Price help
Hi
I got a very well running EA on EURUSD with decent profits. But the thing is, as soon as i change to - say - USDJPY, i get a lot of [Invalid Price] errors.
Anybody got any idea why it wont work on other currencies, even though i programmed it for all currencies?
The Picture is from the strategy tester with USDJPY. StopLevel for USDJPY is 28 points. On EURUSD its 18 points.
The Picture is from the strategy tester with USDJPY. StopLevel for USDJPY is 28 points. On EURUSD its 18 points.
You are using
request.price = NormalizeDouble(Ask+20*_Point,_Digits);
when modifying your order so it's to close to market price (<28).
For the creation of the order maybe you can print the value of Ask and Stoplevel variables to check the values.
Hi
I got a very well running EA on EURUSD with decent profits. But the thing is, as soon as i change to - say - USDJPY, i get a lot of [Invalid Price] errors.
Anybody got any idea why it wont work on other currencies, even though i programmed it for all currencies?