Problem with market sell order

 

Hellow. When I try to enter a purchase order to market I have no problem, but when I try to enter a market order to sell does not do anything.

The code is the same for the 2 orders.
Why is this happening?


This is the code:

OrderSend(Symbol(),OP_BUY,apuesta,Ask,20,40,Green); // execute correctly

OrderSend(Symbol(),OP_SELL,apuesta,Bid,20,40,Green); // it does nothing




thanks

 

Stop loss and Takeprofit are price values not pip values . . . read the documentation, OrderSend()

Green is not a valid value for Takeprofit

Also, take notice of the return value from the OrderSend, if it fails you can then print the error to the log and find out what is happening . . .

Reason: