Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/18/2004 Posts: 90
|
In order to define a particular form of Stochastic, literally the individual lines for %K and %D, I wish to, 1) calculate, for use as an indicator, the five period Exponential Moving Average of a user defined PCF; is the below the correct syntax?
xavg(PCF),5; and,
2) the five period Exponential Moving Average of the function above; is the below the correct format?
xavg(xavg(PCF),5),5
Lee
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
You cannot nest a expression inside of
XAVG()
You can only nest a single element like:
XAVG(STOC8.5,10)
or
XAVG(MS1,30)
This makes #2 impossible as well.
Give me the PCF you wanted to nest and lets see if we cannot try a different way to simulate the average.
- Craig Here to Help!
|
|
Registered User Joined: 10/18/2004 Posts: 90
|
Hi Craig,
Thanks for the fast response! Since that approach isn't possible, let me change the question as follows; I'm attempting to define individual lines, %K and %D, for both the Fast and Slow Stochastic. I wish to use them as individual crossing indicators in conjunction with the Percent True indicator.
The functions look like this;
%K=100*[(C-MINLN)/(MAXHN-MINLN)] Where N can be a large number of periods.
%D=100*[M Days summation of (C-MINLN)/M Days Summation of (MAXHN-MINLN)] Where M can also be a large number of days, separate from N.
The majority of either algorithim is simple; I just don't know how to sum a series of quotients as above.
I realize that TC200 has a Stochastics function, but I would like to use the above functions in the Percent True Indicator. I.e. "If %D >=%K then..."
Can this be accomplished with TC2000?
Lee
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Check out this video and the PCF templates below it. Unless I am not understanding your question correctly, everything you need is there.
Understanding Stochastics
- Craig Here to Help!
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
Lee,
I interpret your request differently than Craig but likely neither of us knows your intent.
It seems you would like to compare %K and %D in a Percent True Indicator where the %K and %D are obtained from an Exponential STOC(P,Q,R) applied to your own PCF. This can be done, but it can become impractical depending on the size of your PCF, P, Q, and R. It is likely not Q nor R that is the problem but P. This is because of the appearance of MAX(PCF,P) and MIN(PCF,P). If your PCF were, for example, MS, there is no problem. If your PCF were, for example, V*C and P were as large as say 20, I doubt even Bruce would write the %K and %D.
If you clarify your request, you can at least get advise.
Thanks, Jim Murphy
|
|
Registered User Joined: 10/18/2004 Posts: 90
|
Thanks Jim and Craig, Craig, I'll view the video; have not done so previously in that I assumed it would be based upon the STOC established within TC2000. That would not work because I need access to %K and %D curves in order to compare them to each other within the Percent True Indicator. At the minimum, I can write the %K and %D equations using "brute force."
However, before I do so I'll go through your comments Jim.
Thanks to both of you!
Lee
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Check out the PCFs below the video. You will find formulas for stochastics crossing its own average. Watch the video to learn how stochastics, its own average, and terms like %k and %d all relate.
- Craig Here to Help!
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
Are you using the stochatics within TeleChart or are you plotting a custom indicator? If you are using the stochastics, what are your settings? If you are plotting some custom indicator, what is the formula?
- Craig Here to Help!
|
|
Guest-1 |