Average Peak Excursion (APE) by Chris Young for Metastock
Chris Young’s article in this issue, “The Average Peak Excursion,” includes three formulas for calculating the rate of return. These formulas are listed below as indicators and need to be entered as separate indicators in Metastock.
Indicator / Formula
Copy & Paste Friendly
x:=Input("number of periods for APE",1,200,1);
Max( Abs(HHV(H, x) - Ref(O, -(x-1))), Abs(LLV(L, x) - Ref(O, -(x-1))) )Copy & Paste Friendly
x:=Input("number of periods for APE ratio",2,200,25);
ax:= Max( Abs(HHV(H, x) - Ref(O, -(x-1))), Abs(LLV(L, x) - Ref(O, -(x-1))) );
a1:= Max( Abs(H - O), Abs(L - O) );
ax / a1Copy & Paste Friendly
x:=Input("number of periods for APE",2,200,25);
ax:= Max( Abs(HHV(H, x) - Ref(O, -(x-1))), Abs(LLV(L, x) - Ref(O, -(x-1))) );
a1:= Max( Abs(H - O), Abs(L - O) );
Log( ax / a1 ) / Log( x )0 comments
Leave Comment
Please login here to leave a comment.