Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

My Custom PCF Indicators for # Gaps Up or # Gaps Down Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
traderlady
Posted : Tuesday, May 8, 2018 9:46:52 AM
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)?

Bruce_L
Posted : Tuesday, May 8, 2018 9:52:27 AM


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
traderlady
Posted : Tuesday, May 8, 2018 10:04:33 AM
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.

 

Bruce_L
Posted : Tuesday, May 8, 2018 10:11:09 AM


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
traderlady
Posted : Tuesday, May 8, 2018 10:17:31 AM
Registered User
Joined: 10/7/2004
Posts: 1,178

Thanks, I will work with these.

Bruce_L
Posted : Tuesday, May 8, 2018 10:26:32 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.