I've been looking for a way to display the underlying equity value as an overlay for an option chart, dynamically. So far all I can find is the "Comparison" study in TOS which is provided by Schwab, but the code is proprietary, so I can't display it. It's a simple study, shown here;
# Charles Schwab & Co. (c) 2011-2026
#
# Source code isn't available.
input comparisonStyle = {"BAR", "CANDLE", default "LINE"};
input secondarySecurity = "";
I can enter a 'secondarySecurity' between the quote marks, but that value is now fixed and if I choose another option holding in my account watchlist the original 'secondarySecurity' remains the same as in the previously displayed chart.
What I would like to have is the value of this 'secondarySecurity' to dynamically follow the changing option 'Symbol' when I open a different chart.
Unfortunately my script writing skills are pathetic, so I am asking for help! Is there a variable I can plug in between those quote marks that will equal the chart 'Symbol'?
Thanks in advance for any help.
# Charles Schwab & Co. (c) 2011-2026
#
# Source code isn't available.
input comparisonStyle = {"BAR", "CANDLE", default "LINE"};
input secondarySecurity = "";
I can enter a 'secondarySecurity' between the quote marks, but that value is now fixed and if I choose another option holding in my account watchlist the original 'secondarySecurity' remains the same as in the previously displayed chart.
What I would like to have is the value of this 'secondarySecurity' to dynamically follow the changing option 'Symbol' when I open a different chart.
Unfortunately my script writing skills are pathetic, so I am asking for help! Is there a variable I can plug in between those quote marks that will equal the chart 'Symbol'?
Thanks in advance for any help.