Registered User Joined: 5/4/2008 Posts: 11
|
I really don't know how to interpret code very well. I found this code and wondered if you could translate it for me. I want to understand what it happening at the time I get a spike using it as a percent true setting. (((((20 - 1) / 2) * AVGC20 - (C1 + 2 * C2 + 3 * C3 + 4 * C4 + 5 * C5 + 6 * C6 + 7 * C7 + 8 * C8 + 9 * C9 + 10 * C10 + 11 * C11 + 12 * C12 + 13 * C13 + 14 * C14 + 15 * C15 + 16 * C16 + 17 * C17 + 18 * C18 + 19 * C19 ) / 20) / SQR(((20 ^ 2 - 1) / 12) * 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)) + .0000001) ^ 2) <.20 and c>h1 and v>v1
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It appears to be a formula for a 20-Period R-Squared value being less than .2 and the current Close being above the previous High and the current Volume being above the previous Volume. The Need help writing a PCF for r-squared topic covers the creation of formulas for R-Squared and Standard Error.
You may wish to review the following:
PCF Formula Descriptions
-Bruce Personal Criteria Formulas TC2000 Support Articles
|