As many of you, I long for a PRT version that allows you to express different periods in the same code. Until that happens, is there a way to change the parameters to “simulate” a different time period. For example; if the code is adjusted for 40 minutes but FastStochastic(14,3) would perform best in daily period. Could that be adjusted in the parameters?
You cannot calculate the exact daily stochastic with the built-in stochastic indicator shown on shorter time-scales. What you can do : Use a manual formula to calculate the stochastic indicator
https://en.wikipedia.org/wiki/Stochastic_oscillator ,
write a code to express this (or look in the library here), and calculate the daily stochastic indicator using the daily closing price of the previous day “DClose(1)”.
But only once a day on the shorter timeframe, for example when intradaybarindex = 0.
2 users thanked author for this post.