I would represent multiple moving averages on a chart.
For short moving averages, each moving average should be a gradiant of a color,
For medium term, gradiant of another color....
Is there an easy way to generate gradiant of a color? Or there is no way, it must be manual?
Gradient color
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Gradient color
can you draw a mock up?I would represent multiple moving averages on a chart.
For short moving averages, each moving average should be a gradiant of a color,
For medium term, gradiant of another color....
Is there an easy way to generate gradiant of a color? Or there is no way, it must be manual?
Re: Gradient color
I posted a good spectrum to rgb conversion utility some time ago: viewtopic.php?f=5&t=6654&p=28301&hilit=spectrum#p28301
Re: Gradient color
Janus,I posted a good spectrum to rgb conversion utility some time ago: viewtopic.php?f=5&t=6654&p=28301&hilit=spectrum#p28301
Can you demonstrate with an image file to show how to use your code?
Thanks
Re: Gradient color
Here's an sample image using the uploaded study. It displays three color bars. The first has 5 colors, the second has 10 colors, and the third has 100 colors.
I use this function when I need a more realistic rainbow style color distribution for my indicator lines.
I use this function when I need a more realistic rainbow style color distribution for my indicator lines.
- Attachments
-
- color_test.txt
- (2.16 KiB) Downloaded 441 times
-
- sample.png
- (4.88 KiB) Downloaded 669 times