How to implement indicators used on secondary symbols?
Author: mikesblack
Creation Date: 12/26/2016 1:40 PM
profile picture

mikesblack

#1
As you can see below, I am trying to create a model that uses the same indicators for a company or of a data set and should also apply to SPX also. As it is, it won't compile or run. What can I do to correct this? Thank you in advance.
CODE:
Please log in to see this code.
profile picture

Eugene

#2
If your objective is to display the 5-period RSI of .SPX, you did it correctly except this:
CODE:
Please log in to see this code.


The rest of the code uses the current charted symbol i.e. Bars bars. Is the idea to show SMA, RSI etc. for .SPX instead?
profile picture

mikesblack

#3
Thank you! Also Happy Christmas!!

profile picture

Eugene

#4
Merry Christmas. Glad to help.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).