TradingView
UnknownUnicorn28067390
2021年11月24日早上6點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.
更多