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
Public Sub SetTrailingStop ( 
	PosID As String,
	trailingStop As Double,
	trailingStopType As TargetPriceType
)
Visual C++
public:
void SetTrailingStop(
	String^ PosID, 
	double trailingStop, 
	TargetPriceType trailingStopType
)
F#
member SetTrailingStop : 
        PosID : string * 
        trailingStop : float * 
        trailingStopType : TargetPriceType -> unit 

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 RelativeRatio, the trailing stop is represented as a decimal. A 5% trailing stop would be specified as 0.05.

See Also