Gets the price at which the position will hit a stop loss or profit target
Namespace:
RightEdge.CommonAssembly: 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 (Declaration) |
|---|
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 ) |
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.