Expression has no effect compilation error
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 ;)
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!