Registered User Joined: 1/28/2005 Posts: 6,049
|
I would like a 33 period Ulcer Index.
Thanks
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Assuming the formulas given in the Ulcer Index PCF? topic are correct (which is not guaranteed), then a 33-Period Ulcer Index can be written as:
SQR(((100 * (C / MAXC33 - 1)) ^ 2 + (100 * (C1 / MAXC32.1 - 1)) ^ 2 + (100 * (C2 / MAXC31.2 - 1)) ^ 2 + (100 * (C3 / MAXC30.3 - 1)) ^ 2 + (100 * (C4 / MAXC29.4 - 1)) ^ 2 + (100 * (C5 / MAXC28.5 - 1)) ^ 2 + (100 * (C6 / MAXC27.6 - 1)) ^ 2 + (100 * (C7 / MAXC26.7 - 1)) ^ 2 + (100 * (C8 / MAXC25.8 - 1)) ^ 2 + (100 * (C9 / MAXC24.9 - 1)) ^ 2 + (100 * (C10 / MAXC23.10 - 1)) ^ 2 + (100 * (C11 / MAXC22.11 - 1)) ^ 2 + (100 * (C12 / MAXC21.12 - 1)) ^ 2 + (100 * (C13 / MAXC20.13 - 1)) ^ 2 + (100 * (C14 / MAXC19.14 - 1)) ^ 2 + (100 * (C15 / MAXC18.15 - 1)) ^ 2 + (100 * (C16 / MAXC17.16 - 1)) ^ 2 + (100 * (C17 / MAXC16.17 - 1)) ^ 2 + (100 * (C18 / MAXC15.18 - 1)) ^ 2 + (100 * (C19 / MAXC14.19 - 1)) ^ 2 + (100 * (C20 / MAXC13.20 - 1)) ^ 2 + (100 * (C21 / MAXC12.21 - 1)) ^ 2 + (100 * (C22 / MAXC11.22 - 1)) ^ 2 + (100 * (C23 / MAXC10.23 - 1)) ^ 2 + (100 * (C24 / MAXC9.24 - 1)) ^ 2 + (100 * (C25 / MAXC8.25 - 1)) ^ 2 + (100 * (C26 / MAXC7.26 - 1)) ^ 2 + (100 * (C27 / MAXC6.27 - 1)) ^ 2 + (100 * (C28 / MAXC5.28 - 1)) ^ 2 + (100 * (C29 / MAXC4.29 - 1)) ^ 2 + (100 * (C30 / MAXC3.30 - 1)) ^ 2 + (100 * (C2 / MAXC9.31 - 1)) ^ 2) / 33)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Platinum Customer
Joined: 10/7/2004 Posts: 3
|
C/MAX - 1 is not really a drawdown, so I don't see how it can produce an ulcer index.
Suppose MAX for a period is $100, and C today is $105.
Then C/MAX = 105/100 - 1 = 1.05 - 1 = 0.05
But the drawdown for this example should be zero, since price went up.
If a stock hits a new high everyday during a period, the ulcer index should be zero, right?
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
QUOTE (ChartPilot)
Suppose MAX for a period is $100, and C today is $105.
Then C/MAX = 105/100 - 1 = 1.05 - 1 = 0.05
This cant be true.
CMAX will rise when C does and be 105.
Thanks
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome. And thanks for providing the explanation of how the formula works while I was away.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|