Cleaner Screeners Library

Aggiornato
Library "cleanscreens"

Screener Panel.
  • This indicator displays a panel with a list of symbols and their indications.
  • It can be used as a screener for multiple timess and symbols
  • in any timeframe and with any indication in any combination.
    #### Features
  • Multiple timeframes
  • Multiple symbols
  • Multiple indications per group
  • Vertical or horizontal layouts
  • Acceepts External Inputs
  • Customizable colors with 170 presets included (dark and light)
  • Customizable icons
  • Customizable text size and font
  • Customizable cell size width and height
  • Customizable frame width and border width
  • Customizable position
  • Customizable strong and weak values
  • Accepts any indicator as input
  • Only 4 functions to call, easy to use
    #### Usage
  • Initialize the panel with _paneel = cleanscreens.init()
  • Add groupd with _screener = cleanscreens.Screener(_paneel, "Group Name")
  • Add indicators to screeener groups with cleanscreens.Indicator(_screener, "Indicator Name", _source)
  • Update the panel with cleanscreens.display(_paneel)


Thanks @ PineCoders , and the Group members for setting the bar high.

# local setup for methods on our script


init(_themein, loc)
โ€ƒโ€ƒ# Panel init
> init a panel for all the screens

โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒ_themein (string): string: Theme Preset Name
โ€ƒโ€ƒโ€ƒโ€ƒloc (int): int :
1 = left top,
2 = middle top,
3 = right top,
4 = left middle,
5 = middle middle,
6 = right middle,
7 = left bottom,
8 = middle bottom,
9 = right bottom
โ€ƒโ€ƒReturns: panel

method Screener(p, _name)
โ€ƒโ€ƒ# Screener - Create a new screener
### Example:


โ€ƒโ€ƒNamespace types: panel
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒp (panel)
โ€ƒโ€ƒโ€ƒโ€ƒ_name (string)

method Indicator(s, _tf, name, val)
โ€ƒโ€ƒ# Indicator - Create a new Indicator
### Example:


โ€ƒโ€ƒNamespace types: screener
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒs (screener)
โ€ƒโ€ƒโ€ƒโ€ƒ_tf (string)
โ€ƒโ€ƒโ€ƒโ€ƒname (string)
โ€ƒโ€ƒโ€ƒโ€ƒval (float)

method display(p)
โ€ƒโ€ƒ# Display - Display the Panel
### Example:


โ€ƒโ€ƒNamespace types: panel
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒp (panel)

indication
โ€ƒโ€ƒsingle indication for a symbol screener
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒname (series string)
โ€ƒโ€ƒโ€ƒโ€ƒicon (series string)
โ€ƒโ€ƒโ€ƒโ€ƒrating (series string)
โ€ƒโ€ƒโ€ƒโ€ƒvalue (series float)
โ€ƒโ€ƒโ€ƒโ€ƒcol (series color)
โ€ƒโ€ƒโ€ƒโ€ƒtf (series string)
โ€ƒโ€ƒโ€ƒโ€ƒtooltip (series string)
โ€ƒโ€ƒโ€ƒโ€ƒnormalized (series float)
โ€ƒโ€ƒโ€ƒโ€ƒinit (series bool)

screener
โ€ƒโ€ƒsingle symbol screener
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒticker (series string)
โ€ƒโ€ƒโ€ƒโ€ƒicon (series string)
โ€ƒโ€ƒโ€ƒโ€ƒrating (series string)
โ€ƒโ€ƒโ€ƒโ€ƒvalue (series float)
โ€ƒโ€ƒโ€ƒโ€ƒbg (series color)
โ€ƒโ€ƒโ€ƒโ€ƒfg (series color)
โ€ƒโ€ƒโ€ƒโ€ƒitems (indication[])
โ€ƒโ€ƒโ€ƒโ€ƒinit (series bool)

config
โ€ƒโ€ƒscreener configuration
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒstrong (series float)
โ€ƒโ€ƒโ€ƒโ€ƒweak (series float)
โ€ƒโ€ƒโ€ƒโ€ƒtheme (series string)
โ€ƒโ€ƒโ€ƒโ€ƒvert (series bool)
โ€ƒโ€ƒโ€ƒโ€ƒcellwidth (series float)
โ€ƒโ€ƒโ€ƒโ€ƒcellheight (series float)
โ€ƒโ€ƒโ€ƒโ€ƒtextsize (series string)
โ€ƒโ€ƒโ€ƒโ€ƒfont (series int)
โ€ƒโ€ƒโ€ƒโ€ƒframewidth (series int)
โ€ƒโ€ƒโ€ƒโ€ƒborders (series int)
โ€ƒโ€ƒโ€ƒโ€ƒposition (series string)

icons
โ€ƒโ€ƒscreener Icons
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒbuy (series string)
โ€ƒโ€ƒโ€ƒโ€ƒsell (series string)
โ€ƒโ€ƒโ€ƒโ€ƒstrong (series string)

panel
โ€ƒโ€ƒscreener panel object
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒitems (screener[])
โ€ƒโ€ƒโ€ƒโ€ƒtable (series table)
โ€ƒโ€ƒโ€ƒโ€ƒconfig (config)
โ€ƒโ€ƒโ€ƒโ€ƒtheme (theme type from kaigouthro/theme_engine/1)
โ€ƒโ€ƒโ€ƒโ€ƒicons (icons)
Note di rilascio
v2

Quick fixed the markdown shortcuts or local use, and an error in screener descript


