Link to page:
/* Example of subscribing/unsubscribing to market depth from an Add On. The concept can be carried over
to any NinjaScript object you may be working on. */
public class MyAddOnTab : NTTabPage
{
private MarketDepth<MarketDepthRow> marketDepth;
public MyAddOnTab()
{
// Subscribe to market data. Snapshot data is provided right on subscription
marketDepth = new MarketDepth<MarketDepthRow>(value);
[COLOR=red]marketData[/COLOR].Update += OnMarketDepth;
}

Comment