Sets a trailing stop 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 SetTrailingStop(
	string PosID,
	double trailingStop,
	TargetPriceType trailingStopType
)
Visual Basic (Declaration)
Public Sub SetTrailingStop ( _
	PosID As String, _
	trailingStop As Double, _
	trailingStopType As TargetPriceType _
)
Visual C++
public:
void SetTrailingStop(
	String^ PosID, 
	double trailingStop, 
	TargetPriceType trailingStopType
)

Parameters

PosID
Type: System..::.String
string containing the unique ID for this Position
trailingStop
Type: System..::.Double
The value for the trailing stop
trailingStopType
Type: RightEdge.Common..::.TargetPriceType
The trailing stop type.

Remarks

If the trailing stop type is set to [!:TargetPriceType.Percentage], the trailing stop is represented as a decimal. A 5% trailing stop would be specified as 0.05.

See Also