Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Ken Calhoun's article, “ADX Breakouts”, presented a strategy to trade high volatility breakouts. The system was designed to be run on15 minute data so it will not work on Daily Chart versions of MetaStock. Below are two formulas for this system. The first is an exploration to run at the end of day that searches for the setup criteria. Any results would be stocks to watch on the following day for signals or you could place a buy-stop order at the entry price. The second formula is suitable for an expert adviser or system test and will trigger when the trade should be executed. The formulas for are: Exploration formulas:
Column A
Column Name:
formula:
Code:HighestSince(1, ROC(DayOfWeek(),1,$)<>0, H) + 0.5
Filter formula: Code:new:= ROC(DayOfWeek(),1,$)<>0;
r15:= (HighestSince(15, new, H)-LowestSince(15, new, L));
setup:= C >= 20 AND C <= 70 AND r15 > 5 AND
HighestSince(1, new, Cross(ADX(14), 40))=1
Expert Advisor or System Test formula: Code:new:= ROC(DayOfWeek(),1,$)<>0;
r15:= (HighestSince(15, new, H)-LowestSince(15, new, L));
dh:= HighestSince(1, new, H);
setup:= C >= 20 AND C <= 70 AND r15 > 5 AND
HighestSince(1, new, Cross(ADX(14), 40))=1;
ValueWhen(1, new, Ref(setup,-1)) AND
Cross(dh,ValueWhen(1, new, Ref(dh,-1) + 0.5))
|