src/core/candle.bend checks
raw source on the hub · import bend-ta@0.1.0.0/src/core/candle.bend as Candle
3 imports
import Base import ./bar.bend as Bar import ./rolling.bend as Rolling
Types
type Error source · line 5 · raw
Data
InvalidPeriodError
InvalidFactorError
type RangeKind source · line 9 · raw
Data
RealBodyRangeKind
HighLowRangeKind
ShadowsRangeKind
type Name source · line 14 · raw
Data
BodyLongName
BodyVeryLongName
BodyShortName
BodyDojiName
ShadowLongName
ShadowVeryLongName
ShadowShortName
ShadowVeryShortName
NearName
FarName
EqualName
type Setting source · line 27 · raw
@-N:Data -> Data
Setting@-N:Data -> @kind:RangeKind -> @period:U32 -> @factor:N -> Setting<N>
type State source · line 44 · raw
@-N:Data -> Type
Candle@-N:Data -> @setting:Setting<N> -> @ring:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling.State<N> -> @previous:Maybe<&2, N> -> State<N>
Templates
template defaults source · line 30 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @name:Name -> Setting<N>
template init source · line 47 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @setting:Setting<N> -> @period:U32 -> @depth:Nat -> State<N>
template range source · line 50 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @kind:RangeKind -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.OHLC<N> -> N
template scale source · line 62 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @kind:RangeKind -> @value:N -> N
template threshold source · line 69 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @kind:RangeKind -> @factor:N -> @average:Maybe<&2, N> -> Maybe<&2, N>
template pushed source · line 79 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @setting:Setting<N> -> @period:U32 -> @output:Maybe<&2, N> -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling.State<N>, Maybe<&2, N>) -> Pair(State<N>, Maybe<&2, N>)
template next.phase source · line 87 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @+kind:RangeKind -> @+period:U32 -> @+factor:N -> @ring:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling.State<N> -> @previous:Maybe<&2, N> -> @value:N -> @current:Bool -> Pair(State<N>, Maybe<&2, N>)
template next source · line 97 · raw
@-N:Data -> @-from_u32:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @state:State<N> -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.OHLC<N> -> Pair(State<N>, Maybe<&2, N>)