Skip to content

dispatch module

Engine-neutral dispatch wrappers for signal functions.


between_partition_ranges function

between_partition_ranges(
    a,
    engine=None
)

Engine-neutral between_partition_ranges_nb().


between_ranges function

between_ranges(
    a,
    engine=None
)

Engine-neutral between_ranges_nb().


between_two_ranges function

between_two_ranges(
    a,
    b,
    from_other=False,
    engine=None
)

Engine-neutral between_two_ranges_nb().


clean_enex function

clean_enex(
    entries,
    exits,
    entry_first,
    engine=None
)

Engine-neutral clean_enex_nb().


clean_enex_1d function

clean_enex_1d(
    entries,
    exits,
    entry_first,
    engine=None
)

Engine-neutral clean_enex_1d_nb().


generate function

generate(
    shape,
    pick_first,
    choice_func,
    *args,
    engine=None
)

Engine-neutral generate_nb().


generate_enex function

generate_enex(
    shape,
    entry_wait,
    exit_wait,
    entry_pick_first,
    exit_pick_first,
    entry_choice_func,
    entry_args,
    exit_choice_func,
    exit_args,
    engine=None
)

Engine-neutral generate_enex_nb().


generate_ex function

generate_ex(
    entries,
    wait,
    until_next,
    skip_until_exit,
    pick_first,
    exit_choice_func,
    *args,
    engine=None
)

Engine-neutral generate_ex_nb().


generate_ohlc_stop_enex function

generate_ohlc_stop_enex(
    entries,
    open,
    high,
    low,
    close,
    stop_price_out,
    stop_type_out,
    sl_stop,
    sl_trail,
    tp_stop,
    reverse,
    is_open_safe,
    entry_wait,
    exit_wait,
    pick_first,
    flex_2d,
    engine=None
)

Engine-neutral generate_ohlc_stop_enex_nb().


generate_ohlc_stop_ex function

generate_ohlc_stop_ex(
    entries,
    open,
    high,
    low,
    close,
    stop_price_out,
    stop_type_out,
    sl_stop,
    sl_trail,
    tp_stop,
    reverse,
    is_open_safe,
    wait,
    until_next,
    skip_until_exit,
    pick_first,
    flex_2d,
    engine=None
)

Engine-neutral generate_ohlc_stop_ex_nb().


generate_rand function

