TradingView
UnknownUnicorn28067390
24 ноя 2021 г., 06:04

Green to Red Gradient for Dynamic / Color Changing Indicators 

EUR/USDOANDA

Описание

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.

Информация о релизе

Added Color List

Информация о релизе

Added Fill Demo

Информация о релизе

seo

Информация о релизе

no change

Информация о релизе

demo.
Комментарии
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.
Ещё