Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Stochastic midpoint Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mikemacdonald2006
Posted : Saturday, February 2, 2019 8:06:45 PM
Gold Customer Gold Customer

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!

Bruce_L
Posted : Monday, February 4, 2019 12:09:13 PM


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
mikemacdonald2006
Posted : Monday, February 4, 2019 2:08:09 PM
Gold Customer Gold Customer

Joined: 6/24/2012
Posts: 35

How do I apply that to finding the midpoint for a stochastic for n periods?

 

Bruce_L
Posted : Monday, February 4, 2019 2:12:31 PM


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
mikemacdonald2006
Posted : Monday, February 4, 2019 2:17:09 PM
Gold Customer Gold Customer

Joined: 6/24/2012
Posts: 35

Yes, that's what I was trying to figure out.  Thank you very much!

Bruce_L
Posted : Monday, February 4, 2019 2:28:27 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.