Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

200SMA - 50 Day Run Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
martinvickers
Posted : Saturday, September 8, 2018 10:26:21 AM
Registered User
Joined: 8/18/2012
Posts: 4

Can you give the PCF for the following:

 

Closing price yesterday was  above the 200 Simple Moving Average for at least 50 consecutive trading day without price ever touching the 200 SMA anytime within those 50 days

bcochrane
Posted : Saturday, September 8, 2018 11:45:00 AM
Registered User
Joined: 9/17/2010
Posts: 484

CountTrue(AvgC50>AvgC200,50) = 50

Bruce_L
Posted : Monday, September 10, 2018 10:22:19 AM


Worden Trainer

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

It should be slightly more efficient to write this as follows (since CountTrue needs to check all 50 bars while TrueInRow might not need to check all 50 bars).

TrueInRow(AVGC50 > AVGC200, 50) = 50



-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.