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

Re: calculations



PureBytes Links

Trading Reference Links


Thanks Guy.  Now I know why some innocuous formulas weren't working
Lionel Issen
lissen@xxxxxxxxx
----- Original Message -----
From: "j seed" <jseed_10@xxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Sunday, October 01, 2000 9:41 AM
Subject: Re: calculations


> Guy,
> Ver.7.0 is a real "Jethro" when it comes to spelling. It doesn't like to
> have variable names split onto more than one line. It may help to change
> your variable statements to:
> COMHX03:= ( FmlVar("COMH-MXX","COMHMXX") -
> Ref(FmlVar("COMH-MXX","COMHMXX") , -3 )) / 3;
>
> This may seem insignificant but I've had formulas that would only work
this
> way.
>
> J.
>
> >From: "Guy Tann" <grt@xxxxxxxxxxxx>
> >Reply-To: metastock@xxxxxxxxxxxxx
> >To: "Metastock User Group" <metastock-list@xxxxxxxxxxxxx>
> >Subject: calculations
> >Date: Sun, 1 Oct 2000 00:41:51 -0700
> >
> >Don,
> >
> >Here's part of what I had in one indicator that I called COMHX01X09.
> >
> >COMHX03:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -3 )) / 3;
> >
> >COMHX04:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -4 )) / 4;
> >
> >COMHX05:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -5 )) / 5;
> >
> >COMHX06:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -6 ) ) / 6;
> >
> >COMHX07:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -7 ) ) / 7;
> >
> >COMHX08:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -8 ) ) / 8;
> >
> >COMHX09:= ( FmlVar("COMH-MXX","COMHMXX") - Ref(
> >FmlVar("COMH-MXX","COMHMXX") , -9 ) ) / 9;
> >COMHX09;
> >
> >The only thing missing is COMHX01 and COMHX02.  When running, it works
> >sporadically or not at all.  I cut and pasted COMHX01 and COMHX02 into
> >their
> >own indicators (which is how I tested them in the first place) and they
> >work
> >fine.  I'm now moving all of these back into individual indicators.  I
have
> >no idea why this didn't work since I only had 9 variables.  The COMX09;
> >entry was strictly for plotting purposes so I could check out the
detailed
> >results (remember, I'm doing a conversion here and need to verify
> >calculations to 4 decimal places).
> >
> >After verifying my calculation results, I delete the final COMHX09
plotting
> >entry.  Anyway, why they don't work when contained in one indicator and
do
> >work when cut and pasted into their own indicator, I have absolutely no
> >idea.
> >
> >Regards,
> >
> >Guy
> >
> >" If at first you don't succeed, skydiving is not for you."
> >
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>