Hi,
Can someone please help me with a stochastic with triangular method? I know how to code stochastic but I am unsure about the method. I also searched for it but could not find any post where a “method” is applied or changed.
Justin
There you go:
StocOB = 80 //80 - 20
StocOS = 100 - StocOB
StocMID = 50 //50
// Stochastic(9,7,4) Triangular
StocK = Stochastic[9,7](close)
StocD = Average[4,4](StocK) //4=Triangular (https://www.prorealcode.com/documentation/average/)
RETURN StocK AS "K",StocD AS "D",StocOB AS "Ob",StocOS AS "Os",StocMid AS "Middle"
Thank you, I appreciate it.