Lipi Reference
Lipi

Functions

chartPoint.now()

Builds a chart point from a price alone: it takes no time and no bar index, and even the price is optional. Where the point lands is left to the function. This edition does not state which time or bar index it fills in, so read it as the constructor that takes no position rather than as one with a documented position.

Syntax

                chartPoint.now(series float price) → series chartPoint
              

Arguments

price series float The y-coordinate of the point. Optional. The default is close.

Return Type

series chartPoint

Example


          //@lipi=2
indicator("chartPoint.now Example", overlay=true)
if barstate.islast {
    p = chartPoint.now(high)
}