vorrei inserire lo stocastico settimanale su tf giornaliero o h1, con il codice allegato ho una sola curva anzichè le due dell’indicatore, dove sbaglio?
timeframe(1 week,updateonclose)
STOW1=Stochastic[14,3](close)
RETURN STOW1 as "Stocastico W1"
Non è errato, solo che tu hai scritto solo la K%, ti manca la linea D% (è uno stocastico 14,3,3):
timeframe(1 week,updateonclose)
STOW1 = Stochastic[14,3](close) //linea K% 14,3
STOW1d = average[3,0](STOW1) //linea D% 3
return STOW1 AS "K% weekly",STOW1d AS "%D weekly"