![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'm trying to implement a simple function that send order at the market price and fix the stop loss from an absolute "bet value" (ie an ammount of money in the account currency).
I don't understand why it doesn't work with USDJPY but it seems to work with other symbols like USDCHF, EURUSD, GPBUSD...
With USDJPY, GetLastError() gives me an error 130
Here is my code:
Any help will be grandly appreciated.