♥ 0 |
Hello Hahn, I wanted to know if you could create a chart indicator that colored price candles under these conditions.
This chart study will be primarily used and tested on the 1 minute chart.
Thank you
Marked as spam
|
Private answer
Since you have resolved two of the specifications with your code I have updated the title. Instead of “How to change color of breakout candle” I have updated the title of the question to: “Color candle when RelativeVolatilityIndex greater than 55”. Makes sense to do this, since you are really only needing to get the RVI portion completed. For this we will once again reach back to a previous post. Only two lines of code will need to be modified. I am getting that code from this post: https://www.hahn-tech.com/ans/relative-volatility-index-rvi-custom-watch-list/
That code only handles the RVI portion of the request. All you need to do is take the lines of code from your comment and add them anywhere above the last line:
And once you have done so you will modify that last line to this:
Marked as spam
|
Please log in to post questions.
This is what I have so far
def paintBar = close > OPEN and volume > 100000;
#———- Paint Candles
AssignPriceColor(if paintBar then Color.YELLOW else Color.Current);