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 |

Totalize Up Days for Stock Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
wecoyote13
Posted : Sunday, March 17, 2019 9:59:26 AM
Registered User
Joined: 4/12/2005
Posts: 71

Hello,

Is there a way to code an indicator that tells you how many of the last 10 days were "up" days?  I can do simple things in PCF but not too complicated.  Without loops and variables I don't see how I would do this one...thanks!  

-Bill

bcochrane
Posted : Sunday, March 17, 2019 10:14:20 AM
Registered User
Joined: 9/17/2010
Posts: 484

If you mean by an Up Day, today's close is higher than yesterday's Close

CountTrue(C>C1,10)

wecoyote13
Posted : Sunday, March 17, 2019 10:27:19 AM
Registered User
Joined: 4/12/2005
Posts: 71

QUOTE (bcochrane)

If you mean by an Up Day, today's close is higher than yesterday's Close

CountTrue(C>C1,10)

 

I will try that...I clearly don't know PCF very well...thanks! 

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.