Hello,
First post here. Been looking at Markos Katsanos' Flag and Pennant exploration, but Metastock 11 says it cannot find a certain paramater calle "TARGET" because it is unrecognised. Yet there it is in the MS exploration written in the Stocks and Commodities article, V23:5, "Detecting Breakouts From Flags & Pennants".
Below is the exploration;
Column A
Name: Price
Formula: C
Column B
Name: Pole Top
Formula:
zz:=Zig(C,17,%);
X:=BarsSince(ZZ<ref(ZZ,-1)AND Ref(ZZ,-1)>Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);C2
Column C
Name: Pole Bot
Formula:
zz:=Zig(C,17,%);
X:=BarsSince(ZZ<ref(ZZ,-1)AND Ref(ZZ,-1)>Ref(ZZ,-2));
X1:=LastValue(X)+1;
C3:=Ref(LLV(C,26),-X1);C3
Column D
Name: Pole %
Formula:
zz:=Zig(C,17,%);
X:=BarsSince(ZZ<ref(ZZ,-1)AND Ref(ZZ,-1)>Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;POLE
Column E
Name: Target %
Formula:
zz:=Zig(C,17,%);
X:=BarsSince(ZZ<ref(ZZ,-1)AND Ref(ZZ,-1)>Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;POLE
TARGET:=1.94* Power(pole ,.724);TARGET
Column F
Name: Target Price
Formula:
zz:=Zig(C,17,%);
X:=BarsSince(ZZ<ref(ZZ,-1)AND Ref(ZZ,-1)>Ref(ZZ,-2));
X1:=LastValue(X)+1;
c2:=Ref(HHV(C,(2+X1)),-1);
c3:=Ref(LLV(C,26),-X1);
POLE:=(C2-C3)/C3*100;POLE
TARGET:=1.94* Power(pole ,.724); (1+TARGET/100)*C
The article mentions that Columns E and F aren't necessary for finding useful candidates, but they help in determining profit targets, which would be neat.
Warm Regards,
Tony