Skip to content

MT4Account class

public class MT4Account

Public Members

name description
MT4Account(…) Initializes a new instance of the MT4Account class using credentials.
BaseChartSymbol { get; }
ConnectTimeoutSeconds { get; set; }
Host { get; } Gets the MT4 server host.
Id { get; } Gets the unique identifier for the account instance.
Password { get; } Gets the password for the user account.
Port { get; } Gets the the MT4 server port.
ServerName { get; } Gets the the MT4 server port.
User { get; } Gets the MT4 user account number.
readonly AccountClient Gets the gRPC client for account helper operations.
readonly ConnectionClient Gets the gRPC client for connection operations.
readonly GrpcChannel Gets the gRPC channel used for communication.
readonly GrpcServer Gets the gRPC server address used to connect.
readonly MarketInfoClient Gets the gRPC client for market information queries.
readonly SubscriptionClient Gets the gRPC client for subscription services.
readonly TradeClient Gets the gRPC client for trading helper operations.
AccountSummary(…) Synchronously retrieves summary information about the currently connected MT4 trading account.
AccountSummaryAsync(…) Asynchronously retrieves summary information about the currently connected MT4 trading account.
ConnectByHostPort(…) Synchronously connects to the MT4 terminal.
ConnectByHostPortAsync(…) Connects to the MT4 terminal using credentials provided in the constructor.
ConnectByServerName(…) Synchronously connects to the MT4 terminal.
ConnectByServerNameAsync(…) Connects to the MT4 terminal using credentials provided in the constructor.
OnOpenedOrdersProfitAsync(…) Subscribes to real-time profit updates for open orders.
OnOpenedOrdersTicketsAsync(…) Subscribes to updates of position and pending order ticket IDs.
OnSymbolTickAsync(…) Subscribes to real-time tick data for specified symbols.
OnTradeAsync(…) Subscribes to real-time updates for open trade operations (orders, positions, history).
OpenedOrders(…) Synchronously retrieves a list of opened orders.
OpenedOrdersAsync(…) Asynchronously retrieves a list of opened orders for the connected account.
OpenedOrdersTickets(…) Synchronously retrieves the ticket IDs of opened orders.
OpenedOrdersTicketsAsync(…) Asynchronously retrieves the ticket IDs of opened orders.
OrderCloseBy(…) Synchronously closes a market order using an opposite market order.
OrderCloseByAsync(…) Closes a market order by using another opposite market order.
OrderCloseDelete(…) Synchronously closes a market order or deletes a pending order.
OrderCloseDeleteAsync(…) Closes a market order or deletes a pending order.
OrderModify(…) Synchronously modifies an existing order.
OrderModifyAsync(…) Modifies an existing order (price, SL, TP, expiration).
OrderSend(…) Synchronously sends a market or pending order.
OrderSendAsync(…) Sends a new market or pending order.
OrdersHistory(…) Synchronously retrieves paginated historical orders.
OrdersHistoryAsync(…) Asynchronously retrieves paginated historical orders based on filter options.
Quote(…) Synchronously retrieves the latest quote for a single symbol.
QuoteAsync(…) Asynchronously retrieves the latest quote for a single symbol.
QuoteHistory(…) Synchronously retrieves historical quote data for a symbol within a time range.
QuoteHistoryAsync(…) Asynchronously retrieves historical quote data for a symbol within a time range.
QuoteMany(…) Synchronously retrieves quotes for multiple symbols.
QuoteManyAsync(…) Asynchronously retrieves quotes for multiple symbols.
SymbolParamsMany(…) Synchronously retrieves trading symbol parameters.
SymbolParamsManyAsync(…) Asynchronously retrieves trading symbol parameters for all or a specific symbol.
Symbols(…) Synchronously retrieves all available symbol names and indices.
SymbolsAsync(…) Asynchronously retrieves all available symbol names and their indices.
TickValueWithSize(…) Synchronously retrieves tick value and size details.
TickValueWithSizeAsync(…) Asynchronously calculates tick value, size, and contract size for specified symbols.

See Also