Sets a stop loss for the position with the specified ID.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public void SetStopLoss(
	string PosID,
	double target,
	TargetPriceType targetType
)
Visual Basic (Declaration)
Public Sub SetStopLoss ( _
	PosID As String, _
	target As Double, _
	targetType As TargetPriceType _
)
Visual C++
public:
void SetStopLoss(
	String^ PosID, 
	double target, 
	TargetPriceType targetType
)

Parameters

PosID
Type: System..::.String
string containing the unique ID for this Position
target
Type: System..::.Double
The stop loss value.
targetType
Type: RightEdge.Common..::.TargetPriceType
The stop loss type.

See Also