Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

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

 Moving averages Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
dmalyga
 Posted : Thursday, October 11, 2018 12:42:54 PM
Gold Customer

Joined: 11/9/2009
Posts: 36

Hi,

Is it possibe to create a scan or a signal if price is between two moving avgs example 3ma and 6ma?

Bruce_L
 Posted : Thursday, October 11, 2018 12:59:20 PM

Worden Trainer

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

Yes, you can write this multiple ways. It can be written as follows for example.

`(AVGC3 <= C AND C <= AVGC6) OR (AVGC6 <= C AND C <= AVGC3)`

Or the slightly shorter but less obvious formula below.

`ABS(2 * C - AVGC3 - AVGC6) <= ABS(AVGC3 - AVGC6)`

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dmalyga
 Posted : Thursday, October 11, 2018 1:07:02 PM
Gold Customer

Joined: 11/9/2009
Posts: 36

Bruce_L
 Posted : Thursday, October 11, 2018 1:10:15 PM

Worden Trainer

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

Just use `XAVGC` instead `AVGC`.

`(XAVGC3 <= C AND C <= XAVGC6) OR (XAVGC6 <= C AND C <= XAVGC3)`

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