|
Beluck,
Going thru the code I noticed only one signifcant change. I have highlighted them in bold.
(FIXED VERSION)
ZYVar=ZYVar+(High[shift+cnt-1]+Low[shift+cnt-1])/2*(ndot+1-cnt);
TYVar=TYVar+(High[shift+cnt-1]+Low[shift+cnt-1])/2;
ZIndicatorVar=ZIndicatorVar+iMA(NULL,0,5,3,MODE_SM MA,PRICE_MEDIAN,shift+cnt-1)*(ndot+1-cnt);
TIndicatorVar=TIndicatorVar+iMA(NULL,0,5,3,MODE_SM MA,PRICE_MEDIAN,shift+cnt-1);
(ORGINAL VERSION)
ZYVar=ZYVar+(High[shift-cnt+1]+Low[shift-cnt+1])/2*(ndot+1-cnt);
TYVar=TYVar+(High[shift-cnt+1]+Low[shift-cnt+1])/2;
ZIndicatorVar=ZIndicatorVar+iMA(NULL,0,5,3,MODE_SM MA,PRICE_MEDIAN,shift-cnt+1)*(ndot+1-cnt);
TIndicatorVar=TIndicatorVar+iMA(NULL,0,5,3,MODE_SM MA,PRICE_MEDIAN,shift-cnt+1);
Beluck,
Have you seen this on a chart live? Does it do the same as the Original, like loop itsef or change its history?
-secXces
|