Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 3/16/2011 Posts: 7
|
Could someone help me to create a PCF that compares today's EMA2 of Force Index to yesterday's EMA2 of Force Index. I know that today's EMA2 of Force Index is:((C - C1) * V + 1 / 3 * ((C1 - C2) * V1 + 1 / 3 * ((C2 - C3) * V2 + 1 / 3 * ((C3 - C4) * V3 + 1 / 3 * ((C4 - C5) * V4 + 1 / 3 * ((C5 - C6) * V5)))))) / (3 / 2 - 1 / 2 * (1 / 3) ^ 5)but how does the same thing look like for yesterday's EMA2 of Force Index?Thank you.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you add 1 to all of the bars ago parameters of:
((C - C1) * V + 1 / 3 * ((C1 - C2) * V1 + 1 / 3 * ((C2 - C3) * V2 + 1 / 3 * ((C3 - C4) * V3 + 1 / 3 * ((C4 - C5) * V4 + 1 / 3 * ((C5 - C6) * V5)))))) / (3 / 2 - 1 / 2 * (1 / 3) ^ 5)
You get:
((C1 - C2) * V1 + 1 / 3 * ((C2 - C3) * V2 + 1 / 3 * ((C3 - C4) * V3 + 1 / 3 * ((C4 - C5) * V4 + 1 / 3 * ((C5 - C6) * V5) + 1 / 3 * ((C6 - C7) * V6))))) / (3 / 2 - 1 / 2 * (1 / 3) ^ 5)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 3/16/2011 Posts: 7
|
Thank you very much Bruce!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |