When using Thinkscript, only constant lengths are allowed - while other platforms such as TradingView allow the use of dynamic length. Is there an alternate way to achieve this?
Example:
def Avg1 = MovingAverage(averageType, value, length) #I would value length to be dynamic.
TradingView Example:
rsiLen = round(SmoothLen) // Get variable RSI length
idealRSI = irsi(src,rsiLen)
Example:
def Avg1 = MovingAverage(averageType, value, length) #I would value length to be dynamic.
TradingView Example:
rsiLen = round(SmoothLen) // Get variable RSI length
idealRSI = irsi(src,rsiLen)