context reference
The chart the script runs on.
context.* describes the chart’s market and timeframe. The values are fixed for a run and readable everywhere, including setup.
Properties
context.exchange
context.exchange: stringExchange id of the chart, e.g. binancef.
Returns string
context.symbol
context.symbol: stringSymbol of the chart, e.g. BTCUSDT.
Returns string
context.base
context.base: stringBase asset of the chart’s market.
Returns string
context.quote
context.quote: stringQuote asset of the chart’s market.
Returns string
context.timeframe
context.timeframe: timeframeTimeframe of the chart.
Returns timeframe
context.tickSize
context.tickSize: floatPrice increment of the chart’s market.
Returns float
context.stepSize
context.stepSize: floatQuantity increment of the chart’s market.
Returns float