PureBytes Links
Trading Reference Links
|
Hi Ton,
the task I want to calculate is just a simple 3 line loop...
To calculate 50 AR's values I would need 50 !
(faculty, 50x49x48...x1) sub 'fml's who had not a single
shared line. The first one would be 50 lines long, the second
49, the third 48, and so on. So these wouldn't even fit
into the space allowances from Metastock ...
Might be there is really a solution using PREV, but I don't
see one. A working functional language (like LISP)
would for sure be capable of doing what i want.
Furthermore, one would want to play with the number to
see if 30 is better than 20 or 10 ...
Looking like hopeless ...
Regards - Jasper
----- Original Message -----
From: A.J. Maas <anthmaas@xxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Wednesday, November 10, 1999 12:33 AM
Subject: Re: How to do very simple calculations using MS?
> Create a few indicators and add them to your formula by calling on them
via
> the formula call function:
>
> Example: -Create a few new indicators, eg n=1,2,3 etc :
>
> Name: MyIndicator-n
> Formula: Mov(c,10,s)
>
> Now use the formula call function, eg -Create another indicator:
>
> Name: MyCalls
> Formula: fml (" MyIndicator-n ")
>
> place the above line in the formula field and and repeat the line for any
> next following of your set of indicators.
>
> (See also the custom indicator "Binairy Wave All" that ships with the
> program, for example, and the webpage printed below).
>
> Regards,
> Ton Maas
> ms-irb@xxxxxxxxxxxxxxxx
> Dismiss the ".nospam" bit (including the dot) when replying and
> note the new address change. Also for my Homepage
> http://home.planet.nl/~anthmaas
>
>
> ----- Original Message -----
> From: jr <jrbox@xxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: maandag 8 november 1999 23:15
> Subject: How to do very simple calculations using MS?
>
>
> > Hi folks,
> >
> > lets consider one wants to take a few sample auto
> > correlation values using Metastock.
> ------------snip------------
>
>
> Formula Call
>
> SYNTAX fml("FORMULA_NAME" )
> FUNCTION Calculates the value of another formula.
> The formula can be referenced using the FORMULA_NAME in
> quotes.
> - When referencing a formula's name, the name must
be
> contained in
> quotation marks (e.g., fml( "Secret A")).
> - If you change a formula's name, you must also
change
> any fml() calls that reference that formula.
> EXAMPLE The formula "fml("Secret A") * fml("MyMACD")" calculates the
> value of the formula
> named "Secret A" multiplied by "MyMACD."
> SEE ALSO See Referencing Existing Custom Indicators for more details on
> using the fml() function.
>
>
> Formula Variable Call
>
> SYNTAX fmlvar( "FORMULA_NAME", "VARIABLE_NAME")
> FUNCTION Calls the custom indicator named FORMULA_NAME and returns the
> value contained
> in the custom indicator's variable named
> VARIABLE_NAME.
> - Both the formula's name and the variable's name
must
> be contained in
> quotation marks (e.g., fmlvar( "Secret A",
> "MyVar")).
> - If you change a formula or variable name, you must
> also change any fmvarl() calls that
> reference that formula and variable.
> EXAMPLE fmlvar("MyIndicator", "MyVariableA" )
> SEE ALSO See Referencing Variables within Custom Indicators for more
> details on using the fmlvar() function.
>
>
>
> http://www.equis.com/customer/support/faqs
>
>
>
> http://www.equis.com/customer/support/ms650020.html
>
> When I use the FML() function in a formula to call a Multiple Expression
> formula my formula only sees one of the Lines. Why?
>
>
>
> The FML() function cannot call multiple values from one formula to another
> formula. The FML function can only call one value from one formula to
> another. If FML() calls a Multiple Expression formula it can only return
the
> value of the Last Expression in a Multiple Expression formula, from one
> formula to another.
>
> For example the following formula creates a Customized MACD with 3 trigger
> lines. When plotted it plots a total of 4 lines, exactly as expected.
>
> Mov(C,11,E)-Mov(C,30,E);
> Mov(Mov(C,11,E)-Mov(C,30,E),12,E);
> Mov(Mov(C,11,E)-Mov(C,30,E),25,E);
> Mov(Mov(C,11,E)-Mov(C,30,E),50,E)
>
> In this example Mov(Mov(C,11,E)-Mov(C,30,E),50,E) is the Last Expression
in
> this Multiple Expression formula. An FML() call to this formula returns
the
> value of Mov(Mov(C,11,E)-Mov(C,30,E),50,E).
>
> If you need to use FML() to call multiple values into another formula it
is
> best to break the Multiple Expression Formula into Separate formulas. Then
> call each separate formula with a separate FML() call.
>
> The following example formula uses FML() calls but would generate multiple
> plots when displayed in a chart:
>
> FML("Mov(C,11,E)-Mov(C,30,E)");
> FML("Mov(Mov(C,11,E)-Mov(C,30,E),12,E)");
> FML("Mov(Mov(C,11,E)-Mov(C,30,E),25,E)");
> FML("Mov(Mov(C,11,E)-Mov(C,30,E),50,E)")
>
> You could also assign variables to each expression and then use the
FMLVAR()
> function to call each of the expressions.
>
> For example:
>
> Formula: Multiple
>
> One := Mov(C,11,E)-Mov(C,30,E);
> Two := Mov(Mov(C,11,E)-Mov(C,30,E),12,E);
> Three := Mov(Mov(C,11,E)-Mov(C,30,E),25,E);
> Four := Mov(Mov(C,11,E)-Mov(C,30,E),50,E);
> One;
> Two;
> Three;
> Four
>
> Formula: Call
>
> FMLVAR("Multiple","One");
> FMLVAR("Multiple","Two");
> FMLVAR("Multiple","Three");
> FMLVAR("Multiple","Four")
>
> Refer to the MetaStock 6.5 manual and/or on-line help for more information
> on using variables and the function FMLVAR().
>
>
|