Added:
method decorate(p, t)
โ€ƒโ€ƒNamespace types: panel
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒp (panel)
โ€ƒโ€ƒโ€ƒโ€ƒt (varient type from kaigouthro/theme_engine/1)

Updated:
init(_themein, loc)
โ€ƒโ€ƒ# Panel init
> init a panel for all the screens


โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒ_themein (string): string: Theme Preset Name
โ€ƒโ€ƒโ€ƒโ€ƒloc (int): int :
1 = left top,
2 = middle top,
3 = right top,
4 = left middle,
5 = middle middle,
6 = right middle,
7 = left bottom,
8 = middle bottom,
9 = right bottom
โ€ƒโ€ƒReturns: panel

method Screener(p, _name)
โ€ƒโ€ƒ# Screener - Create a new screener

Example:

โ€ƒโ€ƒNamespace types: panel
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒp (panel)
โ€ƒโ€ƒโ€ƒโ€ƒ_name (string)

method Indicator(s, _tf, name, val)
โ€ƒโ€ƒ# Indicator - Create a new Indicator

Example:

โ€ƒโ€ƒNamespace types: screener
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒs (screener)
โ€ƒโ€ƒโ€ƒโ€ƒ_tf (string)
โ€ƒโ€ƒโ€ƒโ€ƒname (string)
โ€ƒโ€ƒโ€ƒโ€ƒval (float)

method display(p)
โ€ƒโ€ƒ# Display - Display the Panel

Example:

โ€ƒโ€ƒNamespace types: panel
โ€ƒโ€ƒParameters:
โ€ƒโ€ƒโ€ƒโ€ƒp (panel)

indication
โ€ƒโ€ƒsingle indication for a symbol screener
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒname (series string): name of the indication
โ€ƒโ€ƒโ€ƒโ€ƒicon (series string): icon name
โ€ƒโ€ƒโ€ƒโ€ƒrating (series string): rating
โ€ƒโ€ƒโ€ƒโ€ƒvalue (series float): value
โ€ƒโ€ƒโ€ƒโ€ƒcol (series color): color of the indication
โ€ƒโ€ƒโ€ƒโ€ƒtf (series string): timeframe
โ€ƒโ€ƒโ€ƒโ€ƒtooltip (series string): tooltip text
โ€ƒโ€ƒโ€ƒโ€ƒnormalized (series float): color value
โ€ƒโ€ƒโ€ƒโ€ƒinit (series bool): init

screener
โ€ƒโ€ƒsingle symbol screener
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒticker (series string): ticker name
โ€ƒโ€ƒโ€ƒโ€ƒicon (series string): icon name
โ€ƒโ€ƒโ€ƒโ€ƒrating (series string): rating
โ€ƒโ€ƒโ€ƒโ€ƒvalue (series float): value
โ€ƒโ€ƒโ€ƒโ€ƒbg (series color): background color
โ€ƒโ€ƒโ€ƒโ€ƒfg (series color): foreground color
โ€ƒโ€ƒโ€ƒโ€ƒitems (indication[]): list of indications
โ€ƒโ€ƒโ€ƒโ€ƒinit (series bool): init

config
โ€ƒโ€ƒscreener configuration
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒstrong (series float): strong value
โ€ƒโ€ƒโ€ƒโ€ƒweak (series float): weak value
โ€ƒโ€ƒโ€ƒโ€ƒtheme (series string): theme name
โ€ƒโ€ƒโ€ƒโ€ƒvert (series bool): vertical layout
โ€ƒโ€ƒโ€ƒโ€ƒcellwidth (series float): cell width
โ€ƒโ€ƒโ€ƒโ€ƒcellheight (series float): cell height
โ€ƒโ€ƒโ€ƒโ€ƒtextsize (series string): text size
โ€ƒโ€ƒโ€ƒโ€ƒfont (series int): font index
โ€ƒโ€ƒโ€ƒโ€ƒframewidth (series int): frame width
โ€ƒโ€ƒโ€ƒโ€ƒborders (series int): border width
โ€ƒโ€ƒโ€ƒโ€ƒposition (series string): position

icons
โ€ƒโ€ƒscreener Icons
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒbuy (series string): buy icon
โ€ƒโ€ƒโ€ƒโ€ƒsell (series string): sell icon
โ€ƒโ€ƒโ€ƒโ€ƒstrong (series string): strong icon

panel
โ€ƒโ€ƒscreener panel object
โ€ƒโ€ƒFields:
โ€ƒโ€ƒโ€ƒโ€ƒitems (screener[]): list of symbols
โ€ƒโ€ƒโ€ƒโ€ƒtable (series table): table object
โ€ƒโ€ƒโ€ƒโ€ƒconfig (config): config object
โ€ƒโ€ƒโ€ƒโ€ƒtheme (theme type from kaigouthro/theme_engine/1)
โ€ƒโ€ƒโ€ƒโ€ƒicons (icons): icons object
Note di rilascio
v3

Dramatic speed increase.
displaymulti-timeframescreenertables

Libreria Pine

In pieno spirito TradingView, l'autore ha pubblicato questo codice Pine come libreria open-source in modo che altri programmatori Pine della nostra comunitร  possano riutilizzarlo. Un saluto all'autore! รˆ possibile utilizzare questa libreria privatamente o in altre pubblicazioni open-source, ma il riutilizzo di questo codice in una pubblicazione รจ regolato dal nostro Regolamento.

Declinazione di responsabilitร