Tools Documentation

Use the tools library to make writing your pinescript project a lot easier.

Getting started

To get started, import the latest version of the tools library and follow the guides below. You can also check out each resource for more info.

Guides

Types

Find data types.

Read more

Casting

Interchange data with casting.

Read more

Join and split

Helpers for joining arrays and splitting strings.

Read more

Generators

Generators to create various random data.

Read more

Colors

Colors and gradient.

Read more

Timestamps

Timestamp breakdowns.

Read more

Printer

A comprehensive printer object.

Read more

Style

Customizing the printer object.

Read more

Resources

Type

Method for inspeting object types.

Cast

Methods for object casting.

Join & split

Methods for object casting.

String generators

Functions for generating string values.

Float generators

Functions for generating float numbers.

Integer generators

Functions for generating integer numbers.

Boolean generators

Functions for generating boolean values.

Color generators

Functions for generating color values.

Unix timestamp generators

Functions for generating unix timestamps values.

Unix timestamp breakdown

Methods for breaking down and comparing timestamps.

Color methods

Color methods

Gradient

An expansion to the Pinescript's color.from_gradient() method.

Styles

All available style objects for printer.

Printer

The _printer object and all available methods.