Hello,
I am new to metastock, (got it about a month ago). I have been slowly but surely trying to match the results for the "Simple Exponential Crossover System" on Ed Seykota's Trading Tribe website.
http://www.seykota.com/tribe/TSP/EA/index.htm
I have converted the S&P data from Excel into Metastock format. And I have worked around the null bar issue for the exponential averages using the following formula:
prd:=15;
data:=CLOSE;
m:=2/(prd+1);
ema:=If(Cum(IsDefined(data))=1,data,(m*data)+((1-m)*PREV));
{plot}
ema;
I'm also having trouble matching the ATR (it's a 20 day exponential lag, much like the above formula, but I can't get it to match). And I'm going crazy with the system tester as it's supposed to issue a Buy signal when the 15 day Exponential average crosses the 150 day Exponential average, and vice versa for the Sell signal, but it executes the first trade 2 days early for some reason.
Any bit of help on how to code this system properly would be GREATLY appreciated. It's a simple system, but I'm pulling my hair out trying to match it.
Thanks in advance.