Lipi Reference
Lipi

Functions

chartPoint.copy()

Hands back a copy of a chart point. One argument, required: the point to copy.

Syntax

                chartPoint.copy(series chartPoint id) → series chartPoint
              

Arguments

id required series chartPoint A chart.point object.

Return Type

series chartPoint

Example


          //@lipi=2
indicator("chartPoint.copy Example", overlay=true)
if barstate.islast {
    p = chartPoint.from_index(bar_index, close)
    c = chartPoint.copy(p)
}