MZpackStrategyBase Class |
Namespace: MZpack.NT8.Algo
public abstract class MZpackStrategyBase : StrategyRenderBase
The MZpackStrategyBase type exposes the following members.
Name | Description | |
---|---|---|
MZpackStrategyBase | Initializes a new instance of the MZpackStrategyBase class |
Name | Description | |
---|---|---|
BuyMarkerBrush | ||
BuyMarkerBrushSerializable | ||
ControlPanelShow | ||
ControlPanelWidth | ||
DashboardAnyCellStroke | ||
DashboardGridShowLegend | ||
DashboardGridViewOffset | ||
DashboardGridViewPosition | ||
DashboardGridViewRowHeight | ||
DashboardLongCellStroke | ||
DashboardNoneCellStroke | ||
DashboardShortCellStroke | ||
DashboardSimpleFont | ||
EnableBacktesting | ||
EntryMarkup | ||
ExitPatternValidatedAlertEnable | ||
ExitPatternValidatedAlertSound | ||
Log_Entry | ||
Log_NotValidatedPatternOBC | ||
Log_Order | ||
Log_Position | ||
Log_Properties | ||
Log_ValidatedPattern | ||
LogLevel |
Log level of the strategy as set from UI
| |
LogTarget | ||
LogTime | ||
OnCreateAlgoStrategy |
Assign delegate for creating MZpack Algo strategy object.
| |
OnCreateIndicators |
Assign delegate to create and return list of MZpack indicators.
| |
OnEachTickHandler |
The handler triggered on each tick.
currentBarIdx is the index of the current bar.
| |
OnMarketDepthHandler |
The handler triggered on each market depth event.
| |
Operating |
Operating mode of the strategy. Default is StrategyOperating.Auto.
| |
PatternValidatedAlertEnable | ||
PatternValidatedAlertSound | ||
SellMarkerBrush | ||
SellMarkerBrushSerializable | ||
ShowPatterns |
Shows patterns on the chart.
| |
ShowPatternsDashboard | ||
SignalValidatedAlertEnable | ||
SignalValidatedAlertSound | ||
Strategy |
Algo strategy instance. MZpack.NT8.Algo.Strategy is a class containing strategy logic/pattern, entries, positions, etc.
| |
Sync |
Sync object
Examples protected override void OnStateChange() { base.OnStateChange(); // Base OnStateChange() call is required lock (Sync) // Sync event handler { // Place strategy logic here if (State == State.SetDefaults) { ... } } } | |
SyncStateChanged | ||
WorkingStateHistorical |
True if the strategy is working in Historical state. Default value is false.
| |
WorkingStateRealtime |
True if the strategy is working in Real-time state. Default value is true.
|
Name | Description | |
---|---|---|
Compare | ||
ControlPanel_AttachEventHandlers |
Override to attach event handlers of chart controls for the strategy.
| |
ControlPanel_DetachEventHandlers |
Override to detach event handlers of chart controls for the strategy.
| |
CreateControlPanelElements |
Override to create chart controls for the strategy.
| |
DefaultAlert | ||
HandleThrowExceptionAndTerminate |
Logs, terminates the strategy, and trows specified exception in Ninja's trace file and Log tab.
| |
LogException |
Logs specified exception in Ninja's trace file and Log tab.
| |
OnConnectionStatusUpdate | (Overrides NinjaScriptBase.OnConnectionStatusUpdate(ConnectionStatusEventArgs).) | |
OnOrderUpdate | (Overrides StrategyBase.OnOrderUpdate(Order, Double, Double, Int32, Int32, Double, OrderState, DateTime, ErrorCode, String).) | |
OnPanelRenderTargetChanged | ||
OnPositionUpdate(Object, PositionEventArgs) | ||
OnPositionUpdate(Position, Double, Int32, MarketPosition) | (Overrides StrategyBase.OnPositionUpdate(Position, Double, Int32, MarketPosition).) | |
OnPropertyChanged | ||
OnRender | (Overrides StrategyRenderBase.OnRender(ChartControl, ChartScale).) | |
OnRenderPanel | ||
OnRenderTargetChanged |
Ninja's OnRenderTargetChanged() overridden method.
(Overrides StrategyRenderBase.OnRenderTargetChanged.) | |
OnStateChange | (Overrides NinjaScriptBase.OnStateChange.) | |
PriceAddTick | ||
PriceAddTicks | ||
PriceDiffTicks | ||
PriceSubtractTick | ||
PropertyChangedEventHandler | ||
RoundToTickSize |
Name | Description | |
---|---|---|
PropertyChanged |
Name | Description | |
---|---|---|
ATTEMPTS |
Numbers of attempts to enter position after canceling/rejecting order.
| |
Version |
API version.
|