Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 9/30/2011 Posts: 788
|
I would like to have a PCF Formula with the following parameter:
Coppock Curve 1-2-1 Crossing Up on Linear Regression 10
Thank you and goodbye.
Raider45
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am going to assume you mean a moving linear regression of the Coppock Curve 1-2-1 as it is a continuous function. If you are looking at a linear regression line instead, it might look like it was below during the previous bar and above during the current bar even though that isn't actually the case (because the slope of the line was different one bar ago).
XUP(C / C1 + C / C2, 3 * FAVG(C / C1 + C / C2, 10) - 2 * AVG(C / C1 + C / C2, 10))
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 9/30/2011 Posts: 788
|
Thanks for your attention and collaboration, however, the formula does not reflect what I already have on the chart:
1) I set the Coppock Curve 1 - 2 - 1 indicator on the graph
2) On the Indicator I set a Linear Regression with period 10
3) Using the Create condition function: Coppock Curve Vs Lin Reg 10, I have set
Crossing Up Li nReg 10
So, the Formula should signal the Crossing, instead it signals the Indicator above Lin Reg !
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Seriously, you really should be doing this with a moving linear regression and not a linear regression line as pointed out in my previous post.
Very strange things can happen when you do this with the linear regression line instead of the moving linear regression such as being able to cross up two bars in a row.
But if this is really the formula you want, then please try the following.
C / C1 + C / C2 > 3 * FAVG(C / C1 + C / C2, 10) - 2 * AVG(C / C1 + C / C2, 10) AND C1 / C2 + C1 / C3 <= AVG(C / C1 + C / C2, 10) + 7 * (FAVG(C / C1 + C / C2, 10) - AVG(C / C1 + C / C2, 10)) / 3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 9/30/2011 Posts: 788
|
The formula works well as I wanted, congratulations and thanks !
Best regards !
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |