PDA

View Full Version : Could anyone back test this code for me?



brtegdbx55
06-07-2016,
I've just discovered automated trading and have been trying to put a system together on IG (http://www.trade2win.com/boards/autolink.php?id=10&forumid=164&script=showthread)'s Prorealtime. This one is for US30 on M30 T/F and is simplicity itself.

bulfuddinlela
06-08-2016,
Why can't you backtest prior to August? When you say "US30" do you mean the Dow 30? You could download years of historical data on that quite easily (such as Yahoo Finance, for example).

Your algorithm appears to use an (exponential) moving average crossovers to generate buy/sell signals. Yes, that is "simplicity itself." Maybe too simple. If you're going to do algorithmic trading, I suggest reading Ernie Chan's book, "Algorithmic Trading - Winning Strategies and Their Rationale".

bxoylqoa76
06-10-2016,
I can't back test prior to August because that's as far back as the data goes on my spread bet platform on the 30 minute time frame. Yes I'm referring to the Dow. I think the years of historical data on Yahoo is Daily OHLC, but I will double check. It maybe too simple and that's why I'm trying to back test for a longer period of time.

Carolyntig
06-10-2016,
Ten months of 30-minute data should be about 2000 data points, by my calculation. That should be sufficient to back test. If you're not seeing a decent return with backtesting that data set, then it might be best to drop the strategy.

Candace215
06-10-2016,
The point is I am seeing a very decent return. I just worried it's too good to be true!