PureBytes Links
Trading Reference Links
|
Here's a simple system based on a filter and a trigger. The filters are 2
moving averages while the trigger is Larry William's Percent R.
If the shorter term moving average is greater than the longer term moving
average, the direction is presumed to be up (and vice versa). If you have an
uptrend and the %R crosses below a certain level, you'd go long if and only
if the %R crosses above that level. If you have a downtrend and the %R
crosses above a certain level, you'd go short when the %R crosses below that
level.
That's the gist of it. Please remember that this only works on
stocks/indices/things that trend. In a trading range, it's worse than
useless. ;-)
{System: Williams'}
Inputs: Len1(12),Len2(31),RLen(6),Lvl(3);
Vars: Ma1(0),Ma2(0),Ret(0),Upper(0),Lower(0),Mp(0);
Ma1=Average(C,Len1);
Ma2=Average(C,Len2);
Ret=PercentR(RLen);
Lower=Lvl*10;
Upper=(10-Lvl)*10;
Condition1=Ma1>Ma2;
Condition2=Ma1<Ma2;
Mp=Marketposition;
If Mp<>1 and Condition1 then begin
If Ret crosses above Lower then buy on close;
end;
If Mp<>-1 and Condition2 then begin
If Ret crosses below Upper then sell on close;
end;
-----------------------------------------------------------------------
Never, ever, invest any money in a fund
whose principals include financial academics.
-from www.adtrading.com
|