Cone8
 ( 6.69% )
- ago
For IB Provider customers. Give a thumbs up if you want it!
The snapshot has Market Cap, Outstanding and Total Shares, and a lot more.


7
162
13 Replies

Reply

Bookmark

Sort
Cone8
 ( 6.69% )
- ago
#1
Nobody? Okay, I'll just keep it for myself then :)
0
Glitch8
 ( 12.97% )
- ago
#2
It's only been 2 hours, not everyone is glued to this forum :)
0
Cone8
 ( 6.69% )
- ago
#3
Okay, I'll go get a life.
0
- ago
#4
hello Cone,

I'm very interested!

Best regards
1
- ago
#5
@Cone: Sorry, we were working to make money for Wealthlab and trading! :-)
1
- ago
#6
@Cone: Could you please explain us how we could get the market cap of IB?
My idea is to simulate an ETF by rebalancing it by stocks. It has a huge tax advantage (at least in Germany). Here you pay as company for wins on stocks only 1,5%, and about 30% on ETFs. So it would be very nice, if Wealthlab could simulate an ETF like SPY.
Additionally we could create own ETFs like with only 10 stocks instead the 500 of S&P 500 etc...
0
Cone8
 ( 6.69% )
- ago
#7
Interesting. In Build 63, it will be like this:

CODE:
using WealthLab.Backtest; using WealthLab.Core; using WealthLab.Data; using System.Linq; namespace WealthScript124 {    public class IBRatio : UserStrategyBase    {       public override void Initialize(BarHistory bars)       {          string ratio = "MKTCAP";          double mktcap = bars.EventDataPoints.LastOrDefault(eventData => eventData.Name == ratio)?.Value ?? 0;                   DrawHeaderText($"{ratio} {mktcap:N2} (millions)", WLColor.NeonGreen, 14);       }       public override void Execute(BarHistory bars, int idx)       { }    } }
1
- ago
#8
It does not work, I think he tries to get the information from the data source WealthLab and not InteractiveBrokers. There is no way in the UX to force him, to read it from IB:
0
Cone8
 ( 6.69% )
- ago
#9
You're trying to get blood from a turnip. The Wealth-Data event provider (not a subject of this thread) only has Dividend and Split events. And these events are only available in the BarHistory if you check the Provider.



Back to MKTCAP. I said, "In Build 63, it will be like this"
- that means, "when IB Provider Build 63 is available." When it is, you'll be able to select the IB Event Provider, which will look like this (in the future) -




0
- ago
#10
Interactive Brokers does not appear in the "Event Providers" tab.
Only in the tabs "Historical Providers" and "Streaming Providers":
0
Cone8
 ( 6.69% )
- ago
#11
Correct.
And it will not appear for you until Build 63 is available.
0
- ago
#12
does this have historical marketcap or only current?
0
Cone8
 ( 6.69% )
- ago
#13
It's a snapshot (but will be historical in the future).
The only history available are quarterly Revenue and EPS.
0

Reply

Bookmark

Sort