Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 6/24/2012 Posts: 35
|
Hi,
I am trying to figure out how to plot the midpoint of the highest stochastic reading and the lowest stochastic for n periods, say 30. It would be sort of like the midpoint of a donchian channel. Can you help me code that, please? Thanks!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The midpoint of a Donchian Channel with a Period of 30 and an Offset of 0 would be:
(MAXH30 + MINL30) / 2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/24/2012 Posts: 35
|
How do I apply that to finding the midpoint for a stochastic for n periods?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It appears I misunderstood the question. You donn't want the midpoint in price as defined by the stochastic or Donchian Channel. You want the midpoint of the stochastic values and not the midpoint of the price values?
Let's say it is a simple stochastic 12,3 %K:
(MAX(STOC12.3, 30) + MIN(STOC12.3, 30)) / 2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/24/2012 Posts: 35
|
Yes, that's what I was trying to figure out. Thank you very much!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |