Spy_Lord:
Hi,
When I compile my code below, I get the error: 'type' - some operator expected and also 'ORDER_TYPE_SELL' - expression has no effect. It only happens for my 'else' bit which is trying to execute a market order. My limit order works fine and does what I want.
(note: I define stuff like sl, tp, deviation, symbol earlier in the code)
Thanks for the help!
request.price = SymbolInfoDouble(Symbol(),SYMBOL_BID);
Wahoo:
That simple! Thanks very much ;)
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,
When I compile my code below, I get the error: 'type' - some operator expected and also 'ORDER_TYPE_SELL' - expression has no effect. It only happens for my 'else' bit which is trying to execute a market order. My limit order works fine and does what I want.
(note: I define stuff like sl, tp, deviation, symbol earlier in the code)
Thanks for the help!