634 search results for "Trading"

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 »

How to Design Quant Trading Strategies Using R?

July 30, 2015
By
How to Design Quant Trading Strategies Using R?

This blog covers in brief the concept of strategy back-testing using R. Before dwelling into the trading jargons using R let us spend some time understanding what R is. R is an open source. There are more than 4000 add on packages,18000 plus members of LinkedIn’s group and close to 80 R Meetup groups currently... The post

Read more »

Trading Moving Averages with Less Whipsaws

June 21, 2015
By

Using a simple moving average to time markets has been a successful strategy over a very long period of time. Nothing to brag home about, but it cuts the drawdown of a buy and hold by about a half, sacrificing less than 1% of the CAGR in the process. In two words, simple yet effective. The post

Read more »

FOMC Cycle Trading Strategy in Quantstrat

March 14, 2015
By
FOMC Cycle Trading Strategy in Quantstrat

Another hotly anticipated FOMC meeting kicks off next week, so I thought it would be timely to highlight a less well-known working paper, “Stock Returns over the FOMC Cycle”, by Cieslak, Morse and Vissing-Jorgensen (current draft June 2014). Its main result is:Over the last 20 years, the average excess return on stocks over Treasury bills follows a bi-weekly pattern...

Read more »

Trading The Odds Volatility Risk Premium: Addressing Data Mining and Curve-Fitting

November 19, 2014
By
Trading The Odds Volatility Risk Premium: Addressing Data Mining and Curve-Fitting

Several readers, upon seeing the risk and return ratio along with other statistics in the previous post stated that the … Continue reading →

Read more »

Structural “Arbitrage”: Trading the Equity Curve

October 15, 2014
By
Structural “Arbitrage”: Trading the Equity Curve

The last post demonstrated that far from being a world-beating, absolutely amazing strategy, that Harry Long’s Structural “Arbitrage”, was in … Continue reading →

Read more »

A Hammer Trading System — Demonstrating Custom Indicator-Based Limit Orders in Quantstrat

August 18, 2014
By
A Hammer Trading System — Demonstrating Custom Indicator-Based Limit Orders in Quantstrat

So several weeks ago, I decided to listen on a webinar (and myself will be giving one on using quantstrat … Continue reading →

Read more »

A Simple Shiny App for Monitoring Trading Strategies – Part II

August 7, 2014
By

This is a follow up on my previous post “A Simple Shiny App for Monitoring Trading Strategies“.  I added a few improvements that make the app a bit better (at least for me!). Below is the list of new features : A sample  .csv file (the one that contains the raw data) A “EndDate”  drop

Read more »

FRAMA Part III: Avoiding Countertrend Trading — A First Attempt

July 2, 2014
By
FRAMA Part III: Avoiding Countertrend Trading — A First Attempt

This post will begin to experiment with long-term directional detection using relationships between two FRAMA indicators. By observing the relationship … Continue reading →

Read more »

A Simple Shiny App for Monitoring Trading Strategies

June 25, 2014
By
A Simple Shiny App for Monitoring Trading Strategies

In a previous post I showed how to use  R, Knitr and LaTeX to build a template strategy report. This post goes a step further by making  the analysis  interactive. Besides the interactivity, the Shiny App also solves two problems : I can now access all my trading strategies from a single point regardless of the instrument traded.

Read more »

Sponsors

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)