~/bend-docscommunity

src/core/squeeze.bend checks

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

8 imports
import Base
import ./bar.bend as Bar
import ./ma.bend as Ma
import ./rolling_average.bend as Average
import ./moments.bend as Moments
import ./statistics.bend as Stats
import ./momentum_window.bend as Box
import ./volatility.bend as Volatility

Types

type Factors source · line 10 · raw

@-N:Data -> Data

type State source · line 14 · raw

@-N:Data -> Type

type Value source · line 18 · raw

@-N:Data -> Data

Templates

template init source · line 22 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @+bb:U32 -> @+kc:U32 -> @deviations:N -> @wide:N -> @normal:N -> @narrow:N -> State<N>

template inside source · line 26 · raw

@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-lt:(@_:N -> @_:N -> Bool) -> @+center:N -> @+range:N -> @lower:N -> @upper:N -> @+factor:N -> Bool

template value source · line 31 · raw

@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-lt:(@_:N -> @_:N -> Bool) -> @-sqrt:(@_:N -> N) -> @factors:Factors<N> -> @bands:0xbb55196063fb99add8900a97dfe6ee2d/src/core/moments.Value<N> -> @+center:N -> @+range:N -> @momentum:N -> Value<N>

template emitted source · line 45 · raw

@-N:Data -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-lt:(@_:N -> @_:N -> Bool) -> @-sqrt:(@_:N -> N) -> @box:0xbb55196063fb99add8900a97dfe6ee2d/src/core/momentum_window.Box<N> -> @bands:0xbb55196063fb99add8900a97dfe6ee2d/src/core/moments.Cached<N> -> @center:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N> -> @range:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N> -> @previous:Maybe<&2, N> -> @+factors:Factors<N> -> @+kc:N -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N>, Maybe<&2, 0xbb55196063fb99add8900a97dfe6ee2d/src/core/statistics.Regression<N>>) -> @bb:Maybe<&2, 0xbb55196063fb99add8900a97dfe6ee2d/src/core/moments.Value<N>> -> @tr:Maybe<&2, N> -> Pair(State<N>, Maybe<&2, Value<N>>)

template ready source · line 51 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-lt:(@_:N -> @_:N -> Bool) -> @-sqrt:(@_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @state:State<N> -> @+price:N -> @bounds:Maybe<&2, 0xbb55196063fb99add8900a97dfe6ee2d/src/core/momentum_window.Bounds<N>> -> @kc:Maybe<&2, N> -> @bb:Maybe<&2, 0xbb55196063fb99add8900a97dfe6ee2d/src/core/moments.Value<N>> -> @tr:Maybe<&2, N> -> Pair(State<N>, Maybe<&2, Value<N>>)

template with source · line 59 · raw

@-N:Data -> @-A:Type -> @-B:Data -> @result:Pair(A, Maybe<&2, B>) -> @continue:(@_:A -> @_:Maybe<&2, B> -> Pair(State<N>, Maybe<&2, Value<N>>)) -> Pair(State<N>, Maybe<&2, Value<N>>)

template range.emitted source · line 64 · raw

@-N:Data -> @previous:Maybe<&2, N> -> @result:Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N>, Maybe<&2, N>) -> Pair(Maybe<&2, N>, Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N>, Maybe<&2, N>))

template range.pushed source · line 69 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-abs:(@_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @range:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N> -> @result:Pair(Maybe<&2, N>, Maybe<&2, N>) -> Pair(Maybe<&2, N>, Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N>, Maybe<&2, N>))

template ranged source · line 75 · raw

@-N:Data -> @-from:(@_:U32 -> N) -> @-add:(@_:N -> @_:N -> N) -> @-sub:(@_:N -> @_:N -> N) -> @-mul:(@_:N -> @_:N -> N) -> @-div:(@_:N -> @_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-lt:(@_:N -> @_:N -> Bool) -> @-sqrt:(@_:N -> N) -> @-abs:(@_:N -> N) -> @box:0xbb55196063fb99add8900a97dfe6ee2d/src/core/momentum_window.Box<N> -> @bands:0xbb55196063fb99add8900a97dfe6ee2d/src/core/moments.Cached<N> -> @center:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N> -> @regression:0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N> -> @factors:Factors<N> -> @result:Pair(Maybe<&2, N>, Pair(0xbb55196063fb99add8900a97dfe6ee2d/src/core/rolling_average.State<N>, Maybe<&2, N>)) -> @+bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> Pair(State<N>, Maybe<&2, Value<N>>)

template next source · line 84 · 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) -> @-max:(@_:N -> @_:N -> N) -> @-le:(@_:N -> @_:N -> Bool) -> @-lt:(@_:N -> @_:N -> Bool) -> @-sqrt:(@_:N -> N) -> @state:State<N> -> @+bar:0xbb55196063fb99add8900a97dfe6ee2d/src/core/bar.HLC<N> -> Pair(State<N>, Maybe<&2, Value<N>>)