yes, should be simple as long as Nest/NOW has it in RTD Feed. Verify that in excel. This should also give you some idea on code flow.
1) ninja_trader.cpp/h - Add functions for Bid ask - should be very simple here - just copy paste and also look at Ninja trader dll
interface for function Bid/Ask signature
2) ini - In ScripX, Add extra field for Bid/Ask. Parse this in Settings.cpp and setup extra fields.
3) then the main stuff is in worker.cpp/h.
Add fields to enum SCRIP_FIELDS.
Add fields in connect()
Add extra cases for processRTDData() and save state in ScripState
Finally setup bars in amibrokerPoller() and send to NT in pushToNT()
Hopefully, this covers it.
4) If interested - If you can keep code clean ( just similar to existing code ) and if you take some effort to setup git, then we can merge your changes after its stable.
I will also need to
learn how this works in git. The workflow is described
here.
Edit - There is one problem though - Currently we aggregate the data and only send it to AB/NT once a second. We can change this, but it will need some more work. Instead of aggregate, we can just make array of quotes and send them via tickmode. AB needs some extra work for tickmode to work.
But before that, question is - Is 1 update/second of bid/ask sufficient?
Edit 2 - We can still work with current code - you can just make array of bid/ask price + qty in RTD thread and push them all together in AB thread.