Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 1,178
|
I am using my following Custom PCF Indicators for Value:
In 78 Days # Gaps Up:
CountTrue((O>H1 AND H>H1),78)
In 78 Days # Gaps Down:
CountTrue((O>L1 AND L>L1),78)
I've chosen 78 Days simply because of its' fast calculation speed.
1) Is it possible to code how many Gaps Up occur than Gaps Down in 78 Days (or whatever number of days that can be calculated fast)?
2) And, the inverse: How many Gaps Down occur than Gaps Up in 78 Days (or whatever number of days that can be calculated fast)?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I am not quite sure how your request differs from what you are already doing. Although I would think Gaps Down would actually be the following based on your Gaps Up code.
CountTrue(O < L1 AND L < L1, 78)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 1,178
|
In order to express myself more clearly, let's consider the ETF DUST today.
It's showing 18 Gaps Up and 45 Gaps Down in the last 78 days (on a Daily chart). So the difference between the Gaps Down and the Gaps Up is 27.
I hope this helps.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Using your version of Gap Down.
CountTrue(O > H1 AND H > H1, 39) - CountTrue(O > L1 AND L > L1, 39)
Using my suggested version of Gap Down.
CountTrue(O > H1 AND H > H1, 39) - CountTrue(O < L1 AND L < L1, 39)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 1,178
|
Thanks, I will work with these.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |