Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Williams Awesome Oscillator (AO)
Templates (v17+)
Main Indicator
(AVG(H + L, 5) - AVG(H + L, 34)) / 2
Plot Only Down Bars
(AVGH5 + AVGL5 - AVGH34 - AVGL34) / 2 / ABS(AVG(H + L, 5) - AVG(H + L, 34) < (AVG(H1 + L1, 5) - AVG(H1 + L1, 34)))
Related Topics
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/30/2015 Posts: 197
|
i assume the plot only down bars and another plot only up bars you could create a 2 color histogram?
I tried the formula and got an error cannot divide by zero
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You would plot the main indicator as a Custom PCF Indicator using the Histogram Plot Style in your up color. Then you would use the Plot Only Down Bars formula using a Custom PCF Indicator using the Histogram Plot Style in your down color.
The division by zero error is deliberate. This is what causes the down bars version to not plot when the indicator is up.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 9/30/2011 Posts: 788
|
I would like to change the following formula to get the Up signal instead of numbers.
(AVG (H + L, 5) - AVG (H + L, 34)) / 2
Thank you and goodbye.
Raider45
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you mean the value is above zero:
AVG(H + L, 5) > AVG(H + L, 34)
If you mean the value is crossing above zero:
XUP(AVG (H + L, 5), AVG(H + L, 34))
If you mean the value is going up:
AVG(H + L - H1 - L1, 5) > AVG(H + L - H1 - L1, 34)
If you mean the value has started going up while below zero:
AVG(H1 + L1, 5) < AVG(H1 + L1, 34) AND TrueInRow(AVG(H + L - H1 - L1, 5) > AVG(H + L - H1 - L1, 34), 2) = 1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 9/30/2011 Posts: 788
|
Congratulations, thank you!
Sincerely
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Gold Customer
Joined: 4/19/2012 Posts: 7
|
HI BRUCE/ PCF FOR PRICE CLOSES ABOVE 15 DAY MOVING AVG, I AM HAVING ALL KINDS OF TROUBLE=(FIX FORMULA) MOSTLY PARENTHES
THANKS
|
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
C > AVGC15
|
|
Guest-1 |