 | SignalGetEntryPrice Method |
Returns entry price.
Returns current Bid price if Calculate == SignalCalculate.OnEachTick and direction == SignalDirection.Long.
Returns current Ask price if Calculate == SignalCalculate.OnEachTick and direction == SignalDirection.Short.
Returns bar close price if Calculate == SignalCalculate.OnBarClose.
Namespace:
MZpack.NT8.Algo
Assembly:
MZpack.NT8.Pro (in MZpack.NT8.Pro.dll) Version: 3.18.1.0 (3.18.1.0)
Syntaxprotected virtual double GetEntryPrice(
Object args,
SignalDirection direction
)
Parameters
- args
- Type: SystemObject
Context arguments of type MarketDataEventArgs or MarketDepthEventArgs. - direction
- Type: MZpack.NT8.AlgoSignalDirection
Direction of the signal.
Return Value
Type:
DoubleEntry price.
See Also