<!-- Public documentation export; not library implementation source. -->
# PineJSStd

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## max_series_default_size {#max_series_default_size}

```ts
max_series_default_size: 10001;
```

Use the type signature above and the integration guide for the owning capability.

## eps {#eps}

```ts
eps(): number;
```

Use the type signature above and the integration guide for the owning capability.

## high {#high}

```ts
high(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## low {#low}

```ts
low(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## open {#open}

```ts
open(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## close {#close}

```ts
close(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## ohlc4 {#ohlc4}

```ts
ohlc4(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## volume {#volume}

```ts
volume(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## time {#time}

```ts
time(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## time (overload 2) {#time-1}

```ts
time(context: IContext, period: string, spec: unknown): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `period` | `string` | Yes |
| `spec` | `unknown` | Yes |

## hl2 {#hl2}

```ts
hl2(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## hlc3 {#hlc3}

```ts
hlc3(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## period {#period}

```ts
period(context: IContext): string;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## tickerid {#tickerid}

```ts
tickerid(context: IContext): string;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## year {#year}

```ts
year(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## month {#month}

```ts
month(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## weekofyear {#weekofyear}

```ts
weekofyear(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## dayofmonth {#dayofmonth}

```ts
dayofmonth(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## dayofweek {#dayofweek}

```ts
dayofweek(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## hour {#hour}

```ts
hour(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## minute {#minute}

```ts
minute(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## second {#second}

```ts
second(context: IContext, time?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `time` | `number` | No |

## greaterOrEqual {#greaterorequal}

```ts
greaterOrEqual(n1: number, n2: number, eps?: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## lessOrEqual {#lessorequal}

```ts
lessOrEqual(n1: number, n2: number, eps?: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## equal {#equal}

```ts
equal(n1: number, n2: number, eps?: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## greater {#greater}

```ts
greater(n1: number, n2: number, eps?: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## less {#less}

```ts
less(n1: number, n2: number, eps?: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## compare {#compare}

```ts
compare(n1: number, n2: number, eps?: number): -1 | 0 | 1;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |
| `eps` | `number` | No |

## ge {#ge}

```ts
ge(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## le {#le}

```ts
le(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## eq {#eq}

```ts
eq(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## neq {#neq}

```ts
neq(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## gt {#gt}

```ts
gt(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## lt {#lt}

```ts
lt(n1: number, n2: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n1` | `number` | Yes |
| `n2` | `number` | Yes |

## iff {#iff}

```ts
iff(condition: number, thenValue: number, elseValue: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `condition` | `number` | Yes |
| `thenValue` | `number` | Yes |
| `elseValue` | `number` | Yes |

## tr {#tr}

```ts
tr(n_handleNaN: number | undefined, ctx: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_handleNaN` | `number &#124; undefined` | Yes |
| `ctx` | `IContext` | Yes |

## atr {#atr}

```ts
atr(length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## isdwm {#isdwm}

```ts
isdwm(context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## isintraday {#isintraday}

```ts
isintraday(context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## isdaily {#isdaily}

```ts
isdaily(context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## isweekly {#isweekly}

```ts
isweekly(context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## ismonthly {#ismonthly}

```ts
ismonthly(context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## selectSessionBreaks {#selectsessionbreaks}

```ts
selectSessionBreaks(context: IContext, times: number[]): number[];
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |
| `times` | `number[]` | Yes |

## createNewSessionCheck {#createnewsessioncheck}

```ts
createNewSessionCheck(context: IContext): (time: number) => boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## error {#error}

```ts
error(message: string): never;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `message` | `string` | Yes |

## zigzag {#zigzag}

```ts
zigzag(n_deviation: number, n_depth: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_deviation` | `number` | Yes |
| `n_depth` | `number` | Yes |
| `context` | `IContext` | Yes |

## zigzagbars {#zigzagbars}

```ts
zigzagbars(n_deviation: number, n_depth: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_deviation` | `number` | Yes |
| `n_depth` | `number` | Yes |
| `context` | `IContext` | Yes |

## updatetime {#updatetime}

```ts
updatetime(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## ticker {#ticker}

```ts
ticker(context: IContext): string;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## percentrank {#percentrank}

```ts
percentrank(source: IPineSeries, length: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |

## rising {#rising}

```ts
rising(series: IPineSeries, length: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `series` | `IPineSeries` | Yes |
| `length` | `number` | Yes |

## falling {#falling}

```ts
falling(series: IPineSeries, length: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `series` | `IPineSeries` | Yes |
| `length` | `number` | Yes |

## rsi {#rsi}

```ts
rsi(upper: number, lower: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `upper` | `number` | Yes |
| `lower` | `number` | Yes |

## sum {#sum}

```ts
sum(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## sma {#sma}

```ts
sma(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## smma {#smma}

```ts
smma(n_value: number, n_length: number, ctx: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_value` | `number` | Yes |
| `n_length` | `number` | Yes |
| `ctx` | `IContext` | Yes |

## rma {#rma}

```ts
rma(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## ema {#ema}

```ts
ema(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## wma {#wma}

```ts
wma(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## vwma {#vwma}

```ts
vwma(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## swma {#swma}

```ts
swma(source: IPineSeries, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `context` | `IContext` | Yes |

## fixnan {#fixnan}

```ts
fixnan(n_current: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_current` | `number` | Yes |
| `context` | `IContext` | Yes |

## lowestbars {#lowestbars}

```ts
lowestbars(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## lowest {#lowest}

```ts
lowest(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## highestbars {#highestbars}

```ts
highestbars(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## highest {#highest}

```ts
highest(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## cum {#cum}

```ts
cum(n_value: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_value` | `number` | Yes |
| `context` | `IContext` | Yes |

## accdist {#accdist}

```ts
accdist(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## correlation {#correlation}

```ts
correlation(
    sourceA: IPineSeries,
    sourceB: IPineSeries,
    length: number,
    context: IContext,
  ): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `sourceA` | `IPineSeries` | Yes |
| `sourceB` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## stoch {#stoch}

```ts
stoch(
    source: IPineSeries,
    high: IPineSeries,
    low: IPineSeries,
    length: number,
    context: IContext,
  ): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `high` | `IPineSeries` | Yes |
| `low` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## tsi {#tsi}

```ts
tsi(
    source: IPineSeries,
    shortLength: number,
    longLength: number,
    context: IContext,
  ): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `shortLength` | `number` | Yes |
| `longLength` | `number` | Yes |
| `context` | `IContext` | Yes |

## cross {#cross}

```ts
cross(n_0: number, n_1: number, context: IContext): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_0` | `number` | Yes |
| `n_1` | `number` | Yes |
| `context` | `IContext` | Yes |

## linreg {#linreg}

```ts
linreg(source: IPineSeries, length: number, offset: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `offset` | `number` | Yes |

## sar {#sar}

```ts
sar(start: number, inc: number, max: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `start` | `number` | Yes |
| `inc` | `number` | Yes |
| `max` | `number` | Yes |
| `context` | `IContext` | Yes |

## alma {#alma}

```ts
alma(
    series: IPineSeries,
    length: number,
    offset: number,
    sigma: number,
  ): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `series` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `offset` | `number` | Yes |
| `sigma` | `number` | Yes |

## change {#change}

```ts
change(source: IPineSeries): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |

## roc {#roc}

```ts
roc(source: IPineSeries, length: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |

## dev {#dev}

```ts
dev(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## stdev {#stdev}

```ts
stdev(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## variance {#variance}

```ts
variance(source: IPineSeries, length: number, context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `source` | `IPineSeries` | Yes |
| `length` | `number` | Yes |
| `context` | `IContext` | Yes |

## add_days_considering_dst {#add_days_considering_dst}

```ts
add_days_considering_dst(
    timezone: string,
    utcTime: Date,
    daysCount: number,
  ): Date;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `timezone` | `string` | Yes |
| `utcTime` | `Date` | Yes |
| `daysCount` | `number` | Yes |

## add_years_considering_dst {#add_years_considering_dst}

```ts
add_years_considering_dst(
    timezone: string,
    utcTime: Date,
    yearsCount: number,
  ): Date;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `timezone` | `string` | Yes |
| `utcTime` | `Date` | Yes |
| `yearsCount` | `number` | Yes |

## dmi {#dmi}

```ts
dmi(
    diLength: number,
    adxSmoothingLength: number,
    context: IContext,
  ): [number, number, number, number, number];
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `diLength` | `number` | Yes |
| `adxSmoothingLength` | `number` | Yes |
| `context` | `IContext` | Yes |

## na {#na}

```ts
na(n?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n` | `number` | No |

## nz {#nz}

```ts
nz(x: number, y?: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |
| `y` | `number` | No |

## and {#and}

```ts
and(n_0: number, n_1: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_0` | `number` | Yes |
| `n_1` | `number` | Yes |

## or {#or}

```ts
or(n_0: number, n_1: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_0` | `number` | Yes |
| `n_1` | `number` | Yes |

## not {#not}

```ts
not(n_0: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `n_0` | `number` | Yes |

## max {#max}

```ts
max(...values: number[]): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `values` | `number[]` | Yes |

## min {#min}

```ts
min(...values: number[]): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `values` | `number[]` | Yes |

## pow {#pow}

```ts
pow(base: number, exponent: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `base` | `number` | Yes |
| `exponent` | `number` | Yes |

## abs {#abs}

```ts
abs(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## log {#log}

```ts
log(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## log10 {#log10}

```ts
log10(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## sqrt {#sqrt}

```ts
sqrt(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## sign {#sign}

```ts
sign(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## exp {#exp}

```ts
exp(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## sin {#sin}

```ts
sin(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## cos {#cos}

```ts
cos(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## tan {#tan}

```ts
tan(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## asin {#asin}

```ts
asin(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## acos {#acos}

```ts
acos(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## atan {#atan}

```ts
atan(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## floor {#floor}

```ts
floor(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## ceil {#ceil}

```ts
ceil(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## round {#round}

```ts
round(x: number): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## avg {#avg}

```ts
avg(...values: number[]): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `values` | `number[]` | Yes |

## n {#n}

```ts
n(context: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `context` | `IContext` | Yes |

## isZero {#iszero}

```ts
isZero: (v: number) => number;
```

Use the type signature above and the integration guide for the owning capability.

## toBool {#tobool}

```ts
toBool(v: number): boolean;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `v` | `number` | Yes |

## currencyCode {#currencycode}

```ts
currencyCode(ctx: IContext): string | null | undefined;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `ctx` | `IContext` | Yes |

## unitId {#unitid}

```ts
unitId(ctx: IContext): string | null | undefined;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `ctx` | `IContext` | Yes |

## interval {#interval}

```ts
interval(ctx: IContext): number;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `ctx` | `IContext` | Yes |

## Related types

- [IContext](https://docs.lumencharts.com/charting-library/api/IContext)
- [IPineSeries](https://docs.lumencharts.com/charting-library/api/IPineSeries)

---
Documentation page: https://docs.lumencharts.com/charting-library/api/PineJSStd
