OPEN-SOURCE SCRIPT

Random Color Generator

已更新
This script is developed on the basis of Function-HSL-color by RicardoSantos

Aim of this script is to generate random colors. But, if we just do it based on random RGB values, the colors derived may not be suitable for the background. If you are using light background, lighter colors won't be visible and if you are using darker theme, darker colors will not be appropriate. To overcome this issue, function provided by Racardo converts color(H,S,L) to color(R,G,B). Based on the background present, we define min and max L (Light) range to avoid colors which are either too dark or too light.

Input also allows you to set your custom H,S,L range when Background is set as "Custom"
版本注释
Added optional transparency
版本注释
Updates from Ricardo's script copied :)
版本注释
Convert to v5
colorgeneratorTrend Analysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明