开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

accessing advancing / declining issues


IFRPilot541
 

In TOS there used to be an indicator that would track advancing / declining issues calculate the difference and allow you to chart out the result over different time periods.
I see on the monitor window of the Monitor window of the desktop there is a tab for "Market Statistics" and this information is there in raw form.? How do I access these number for download and if possible is there a better way.

Goal:
To set minimum number of advancing issues before buying an option.? etc... etc...


 

开云体育

I'll have a look, I didn't realize it was there, I was getting it from a different source, but it would be much better getting it from IB.

Mel





-------- Original message --------
From: "IFRPilot541 via groups.io" <ifrpilot541@...>
Date: 2024-05-30 6:35 a.m. (GMT-08:00)
Subject: [ib-async] accessing advancing / declining issues

In TOS there used to be an indicator that would track advancing / declining issues calculate the difference and allow you to chart out the result over different time periods.
I see on the monitor window of the Monitor window of the desktop there is a tab for "Market Statistics" and this information is there in raw form.? How do I access these number for download and if possible is there a better way.

Goal:
To set minimum number of advancing issues before buying an option.? etc... etc...


 

I did a bit of looking into this, here is some basic code to start with: You can change the AD-AMEX & AMEX to AD-NYSE & NYSE The marketDataType(3) gives me delayed data since I'm not subscribed to that index data. The code below gave the the same numbers as shown for Advancing Issues and Declining Issues as seen in the Market Statistics tab. I'll check on getting the other numbers.

sym = 'AD-AMEX' ex = 'AMEX'

contract = Contract(secType='IND', symbol=sym, exchange=ex, currency='USD') ib.qualifyContracts(contract) ib.reqMarketDataType(3) data = ib.reqMktData(contract) ib.sleep(2)

AdvIssuses = data.bid DecIssuses = data.ask print(AdvIssuses) print(DecIssuses)

Cheers, Mel