void SELL() { MqlTradeRequest myrequestSELL; MqlTradeResult myresultSELL; ZeroMemory(TraderequestSELL); TraderequestSELL.action = TRADE_ACTION_DEAL; TraderequestSELL.type = ORDER_TYPE_SELL; TraderequestSELL.symbol = _Symbol; TraderequestSELL.volume = 0.01; TraderequestSELL.type_filling = ORDER_FILLING_FOK; TraderequestSELL.price = SymbolInfoDouble(_Symbol,SYMBOL_BID); TraderequestSELL.tp = 0; TraderequestSELL.deviation =50; { OrderSend(TraderequestSELL,myresultSELL); } }
Here is the code for the SELL Order
Try with an OrderCheck, and what are the logs saying?
What are the symbol specifications saying? Is shorting this symbol possible?
![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
Here is the code, this one work and the Buy order is launched.
However, when i wan't to place a SELL Order, it won"t launch.
How can i fix it?