PureBytes Links
Trading Reference Links
|
Ycalc:= Round(((C - Fml("10xxx")) / Fml("13yyy") - 0.5) * 20);
CYY:= (Ycalc > 0) - (Ycalc <= 0);
CYY;
Note that the last line is required if you wish to plot CYY.
HHP
====================
Guy Tann wrote:
>
> 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!
|