I have the following code in Pinescript and having some trouble converting to Ninja. appreciate the help
longcheck = (ema1 - ema1[1]) / ema1[1] * 100
confirmlong = ta.ema(longcheck, 30)
i would think longcheck is singular value but it is returning a series and ema is being extraced off it. i tried similar thing in Ninjascript but it is complaining that longcheck cannot be of type iseries..
the code executes fine in Tradingview
Ninja
longcheck = (ema1[0] - ema1[1]) / ema1[1] * 100 - How can i convert this to an iseries??
confirmlong = EMA(longcheck, 30)
Comment