![]() | Signal Methods |
The Signal type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddChild |
Throws DecisionTreeInvalidStructureException exception.
(Overrides NodeAddChild(Node).) |
![]() | GetBestEntryPrice | |
![]() | GetCurrentBarAgo |
Returns 'bars ago' value for Ninja data series for the current bar to use in OnCalculate().
|
![]() | GetEntryPrice |
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.
|
![]() | GetLegendText | (Overrides NodeGetLegendText.) |
![]() | GetLogDescription | (Overrides NodeGetLogDescription.) |
![]() ![]() | OnCalculate(MarketDataEventArgs, Int32, SignalDirection) |
Override in inherited class to implement calculation (validation) of signals based on Level 1 market data.
(Overrides NodeOnCalculate(MarketDataEventArgs, Int32, SignalDirection).) |
![]() | OnCalculate(MarketDepthEventArgs, Int32, SignalDirection) |
Override in inherited class to implement calculation (validation) of signals based on Level 2 market data.
(Overrides NodeOnCalculate(MarketDepthEventArgs, Int32, SignalDirection).) |
![]() ![]() | Reset |
Override to hide plots of indicators used in the signal if required.
(Overrides NodeReset(Boolean).) |
![]() | ToLegendView | (Overrides NodeToLegendView(DashboardLegendView, DashboardLegendViewItem, Int32).) |
![]() | ToString |
Default textual presentation of the signal.
(Overrides ObjectToString.) |
![]() | TryReset | (Overrides NodeTryReset(Boolean, Boolean).) |