TradeResult


Summary

The result of a trade operation

Syntax

public class TradeResult : Object

Members

NameTypeSummary
Error PropertyError code of un unsuccessful trade
IsSuccessful PropertyTrue if the trade is successful, false if there is an error
PendingOrder PropertyThe resulting pending order of a trade request
Position PropertyThe resulting position of a trade request
ToString MethodThe description of a trade result
TradeResult Method

Example 1

TradeResult result = ExecuteMarketOrder(TradeType.Sell, Symbol, 20000);
if (result.IsSuccessful)
    Print("Sell at {0}", result.Position.EntryPrice);