Signal Class |
Namespace: MZpack.NT8.Algo
public class Signal : Node
The Signal type exposes the following members.
Name | Description | |
---|---|---|
Signal | Initializes a new instance of the Signal class | |
Signal(Strategy, MarketDataSource, SignalCalculate, Boolean) |
Initializes a new instance of the Signal class.
|
Name | Description | |
---|---|---|
Calculate |
When the signal is calculated.
| |
CalculatedTime |
Time when the signal/filter has been calculated (validated or not).
| |
ChartRange |
Bar/price range on the chart where the signal has been valdated.
| |
Description |
Textual description of validated signal.
| |
HasPrice |
True if the price of the signal will be used in the decision tree.
| |
IsReset |
True if the signal is re-calculated on relevant data event. Set it to False to keep the state of the signal after its validation.
Note, that all signals in the tree will be reset after validation of the whole pattern.
| |
MarketDataSource |
Type of market data processed by the signal.
| |
Name | ||
PartiallyVisibleMode |
Visibility of the signal in partially visible mode of the indicator.
| |
Strategy |
Parent strategy.
| |
Time |
Time when the signal has been validated.
|
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).) |