Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 3/12/2005 Posts: 40
|
On page 233 of "The Traders Book of Volume" by Mark Leibovit.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Add a Custom PCF Cumulative Indicator the chart with the following settings:
- Period: 1
- Average Type: Doesn't matter (because the Period is 1).
- Up Condition: C > C - 1
- Down Condition: C < C - 1
- Value to Add/Subtract: V * (2 * C - H - L) / (H - L + (H = L))
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/29/2006 Posts: 75
|
Hi Bruce,
I developed something simular to the above PCF and added another indicator as its 13 bar moving average. How would I write a PCF to measure or calculate the difference beween the custom PCF above and its 13 bar moving average? I want to scan for stocks where the dfference is significant.
Thanks, Richard
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
This should give you something pretty close to the value of the difference between the Custom PCF Cumulative indicator and its 13-period simple moving average:
(12 * V * (2 * C - H - L) / (H - L + (H = L)) + 11 * V1 * (2 * C1 - H1 - L1) / (H1 - L1 + (H1 = L1)) + 10 * V2 * (2 * C2 - H2 - L2) / (H2 - L2 + (H2 = L2)) + 9 * V3 * (2 * C3 - H3 - L3) / (H3 - L3 + (H3 = L3)) + 8 * V4 * (2 * C4 - H4 - L4) / (H4 - L4 + (H4 = L4)) + 7 * V5 * (2 * C5 - H5 - L5) / (H5 - L5 + (H5 = L5)) + 6 * V6 * (2 * C6 - H6 - L6) / (H6 - L6 + (H6 = L6)) + 5 * V7 * (2 * C7 - H7 - L7) / (H7 - L7 + (H7 = L7)) + 4 * V8 * (2 * C8 - H8 - L8) / (H8 - L8 + (H8 = L8)) + 3 * V9 * (2 * C9 - H9 - L9) / (H9 - L9 + (H9 = L9)) + 2 * V10 * (2 * C10 - H10 - L10) / (H10 - L10 + (H10 = L10)) + V11 * (2 * C11 - H11 - L11) / (H11 - L11 + (H11 = L11))) / 13
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/29/2006 Posts: 75
|
Hi Bruce,
Thanks for the reply! I tried the PCF above and when I sorted to find the difference between the indicator and its 13 bar average the visual "gap" between the two varied (closer and farther) when the sort should have shown the "gap" to steadily increase.
I would like to simplify the PCF and use the following values from my other cumulative indicator:
Up condition: h>avgh4
Down condition: l<avgl4
Value to Add/Subtract: v
Period: 1
Data source: Price History
I need to be able to scan stocks and sort according to the difference between this cumulaitve indicator and its 13 bar average.
Thanks in advance for you help, Richard
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The sort in fact would not have shown if the gap is steadily increasing or not.
The actual difference between the value of the Custom PCF Cumulative Indicator and its moving average is going to vary more because of the relative volumes of different symbols than by the apparent visual difference between the two on the chart.
(12 * V * ((L < AVGL4) - (H > AVGH4)) + 11 * V1 * ((L1 < AVGL4.1) - (H1 > AVGH4.1)) + 10 * V2 * ((L2 < AVGL4.2) - (H2 > AVGH4.2)) + 9 * V3 * ((L3 < AVGL4.3) - (H3 > AVGH4.3)) + 8 * V4 * ((L4 < AVGL4.4) - (H4 > AVGH4.4)) + 7 * V5 * ((L5 < AVGL4.5) - (H5 > AVGH4.5)) + 6 * V6 * ((L6 < AVGL4.6) - (H6 > AVGH4.6)) + 5 * V7 * ((L7 < AVGL4.7) - (H7 > AVGH4.7)) + 4 * V8 * ((L8 < AVGL4.8) - (H8 > AVGH4.8)) + 3 * V9 * ((L9 < AVGL4.9) - (H9 > AVGH4.9)) + 2 * V10 * ((L10 < AVGL4.10) - (H10 > AVGH4.10)) + V11 * ((L11 < AVGL4.11) - (H11 > AVGH4.11))) / 13
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/29/2006 Posts: 75
|
Roger that, I see what you mean. The PCF works great and does what I want to see to compare stocks and look for setups.
Thanks Bruce!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |