https://ninjatrader.com/support/help...vel_ii_dat.htm
The following statement is used:
for (int idx = 0; idx < askRows.Count; idx++)
Print("Ask Price=" + askRows[idx].Price + " Volume=" + askRows[idx].Volume + " Position=" + idx);
According to my understanding "askRows.Count" represents the market depth on the ask side of the limit order book provided by the data feed, e.g. Rithmic.
I further understand, that idX = 0 represents the best ask price and higher numbers represent the ask prices in the limit orderbook further away from best ask.
Is that understanding correct ?
1st Question:
Is it possible to limit this depth, so that askRows.Count only represents a number predefined by myself (similar to setting # of market depth levels in Super Dom Properties).
2nd Question:
If I change the code e.g. to: for (int idx = 0; idx < 20; idx++), i.e. the intention is to limit the output to 20 levels, I get an error message and script will not be compiled.
Can anybody explain why ?
3rd Question:
Is there a way to access data available in the SuperDom from a script that is used on the chart, i.e. not within Super DOM.
Example: Can I process the best bid/ask value in super dom and create e.g. an indicator which uses this data for e.g. an indicator ?
4th Question:
Is there any help source and/or training available, where all the classes usable in ninja script are explained, i.e. statements like askRows.Count etc. ?
5th Question:
As far as I can see Depth Chart does not work properly, but it is also unknown which depth is used and if the depth shown here can be limited somehow.
I miss a feature under e.g. Instruments where such a setting can be done.
Comment