Interface: ScriptContext
Charting Library.ScriptContext
Properties
barstate
• Readonly
barstate: BarState
color
• Readonly
color: Colors
input
• Readonly
input: InputFunctions
linestyle
• Readonly
linestyle: LineStyles
math
• Readonly
math: MathFunctions
plotstyle
• Readonly
plotstyle: PlotStyles
request
• Readonly
request: RequestFunctions
runtime
• Readonly
runtime: RuntimeFunctions
ta
• Readonly
ta: TAFunctions
ticker
• Readonly
ticker: TickerFunctions
timeframe
• Readonly
timeframe: TimeframeFunctions
Methods
close
▸ close(): IPineSeries
Returns
fill
▸ fill(plot1
, plot2
, options?
): unknown
Parameters
Name | Type |
---|---|
plot1 | HLine |
plot2 | HLine |
options? | Partial <FillOptions > |
Returns
unknown
▸ fill(plot1
, plot2
, options?
): unknown
Parameters
Name | Type |
---|---|
plot1 | Plot |
plot2 | Plot |
options? | Partial <FillOptions > |
Returns
unknown
high
▸ high(): IPineSeries
Returns
hline
▸ hline(price
, options?
): HLine
Parameters
Name | Type |
---|---|
price | number |
options? | Partial <HlineOptions > |
Returns
indicator
▸ indicator(options
): void
Parameters
Name | Type |
---|---|
options | Partial <IndicatorOptions > |
Returns
void
low
▸ low(): IPineSeries
Returns
na
▸ na(value
): boolean
Parameters
Name | Type |
---|---|
value | number |
Returns
boolean
open
▸ open(): IPineSeries
Returns
plot
▸ plot(source
, options?
): Plot
Parameters
Name | Type |
---|---|
source | number | IPineSeries |
options? | Partial <PlotOptions > |
Returns
series
▸ series(value
): IPineSeries
Parameters
Name | Type |
---|---|
value | number |
Returns
volume
▸ volume(): IPineSeries
Returns
year
▸ year(): number
Returns
number