Position CLASS

TakeProfitOrder PROPERTY (Order)
Provide access to Take Profit order of the current order or null if it isn't exist. SYNTAX public Order TakeProfitOrder { get; } EXAMPLE ...
Sat, May 5, 2018 at 4:22 PM
Close () METHOD (Return: bool)
Close position. SYNTAX public bool Close () RETURN bool true if operation is successful
Sat, May 5, 2018 at 4:36 PM
Close (double amount) METHOD (Return: bool)
Close part of the position. SYNTAX public bool Close (double amount) PARAMETERS amount — double amount to be closed RETURN bool true...
Sat, May 5, 2018 at 4:37 PM
Close (double amount, double price, int marketRange) METHOD (Return: bool)
Close position with price change control SYNTAX public bool Close (double amount,double price,int marketRange) PARAMETERS amount — double amo...
Sat, May 5, 2018 at 4:45 PM
CloseAsync (Action<bool> callback) METHOD (Return: bool)
Close position asynchronously. SYNTAX public bool CloseAsync (Action<bool> callback) PARAMETERS callback — Action The callback function...
Sat, May 5, 2018 at 4:47 PM
CloseAsync (double amount, Action<bool> callback) METHOD (Return: bool)
Close part of the position asynchronously. SYNTAX public bool CloseAsync (double amount,Action<bool> callback) PARAMETERS amount — doub...
Sat, May 5, 2018 at 4:51 PM
CloseAsync (double amount, double price, int marketRange, Action<bool> callback) METHOD (Return: bool)
Close position with price change control asynchronously. SYNTAX public bool CloseAsync (double amount,double price,int marketRange,Action<bool>...
Sat, May 5, 2018 at 4:53 PM
GetCommission (Currency currency) METHOD (Return: double)
Commission amount for the position. SYNTAX public double GetCommission (Currency currency) PARAMETERS currency — Currency currency for calc...
Sat, May 5, 2018 at 4:55 PM
GetExposition (Currency currency) METHOD (Return: double)
Returns amount of counter instrument part on which your position is open. For open position recalculating occurs after every new quote. If position close - ...
Sat, May 5, 2018 at 4:58 PM
GetProfitExp2 () METHOD (Return: double)
Profit/loss calculated based on the current broker's price in counter currency. SYNTAX public double GetProfitExp2 () RETURN double Gros...
Sat, May 5, 2018 at 4:59 PM