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 |

Exponential Average PCF converging and diverging with another MA Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
HowBoutDat
Posted : Thursday, March 21, 2019 5:24:39 PM
Registered User
Joined: 9/7/2014
Posts: 36

Is there a way to write a PCF that would describe the 20EMA converging towards the 40EMA for the last 3 bars and one where there is divergence for the last 3 bars

Bruce_L
Posted : Friday, March 22, 2019 9:56:03 AM


Worden Trainer

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

The 20 and 40 EMAs getting closer to each other while remaining on the same side can be written as follows.

TrueInRow(ABS(MACD20.40) < ABS(MACD20.40.1) AND SGN(MACD20.40) = SGN(MACD20.40.1), 3) = 3

Getting further apart would be the following.

TrueInRow(ABS(MACD20.40) > ABS(MACD20.40.1) AND SGN(MACD20.40) = SGN(MACD20.40.1), 3) = 3



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
bcochrane
Posted : Friday, March 22, 2019 11:19:20 AM
Registered User
Joined: 9/17/2010
Posts: 484

ABS(MACD20.40) < ABS(MACD20.40)??? Wouldnt they always be equal? Am I missing something?

Ditto

TrueInRow(ABS(MACD20.40) > ABS(MACD20.40)

Bruce_L
Posted : Friday, March 22, 2019 11:33:59 AM


Worden Trainer

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

You aren't missing anything. The second instance in each comparison should be MACD20.40.1 instead.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
HowBoutDat
Posted : Friday, March 22, 2019 1:00:03 PM
Registered User
Joined: 9/7/2014
Posts: 36

Thanks Bruce your'e the best.  Bob, thank you as well.

Bruce_L
Posted : Friday, March 22, 2019 1:03:36 PM


Worden Trainer

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

You're welcome.



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