Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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
|
|
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)
|
|
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
|
|
Registered User Joined: 9/7/2014 Posts: 36
|
Thanks Bruce your'e the best. Bob, thank you as well.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |