src/core/momentum_market.bend checks
raw source on the hub · import bend-ta@0.1.0.0/src/core/momentum_market.bend as Momentum_market
4 imports
import Base import ./bar.bend as Bar import ./window.bend as Window import ./momentum_window.bend as Box
Types
type Terms source · line 6 · raw
@-N:Data -> Data
Terms@-N:Data -> @range:N -> @pressure:N -> @plus:N -> @minus:N -> @high:N -> @low:N -> Terms<N>
type Market source · line 9 · raw
@-N:Data -> Type
Market@-N:Data -> @period:U32 -> @previous:Maybe<&2, 0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N>> -> @window:0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<Terms<N>> -> Market<N>
type Vortex source · line 53 · raw
@-N:Data -> Data
Vortex@-N:Data -> @plus:N -> @minus:N -> Vortex<N>
type CCI source · line 65 · raw
@-N:Data -> Type
CCI@-N:Data -> @period:U32 -> @origin:Maybe<&2, N> -> @window:0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N> -> CCI<N>
type Center source · line 71 · raw
@-N:Data -> Data
Center@-N:Data -> @origin:N -> @total:N -> Center<N>
Templates
template init source · line 12 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @+period:U32 -> @depth:Nat -> Market<N>
template terms source · line 16 · raw
@-N:Data -> @-sub:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @previous:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @+kind:U32 -> Terms<N>
template step source · line 23 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @u:Unit -> @acc:Maybe<&2, Terms<N>> -> @value:Terms<N> -> Maybe<&2, Terms<N>>
template folded source · line 29 · raw
@-N:Data -> @+period:U32 -> @previous:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<Terms<N>>, Maybe<&2, Terms<N>>) -> Pair(Market<N>, Maybe<&2, Terms<N>>)
template ready source · line 33 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @+period:U32 -> @previous:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<Terms<N>>, Bool) -> Pair(Market<N>, Maybe<&2, Terms<N>>)
template pushed source · line 38 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @+period:U32 -> @previous:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<Terms<N>>, Maybe<&2, Terms<N>>) -> Pair(Market<N>, Maybe<&2, Terms<N>>)
template next source · line 42 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-min:(@_:N -> @_:N -> N) -> @-max:(@_:N -> @_:N -> N) -> @state:Market<N> -> @+bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> @+kind:U32 -> Pair(Market<N>, Maybe<&2, Terms<N>>)
template chop source · line 47 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-log:(@_:N -> N) -> @-gt:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @value:Terms<N> -> N
template vortex source · line 56 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @-gt:(@_:N -> @_:N -> Bool) -> @value:Terms<N> -> Vortex<N>
template pressure source · line 61 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-div:(@_:N -> @_:N -> N) -> @-gt:(@_:N -> @_:N -> Bool) -> @value:Terms<N> -> N
template cci.init source · line 68 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @+period:U32 -> @depth:Nat -> CCI<N>
template center.step source · line 74 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @u:Unit -> @acc:Maybe<&2, Center<N>> -> @+value:N -> Maybe<&2, Center<N>>
template deviation.step source · line 79 · raw
@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @+mean:N -> @+total:N -> @+value:N -> N
template cci.deviation source · line 82 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+base:N -> @+mean:N -> @+price:N -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N>, N) -> Pair(CCI<N>, Maybe<&2, N>)
template cci.centered source · line 92 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+base:N -> @+price:N -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N>, Maybe<&2, Center<N>>) -> Pair(CCI<N>, Maybe<&2, N>)
template cci.ready source · line 99 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+base:N -> @+price:N -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N>, Bool) -> Pair(CCI<N>, Maybe<&2, N>)
template cci.pushed source · line 104 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+base:N -> @+price:N -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N>, Maybe<&2, N>) -> Pair(CCI<N>, Maybe<&2, N>)
template cci.bar source · line 108 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @+period:U32 -> @+base:N -> @window:0xbb55196063fb99add8900a97dfe6ee2d/src/core/window.State<N> -> @+high:N -> @+low:N -> @+close:N -> Pair(CCI<N>, Maybe<&2, N>)
template cci.next source · line 112 · raw
@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-eq:(@_:N -> @_:N -> Bool) -> @state:CCI<N> -> @bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> Pair(CCI<N>, Maybe<&2, N>)