[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] zero defaults



PureBytes Links

Trading Reference Links

------------------------------------------------------------------------
You cannot reply to this message via email because you have chosen not
to disclose your email address to the group.

To reply:  http://groups.yahoo.com/group/equismetastock/post?act=reply&messageNum=5331
------------------------------------------------------------------------

Keith

A quick check on a chart of my own hasn't shown up your problem but I
suspect you may be experiencing  the "divide by zero" error that frequently
shows up. If this is the case then as with most problems in MetaStock there
are a number of solutions, some of which work better than others.

I have found it useful in these situations to "fix" the problem within the
division itself. This can be done by inserting an If() function to change
any zero to something suitable BEFORE the division is processed.

In your example I might change
(HHV(H,5)-LLV(L,5))
to
If((HHV(H,5)-LLV(L,5))=0,1,(HHV(H,5)-LLV(L,5))

"1" may not be appropriate here but I'm sure you can work out something that
is. Once you have identified the true problem there is almost always a way
to get around it.

Roy

----- Original Message -----
From: "a" <keithld@xxxxxxxxxxx>
To: "equismetastock" <equismetastock@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 29, 2002 3:42 PM
Subject: [EquisMetaStock Group] zero defaults


I have a problem with a few of my indicators having zero defaults when I
open a chart or change from say daily to weekly.
 I have tried to fix it by adding  +0.0001  ( to a line/all lines) but the
results are the same

for example this is the Bressert Double Stoc, 5,10,& 15  combined which some
may not have.

                  P1:=Mov(((C-LLV(L,5))/(HHV(H,5)-LLV(L,5)))*100,3,E)+.0001;
                  P2:=Mov(((C-LLV(L,10))/(HHV(H,10)-LLV(L,10)))
                 *100,3,E)+.0001;
                  P3:=Mov(((C-LLV(L,15))/(HHV(H,15)-LLV(L,15)))
                  *100,3,E)+.0001;
                  P4:=Mov(((C-LLV(L,20))/(HHV(H,20)-LLV(L,20)))
                   *100,3,E)+.0001;
                  A1:=Mov(((P1-LLV(P1,5))/(HHV(P1,5)-LLV(P1,5)))
                 *100,3,E)+.0001;

A2:=Mov(((P2-LLV(P2,10))/(HHV(P2,10)-LLV(P2,10)))*100,3,E)+.0001;

A3:=Mov(((P3-LLV(P3,15))/(HHV(P3,15)-LLV(P3,15)))*100,3,E)+.0001;

A4:=Mov(((P4-LLV(P4,20))/(HHV(P4,20)-LLV(P4,20)))*100,3,E)+.0001;
                  A1;A2;{A3;}A4;    ( i remarked  out the 20 line)

  as you can see, + 0.001 everywhere.   I started with 1 line and kept
adding another but no change to the zero defaults.

I split it up into individual  indicators  for  5,10,15 --  applied them
separately and it seems to be ok, but a lot of hassles setting up each
chart.
I read somewhere the reason for Zero defaults is because I have faulty
data(holes in it ) , probably true,  but aside from getting a new data
supplier, I had the impression the  +.001 would "workaround" the problem.

could I have some advice please on how to correct the problem.

thanks    Keith






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sell a Home for Top $
http://us.click.yahoo.com/RrPZMC/jTmEAA/jd3IAA/BefplB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/