Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/28/2006 Posts: 21
|
Hi,
is it possible to plot indicators / PCFs that plot a value that is a result of a condition, for example:
if (c > avgc50 and c > avgc20) then plot 1 if (c > avgc50 and c < avgc20) then plot 2
Thanks in advance,
Dominik
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Yes. One way to write it would be:
ABS((C > AVGC50 and C > AVGC20) * plot1 + (C > AVGC50 and C < AVGC20) * plot2)
If you place a Boolean expresion within parentheses as part of a larger Value based formula, it will return -1 if True and 0 if False.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/28/2006 Posts: 21
|
Great!
That was what I was looking for!
Thanks!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |