TradingView
UnknownUnicorn28067390
24 de Nov de 2021 06:04

Green to Red Gradient for Dynamic / Color Changing Indicators 

EUR/USDOANDA

Descrição

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.

Notas de Lançamento

Added Color List

Notas de Lançamento

Added Fill Demo

Notas de Lançamento

seo

Notas de Lançamento

no change

Notas de Lançamento

demo.
Comentários
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.
Mais