TradingView
UnknownUnicorn28067390
24 nov. 2021 06:04

Green to Red Gradient for Dynamic / Color Changing Indicators 

EUR/USDOANDA

Description

I have evenly divided every color between green and red.
This gradient is useful for pine coders who are creating color changing, dynamic, or gradient indicators.

Notes de version

Added Color List

Notes de version

Added Fill Demo

Notes de version

seo

Notes de version

no change

Notes de version

demo.
Commentaires
Trendoscope
There is library method for that.

tradingview.com/pine-script-reference/v5/
kakola
@HeWhoMustNotBeNamed, For bi-color gradients, yes, but not tri-color.
UnknownUnicorn28067390
@HeWhoMustNotBeNamed, Oh I didn't know that, thanks for sharing. I couldn't find anything for creating a range between red, yellow, and green but I may have missed it. Figured I might as well publish this to make someone's life easier. But I can use what you showed me in the future.
Trendoscope
@ZacVaughn, no worries. There are also some good scripts from RicardoSantos on Colors. Check them out.
UnknownUnicorn28067390
@HeWhoMustNotBeNamed, Thanks, only been doing this for like 3 months so I still have lots to learn. Will check out his scripts.
UnknownUnicorn28067390
To use this, run an oscillator through these levels and assign the corresponding color to the oscillator. You can assign the same color to anything else plotted on the chart to give anything a dynamic color based on momentum or volatility.
Plus