I am working on a custom add-in, that loads a single instrument in a seperate tab instances. and have several questions? The logic behind the tab, goes like this, in each instance of the tab it monitors a folder path for tickets, that contain instructions to place buy/sell order. Also each instance writes a sperate file, that contain things, like a price, order status, market position that another program reads.
1. how many tabs am i able to load using ninja trader?
2. The more tabs i load the more un-stable it seems to run is there a limitation on how many tabs that we are able to load?
3. The bars during the course of when the program runs, are delayed for some instruments a bit, seen a bar come in as late as over 60 second(s) is there an expect time frame that i should expect to receive bars? Or is normal for bars to arrive minutes later at certain times during the day this happens?
4. Also during startup, i keep track of the connection state for each instrument, the times before each instrument is connected varies, if i request bars before the state is connected, sometime i get a bar, then after because it sent a request to get bars to early in the start-up process while it was still connecting, it stops sending bars all together what is your recommend solution to handle startup, what delay should i use, before i have the program request bars, and perform other startup task that my add-in needs?
5. The other day, i place a sell order with buy limit order for take and stop for a QTY of 2 using the said add-in, then sometime later, sent request to close the order using buy order, to close the position, on the board it said it was filled. On the order summary, it showed that the buy limit orders were filled too. Which was not what i was expecting, i was expecting the position to close, instead ended up with a position that was still open, and the quantity of 4. Doesn't happen all the time, but it did happen this time, and a few other times. Are the order guaranteed to fill right away or sometime later? Did notice in a past order, i keep track of orders using an internal ticket number.
6. how many instruments am i able to load and subscribe to at any given point in time using ninja trader custom add-in?
7. I have worked on other API before, most have rate limitations, do are there any such limitation when using ninja custom i should be aware of? also are there any documentation i can review?

Comment