Registered User Joined: 2/4/2014 Posts: 5
|
HI
can anyone help to have a formula PCF setting as TTM Squeeze indicator.
so I can copy and paste into TC2000 custom setting area
thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The TTM squeeze revisited topic explores the creation of a TTM Squeeze indicator in TC2000 using Custom PCF Indicators. I have re-posted one version of these instructions below.
If you want to plot the 5-Period Simple Moving Average of the 12-Period Rate of Change Percent as a histogram in the same pane as the dots (this is not the histogram in the TTM Squeeze indicator but Telework indicates it is close), start by creating the following Custom PCF Indicator (otherwise skip this step):
- Plot Style: Histogram
- Plot Color: Light Blue
- Negative Value Color: Checked - Light Orange
- Period: 5
- Average Type: Simple
- Formula: 100 * (C / C12 - 1)
- Label: Momentum
You will want to click on this indicator and select Scaling to set the Scale Method to Center on 0. The other scaling settings for the indicator are up to you.
You want to have both Custom PCF Indicators which plot dots in the same pane and scale, so make sure you choose to scale them with each other when prompted, but do not scale them with the histogram as it will use a different Scale Method.
Add a Custom Indicator with the following settings to plot red dots when there is a squeeze:
- Plot Style: Dots
- Plot Color: Red
- Period: 1
- Average Type: Simple
- Formula: 200 * (SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) * 4 / 3 / ((AVGH20 - AVGL20) / 2 + (ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2) + ABS(H2 - C3) + ABS(L2 - C3) + ABS(H3 - C4) + ABS(L3 - C4) + ABS(H4 - C5) + ABS(L4 - C5) + ABS(H5 - C6) + ABS(L5 - C6) + ABS(H6 - C7) + ABS(L6 - C7) + ABS(H7 - C8) + ABS(L7 - C8) + ABS(H8 - C9) + ABS(L8 - C9) + ABS(H9 - C10) + ABS(L9 - C10) + ABS(H10 - C11) + ABS(L10 - C11) + ABS(H11 - C12) + ABS(L11 - C12) + ABS(H12 - C13) + ABS(L12 - C13) + ABS(H13 - C14) + ABS(L13 - C14) + ABS(H14 - C15) + ABS(L14 - C15) + ABS(H15 - C16) + ABS(L15 - C16) + ABS(H16 - C17) + ABS(L16 - C17) + ABS(H17 - C18) + ABS(L17 - C18) + ABS(H18 - C19) + ABS(L18 - C19) + ABS(H19 - C20) + ABS(L19 - C20)) / 40 + .000001) >= 1)
- Label: Squeeze On
And another Custom Indicator with the following settings to plot yellow dots when there is not a squeeze:
- Plot Style: Dots
- Plot Color: Yellow
- Period: 1
- Average Type: Simple
- Formula: 200 * (SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) * 4 / 3 / ((AVGH20 - AVGL20) / 2 + (ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2) + ABS(H2 - C3) + ABS(L2 - C3) + ABS(H3 - C4) + ABS(L3 - C4) + ABS(H4 - C5) + ABS(L4 - C5) + ABS(H5 - C6) + ABS(L5 - C6) + ABS(H6 - C7) + ABS(L6 - C7) + ABS(H7 - C8) + ABS(L7 - C8) + ABS(H8 - C9) + ABS(L8 - C9) + ABS(H9 - C10) + ABS(L9 - C10) + ABS(H10 - C11) + ABS(L10 - C11) + ABS(H11 - C12) + ABS(L11 - C12) + ABS(H12 - C13) + ABS(L12 - C13) + ABS(H13 - C14) + ABS(L13 - C14) + ABS(H14 - C15) + ABS(L14 - C15) + ABS(H15 - C16) + ABS(L15 - C16) + ABS(H16 - C17) + ABS(L16 - C17) + ABS(H17 - C18) + ABS(L17 - C18) + ABS(H18 - C19) + ABS(L18 - C19) + ABS(H19 - C20) + ABS(L19 - C20)) / 40 + .000001) < 1)
- Label: Squeeze Off
The of dots line running along zero is the one we want. The line of dots running along -200 is not needed. So you will click on one of the Custom PCF Indicators and select Scaling so you can change the Scale Method to -100 to 100 and the Grid Lines to Fixed Arithmetic with the Amount Between Lines set to 200.00.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|