I am just wondering how you approach a problem which involves previous prices for 14 periods (as the stochastic formula requires)?

How are you storing these, via Queue if so how do you inspect last and certain elements in the queue?

Thanks Josh

Author