Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/26/2009 Posts: 24
|
Can you give me a formula for this below that will work on TOS?
Calculation:
-
Define current "True Low" (TL) — the least of two values: the current minimum and the precious closing price.
TL (i) = MIN (LOW (i) || CLOSE (i - 1))
-
Find current "Buying Pressure" (BP). It is equal to the difference between current closing price and current True Low.
BP (i) = CLOSE (i) - TL (i)
-
Define the "True Range" (TR). It is the greatest of the following differences: current maximum and minimum; current maximum and previous closing price; current minimum and previous closing price.
TR (i) = MAX (HIGH (i) - LOW (i) || HIGH (i) - CLOSE (i - 1) || CLOSE (i - 1) - LOW (i))
-
Find the sum of BP values for all three periods of calculation:
BPSUM (N) = SUM (BP (i), i)
-
Find the sum of TR values for all three periods of calculation:
TRSUM (N) = SUM (TR (i), i)
-
Calculate the "Raw Ultimate Oscillator" (RawUO)
RawUO = 4 * (BPSUM (1) / TRSUM (1)) + 2 * (BPSUM (2) / TRSUM (2)) + (BPSUM (3) / TRSUM (3))
-
Calculate the "Ultimate Oscillator" (UO) value according to the formula:
UO = ( RawUO / (4 + 2 + 1)) * 100
Where:
MIN — means the minimum value;
MAX — the maximum value;
|| — a logical OR;
LOW (i) — the minimum price of the current bar;
HIGH (i) — the maximum price of the current bar;
CLOSE (i) — the closing price of the current bar;
CLOSE (i — 1) — the closing price of the previous bar;
TL (i) — the True Low;
BP (i) — the Buying Pressure;
TR (i) — the True Range;
BPSUM (N) — the mathematical sum of BP values for an n period (N equal to 1 corresponds with i=7 bars; N equal to 2 corresponds with i=14 bars; N equal to 3 corresponds with i=28 bars);
TRSUM (N) — the mathematical sum of TR values for an n period (N equal to 1 corresponds with i=7 bars; N equal to 2 corresponds with i=14 bars; N equal to 3 corresponds with i=28 bars);
RawUO — "Raw Ultimate Oscillator";
UO — stands for Ultimate Oscillator.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
We don't support Think or Swim and I am not familiar with whatever language might be used with Think or Swim. My best guess at a Personal Criteria Formula to use in TC2000 for UO would be:
100 * (4 * (2 * C - L - C1 + ABS(L - C1)) / (H - L + ABS(H - C1) + ABS(C1 - L)) + 2 * (2 * AVGC2 - AVGL2 - AVGC2.1 + (ABS(L - C1) + ABS(L1 - C2)) / 2) / (AVGH2 - AVGL2 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1)) / 2) + (2 * AVGC3 - AVGL3 - AVGC3.1 + (ABS(L - C1) + ABS(L1 - C2) + ABS(L2 - C3)) / 3) / (AVGH3 - AVGL3 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1) + ABS(H2 - C3) + ABS(C3 - L2)) / 3)) / 7
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/26/2009 Posts: 24
|
Thank you very much, I actully needed for Worden charts.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |