Sorry about this, the ER2 - NQ pairs trade should be short 1 ER2 and long 2 NQ which puts the profit at $820.
I'll get the hang of this yet!
Charles
I'll get the hang of this yet!
Charles
Quote from CharlesTrader:
Wish I was good enough to modify the Tradestation Easylanguage file for the Spread Ratio to automatically calculate and plot an average and 1 standard deviation. I'll have to practice. Will take a while - not a very good programmer.
Charles
inputs: AvgLength(20), NumDev(2);
vars: spread(0), avg(0), stdev(0),
DataSeries1( Close of data1 ), DataSeries2( Close of data2 ) ;
DataSeries1=( Close of data1 )*bigpointvalue;
DataSeries2=( Close of data2 )*bigpointvalue *2;
spread=DataSeries1 / DataSeries2;
avg=average(spread, AvgLength);
stdev=stddev(spread, AvgLength);
Plot1( spread, "SprdDiff" ) ;
plot2(avg, "Average");
plot3(avg+(NumDev*stdev), "UpperBand");
plot4(avg-(NumDev*stdev), "LowerBand");