Gold Customer
Joined: 5/26/2017 Posts: 13

I wonder whether it is possible to have either a column or a marker within the chart which is showing when a Pocket Pivotal Point appears.
The rule would be the following one:
 Todays buying volume is larger than the highest down volume day over the prior 10 days
 Current bar must close higher than previous bar
 Current bar must either cross abouve the sma10 or sma50
The idea behind a pocket pivot is that one is buying the stock "in the pocket," as a lessobvious but valid and reliable buy point within the stock's base.
Thanks...

Gold Customer
Joined: 9/17/2010 Posts: 333

C > C1 AND
V > MAX(ABS(C1 < C2) * V1, 10) and
(XUp(C,AvgC10) or XUp(C,AvgC50))
although FWIW, I don't beleive off the top of my head that crossing a MA line is part of the Pocket Pivot definition from Morales
There are other Pocket Pivot posts in DIscussion you can search for
http://www.aaiilosangeles.org/SkirballPresentations/Morales&Kacher091110.pdf

Gold Customer
Joined: 5/26/2017 Posts: 13

Thanks for you help. I've tested it and it works perfect.
I'm a VOSI member for many years, meanwhile the crossing MA is part of the PPP. Morales sometimes also refers that the close of the day should be in the upper 33% of the canlde however, that's only in rare cases.

Gold Customer
Joined: 5/26/2017 Posts: 13

How would you write this formula so that you can overlay it as a histogram over the daily volume histogram, just using a different color? (sorry i'm a beginner writing PCF formulas)

Worden Trainer
Joined: 10/7/2004 Posts: 61,018

You could use the formula as written as the Boolean Formula in a Custom PCF % True Indicator with the Plot Style set to Histogram.
The histogram values will be either 0 or 100 (so all the way at the top or all the way at the bottom). If you want it to plot at different heights, we would need to know at what height you want it plotted.
If you wanted to plot it in the same pane and scale as volume with the value being either zero or volume to just change the color of the histogram bar, you could use a Custom PCF Indicator instead of a Custom PCF % True Indicator. You will want the Plot Style set to Histogram using the following Formula.
IIF(C > C1 AND V > MAX(ABS(C1 < C2) * V1, 10) and (XUp(C,AvgC10) or XUp(C,AvgC50)), V, 1 / 0)
Bruce Personal Criteria Formulas TC2000 Support Articles

Gold Customer
Joined: 5/26/2017 Posts: 13

QUOTE (Bruce_L)
You could use the formula as written as the Boolean Formula in a Custom PCF % True Indicator with the Plot Style set to Histogram.
The histogram values will be either 0 or 100 (so all the way at the top or all the way at the bottom). If you want it to plot at different heights, we would need to know at what height you want it plotted.
If you wanted to plot it in the same pane and scale as volume with the value being either zero or volume to just change the color of the histogram bar, you could use a Custom PCF Indicator instead of a Custom PCF % True Indicator. You will want the Plot Style set to Histogram using the following Formula.
IIF(C > C1 AND V > MAX(ABS(C1 < C2) * V1, 10) and (XUp(C,AvgC10) or XUp(C,AvgC50)), V, 1 / 0)
Hi Bruce
Thanks for your hint.
Using your formula in a Custom PCF Indikator gives me a "divide by zero" error. Any ideas?
Krgds

Worden Trainer
Joined: 10/7/2004 Posts: 61,018

It is supposed to give a divide by zero error so it doesn't plot anything at all when false. If you want to settle for plotting 0 instead, you can relpace the 1 / 0 at the end of the formula with just 0 instead.
IIF(C > C1 AND V > MAX(ABS(C1 < C2) * V1, 10) and (XUp(C,AvgC10) or XUp(C,AvgC50)), V, 0)
That said, I would probably use the first version of the formula instead.
Bruce Personal Criteria Formulas TC2000 Support Articles
