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

RE: calculations



PureBytes Links

Trading Reference Links

J., Don, Ton et al who gave me suggestions about this problem.

Thanks for all of the suggestions.  I have tried them all, but unfortunately
they didn't work.

This problem has been resolved by cutting and pasting each variable into its
own indicator, where, albeit slowly, it runs.  This is the way I originally
coded these variables, but decided to combine them into 2 indicators.  Wrong
choice as getting this to run has taken me a couple of weeks.  Granted I
spent 80% of my time trying to get MS to work as advertised.  Like the
subtraction problem, I just gave up and programmed around it.

Now don't ask me why it was necessary to split my two indicators with 9
variables each into 18 separate indicators and why I've encountered this
very same problem with the next couple of indicators I checked.  It's beyond
me.  It just must be another quirk of MS (among the several I've encountered
during this conversion).

I have other indicators that include several variables and they work without
a problem.  Again, I seem to be learning my way around MS and those areas
that don't function as advertised, but it's taking a long time.  This
conversion should have been done a month or two ago, but at least we're
getting close.

Thanks again to everyone.  I have high hopes that I can complete the final
10 variables today.

Guy

" If at first you don't succeed, skydiving is not for you."

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On
Behalf Of j seed
Sent: Sunday, October 01, 2000 7:41 AM
To: metastock@xxxxxxxxxxxxx
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.