Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Re: Moving Average(s) of PCFs Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
leegyoung
Posted : Wednesday, December 7, 2005 11:30:21 AM
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
Craig_S
Posted : Wednesday, December 7, 2005 11:35:05 AM


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!
leegyoung
Posted : Wednesday, December 7, 2005 10:18:02 PM
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
Craig_S
Posted : Thursday, December 8, 2005 6:00:17 AM


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!
bustermu
Posted : Thursday, December 8, 2005 9:28:09 AM
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
leegyoung
Posted : Thursday, December 8, 2005 3:39:49 PM
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
Craig_S
Posted : Thursday, December 8, 2005 4:15:42 PM


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!
Craig_S
Posted : Thursday, December 8, 2005 4:21:14 PM


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!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.