Registered User Joined: 10/7/2004 Posts: 86
|
Bruce. I have two histograms I plot seperately - Distance price is from 21 day SMA and Distance from 50dSMA. I wanted to combine them such that I would get 1 histogram for the "Anding" of both.
So when anyone is zero the histogram is zero, When both are above zero the histogram is above zero, when both are below zero then histogram is below zero. Any other condition would make it zero.
When I tried plotting the formula below and made it a histogram it plotted positive if both wer above zero and nothing for everything else. DO I Need to make a negative histogram version and plot it on top of the poitive one?
Thnx
100 * (C / XAVGC21 - 1)>0 AND100 * 100 * (C / AVGC50 - 1)>0
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Indicator Formula in TC2000 v17.
100 * IIF((C > XAVGC21 AND C > AVGC50) OR (C < XAVGC21 AND C < AVGC50), C / XAVGC21 + C / AVGC50 - 2, 0)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/7/2004 Posts: 86
|
Bruce thanks I have a Boolean Formula issue.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You need to plot this as a Custom PCF Indicator, not a Custom PCF % True Indicator because it returns a numeric value and not a Boolean result (true or false).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/7/2004 Posts: 86
|
Duh - Thanks Bruce Should have known that :-)
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|