Excel loop question - bloomberg

jonasJWS

New Member
Joined
Aug 8, 2014
Messages
2
I need to create a sheet will all trade executions there has ever been on a certain exchange. The exchange does not have a lot of activity.

I have a bloomberg function that fetches all the trades there has ever been on the exchange for specific tickers. However, it only does so for that one ticker. I have 14938 tickers it has to run through and give me all the trade executions there has been for each. For a lot of the tickers there will be no activity.

The sheet need show something like this:


Ticker Volume Timestamp
Vodl l3 125 000 07.01.2012 - 08.45.36
Vodl l3 478 000 08.01.2012 - 10.59.44
LLOYl l3 100 000 07.01.2012 - 11.36.49

Do I have to make a macro that runs through all the symbols and fetches the data from bloomberg and pushes it to a new sheet? If so, how do I do that?

I have the following bloomberg formula:
=BDH("A1","TRADE","1/1/2000 9:00:00 AM","","Dir=V","Dts=S","Sort=A","IntrRw=True","CondCodes=H","QRM=H","ExchCode=H","BrkrCodes=H","RPSCodes=H","BICMICCodes=H","Type=S","Price=S","Size=S","TradeTime=H","Yield=H","ActionCodes=H","IndicatorCodes=H","UpfrontPrice=H","Spread=H")

Where A1 is for example "VODL L3 Equity"
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,216,082
Messages
6,128,709
Members
449,464
Latest member
againofsoul

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top