Position CLASS

GetProfitGross (Currency currency) METHOD (Return: double)
Profit/loss (without swaps or commissions) all calculated based on the current broker's price. For open position it shows the profit/loss you would make...
Sat, May 5, 2018 at 5:00 PM
GetProfitNet (Currency currency) METHOD (Return: double)
Profit/loss calculated based on the current broker's price. For open position it shows the profit/loss you would make if you close the position at the c...
Sat, May 5, 2018 at 5:02 PM
GetUsedMargin (Currency currency) METHOD (Return: double)
Initial margin for opened position. SYNTAX public double GetUsedMargin (Currency currency) PARAMETERS currency — Currency currency for calc...
Sat, May 5, 2018 at 5:05 PM
RemoveStopLoss () METHOD (Return: bool)
Removes current stop-loss order SYNTAX public bool RemoveStopLoss () RETURN bool Return true if stop-loss order removed successfully, otherwi...
Sat, May 5, 2018 at 5:07 PM
RemoveStopLossAsync (Action<bool> callback) METHOD (Return: bool)
Removes current stop-loss order asynchronously SYNTAX public bool RemoveStopLossAsync (Action<bool> callback) PARAMETERS callback — Act...
Sat, May 5, 2018 at 5:10 PM
RemoveTakeProfit () METHOD (Return: bool)
Removes current take-profit order SYNTAX public bool RemoveTakeProfit () RETURN bool Return true if take-profit order removed successfully, o...
Sat, May 5, 2018 at 5:11 PM
RemoveTakeProfitAsync (Action<bool> callback) METHOD (Return: bool)
Removes current take-profit order asynchronously SYNTAX public bool RemoveTakeProfitAsync (Action<bool> callback) PARAMETERS callback —...
Sat, May 5, 2018 at 5:13 PM
Rollback () METHOD (Return: bool)
Rollback position. This operation is allowed only for accounts with MasterPosition function and SYNTAX public bool Rollback () RETURN bool R...
Sat, May 5, 2018 at 5:16 PM
SetStopLoss (double slPrice) METHOD (Return: bool)
Sets a new (modifies existed) stop-loss order SYNTAX public bool SetStopLoss (double slPrice) PARAMETERS slPrice — double Price of the stop-l...
Sat, May 5, 2018 at 5:18 PM
SetStopLossAsync (double slPrice, Action<bool> callback) METHOD (Return: bool)
Sets a new (modifies existed) stop-loss order asynchronously SYNTAX public bool SetStopLossAsync (double slPrice,Action<bool> callback) PA...
Sat, May 5, 2018 at 5:20 PM