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

RE: variables



PureBytes Links

Trading Reference Links

Gerard,

Sorry, I forgot to edit my post.  Did that and it still doesn't work.

Guy

Paranoia...you only have to be right once to make it all worthwhile!

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]On
Behalf Of Gerard Heuby
Sent: Friday, July 21, 2000 3:04 AM
To: metastock@xxxxxxxxxxxxx
Subject: Re: variables

As far as I understand what you want to write, you should delete comma's in
the conditional expression, your formulas will then look like:

CYY:= ( If( Fml( "YCalc (#014)") > 0 , 1 , If(  Fml( "YCalc (#014)") < 0
, -1 , 0 )))

Gerard


----- Original Message -----
From: "Guy Tann" <grt@xxxxxxxxxxxx>
To: "Metastock User Group" <metastock-list@xxxxxxxxxxxxx>
Sent: Friday, July 21, 2000 5:06 AM
Subject: variables


> List,
>
> OK, I obviously don't understand them, but I can't figure out why I'm
unable
> to get this to work.
>
> Indicator Name:         COMH-CYY
>
> CYY:=0;
> CYY:= (If( Fml( "YCalc (#014)") , > , 0 , 1 , If(  Fml( "YCalc (#014)") ,
<
> , 0 , -1 , 0 )))   or
> CYY:=  (If( Fml( "YCalc (#014)") , > , 0 , 1 , If(  Fml( "YCalc (#014)") ,
<
> , 0 , -1 , 0 )))   or
> CYY:=0;
> CYY =  (If( Fml( "YCalc (#014)") , > , 0 , 1 , If(  Fml( "YCalc (#014)") ,
<
> , 0 , -1 , 0 )))
>
> None of these work, while the following does:
> If( Fml( "YCalc (#014)") , > , 0 , 1 , If(  Fml( "YCalc (#014)") , < , 0
> , -1 , 0 ))
>
> The Formula for Ycalc is fairly simple, being:
>  Rnd(Mul((Div(Sub(C,Fml("10xxx")),Fml("13yyy"))-.5),20))  {the 10 and the
13
> represent numbers I've applied to my indicators}
> Any thoughts would be appreciated.  What I'm trying to do initially is
> convert my Intermediate Term System over to using variables.  Following
> success at that endeavor, I'll convert my other 150 indicators and system
> tests.
>
> Guy
>
> Paranoia...you only have to be right once to make it all worthwhile!
>
>
>