~/bend-docscommunity

src/core/market_state.bend checks

raw source on the hub · import bend-ta@0.1.0.0/src/core/market_state.bend as Market_state

2 imports
import Base
import ./bar.bend as Bar

Types

type Anchored source · line 4 · raw

@-N:Data -> Data

type ZigValue source · line 27 · raw

@-N:Data -> Data

type ZigZag source · line 30 · raw

@-N:Data -> Data

Templates

template vwap.init source · line 7 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> Anchored<N>

template vwap.weight source · line 10 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @state:Anchored<N> -> @price:N -> @+volume:N -> @valid:Bool -> Anchored<N>

template vwap.output source · line 15 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @-gt:(@_:N -> @_:N -> Bool) -> @state:Anchored<N> -> Pair(Anchored<N>, Maybe<&2, N>)

template vwap.next source · line 21 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-gt:(@_:N -> @_:N -> Bool) -> @-finite:(@_:N -> Bool) -> @state:Anchored<N> -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLCV<N> -> Pair(Anchored<N>, Maybe<&2, N>)

template zigzag.init source · line 33 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @sensitivity:N -> @+minimum:U32 -> ZigZag<N>

template zigzag.finish source · line 37 · raw

@-N:Data -> @up:N -> @down:N -> @minimum:U32 -> @+remaining:U32 -> @+count:U32 -> @+age:U32 -> @+direction:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.Direction -> @+pivot:N -> Pair(ZigZag<N>, Maybe<&2, ZigValue<N>>)

template zigzag.extension source · line 40 · raw

@-N:Data -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @-ge:(@_:N -> @_:N -> Bool) -> @up:N -> @down:N -> @minimum:U32 -> @remaining:U32 -> @count:U32 -> @+age:U32 -> @direction:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.Direction -> @+pivot:N -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HL<N> -> Pair(ZigZag<N>, Maybe<&2, ZigValue<N>>)

template zigzag.reversal source · line 45 · raw

@-N:Data -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @-ge:(@_:N -> @_:N -> Bool) -> @up:N -> @down:N -> @minimum:U32 -> @remaining:U32 -> @count:U32 -> @age:U32 -> @direction:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.Direction -> @pivot:N -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HL<N> -> @reverse:Bool -> Pair(ZigZag<N>, Maybe<&2, ZigValue<N>>)

template zigzag.update source · line 51 · raw

@-N:Data -> @-mul:(@_:N -> @_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @-ge:(@_:N -> @_:N -> Bool) -> @+up:N -> @+down:N -> @+minimum:U32 -> @remaining:U32 -> @count:U32 -> @+age:U32 -> @+direction:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.Direction -> @+pivot:N -> @+bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HL<N> -> Pair(ZigZag<N>, Maybe<&2, ZigValue<N>>)

template zigzag.next source · line 56 · raw

@-N:Data -> @-mul:(@_:N -> @_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @-ge:(@_:N -> @_:N -> Bool) -> @state:ZigZag<N> -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HL<N> -> Pair(ZigZag<N>, Maybe<&2, ZigValue<N>>)