PureBytes Links
Trading Reference Links
|
The following Metastock code was listed in the December 2002 issue of Active
Trader magazine:
Enter long C>(Ref(HHV(H,1),-1)*(1.005))
Close long C<(Ref(LLV(L,1),-1)*(1.005))
Enter short C<(Ref(LLV(L,1),-1)*(1.005))
Close short C>(Ref(HHV(H,1),-1)*(1.005))
This code was contained as part of an article about a trading strategy for
stocks, and was shown on page 38. I've tried to reproduce this code into
EL, but my results have not been successful. The following EL code is what
I have managed to come up with so far. If anyone has coded this system,
could they possibly point me in the right direction?
If Close > (High[1]*1.005) then buy at market;
If Close < (Low[1]*1.005) then sell at market;
Thanks,
James Anderson
|