generate_rand(
    shape,
    n,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_nb().


generate_rand_by_prob function

generate_rand_by_prob(
    shape,
    prob,
    pick_first,
    flex_2d,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_by_prob_nb().


generate_rand_enex function

generate_rand_enex(
    shape,
    n,
    entry_wait,
    exit_wait,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_enex_nb().


generate_rand_enex_by_prob function

generate_rand_enex_by_prob(
    shape,
    entry_prob,
    exit_prob,
    entry_wait,
    exit_wait,
    entry_pick_first,
    exit_pick_first,
    flex_2d,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_enex_by_prob_nb().


generate_rand_ex function

generate_rand_ex(
    entries,
    wait,
    until_next,
    skip_until_exit,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_ex_nb().


generate_rand_ex_by_prob function

generate_rand_ex_by_prob(
    entries,
    prob,
    wait,
    until_next,
    skip_until_exit,
    flex_2d,
    seed=None,
    engine=None
)

Engine-neutral generate_rand_ex_by_prob_nb().


generate_stop_enex function

generate_stop_enex(
    entries,
    ts,
    stop,
    trailing,
    entry_wait,
    exit_wait,
    pick_first,
    flex_2d,
    engine=None
)

Engine-neutral generate_stop_enex_nb().


generate_stop_ex function

generate_stop_ex(
    entries,
    ts,
    stop,
    trailing,
    wait,
    until_next,
    skip_until_exit,
    pick_first,
    flex_2d,
    engine=None
)

Engine-neutral generate_stop_ex_nb().


norm_avg_index function

norm_avg_index(
    a,
    engine=None
)

Engine-neutral norm_avg_index_nb().


norm_avg_index_1d function

norm_avg_index_1d(
    a,
    engine=None
)

Engine-neutral norm_avg_index_1d_nb().


nth_index function

nth_index(
    a,
    n,
    engine=None
)

Engine-neutral nth_index_nb().


nth_index_1d function

nth_index_1d(
    a,
    n,
    engine=None
)

Engine-neutral nth_index_1d_nb().


ohlc_stop_enex_apply function

ohlc_stop_enex_apply(
    entries,
    open,
    high,
    low,
    close,
    stop_price_out,
    stop_type_out,
    sl_stop,
    sl_trail,
    tp_stop,
    reverse,
    flex_2d,
    is_open_safe=True,
    wait=1,
    entry_wait=1,
    exit_wait=None,
    pick_first=True,
    until_next=True,
    skip_until_exit=False,
    engine=None
)

Apply function used by OHLCSTCX.


ohlc_stop_ex_apply function

ohlc_stop_ex_apply(
    entries,
    open,
    high,
    low,
    close,
    stop_price_out,
    stop_type_out,
    sl_stop,
    sl_trail,
    tp_stop,
    reverse,
    flex_2d,
    is_open_safe=True,
    wait=1,
    until_next=True,
    skip_until_exit=False,
    pick_first=True,
    engine=None
)

Apply function used by OHLCSTX.


part_pos_rank function

part_pos_rank(
    a,
    reset_by,
    after_false,
    engine=None
)

Engine-neutral partition position rank specialization.


partition_ranges function

partition_ranges(
    a,
    engine=None
)

Engine-neutral partition_ranges_nb().


rand_apply function

rand_apply(
    input_shape,
    n,
    seed=None,
    engine=None
)

Apply function used by RAND.


rand_by_prob_apply function

rand_by_prob_apply(
    input_shape,
    prob,
    flex_2d,
    pick_first=False,
    seed=None,
    engine=None
)

Apply function used by RPROB.


rand_chain_by_prob_apply function

rand_chain_by_prob_apply(
    entries,
    prob,
    flex_2d,
    wait=1,
    entry_wait=1,
    exit_wait=None,
    entry_pick_first=True,
    exit_pick_first=True,
    until_next=True,
    skip_until_exit=False,
    seed=None,
    engine=None
)

Apply function used by RPROBCX.


rand_enex_apply function

rand_enex_apply(
    input_shape,
    n,
    entry_wait=1,
    exit_wait=1,
    seed=None,
    engine=None
)

Apply function used by RANDNX.


rand_enex_by_prob_apply function

rand_enex_by_prob_apply(
    input_shape,
    entry_prob,
    exit_prob,
    flex_2d,
    entry_wait=1,
    exit_wait=1,
    entry_pick_first=True,
    exit_pick_first=True,
    seed=None,
    engine=None
)

Apply function used by RPROBNX.


rand_ex_apply function

rand_ex_apply(
    entries,
    wait=1,
    until_next=True,
    skip_until_exit=False,
    seed=None,
    engine=None
)

Apply function used by RANDX.


rand_ex_by_prob_apply function

rand_ex_by_prob_apply(
    entries,
    prob,
    flex_2d,
    wait=1,
    until_next=True,
    skip_until_exit=False,
    seed=None,
    engine=None
)

Apply function used by RPROBX.


rank function

rank(
    a,
    reset_by,
    after_false,
    rank_func,
    *args,
    engine=None
)

Engine-neutral rank_nb().


sig_pos_rank function

sig_pos_rank(
    a,
    reset_by,
    after_false,
    allow_gaps,
    engine=None
)

Engine-neutral signal position rank specialization.


stop_enex_apply function

stop_enex_apply(
    entries,
    ts,
    stop,
    trailing,
    flex_2d,
    wait=1,
    entry_wait=1,
    exit_wait=None,
    pick_first=True,
    until_next=True,
    skip_until_exit=False,
    engine=None
)

Apply function used by STCX.


stop_ex_apply function

stop_ex_apply(
    entries,
    ts,
    stop,
    trailing,
    flex_2d,
    wait=1,
    until_next=True,
    skip_until_exit=False,
    pick_first=True,
    engine=None
)

Apply function used by STX.