You might try the following:
1. Download the end of day historical data for symbols LQD, JNK, HYG, VWEHX,
and VFICX. (maybe for the last year or so).
2. Save the following commands to filename "Bond_Stock_Yield_Spreads.afl"
SetChartOptions(0,chartShowArrows|chartShowDates);
period = Param("Period",10,2,100,2);
LQD = JurikJMA(C,period);
JNK = JurikJMA(Foreign( "JNK", "Close" ),period);
HYG = JurikJMA(Foreign( "HYG", "Close" ),period);
VWEHX = JurikJMA(Foreign( "VWEHX", "Close" ),period);
VFICX = JurikJMA(Foreign( "VFICX", "Close" ),period);
Plot(JNK / LQD,"JNK/LQD",colorBlue,styleThick);
Plot(HYG / LQD,"HYG/LQD",colorLime,styleThick);
Plot(VWEHX / VFICX, "Vanguard VWEHX/VFICX",colorRed,styleThick);
3. Select symbol LQD among the symbols, and insert the file above.
Note: I use use the Jurik moving average, so you will need to replace the
command "JurikMA" with "MA"
4. There is a good Seeking Alpha article on the above symbols when used for
yield spreads at URL:
http://seekingalpha.com/article/134964-choice-of-yield-spreads-as-stocks-indicator
Enjoy!
--- In [email protected], "Leif P" <peterson.l...@...> wrote:
>
> this is a good inquiry, so is anyone plotting bond yield spreads with e.g.
> ^GSPC earnings?
>
>
> < and I am wonderoi
>
> --- In [email protected], "jehmac" <jehmac@> wrote:
> >
> > Hi,
> >
> > Is anyone using amibroker to plot bond yield spreads (i.e. between the
> > US 10 year note and equivalent german bonds)? What data source do you use?
> >
> > jehmac
> >
>