Add On

View as Markdown

Custom Add Ons can be used to extend NinjaTrader’s functionality. The methods and properties covered in this section are unique to custom Add On development.

For more information on the Add On development process please see this article.

NameDescription
NinjaTrader ControlsThis section contains controls that are native NinjaTrader controls.
AccountThe Account class can be used to subscribe to account related events as well as accessing account related information.
BarsRequestBarsRequest can be used to request Bars data and subscribe to real-time Bars data events.
ConnectionThe Connection class can be used to monitor connection related events as well as accessing connection related information.
IInstrumentProvider InterfaceWhen creating your NTTabPage, if you wish to use the instrument link, be sure to implement the IInstrumentProvider interface.
IIntervalProvider InterfaceWhen creating your NTTabPage, if you wish to use the interval link, be sure to implement the IIntervalProvider interface.
INTTabFactory InterfaceIf you wish to have tab page functionality like adding, removing, moving, duplicating tabs you must create a class which implements the INTTabFactory interface.
IWorkspacePersistence InterfaceWhen creating your NTWindow, be sure to implement the IWorkspacePersistence interface as well for the ability to save and restore your window with NinjaTrader workspaces.
NTTabPage ClassThis is where the actual content for tabs inside the custom add on NTWindow can be defined.
Alert and Debug ConceptsIn most scenarios you can use the NinjaScript provided methods for triggering alerts and debugging functionality. However, when building your own custom objects, you may find yourself wanting to use this functionality outside the NinjaScript scope.
AtmStrategyAtmStrategy contains properties and methods used to manage ATM Strategies.
ControlCenterControlCenter is a XAML-defined class containing the layout and properties of the Control Center window.
FundamentalDataFundamentalData is used to access fundamental snapshot data and for subscribing to fundamental data events.
MarketDataMarketData can be used to access snapshot market data and for subscribing to market data events.
MarketDepthMarketDepth can be used to access snapshot market depth and for subscribing to market depth events.
NewsItemsNewsItems can be used to store news articles.
NewsSubscriptionNewsSubscription can be used for subscribing to News events.
NTMenuItemNTMenuItem is used to create new menu entries.
NTWindowThe NTWindow class defines parent windows for custom window creation. Instances of NTWindow act as containers for instances of NTTabPage, in which UI elements and their related logic are contained.
NumericTextBoxNumericTextBox provides functionality for numeric text boxes to capture user input.
OnWindowCreated()This method is called whenever a new NTWindow is created.
OnWindowDestroyed()This method is called whenever a new NTWindow is destroyed.
OnWindowRestored()This method is used to recall any custom XElement data from the workspace by referencing a window.
OnWindowSaved()This method is used to save any custom XElement data associated with your window.
[StartAtmStrategy()(startatmstrategy)StartAtmStrategy can be used to submit entry orders with ATM strategies.
StrategyBaseStrategyBase contains properties and methods for managing a Strategy object, and is the base class from which AtmStrategy derives.
PropagateInstrumentChange()In an NTWindow, PropagateInstrumentChange() sends an Instrument to other windows with the same Instrument Linking color configured.
PropagateIntervalChange()In an NTWindow, PropagateIntervalChange() sends an interval to other windows with the same Interval Linking color configured.
TabControlThe TabControl class provides functionality for working with NTTabPage objects within an NTWindow.
TabControlManagerThe TabControlManager class can be used to set or check several properties of a TabControl object.