SetTakeProfitAsync (double tpPrice, Action<bool> callback)
method
Sets a new (modifies existed) take-profit order asynchronously
Syntax
public bool SetTakeProfitAsync (double tpPrice,Action<bool> callback)
Parameters
tpPrice — double
Price of the take-profit order.
callback — Action
Callback to be invoked at the end of the asynchronous opearation
Return
bool
Return true if take-profit order was sended, otherwise false.
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
Position methods
- Close ()
- Close (double amount)
- Close (double amount, double price, int marketRange)
- CloseAsync (Action<bool> callback)
- CloseAsync (double amount, Action<bool> callback)
- CloseAsync (double amount, double price, int marketRange, Action<bool> callback)
- GetCommission (Currency currency)
- GetExposition (Currency currency)
- GetProfitExp2 ()
- GetProfitGross (Currency currency)
- GetProfitNet (Currency currency)
- GetSwaps (Currency currency)
- GetUsedMargin (Currency currency)
- RemoveStopLoss ()
- RemoveStopLossAsync (Action<bool> callback)
- RemoveTakeProfit ()
- RemoveTakeProfitAsync (Action<bool> callback)
- Rollback ()
- SetStopLoss (double slPrice)
- SetStopLossAsync (double slPrice, Action<bool> callback)
- SetStopLossTrail (double slPrice)
- SetStopLossTrailAsync (double slPrice, Action<bool> callback)
- SetTakeProfit (double tpPrice)