Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/30/2004 Posts: 74
|
Hi Bruce!
Please help me with PCF's for the following indicator: (H + L + C - AVGH50 - AVGL50 - AVGC50) * 2800 / 3 / (ABS(H + L + C - AVGH50 - AVGL50 - AVGC50) + ABS(H1 + L1 + C1 - AVGH50 - AVGL50 - AVGC50) + ABS(H2 + L2 + C2 - AVGH50 - AVGL50 - AVGC50) + ABS(H3 + L3 + C3 - AVGH50 - AVGL50 - AVGC50) + ABS(H4 + L4 + C4 - AVGH50 - AVGL50 - AVGC50) + ABS(H5 + L5 + C5 - AVGH50 - AVGL50 - AVGC50) + ABS(H6 + L6 + C6 - AVGH50 - AVGL50 - AVGC50) + ABS(H7 + L7 + C7 - AVGH50 - AVGL50 - AVGC50) + ABS(H8 + L8 + C8 - AVGH50 - AVGL50 - AVGC50) + ABS(H9 + L9 + C9 - AVGH50 - AVGL50 - AVGC50) + ABS(H10 + L10 + C10 - AVGH50 - AVGL50 - AVGC50) + ABS(H11 + L11 + C11 - AVGH50 - AVGL50 - AVGC50) + ABS(H12 + L12 + C12 - AVGH50 - AVGL50 - AVGC50) + ABS(H13 + L13 + C13 - AVGH50 - AVGL50 - AVGC50) + .000001) with an exponential smoothing average of 5 when it is crossing up its 2 dsma; and also, when it is crossing down its 2 dsma.
Thanks much
Steve
Roswell, GA
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Sorry, daddy5x, the resulting Personal Criteria Formula would be too long to be practical (and possibly too long to even fit into the Windows clipboard).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/30/2004 Posts: 74
|
So I guess I shouldn't feel like a failure because I couldn't create those PCF's. Thanks anyway.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
No, I wouldn't feel bad about it. As far as I can tell, just creating a Personal Criteria Formula for the Custom Indicator itself would require replacing each instance of C in the following formula with the appropriate Days Ago version of the formula in the Custom Indicator:
0.333559032545198 * (C0 + 4 / 6 * (C1 + 4 / 6 * (C2 + 4 / 6 * (C3 + 4 / 6 * (C4 + 4 / 6 * (C5 + 4 / 6 * (C6 + 4 / 6 * (C7 + 4 / 6 * (C8 + 4 / 6 * (C9 + 4 / 6 * (C10 + 4 / 6 * (C11 + 4 / 6 * (C12 + 4 / 6 * (C13 + 4 / 6 * (C14 + 4 / 6 * (C15 + 4 / 6 * (C16 + 4 / 6 * (C17))))))))))))))))))
We might be able to do it with less terms, but the large variability in CCI might actually mean that more terms would be required to get the correct results.
The 2-Period Simple Moving Average of that would involve creating a 1-Bar Ago version of that, adding them together and dividing by two, but we could probably actually skip this step (because the SMA period is two).
In a crossup formula, the CI formula would need to be greater than the EMA5 of the CI formula from 1-Bar Ago and CI formula of 1-Bar Ago would need to be less than or equal to the EMA5 of the CI formula of 2-Bars Ago.
In a crossdown formula, the CI formula would need to be less than the EMA5 of the CI formula from 1-Bar Ago and the CI formula of 1-Bar Ago would need to be greater than or equal to the EMA5 of the CI formula of 2-Bars Ago.
The fact that we are doing simple comparisons instead of actually requiring he values also means we can get rid of the 0.333559032545198 * at the front of the formula.
So if you use the same number of terms (17), the formula would end up being a little longer than 36 times the length of the CCI formula plus 2 times the length of the EMA5 formula. It might work, but it would be a very long (and probably very slow) formula. I've provided enough detail to actually write the formula if you want to give it a try.
You may wish to review the following:
Cascades of Moving Averages
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |