R source code example on how to trade using a GARCH Volatility Forecast

(Last Updated On: May 29, 2012)

R source code example on how to trade using a GARCH Volatility Forecast

I found this link:

http://www.r-bloggers.com/trading-using-garch-volatility-forecast/

I am using RStudio so I can confirm sthat the code seems to be ok but the plots fail with a message;
> plotbt.custom.report.part1(regime.switching.garch, regime.switching, buy.hold)
Error in plot.window(…) : Logarithmic axis must have positive limits
In addition: Warning message:
In xy.coords(x, y, xlabel, ylabel, log) :
  3120 y values <= 0 omitted from logarithmic plo

Could it be the data used? I am not sure but I only need the data anyhow. Looks good but still need to validate it as I get more comfortable with R.

This entry was posted in R and tagged , , , , , , , on by .

About Bryan D

I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties:C++, Java, C#, quant, models, strategies, technical analysis, linux, windows