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

RE: Need Help On If function



PureBytes Links

Trading Reference Links

This is the wrong syntax for the If function. It should have only 2 commas.
Can one use color names in a formula? I cannot find this documented.

Thanks, neo


-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of Amadeus
Sent: Friday, December 22, 2000 1:25 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: Need Help On If function


According to If("My formula",1,-1,0)   try   If("My formula",green,red,0)

otherwise you can also try   If("My formula" =1,green,If( If("My
formula"=-1,red,0))


neo a écrit :

> I am trying to use the If function to break an indicator in two so that it
> plots in green if up and red if down. The problem is that I do not see a
> pure If function. The only one is an If, Then, Else. If I put a 0 for else
> then I get a color dot there I do not want. Is there something that could
be
> put there that would plot no color?
>
> I have thought about creating a null function that would plot in the same
> color as the background. Is there another way?
>
> neo