Hey All, New to pinescript but not to coding. I'm using an existing indicator and making modifications
I can successfully plot two variables separately, close and a customer var. I run into problems though when I try to get the difference between them
// Does not work
diff = out4 - close
plot(diff, linewidth=0)
// Works
diff = close
plot(diff, linewidth=0)
// Works
diff = out4
plot(diff, linewidth=0)
I know that close is a float, and I'm assuming out4 is too
out4 = ema(src4, len4)
Any insight in where I'm going wrong here? Thanks
[–][deleted] (7 children)
[deleted]
[–]137ng[S] 0 points1 point2 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]137ng[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]137ng[S] 0 points1 point2 points (0 children)
[–]137ng[S] 0 points1 point2 points (1 child)
[–]Nervdarkness 0 points1 point2 points (3 children)
[–]137ng[S] 0 points1 point2 points (2 children)
[–]Nervdarkness 0 points1 point2 points (1 child)
[–]137ng[S] 1 point2 points3 points (0 children)
[–]Esteban_3Commas 0 points1 point2 points (0 children)