Registered User Joined: 5/26/2017 Posts: 25
|
I hav a question:
I would like to build a PCF formula. My base is the following one:
UP = (rsi(close,8) > rsi(close,14) and rsi(close,14) > rsi(close,19) and close > sma(close,9)) ? green : transparent
In PCF i have the following:
(RSI8.1 > RSI14.1) and (RSI14.1 > RSI19.1) and (c > AVGC9)
Is this correct and how can i make a "no match" transparent?
Thanks...
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Your formulas would seem to be correct for a plain RSI without Wilder's smoothing. If you want the Wilder's RSI with Wilder's smoothing, the Condtion Formula would be the following instead.
WRSI8 > WRSI14 AND WRSI14 > WRSI9 AND C > AVGC9
If you wanted to plot a line of dots at zero when the Wilder's version is true and not plot anything when it is false, you could use the following Formula in a Custom PCF Indicator using the Dots Plot Style.
IIF(WRSI8 > WRSI14 AND WRSI14 > WRSI9 AND C > AVGC9, 0, 1 / 0)
If however you wanted to plot a dot at the closing price when your original formula was true and nothing otherwise, you would want to use the following Formula in a Custom PCF Indicator set to use the Dots Plot Style in the same pane and scale as price.
IIF(RSI8 > RSI14 AND RSI14 > RSI9 AND C > AVGC9, C, 1 / 0)
How to Overlay an Indicator
-Bruce Personal Criteria Formulas TC2000 Support Articles
|