423 search results for "quantmod"

A First Attempt At Applying Ensemble Filters

December 4, 2015
By
A First Attempt At Applying Ensemble Filters

This post will outline a first failed attempt at applying the ensemble filter methodology to try and come up with … Continue reading →

Read more »

Calculate Inflation with R

December 1, 2015
By
Calculate Inflation with R

I was surprised to see there weren’t more of these types of calculators in the R community. Inflation and adjusted payments seem like they would be more common. I was able to find a way to gather Consumer Price Index data using the quantmod package but quantmod leaves you to your own devices in converting

Read more »

Comment on Overnight SPY Anomaly

November 16, 2015
By

This post is in response to Michael Harris' Price Action Lab post, where he uses some simple R code to evaluate the asymmetry of returns from the day's close to the following day's open.  I'd like to respond to his 3 notes, which I've included below.The R backtest assumes fractional shares. This means that equity is fully...

Read more »

Trading Autocorrelation?

November 15, 2015
By
Trading Autocorrelation?

Markets are very smart in absorbing and reflecting information. If you think otherwise, try making money by trading. If you are new to it, make sure you don’t bet the house. In other words, markets are efficient. At least most of the time. So then why people trade? The general believe is that there are The post

Read more »

A Filter Selection Method Inspired From Statistics

November 9, 2015
By
A Filter Selection Method Inspired From Statistics

This post will demonstrate a method to create an ensemble filter based on a trade-off between smoothness and responsiveness, two … Continue reading →

Read more »

Has the S&P 500 Cleared the Earlier Sell?

October 25, 2015
By

Life has been busy and has kept me away from blogging, and from trading, mostly. Still, I can’t stay away from monitoring the markets, and, with the recent rally, I started asking myself – has the situation changed since the 200 day SMA signaled an exit. What do you think – make up your mind The post

Read more »

An example of a trading strategy coded in R

October 6, 2015
By
An example of a trading strategy coded in R

Back-testing of a trading strategy can be implemented in four stages. Getting the historical data Formulate the trading strategy and specify the rules Execute the strategy on the historical data Evaluate performance metrics In this post, we will back-test our trading strategy in R. The quantmod package has made it really easy to pull historical... The post

Read more »

Simulating backtests of stock returns using Monte-Carlo and snowfall in parallel

September 23, 2015
By
Simulating backtests of stock returns using Monte-Carlo and snowfall in parallel

You could say that the following post is an answer/comment/addition to Quintuitive, though I would consider it as a small introduction to parallel computing with snowfall using the thoughts of Quintuitive as an example. A quick recap: Say you create a model that is able to forecast 60% of market directions (that is, in 6

Read more »

When is a Backtest Too Good to be True? Part Two.

September 19, 2015
By

In the previous post, I went through a simple exercise which, to me, clearly demonsrtates that 60% out of sample guess rate (on daily basis) for S&P 500 will generate ridiculous returns. From the feedback I got, it seemed that my example was somewhat unconvincing. Let’s dig a bit further then. Let’s add Sharpe ratio The post

Read more »

Reading Financial Time Series Data with R

September 17, 2015
By
Reading Financial Time Series Data with R

by Joseph Rickert In a recent post focused on plotting time series with the new dygraphs package, I did not show how easy it is to read financial data into R. However, in a thoughtful comment to the post, Achim Zeileis pointed out a number of features built into the basic R time series packages that everyone ought to...

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

datasociety

http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training









Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)