Skip to content

time[len] cannot be handle properly when as param #156

@dcaoyuan

Description

@dcaoyuan

Test case:

//@version=6
indicator("time as param", overlay=true)

var ph_times = array.new_float(0)
array.unshift(ph_times, time[15])

Here, array.param(time, 15, 'p1')` will got 'NaN'

We may need time to be CONTEXT_DATA_VARS, just like bar_index.
Since we already have openTime, just need alias time to openTime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions