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 . . .

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
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