Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.

 Moving Average Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
joandsig
 Posted : Friday, March 23, 2012 2:11:18 PM
Gold Customer

Joined: 6/13/2009
Posts: 5

I am looking for a way to determine the minimum (or maximum) of a simple moving average, e.g. SMA20 of closing price. To be certain for this to be a minimum, I would have to wait long enough for the MA to turn up again for a few days.

If this was a function (e.g. a parabola), it would be a few "days" after the lowest point with a slope of zero.

One difficulty in creating such a PCF seems that a minimum can occur e.g. within a 2 week time frame or it can last much longer.

Siggi

Bruce_L
 Posted : Friday, March 23, 2012 2:26:09 PM

Worden Trainer

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

You could explicitly test for the Moving Average to be decreasing or flat for a few bars and then increasing for a few bars. If we use three bars as our definition of "a few bars", we would get the following Condition Formula:

AVGC20 > AVGC20.1 AND AVGC20.1 > AVGC20.2 AND AVGC20.2 > AVGC20.3 AND AVGC20.3 <= AVGC20.4 AND AVGC20.4 <= AVGC20.5 AND AVGC20.5 <= AVGC20.6

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

 Forum Jump Customer Training & Support - Ask a Trainer - TC2000 version 12/18 - Ask a Trainer - TC2000 version 7 - Ask a Trainer - StockFinder 5.0 - PCFs, EasyScan and Custom Indicators General Discussions - Stock and Market Talk - TC2000 version 12 or 18 - TC2000 version 7 - StockFinder 5.0 - RealCode for StockFinder 5.0 Tutorial Videos - TC2000 version 12 tutorial videos - TC2000 version 7 tutorial videos 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.