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 : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: Craig DeHaan who wrote (7298)10/20/1998 9:41:00 PM
From: Bob Jagow  Respond to of 11149
 
That was supposed to be "its rather unlikely that the vol [will] increase for 14 consecutive days" -- ie unlikely that there will be no negMF.

Wilder does his patently wrong 'throw one out' approx to the EMA for all his indicators so you would use 2n-1 'days' for a real EMA instead of his n (27 instead of 14). MS does that for ADR etc, but may have drawn the line at MFI.

Your solution was fine since vol can't change by less than 1, but can give an exact solution for this particular case, recognizing that you are printing MFI:8:4 and that 100 -100/(1+ PosMF/NegMF) will print as
100.0000 if 100/(1+ PosMF/NegMF) < 5*10^-6.
Therefore,
----------------------
if NegMF < 5*10-8*PosMF then
MFI:= 100.0;
else
MFI:= 100 -100/(1+ PosMF/NegMF);
endif;
println ...;
--------------------
TrivialBob



To: Craig DeHaan who wrote (7298)10/20/1998 9:44:00 PM
From: Bob Jagow  Respond to of 11149
 
That was supposed to be "its rather unlikely that the vol [will] increase for 14 consecutive days" -- ie that there will be no negMF.

Wilder does his patently wrong 'throw one out' approx to the EMA for all his indicators so you would use 2n-1 'days' for a real EMA instead of his n (27 instead of 14). MS does that for ADR etc, but may have drawn the line at MFI.

Your solution was fine since vol can't change by less than 1, but can give an exact solution for this particular case, recognizing that you are printing MFI:8:4 and that 100 -100/(1+ PosMF/NegMF) will print as
100.0000 if 100/(1+ PosMF/NegMF) < 5*10^-6.
Therefore, to get the correct answer w/o a div by 0, use
----------------------
if NegMF < 5*10-8*PosMF then
MFI:= 100.0;
else
MFI:= 100 -100/(1+ PosMF/NegMF);
endif;
println ...;
--------------------
TrivialBob



To: Craig DeHaan who wrote (7298)10/20/1998 10:16:00 PM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
Craig,
Looks like I sent the last msg twice [last was a slight edit].

Now that we are done with the trivialities of div by 0, I see that I completely misspoke re triggering on vol changes instead of price changes but also note that you used [hi+lo]/2 instead of typ(), which should be [hi+lo+cl]/3.

... and so it goes -- on into the nite :-(