Relative Strength of True Range
Hi,
I'm trying to copy an indicator from Trading View and part of the indicator has the follow line of code
ta.tr = True range. It is max(high - low, abs(high - close[1]), abs(low - close[1]))
ta.rma = Moving average used in RSI. It is the exponentially weighted moving average with alpha = 1 / length.
What would be the correct way to write something similar?
Never any reason to use the SMMA(L) it's equivalent to the EMA(2L-1).
The Smoothed Moving Average or SMMA - How to Avoid It - NinjaTrader Programming | futures.io (2019)
Hi,
I'm trying to copy an indicator from Trading View and part of the indicator has the follow line of code
rr = ta.rma(ta.tr, 35)ta.tr = True range. It is max(high - low, abs(high - close[1]), abs(low - close[1]))
ta.rma = Moving average used in RSI. It is the exponentially weighted moving average with alpha = 1 / length.
What would be the correct way to write something similar?