Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/18/2004 Posts: 10
|
I am seeking a formula to find the strength of a trend for 10 periods of SMA with a scale of +100 to -100. The 10 SMA range from 10 -100 in steps of(10,20,20,40,etc.)
Thanks, george
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I'm not sure if this is what you are looking for, but try it out:
10*(SGN(AVGC10-AVGC10.1) +SGN(AVGC10.1-AVGC10.2) +SGN(AVGC10.2-AVGC10.3) +SGN(AVGC10.3-AVGC10.4) +SGN(AVGC10.4-AVGC10.5) +SGN(AVGC10.5-AVGC10.6) +SGN(AVGC10.6-AVGC10.7) +SGN(AVGC10.7-AVGC10.8) +SGN(AVGC10.8-AVGC10.9) +SGN(AVGC10.9-AVGC10.10))
If it isn't quite right, I will try to adjust it based on your feedback.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
After re-reading your post, I'm almost sure I got it wrong. How about one of the following:
10*(SGN(C-AVGC10) +SGN(C-AVGC20) +SGN(C-AVGC30) +SGN(C-AVGC40) +SGN(C-AVGC50) +SGN(C-AVGC60) +SGN(C-AVGC70) +SGN(C-AVGC80) +SGN(C-AVGC90) +SGN(C-AVGC100))
or:
10*(SGN(C-AVGC10) +SGN(AVGC10-AVGC20) +SGN(AVGC20-AVGC30) +SGN(AVGC30-AVGC40) +SGN(AVGC40-AVGC50) +SGN(AVGC50-AVGC60) +SGN(AVGC60-AVGC70) +SGN(AVGC70-AVGC80) +SGN(AVGC80-AVGC90) +SGN(AVGC90-AVGC100))
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/18/2004 Posts: 10
|
I used the custom indicator settings window. The values are +102 to -102.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
TeleChart puts a little space at the top and bottom of the scale so +100 and -100 don't actually hit the top and bottom edges of the chart.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/18/2004 Posts: 10
|
Your second post is working better. Thanks for the help Bruce.
George
|
|
Guest-1 |