![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
Hey there.
Im about to create my own trading class but now i got stucked. It can be only a small error but im not able to find it.
when i call "openPosition" like that:
CTrade trader;
trader.openPosition(ORDER_TYPE_SELL,0.1,_Symbol);
This error appears:
2013.07.03 23:28:40 Trades '1485928': failed instant sell 1.40 AUDCAD at 0.95428 (deviation: 8992421) [Invalid request]
What am i doing wrong ?
Thanks in advance,
Greetings,
Distinctive