Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:6.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
Hello,
I am trying to reproduce the Parabolic SAR calculation, and
I am having problems keeping track of the Next Extreme High/Low Point when it
toggles Long/Short.
So far I am able to use Excel to correctly reproduce the tabulated
SAR example in the Achelis’ book, “Technical Analysis from A to Z” (without
typos); if
Ideally, I want the Next Extreme Point (NEP) to be the
Highest High while SAR is Long, then toggle to be the Lowest Low while SAR is
Short.
Here is a Next Extreme Point calculation using the Metastock
SAR as a toggle.
Even if there is an alternative SAR calculation, I would really
like to know why this does this not work, and how can I get it to work?
Thanks!
SARms := SAR(0.02,0.2);
{ Long / Short Toggles}
LONG := IF( SARms Low Ref(SARms,-1) Ref(High,-1)
, 1 , 0);
SHORT := IF( SARms > High Ref(SARms,-1)
Ref(Low,-1) , 1 , 0);
{ NEP is the Next Extreme Point }
NEP LONG Ref(NEP,
-1) High , High , Ref(NEP,-1) NEP SHORT Ref(NEP, -1) Low
, Low , Ref(NEP, -1) );
NEP;