Developing Add Ons
<< Click to Display Table of Contents >> Developing Add Ons |
Add Ons are incredibly powerful NinjaScript objects that let you create unprecedented tools which are seamlessly integrated (visually and functionally) into NinjaTrader. Experienced programmers can leverage the information available through the framework to create exciting new windows and utilities that can give users an incredible edge over the markets.
The process to make an Add On is fairly simple once the structure is understood. A few questions should be answered to determine how to build your Add On:
1.Where should the entry point for the Add On be? E.g. Should it be launched from the Control Center menus? Should it be launched from a Chart?
2.Should the Add On leverage the tab functionality available in NinjaTrader?
3.Should the Add On leverage the window linking functionality available in NinjaTrader?
4.Should the Add On be persisted in NinjaTrader workspaces?
Once the functionality of your Add On is determined you can use the following building blocks to create your Add On:
This is where you create the entry point for the Add On. |
|
This is where you define the parent window container for your Add On. Tabs would reside within this parent window should you choose. This is also where workspace persistence would be created. |
|
This is where you define the content of each tab that resides inside NTWindow. This is also where you create the window linking functionality. |
|
Class implementing the INTTabFactory interface |
This is necessary to ensure proper tab functionality like adding, removing, moving tabs around in your NTWindow. |
The general flow goes from AddOnBase > NTWindow > INTTabFactory > NTTabPage.
AddOnBase determines the user entry point and then creates the event handler to create the NTWindow. NTWindow calls the tab factory which then brings in the NTTabPage content in the form of tabs into NTWindow.