SuperDOM Column

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference >

SuperDOM Column

Previous page Return to chapter overview Next page

Custom SuperDOM Columns can be used to add additional functionality to the SuperDOM window. The methods and properties covered in this section are unique to custom SuperDOM column development.

 

Tip:  The system SuperDOM Columns which ship with NinjaTrader are open source and you can review their implementation from the NinjaScript Editor SuperDOMColumn folder, or by using the text editor of your choice by reviewing the source code located in Documents\NinjaTrader 8\bin\Custom\SuperDomColumns

 

 

In this section

MarketDepth

Provides Level 2 information for a SuperDOMColumn.

OnMarketData()

Called and guaranteed to be in the correct sequence for every change in level one market data for the underlying instrument. The OnMarketData() method updates can include but is not limited to the bid, ask, last price and volume.

OnOrderUpdate()

Called every time an order changes state. An order will change state when a change in order quantity, price or state (e.g. working to filled) occurs.

OnPositionUpdate()

Called every time a position changes state.

OnPropertyChanged()

This method should be used any time you wish to repaint the column instead of calling OnRender() directly.

OnRender()

Used to draw custom content to the SuperDOM Column, such as a Grid.

OnRestoreValues()

Called when the column is restored (e.g. from a workspace).