import pandas as pd
import numpy as np
import Quandl
df=Quandl.Quandl.get('GOOG/NYSE_SPY',authtoken=QUANDLTOKEN,sort_order='desc')
df['upday']= np.sign(df.Close-df.Open)
df['prevupday']= df.upday.shift(-1)
df['range']= df.Close-df.Open
df[df.prevupday>0].range.cumsum()
+1A fairly inexpensive way to get started is to go here: http://www.amibroker.com/ (has a 30 day free trial too)
Also, you can use this book to help try out a few systems:
It helps to have a programming background, but not necessary with some work.
Good luck.
The following MovingAverage Crossover system is maybe one of the simplest systems one can design (it is from the AmiBroker examples that is part of the software):sorry for a noob question, but can someone explain how backtesting is done? What would be helpful is any strategy (does not need to be profitable for this example) explained and then back tested.
Thanks in advance.
period = 20; // number of averaging periods
m = MA( Close, period ); // simple moving average
Buy = Cross( Close, m ); // buy when close crosses ABOVE moving average
Sell = Cross( m, Close ); // sell when closes crosses BELOW moving average