highcloud:
What is the value of STOPLEVEL for this currency ?
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.
highcloud:
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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?