Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/3/2006 Posts: 278
|
Morning Bruce - would you please make me a pcf for the 50 sma. I'd like it to be rising and then start rolling over and heading down. It's that rollover to the dowside I'm looking for.
Thanks - Mike
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You could write this as follows.
AVGC50 <= AVGC50.1 AND AVGC50.1 > AVGC50.2
But this could be shortened to the following.
C <= C50 AND C1 > C51
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/3/2006 Posts: 278
|
Thanks for the speedy reply!
Mike
|
|
Registered User Joined: 12/3/2006 Posts: 278
|
Morning Bruce - this is working just fine but I'd like to back it up a bit. Could you please tweek the above so that this turndown happens 10 days back.
Thanks - Mike
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You can just add 10 to all of the bars ago parameters.
C10 <= C60 AND C11 > C61
If you need the moving average to have continued to go down since, then you would have to also check that the most recent 10 moving average values decreased as well.
C < C50 AND C1 < C51 AND C2 < C52 AND C3 < C53 AND C4 < C54 AND C5 < C55 AND C6 < C56 AND C7 < C57 AND C8 < C58 AND C9 < C59 AND C10 <= C60 AND C11 > C61
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/3/2006 Posts: 278
|
Thank you - I'll have something to play with this weekend!
Have a great weekend
Mike
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |