Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
how to write code to get bid, ask, and online interest
what is online interest? You can get realtime bid/ask values using the reserved words InsideBid and InsideAsk. Another approach would be to use Ask and Bid data as Data2 and Data3 and then access it this way.
As datafeeds don't deliver this into Multicharts or Tradestation one could only create such an indicator with reading data into the platform by an indicator (unless you want to send the data in via DDE). Meaning you'd need a source first that gives you access to the data and then you can create code that reads that data.
For Multicharts check out the --- Market Depth on Chart --- build in indicator. For Tradestation check the MarketDepthProvider object and the indicator Level II to Excel for examples.
Regards,
ABCTG
The following user says Thank You to ABCTG for this post: