iCustom

Accesses custom indicator values for any symbol and timeframe.

Syntax

iCustom(
symbol: string,
timeframe: number,
index: number,
name: string,
params: string,
bufferIdx: number
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to get indicator value for

name

string

Name of the custom indicator file

params

string

Indicator parameters as semicolon-separated string

bufferIdx

number

Buffer index to retrieve (0-based)

Return Value

Returns a number representing the custom indicator value at the specified buffer index and bar index.

Description

Accesses custom indicator values programmatically.

Example

Where parameters are supposed to be passed as values separated by semicolons.

Last updated