## New version 17 available now

Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

 trend formula Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
earllynn
 Posted : Friday, September 16, 2016 1:25:25 AM
Gold Customer

Joined: 1/21/2012
Posts: 24

Formula for ema 5 day X ema20 confdition

exponential 5 day ma X exponential 20 day ma

Bruce_L
 Posted : Friday, September 16, 2016 9:49:31 AM

Worden Trainer

Joined: 10/7/2004
Posts: 61,564

A Condition Formula for EMA5 crossing up through EMA20 can be written as follows.

XAVGC5 > XAVGC20 AND XAVGC5.1 <= XAVGC20.1

A Condition Formula for EMA5 crossing down through EMA20 can be written as follows.

XAVGC5 < XAVGC20 AND XAVGC5.1 >= XAVGC20.1

A Condition Formula for EMA5 crossing through EMA20 in either direction can be written as follows.

SGN(XAVGC5 - XAVGC20) <> SGN(XAVGC5.1 - XAVGC20.1)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
earllynn
 Posted : Friday, September 16, 2016 11:45:24 AM
Gold Customer

Joined: 1/21/2012
Posts: 24

QUOTE (Bruce_L)
A Condition Formula for EMA5 crossing up through EMA20 can be written as follows.

XAVGC5 > XAVGC20 AND XAVGC5.1 <= XAVGC20.1

A Condition Formula for EMA5 crossing down through EMA20 can be written as follows.

XAVGC5 < XAVGC20 AND XAVGC5.1 >= XAVGC20.1

A Condition Formula for EMA5 crossing through EMA20 in either direction can be written as follows.

SGN(XAVGC5 - XAVGC20) <> SGN(XAVGC5.1 - XAVGC20.1)

Thanks, Bruce!

aubrey.dsouza
 Posted : Thursday, November 24, 2016 6:57:10 AM
Gold Customer

Joined: 3/10/2013
Posts: 36

Hi Bruce,

I have this scan set-up and in a watchlist colum but do not get results - however it does show on the chart - can you please help. Thanks Aubrey

SGN(AVGC21 - AVGC200) <> SGN(AVGC21.1 - AVGC200.1) OR SGN(AVGC21 - AVGC200) <> SGN(AVGC21.2 - AVGC200.2) OR SGN(AVGC21 - AVGC200) <> SGN(AVGC21.3 - AVGC2001.3)

Bruce_L
 Posted : Friday, November 25, 2016 8:17:21 AM

Worden Trainer

Joined: 10/7/2004
Posts: 61,564

If you are getting different results on the chart than in a WatchList Column I would start by deleting and re-adding the WatchList Column. If that does not work, then please contact technical support.

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

 Forum Jump Customer Training & Support - Ask a Trainer - TC2000 version 12/17 - 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 17 - 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.