Skip to content

PendingOrder.Comment

property · PendingOrder · cAlgo.API

DesktopCLICloud

User assigned Order Comment

Definition

string Comment {get;}
pendingOrder.Comment: str

Returns string

Examples

var result = PlaceLimitOrder(TradeType.Buy, SymbolName, 10000, Symbol.Bid - 20 * Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative, null, "Pullback entry");
if (result.IsSuccessful)
    Print("Order comment: {0}", result.PendingOrder.Comment);
result = api.PlaceLimitOrder(TradeType.Buy, api.SymbolName, 10000, api.Symbol.Bid - 20 * api.Symbol.PipSize, "myLabel", 20, 40, ProtectionType.Relative, None, "Pullback entry")
if result.IsSuccessful:
    api.Print(f"Order comment: {result.PendingOrder.Comment}")