Join & EARN

FOREX ALGOS { }

ExecuteMarketOrder

A method of Robot that sends a market order to the server for immediate execution. The method takes parameters like TradeType (Buy/Sell), symbol, volume, and optional stop-loss/take-profit. For example, calling ExecuteMarketOrder(TradeType.Buy, SymbolName, 1000) will immediately open a buy position. The backtesting guide notes: “A market order is sent to the trading server when the ExecuteMarketOrder() method is called”.