SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Technical Analysis - Beginners

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: MechanicalMethod who wrote (11046)1/28/2001 8:18:51 PM
From: MechanicalMethod   of 12039
 
One bug:

if len > 3 and len < 21 then begin
…..if cSlope > 0 and avgSlope < 0 then len = len - 1; {speedup avg}
…..if cSlope < 0 and avgSlope > 0 then len = len + 1; {slows avg}
end; {price and avg diverging}

~~~~~~~~~~~~~
the fix:

it should speed up for both of these conditions but that requires working out which component is correct {price or avg}. I believe price leads. {crossed+slopeConvoluted}

if (c >adaptAvg and avgSlope<0) or (c<adaptAvg and avgSlope>0) then begin
…. If cSlope > 0 and len > 3 and len < 21 then len = len - 1;
….. if cSlope < 0 and len > 3 and len < 21 then len = len - 1;
end;
~~~~~~~~~~~~~~~~~~

another bug fix:{slowing down}

If len < 8 then begin
… if c > adaptAvg and cSlope > 0 and avgSlope > 0 then len = len +1;
… if c < adaptAvg and cSlope < 0 and avgSlope < 0 the len = len +1;
end;
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext