♥ 0 |
Hello and thank you for the help, I would just like a study indicator that places a rectangular label on the top left side of the chart that shows the current bar’s RVI in just one square box. The box shoud change colors depending on the values below Relative Volatility Index (RVI) above 55 then background color red Relative Volatility Index (RVI) below 45 then background color green.
Marked as spam
|
Private answer
Ok so we’ll give a link to the original post here because we going to use that code: https://www.hahn-tech.com/ans/relative-volatility-index-rvi-custom-watch-list/ Only a few minor tweaks are required to get this converted from watchlist column to chart label. Here is the code from that other post:
So, there is only TWO changes. We replace the final statement statement “AssignBackgroundColor()” with a new statement that places the chart label on the chart. So remove this:
Then add this:
The second change is to locate this line: And replace it with this line: (all we did was change the plot to def) Screenshot below is how it appears on the upper price graph. The lower plot graph is not included. I simply added the built in version that comes with Thinkorswim so you can see the current values match the chart label. Marked as spam
|
Please log in to post questions.