Interface Globals

interface Globals {
    Decimal: Decimal;
    moment: moment;
    tick(indicatorsContext: Record<string, IndicatorContext>, botContext: BotContext, utilsContext: UtilsContext): void;
}

Properties

Methods

Properties

Decimal: Decimal

A JavaScript library for arbitrary-precision decimal arithmetic. It allows you to perform calculations with large or small numbers without losing precision or accuracy. It also supports various formats and operations, such as hexadecimal, binary, octal, exponential, trigonometric, logarithmic, etc.

moment: moment

A JavaScript library for parsing, validating, manipulating, and displaying dates and times. It allows you to display dates in a human-readable way based on your location. It also supports multiple locales, time zones, durations, and calendars.

Methods

  • tick is where indicator conditions, bot context, and utilities come together to create the bot logic. All examples presented in the docs assign these variables to tick: i for indicatorsContext, bot for botContext, and utils for utilsContext.

    Parameters

    Returns void

    tick = (i, bot, utils) => {
    ...
    }