Gets the price at which the position will hit a stop loss or profit target

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

Syntax

C#
public double GetTargetPrice(
	double amount,
	TargetPriceType targetType,
	TradeType tradeType
)
Visual Basic
Public Function GetTargetPrice ( 
	amount As Double,
	targetType As TargetPriceType,
	tradeType As TradeType
) As Double
Visual C++
public:
double GetTargetPrice(
	double amount, 
	TargetPriceType targetType, 
	TradeType tradeType
)
F#
member GetTargetPrice : 
        amount : float * 
        targetType : TargetPriceType * 
        tradeType : TradeType -> float 

Parameters

amount
Type: System..::..Double
The amount of the profit target or stop loss. How this is interpreted depends on the targetType parameter.
targetType
Type: RightEdge.Common..::..TargetPriceType
The type of profit target or stop loss.
tradeType
Type: RightEdge.Common..::..TradeType
The trade type, which should be either ProfitTarget or StopLoss.

Return Value

Type: Double
The price at which the position will hit the profit target or stop loss.

See Also