mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-12 18:28:07 +00:00
MtApi5: initialize MqlTradeRequest's fields Symbol and Comment with default values
This commit is contained in:
@@ -7,7 +7,7 @@ namespace MtApi5
|
|||||||
public ENUM_TRADE_REQUEST_ACTIONS Action { get; set; } // Trade operation type
|
public ENUM_TRADE_REQUEST_ACTIONS Action { get; set; } // Trade operation type
|
||||||
public ulong Magic { get; set; } // Expert Advisor ID (magic number)
|
public ulong Magic { get; set; } // Expert Advisor ID (magic number)
|
||||||
public ulong Order { get; set; } // Order ticket
|
public ulong Order { get; set; } // Order ticket
|
||||||
public string? Symbol { get; set; } // Trade symbol
|
public string Symbol { get; set; } = string.Empty; // Trade symbol
|
||||||
public double Volume { get; set; } // Requested volume for a deal in lots
|
public double Volume { get; set; } // Requested volume for a deal in lots
|
||||||
public double Price { get; set; } // Price
|
public double Price { get; set; } // Price
|
||||||
public double Stoplimit { get; set; } // StopLimit level of the order
|
public double Stoplimit { get; set; } // StopLimit level of the order
|
||||||
@@ -25,7 +25,7 @@ namespace MtApi5
|
|||||||
set { MtExpiration = Mt5TimeConverter.ConvertToMtTime(value); }
|
set { MtExpiration = Mt5TimeConverter.ConvertToMtTime(value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string? Comment { get; set; } // Order comment
|
public string Comment { get; set; } = string.Empty; // Order comment
|
||||||
public ulong Position { get; set; } // Position ticket
|
public ulong Position { get; set; } // Position ticket
|
||||||
public ulong PositionBy { get; set; } // The ticket of an opposite position
|
public ulong PositionBy { get; set; } // The ticket of an opposite position
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user