-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I have tried to create a simple spread indicator using the playground and noticed the calculation are strange so I have compared with the same script on Tradingview and confirmed that there is an error in the calculation made by PineTS.
`
//@Version=5
indicator("Spread Moving Average", overlay=false)
length = input.int(20, "Length")
sma = ta.sma(close, length)
ssma = 100 * (close - sma) / sma
plot(ssma, "Spread SMA", color.blue, linewidth=2)
`
Tradingview

Metadata
Metadata
Assignees
Labels
No labels
