Click or drag to resize

Signal Methods

The Signal type exposes the following members.

Methods
  NameDescription
Public methodAddChild
Throws DecisionTreeInvalidStructureException exception.
(Overrides NodeAddChild(Node).)
Protected methodGetBestEntryPrice
Protected methodGetCurrentBarAgo
Returns 'bars ago' value for Ninja data series for the current bar to use in OnCalculate().
Protected methodGetEntryPrice
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.
Protected methodGetLegendText (Overrides NodeGetLegendText.)
Public methodGetLogDescription (Overrides NodeGetLogDescription.)
Public methodCode exampleOnCalculate(MarketDataEventArgs, Int32, SignalDirection)
Override in inherited class to implement calculation (validation) of signals based on Level 1 market data.
(Overrides NodeOnCalculate(MarketDataEventArgs, Int32, SignalDirection).)
Public methodOnCalculate(MarketDepthEventArgs, Int32, SignalDirection)
Override in inherited class to implement calculation (validation) of signals based on Level 2 market data.
(Overrides NodeOnCalculate(MarketDepthEventArgs, Int32, SignalDirection).)
Protected methodCode exampleReset
Override to hide plots of indicators used in the signal if required.
(Overrides NodeReset(Boolean).)
Public methodToLegendView (Overrides NodeToLegendView(DashboardLegendView, DashboardLegendViewItem, Int32).)
Public methodToString
Default textual presentation of the signal.
(Overrides ObjectToString.)
Public methodTryReset (Overrides NodeTryReset(Boolean, Boolean).)
Top
See Also