Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 4/7/2011 Posts: 69
|
Hi,
What is the variable name to get the value of today's and yesterday's Ultimate Oscillator in a PCF?
Thanks!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The Ultimate Oscillator is not built into the Personal Criteria Formula Language. A PCF for the Ultimate Oscillator would depend on the settings. The Ultimate Oscillator topic contains formulas for several settings. You would need to add 1 to all of the bars ago parameters to create a version for 1-bar ago instead of for the current bar.
That said, I would not create a formula for this at all if you are using TC2000 version 12.2. You can click on the indicator and select Create Scan Condition or Show values in WachList to create Conditions based on or display the vaules of the Ultimate Oscillator. You can add a 1-Period Simple Moving Average with an Offset of 1 to the Ultimate Oscillator to do the same for the Ultimate Oscillator of 1-bar ago.
Creating Scan and Sort Conditions
Setting Up WatchList Columns
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 4/7/2011 Posts: 69
|
Sounds good! thanks a lot Bruce.
|
|
Registered User Joined: 3/28/2005 Posts: 3
|
Bruce,
Need pcf for Ulitmate Oscillator (1,2,4). Having problems converting.
Thank you,
David Stahl
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Indicator Formula:
(400 * (2 * C - L - C1 + ABS(L - C1)) / (H - L + ABS(H - C1) + ABS(L - C1)) + 200 * (4 * AVGC2 - 2 * AVGL2 - 2 * AVGC2.1 + ABS(L - C1) + ABS(L1 - C2)) / (2 * AVGH2 - 2 * AVGL2 + ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2)) + 100 * (8 * AVGC4 - 4 * AVGL4 - 4 * AVGC4.1 + ABS(L - C1) + ABS(L1 - C2) + ABS(L2 - C3) + ABS(L3 - C4)) / (4 * AVGH4 - 4 * AVGL4 + ABS(H - C1) + ABS(L - C1) + ABS(H1 - C2) + ABS(L1 - C2) + ABS(H2 - C3) + ABS(L2 - C3) + ABS(H3 - C4) + ABS(L3 - C4))) / 7
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |