Click or drag to resize

MZpackStrategyBase Class

Inheritance Hierarchy
SystemObject
  NinjaScript
    NinjaScriptBase
      StrategyBase
        StrategyRenderBase
          MZpack.NT8.AlgoMZpackStrategyBase
            More...

Namespace:  MZpack.NT8.Algo
Assembly:  MZpack.NT8.Pro (in MZpack.NT8.Pro.dll) Version: 3.18.1.0 (3.18.1.0)
Syntax
C#
public abstract class MZpackStrategyBase : StrategyRenderBase

The MZpackStrategyBase type exposes the following members.

Constructors
  NameDescription
Protected methodMZpackStrategyBase
Initializes a new instance of the MZpackStrategyBase class
Top
Properties
  NameDescription
Public propertyBuyMarkerBrush
Public propertyBuyMarkerBrushSerializable
Public propertyControlPanelShow
Public propertyControlPanelWidth
Public propertyDashboardAnyCellStroke
Public propertyDashboardGridShowLegend
Public propertyDashboardGridViewOffset
Public propertyDashboardGridViewPosition
Public propertyDashboardGridViewRowHeight
Public propertyDashboardLongCellStroke
Public propertyDashboardNoneCellStroke
Public propertyDashboardShortCellStroke
Public propertyDashboardSimpleFont
Public propertyEnableBacktesting
Public propertyEntryMarkup
Public propertyExitPatternValidatedAlertEnable
Public propertyExitPatternValidatedAlertSound
Public propertyLog_Entry
Public propertyLog_NotValidatedPatternOBC
Public propertyLog_Order
Public propertyLog_Position
Public propertyLog_Properties
Public propertyLog_ValidatedPattern
Public propertyLogLevel
Log level of the strategy as set from UI
Public propertyLogTarget
Public propertyLogTime
Public propertyCode exampleOnCreateAlgoStrategy
Assign delegate for creating MZpack Algo strategy object.
Public propertyCode exampleOnCreateIndicators
Assign delegate to create and return list of MZpack indicators.
Public propertyCode exampleOnEachTickHandler
The handler triggered on each tick. currentBarIdx is the index of the current bar.
Public propertyCode exampleOnMarketDepthHandler
The handler triggered on each market depth event.
Public propertyOperating
Operating mode of the strategy. Default is StrategyOperating.Auto.
Public propertyPatternValidatedAlertEnable
Public propertyPatternValidatedAlertSound
Public propertySellMarkerBrush
Public propertySellMarkerBrushSerializable
Public propertyShowPatterns
Shows patterns on the chart.
Public propertyShowPatternsDashboard
Public propertySignalValidatedAlertEnable
Public propertySignalValidatedAlertSound
Public propertyStrategy
Algo strategy instance. MZpack.NT8.Algo.Strategy is a class containing strategy logic/pattern, entries, positions, etc.
Public propertyCode exampleSync
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)
        {  ...  }
    }
}
Public propertySyncStateChanged
Public propertyWorkingStateHistorical
True if the strategy is working in Historical state. Default value is false.
Public propertyWorkingStateRealtime
True if the strategy is working in Real-time state. Default value is true.
Top
Methods
  NameDescription
Public methodCompare
Public methodControlPanel_AttachEventHandlers
Override to attach event handlers of chart controls for the strategy.
Public methodControlPanel_DetachEventHandlers
Override to detach event handlers of chart controls for the strategy.
Public methodCreateControlPanelElements
Override to create chart controls for the strategy.
Public methodDefaultAlert
Public methodHandleThrowExceptionAndTerminate
Logs, terminates the strategy, and trows specified exception in Ninja's trace file and Log tab.
Public methodLogException
Logs specified exception in Ninja's trace file and Log tab.
Protected methodOnConnectionStatusUpdate (Overrides NinjaScriptBase.OnConnectionStatusUpdate(ConnectionStatusEventArgs).)
Protected methodOnOrderUpdate (Overrides StrategyBase.OnOrderUpdate(Order, Double, Double, Int32, Int32, Double, OrderState, DateTime, ErrorCode, String).)
Public methodOnPanelRenderTargetChanged
Protected methodOnPositionUpdate(Object, PositionEventArgs)
Protected methodOnPositionUpdate(Position, Double, Int32, MarketPosition) (Overrides StrategyBase.OnPositionUpdate(Position, Double, Int32, MarketPosition).)
Public methodOnPropertyChanged
Protected methodOnRender (Overrides StrategyRenderBase.OnRender(ChartControl, ChartScale).)
Public methodOnRenderPanel
Public methodOnRenderTargetChanged
Ninja's OnRenderTargetChanged() overridden method.
(Overrides StrategyRenderBase.OnRenderTargetChanged.)
Protected methodOnStateChange (Overrides NinjaScriptBase.OnStateChange.)
Public methodPriceAddTick
Public methodPriceAddTicks
Public methodPriceDiffTicks
Public methodPriceSubtractTick
Protected methodPropertyChangedEventHandler
Public methodRoundToTickSize
Top
Events
  NameDescription
Public eventPropertyChanged
Top
Fields
  NameDescription
Public fieldStatic memberATTEMPTS
Numbers of attempts to enter position after canceling/rejecting order.
Public fieldStatic memberVersion
API version.
Top
See Also
Inheritance Hierarchy
SystemObject
  NinjaScript
    NinjaScriptBase
      StrategyBase
        StrategyRenderBase
          MZpack.NT8.AlgoMZpackStrategyBase
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesControlPanel
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesDataAccess_mzFootprint
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesDataAccess_mzVolumeDelta
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackAlgoStrategy0
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackAlgoStrategy1
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackAlgoStrategy2
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackCustomStrategy0
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackCustomStrategy1
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackCustomStrategy4
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackCustomStrategy6
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesMZpackTechnicalSample0
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesRiskManagement
            NinjaTrader.NinjaScript.Strategies.MZpackAPISamplesTradingTimes
            NinjaTrader.NinjaScript.Strategies.MZpackStrategiesAccumulationPullback
            NinjaTrader.NinjaScript.Strategies.MZpackStrategiesReversalA
            NinjaTrader.NinjaScript.Strategies.MZpackStrategiesRotation