TradingView
inceptus
16 sep 2019 18:29

McClellan Summation Index 

E-mini S&P 500 FuturesCME

Beskrivning

Added a simple moving average to LB's indicator.
Kommentarer
CaduceusRising
Hi, this is great - what do I need to configure in this code to get is working on ES please? I'm just about to start learning Pine so it would really help.
Much appreciated
Caduceus
inceptus
@CaduceusRising, Thanks. Not sure what you mean, the chart above is ES
inceptus
@CaduceusRising, Click on "add to favorite indicators" in the box above, then you can add it to any chart.
nevins
Hello, thanks for chart - really helpful. How do I copy or add it to my own chart? I tried copying the pine script and pasting it into a blank indicator. Here is a screen shot - prntscr.com/rwuh3x

However, I got this error.
line 25: 'line' could not be a variable or function name
Add to Chart operation failed, reason: line 25: 'line' could not be a variable or function name

I just copied your above code so I am not sure why this line (line 25) is giving an error:
Line 25: plot(msi, style=line, color=black, title="MSI", linewidth=2)

Please advise. Thank you!
Mer