ReversePositionAsync


Summary

Modify Position in asynchronous execution mode

Syntax

public TradeOperation ReversePositionAsync(Position position, [optional] Action callback)
public TradeOperation ReversePositionAsync(Position position, double volume, [optional] Action callback)

Parameters

NameDescription

Example 1

var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
if (position != null)
{
    ReversePositionAsync(position, TradeType.Sell);
}