Trade Operations
This section provides documentation for trading operations in Forex Tester Online. These methods allow you to manage orders, retrieve order information, and perform various trading operations within your strategies.
Order Information
GetOrderProfit: Gets the profit of the selected orderGetOrderProfitInPips: Gets the profit of the selected order in pipsGetOrderOpenTime: Gets the open time of the selected orderGetOrderCloseTime: Gets the close time of the selected orderGetOrderVolume: Gets the volume (lot size) of the selected orderGetOrderStopLoss: Gets the stop loss level of the selected orderGetOrderTakeProfit: Gets the take profit level of the selected orderGetOrderOpenPrice: Gets the open price of the selected orderGetOrderClosePrice: Gets the close price of the selected orderGetOrderSymbol: Gets the symbol of the selected orderGetOrderComment: Gets the comment of the selected orderGetOrderSwap: Gets the swap value of the selected orderGetOrderMagicNumber: Gets the magic number of the selected orderGetOrderType: Gets the type of the selected orderGetOrderTicket: Gets the ticket number of the selected orderGetOrderCommission: Gets the commission of the selected orderGetOrderDetails: Gets detailed information about a specific orderGetExtendedOrderDetails: Gets extended information about a specific orderPrintOrderDetails: Prints the details of the selected order to the console
Order Management
SelectOrder: Selects an order for further operationsIsOrderClosed: Checks if an order is closedGetHistoricalOrderCount: Gets the number of historical ordersGetActiveOrderCount: Gets the number of active ordersPlaceOrder: Places a new orderUpdateOrder: Updates an existing orderCancelOrder: Cancels a pending orderCloseOrder: Closes an open positionClosePartialPosition: Closes part of an open positionCloseOrderByOpposite: Closes an order with an opposite order
Last updated