Be the first to rate this file! 130 downloads (last 30 days) File Size: 2.47 KB File ID: #9819

df2fts_

by Michael Robbins

 

30 Jan 2006 (Updated 31 Jan 2006)

No BSD License  

Fetch from bloomberg and put in financial time series object.

Download Now | Watch this File

File Information
Description

ACCEPTS SECURITY TICKERS WITH MORE THAN ONE WORD (WITH A SPACE)

see
http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectType=author&objectId=828141

>> help df2fts

DF2FTS(EXPRESSION,FIELD,FROMDATE,TODATE) for historical
DF2FTS(EXPRESSION,FROMDATE) for time series

Gets data from the Bloomberg, calcuates the expression
puts it in a time series, saves the time series for use
with FTSGUI and returns it for use with CHARTFTS

USEAGE:
% not that you'd want to calculate this...

% historical
myfts=df2fts( ...
'exp(2 * GT5 Govt -GT10 Govt - GT2 Govt)', ...
'BidYield',today-40.*365.25,today);

% or time series

myfts=df2fts( ...
'log(2 * GT5 Govt -GT10 Govt - GT2 Govt)', ...
today);

Then you can use

chartfts(myfts);

%or

ftsgui;
% now load myfts"

IT'S NOT FANCY, BUT IT WORKS

see BLOOMBERG/FETCH, FTSGUI, CHARTFTS

Required Products Datafeed Toolbox
Financial Time Series Toolbox
MATLAB release MATLAB 6.5 (R13)
Other requirements Bloomberg Professional
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
31 Jan 2006 urs (us) schwarz

nice looking snippet from our ever so nice <IT'S NOT FANCY, BUT IT WORKS michael robbins>
unfortunately, i cannot test it as i have no clue about finances (and, thus, none of the required tbxs)
however, scanning through the code one could imagine one more (optional) arg, which would allow a user to define a file name rather than just overwriting the default one silently
us

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Michael Robbins 22 Oct 2008 08:14:06
modeling Michael Robbins 22 Oct 2008 08:14:06
analysis Michael Robbins 22 Oct 2008 08:14:06
bloomberg fetch ftsgui chartfts financial time series object Michael Robbins 22 Oct 2008 08:14:06
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com