runs as written · runs with Bentrix's own convention, said in its note · refused by name, the note says what Bentrix lacks · not yet built.
Functions
timeframe.change#
timeframe.change(timeframe: string) → boolWhether this bar opens a new candle of the timeframe, cut on the bench's clock as request.security cuts it; every bar for the chart's own interval or a finer one
timeframe | string | required |
timeframe.from_seconds#
timeframe.from_seconds(seconds: int) → stringThe token of an interval of that many seconds
seconds | int | required |
timeframe.in_seconds#
timeframe.in_seconds(timeframe: string?) → intAn interval's length in seconds; a month counts 30 days
timeframe | string | optional |
Variables
timeframe.isdaily#
An interval of days
timeframe.isdwm#
Days, weeks or months
timeframe.isintraday#
An interval shorter than a day
timeframe.isminutes#
An interval of minutes
timeframe.ismonthly#
An interval of months
timeframe.isseconds#
An interval of seconds
timeframe.isticks#
An interval of ticks
timeframe.isweekly#
An interval of weeks
timeframe.multiplier#
The interval's count
timeframe.period#
The chart's interval as a token: "1", "60", "D", "W", "M", "30S"