Trendoscope

Random Color Generator

Trendoscope Wizard 已更新   
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

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?