gliderfund

Colors

gliderfund Mis à jour   
Library "Colors"
This Library delivers Hex Codes of Colors frequently used in indicators and strategies.

v3(colorName) Collection: Pinescript v3 Colors.
  Parameters:
    colorName: Color Name.
  Returns: Hex code of the inquired color.

v4(colorName) Collection: Pinescript v4 Colors.
  Parameters:
    colorName: Color Name.
  Returns: Hex code of the inquired color.
Notes de version:
v2

Added:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Updated:
v3(colorName)
  Collection: Pinescript v3 Colors
  Parameters:
    colorName (simple string): Color Name
  Returns: Hex code of the inquired color

v4(colorName)
  Collection: Pinescript v4 Colors
  Parameters:
    colorName (simple string): Color Name
  Returns: Hex code of the inquired color
Notes de version:
v3

Updated:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (simple color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark
Notes de version:
v4

Added:
checkLuminanceSimple(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (simple color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

checkLuminanceSeries(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Removed:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
Notes de version:
v5

Added:
checkLuminance(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.
  Parameters:
    srcColor (color): Color to check. Usually a background color. By default 'chart.bg_color'.
    threshold (simple int)
  Returns: Boolean isDark

Removed:
checkLuminanceSimple(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.

checkLuminanceSeries(srcColor, threshold)
  To interpret the level of darkness of the provided color, and tag it as dark or light.

I develop indicators meant to be useful, profitable and good looking.

Please send me a Private Message if you intend to subscribe to an Invite-Only indicator or to hire me to develop some custom work.
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.