A request that was addressed to ProRealTime:
Hello,
I would an indicator that tells me when the %K cross with %D of Stochastic smoothed (17,9,3)
a=Stochastic smoothed (17,9,3)%K
b=Stochastic smoothed (17,9'3)%D
condizione1=a>b
condizione2=a<b
if condizione1 then
c=1
elsif condizione2 then
c=-1
endif
return c
Suggestion for an anwser:
nbperiode=14
PeriodeK=3
PeriodeD=5
a=SmoothedStochastic[nbperiode,PeriodeK](close)
b=average[PeriodeD](a)
condizione1=a>b
condizione2=a<b
if condizione1 then
c=1
elsif condizione2 then
c=-1
endif
return c