PINE LIBRARY
Atualizado

Color Library // AlgoFyre

516
AlgoFyre's Color Library is a Pine Script v5 library offering fire-themed palettes with light and dark modes. It helps traders easily integrate consistent, visually appealing color schemes into TradingView indicators. Used in AlgoFyre's Scripts and Indicators.

Color Overview
The AlgoFyreColorLibrary includes a comprehensive set of colors inspired by fire, ranging from light reds and oranges to dark browns and deep reds. The library is divided into two main themes:

Light Theme:
Includes lighter shades of red, orange, and brown, suitable for use on light backgrounds.

Dark Theme:
Includes darker shades of red, orange, and brown, suitable for use on dark backgrounds.

How to Use
To use the AlgoFyreColorLibrary in your Pine Script indicators and strategies, follow these steps:

Import the Library:
Import the AlgoFyreColorLibrary at the beginning of your script.

Call the getColor Function:
Use the getColor function to retrieve the desired color with the specified transparency.

Example


The library AF-L-0001 is imported with the alias af.
The getColor function is used to get colors with specified transparency.
The colors are then used to plot lines on the chart.
Notas de Lançamento

  • Changed how colors are requested and what is returned. Now returns a const color object.
Notas de Lançamento

  • Added RGB versions which can be retreived with colorname_rgb
Notas de Lançamento

  • Some minor fixes
Notas de Lançamento

  • Testing RGB return in numbers
Notas de Lançamento

  • Some minor bugfixes and testing
Notas de Lançamento
  • Changed the function export to yield simple data types instead of series
Notas de Lançamento
  • Added more signal colors
  • Signal colors now have a light, normal and dark variant
  • Added copy/paste enum, which can be used as an options enum for color selections in the main script. Just call the getColorByName() function with the name from the enum to get the correct color.
Notas de Lançamento
  • Some minor cosmetic fixes
  • Added transparency parameter again
Notas de Lançamento
  • Some minor cosmetic changes
Notas de Lançamento
  • Changed export function parameters back to series type
  • Added a ENUM to String converter function
Notas de Lançamento
  • Modified colors
  • Renamed variables and made them const

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.