PyBroker
User Guide
Installation
Getting Started with Data Sources
Backtesting a Strategy
Evaluating with Bootstrap Metrics
Ranking Long and Short Signals
Writing Indicators
Training a Model
Creating a Custom Data Source
Applying Stops
Rebalancing Positions
Rotational Trading
Configuring Parallelization
Parameter Optimization
Margin Trading
Modeling Slippage
Multiple Time Intervals
Time Series Models
Multi-Symbol Models
Dynamic Symbol Selection
Agent Skills
FAQs
Reference
Configuration Options
Indicators
Modules
Index
Other Information
Benchmarking
Changelog
License
PyBroker
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
|
Y
_
__call__() (Indicator method)
(IndicatorSet method)
(ModelLoader method)
(ModelTrainer method)
_fetch_data() (DataSource method)
A
add() (IndicatorSet method)
(PendingOrderScope method)
add_execution() (Strategy method)
ADJ_CLOSE (YFinance attribute)
adjust (DataSourceCacheKey attribute)
adjust_fill() (SlippageModel method)
adjust_fill_price() (FixedSlippageModel method)
advance_retry_bars() (PendingOrderScope method)
adx() (in module pybroker.indicator)
(in module pybroker.vect)
agg_pnl (Trade attribute)
AKShare (class in pybroker.ext.data)
all_data_cols (StaticScope property)
Alpaca (class in pybroker.data)
AlpacaCrypto (class in pybroker.data)
annual_return_pct (EvalMetrics attribute)
annual_std_error (EvalMetrics attribute)
annual_total_return_percent() (in module pybroker.eval)
annual_volatility_pct (EvalMetrics attribute)
apply_lags_to_model_input() (in module pybroker.model)
apply_lags_to_model_input_pooled() (in module pybroker.model)
apply_prepare_input_data() (in module pybroker.model)
apply_slippage() (FixedSlippageModel method)
(SlippageModel method)
(VolatilitySlippageModel method)
(VolumeSlippageModel method)
args (Execution attribute)
aroon_diff() (in module pybroker.indicator)
(in module pybroker.vect)
aroon_down() (in module pybroker.indicator)
(in module pybroker.vect)
aroon_up() (in module pybroker.indicator)
(in module pybroker.vect)
arrays (ModelInput attribute)
atr() (in module pybroker.indicator)
(in module pybroker.vect)
AVERAGE (PriceType attribute)
avg_losing_trade_bars (EvalMetrics attribute)
avg_loss (EvalMetrics attribute)
avg_loss_pct (EvalMetrics attribute)
avg_pnl (EvalMetrics attribute)
avg_profit (EvalMetrics attribute)
avg_profit_loss() (in module pybroker.eval)
avg_profit_pct (EvalMetrics attribute)
avg_return_pct (EvalMetrics attribute)
avg_trade_bars (EvalMetrics attribute)
avg_winning_trade_bars (EvalMetrics attribute)
B
backend (ParallelConfig attribute)
backing (SymbolArrayStore attribute)
backtest() (Strategy method)
backtest_executions() (BacktestMixin method)
backtest_executions_loading() (Logger method)
backtest_executions_start() (Logger method)
BacktestMixin (class in pybroker.strategy)
BacktestSettings (class in pybroker.strategy)
BAR (StopType attribute)
bar_data_from_data_columns() (ColumnScope method)
BarData (class in pybroker.common)
bars (CompressedSymbolData attribute)
(Entry attribute)
(ExecContext property)
(IntervalContext property)
(Portfolio attribute)
(Position attribute)
(Stop attribute)
(StopRecord attribute)
(Trade attribute)
bars_per_year (StrategyConfig attribute)
bars_to_df() (in module pybroker.common)
base_dates (CompressedSymbolData attribute)
BASE_INTERVAL (in module pybroker.interval)
base_timeframe_to_seconds() (in module pybroker.interval)
bca_boot_conf() (in module pybroker.eval)
best_params (OptimizeResult attribute)
best_score (OptimizeResult attribute)
between_time (CacheDateFields attribute)
BootConfIntervals (class in pybroker.eval)
bootstrap (EvalResult attribute)
(TestResult attribute)
bootstrap_eval_all() (in module pybroker.eval)
bootstrap_samples (StrategyConfig attribute)
BootstrapResult (class in pybroker.eval)
build_compressed_symbol_arrays() (in module pybroker.interval)
build_compressed_symbol_df() (in module pybroker.interval)
build_lag_feature_matrix() (in module pybroker.model)
build_lag_feature_matrix_pooled() (in module pybroker.model)
build_run_hyperparams() (in module pybroker.optimize)
buy() (Portfolio method)
buy_delay (StrategyConfig attribute)
buy_fill_price (ExecContext attribute)
(ExecResult attribute)
buy_limit_price (ExecContext attribute)
(ExecResult attribute)
buy_shares (ExecContext attribute)
(ExecResult attribute)
buy_timeout_bars (ExecContext attribute)
(ExecResult attribute)
BUY_TO_CLOSE (PositionIntent attribute)
BUY_TO_OPEN (PositionIntent attribute)
buying_power (ExecContext property)
C
cached_stacked_lags() (in module pybroker.model)
CacheDateFields (class in pybroker.cache)
CachedModel (class in pybroker.model)
calc_bootstrap_metrics_completed() (Logger method)
calc_bootstrap_metrics_start() (Logger method)
calc_target_shares() (ExecContext method)
calmar (EvalMetrics attribute)
calmar_ratio() (in module pybroker.eval)
cancel_all_pending_orders() (ExecContext method)
cancel_pending_order() (ExecContext method)
cancel_stop() (ExecContext method)
cancel_stops() (ExecContext method)
capture_bar() (Portfolio method)
cash (ExecContext property)
(Portfolio attribute)
(PortfolioBar attribute)
check_stops() (Portfolio method)
clear() (IndicatorSet method)
clear_cache() (IntervalScope method)
clear_caches() (in module pybroker.cache)
clear_data_source_cache() (in module pybroker.cache)
clear_executions() (Strategy method)
clear_indicator_cache() (in module pybroker.cache)
clear_model_cache() (in module pybroker.cache)
clear_params() (in module pybroker.scope)
(StaticScope method)
close (CompressedBars attribute)
(ExecContext property)
(IntervalContext property)
(Position attribute)
(PositionBar attribute)
CLOSE (PriceType attribute)
close_minus_ma() (in module pybroker.indicator)
(in module pybroker.vect)
close_price (ExecContext property)
col_scope (SlippageContext attribute)
collect_hyperparams() (in module pybroker.optimize)
collect_search_space() (in module pybroker.optimize)
column (LagSeriesKey attribute)
column_scope_from_frame() (in module pybroker.scope)
COLUMNS (AlpacaCrypto attribute)
columns (ModelInput attribute)
ColumnScope (class in pybroker.scope)
completed (CompressedSymbolData attribute)
completed_index() (IntervalScope method)
compress() (in module pybroker.interval)
compress_bars() (in module pybroker.interval)
compress_intervals_from_frame() (in module pybroker.interval)
compress_symbol_df() (in module pybroker.interval)
compress_symbol_from_frame() (in module pybroker.interval)
compress_symbol_intervals_from_frame() (in module pybroker.interval)
compressed (IntervalData attribute)
compressed_bars_to_bar_data() (in module pybroker.interval)
CompressedBars (class in pybroker.interval)
CompressedSymbolData (class in pybroker.interval)
compute_indicators() (IndicatorsMixin method)
compute_lag_series_cache() (in module pybroker.model)
conf (ConfInterval attribute)
conf_intervals (BootstrapResult attribute)
conf_profit_factor() (in module pybroker.eval)
conf_sharpe_ratio() (in module pybroker.eval)
config (ExecContext attribute)
(RotationContext attribute)
ConfInterval (class in pybroker.eval)
confs (DrawdownMetrics attribute)
contains() (PendingOrderScope method)
cover (ExecResult attribute)
cover_all_shares() (ExecContext method)
cover_fill_price (ExecContext property)
cover_limit_price (ExecContext property)
cover_shares (ExecContext property)
created (Order attribute)
(PendingOrder attribute)
cross() (in module pybroker.vect)
ctxs (RotationContext attribute)
cubic_deviation() (in module pybroker.indicator)
(in module pybroker.vect)
cubic_trend() (in module pybroker.indicator)
(in module pybroker.vect)
curr_bars (StopRecord attribute)
curr_value (StopRecord attribute)
custom (CompressedBars attribute)
custom_data_cols (StaticScope attribute)
D
data_source_cache (StaticScope attribute)
data_source_cache_ns (StaticScope attribute)
DataCol (class in pybroker.common)
DataSource (class in pybroker.data)
DataSourceCacheKey (class in pybroker.cache)
DataSourceCacheMixin (class in pybroker.data)
DATE (DataCol attribute)
date (Entry attribute)
(ExecResult attribute)
(Order attribute)
(PortfolioBar attribute)
(PositionBar attribute)
(StopRecord attribute)
dates (CompressedBars attribute)
(IntervalContext property)
(ModelInput attribute)
Day (class in pybroker.common)
days (CacheDateFields attribute)
debug_buy_shares_exceed_cash() (Logger method)
debug_clear_data_source_cache() (Logger method)
debug_clear_indicator_cache() (Logger method)
debug_clear_model_cache() (Logger method)
debug_compute_indicators() (Logger method)
debug_disable_data_source_cache() (Logger method)
debug_disable_indicator_cache() (Logger method)
debug_disable_model_cache() (Logger method)
debug_enable_data_source_cache() (Logger method)
debug_enable_indicator_cache() (Logger method)
debug_enable_model_cache() (Logger method)
debug_filled_buy_order() (Logger method)
debug_filled_sell_order() (Logger method)
debug_get_data_source_cache() (Logger method)
debug_get_indicator_cache() (Logger method)
debug_get_model_cache() (Logger method)
debug_place_buy_order() (Logger method)
debug_place_sell_order() (Logger method)
debug_position_limit_reached() (Logger method)
debug_schedule_order() (Logger method)
debug_set_data_source_cache() (Logger method)
debug_set_indicator_cache() (Logger method)
debug_set_model_cache() (Logger method)
debug_timeout_order() (Logger method)
debug_unfilled_buy_order() (Logger method)
debug_unfilled_sell_order() (Logger method)
debug_unscheduled_order() (Logger method)
default (Hyperparam attribute)
DEFAULT (PositionMode attribute)
default_data_cols (StaticScope attribute)
delta_on_balance_volume() (in module pybroker.indicator)
(in module pybroker.vect)
detrended_rsi() (in module pybroker.indicator)
(in module pybroker.vect)
disable() (Logger method)
disable_caches() (in module pybroker.cache)
disable_data_source_cache() (in module pybroker.cache)
disable_indicator_cache() (in module pybroker.cache)
disable_logging() (in module pybroker.scope)
disable_model_cache() (in module pybroker.cache)
disable_progress_bar() (in module pybroker.scope)
(Logger method)
download_bar_data_completed() (Logger method)
download_bar_data_start() (Logger method)
downside_deviation() (in module pybroker.eval)
drawdown (BootstrapResult attribute)
drawdown_conf (BootstrapResult attribute)
DrawdownConfs (class in pybroker.eval)
DrawdownMetrics (class in pybroker.eval)
drop_lag_warmup() (ModelInput method)
dt (ExecContext property)
E
empty() (ModelInput method)
enable() (Logger method)
enable_caches() (in module pybroker.cache)
enable_data_source_cache() (in module pybroker.cache)
enable_fractional_shares (Portfolio attribute)
(SlippageContext attribute)
(StrategyConfig attribute)
enable_indicator_cache() (in module pybroker.cache)
enable_logging() (in module pybroker.scope)
enable_model_cache() (in module pybroker.cache)
enable_progress_bar() (in module pybroker.scope)
(Logger method)
enable_rotation() (Strategy method)
end_date (CacheDateFields attribute)
(TestResult attribute)
end_market_value (EvalMetrics attribute)
entries (Position attribute)
Entry (class in pybroker.portfolio)
entry (Trade attribute)
entry_date (Trade attribute)
entry_notional (Position attribute)
equity (Portfolio attribute)
(PortfolioBar attribute)
(Position attribute)
(PositionBar attribute)
equity_r2 (EvalMetrics attribute)
EvalMetrics (class in pybroker.eval)
EvalResult (class in pybroker.eval)
evaluate() (EvaluateMixin method)
EvaluateMixin (class in pybroker.eval)
exec_bar (PendingOrder attribute)
exec_date (PendingOrder attribute)
ExecContext (class in pybroker.context)
ExecResult (class in pybroker.context)
Execution (class in pybroker.strategy)
execution_symbols (WindowOptimizeResult attribute)
exit (Trade attribute)
exit_cover_fill_price (StrategyConfig attribute)
exit_date (Trade attribute)
exit_on_last_bar (StrategyConfig attribute)
exit_pos_type (ExecResult attribute)
(PendingOrder attribute)
exit_position() (Portfolio method)
exit_price (Stop attribute)
(StopRecord attribute)
exit_sell_fill_price (StrategyConfig attribute)
F
fee_amount (Portfolio attribute)
(StrategyConfig attribute)
fee_mode (StrategyConfig attribute)
FeeInfo (class in pybroker.common)
FeeMode (class in pybroker.common)
fees (Order attribute)
(Portfolio attribute)
(PortfolioBar attribute)
fetch() (ColumnScope method)
(IndicatorScope method)
(ModelInputScope method)
(PredictionScope method)
(PriceScope method)
fetch_bar() (IntervalScope method)
fetch_bar_ohlc() (PriceScope method)
fetch_dict() (ColumnScope method)
fetch_float() (PriceScope method)
fetch_full() (IndicatorScope method)
fetch_history() (IndicatorScope method)
fetch_indicator() (IntervalScope method)
fetch_input() (IntervalScope method)
fetch_model_input() (ModelInputScope method)
fetch_preds() (IntervalScope method)
fetch_value() (ColumnScope method)
(IndicatorScope method)
fill_price (FeeInfo attribute)
(Order attribute)
(PendingOrder attribute)
(SlippageContext attribute)
(Stop attribute)
(StopRecord attribute)
FixedSlippageModel (class in pybroker.slippage)
fn (Execution attribute)
foreign() (ExecContext method)
format_interval() (in module pybroker.interval)
freeze_data_cols() (StaticScope method)
FRI (Day attribute)
from_date_fields() (DataSourceCacheKey class method)
(IndicatorCacheKey class method)
(ModelCacheKey class method)
G
get() (PendingOrderScope method)
get_cached() (DataSourceCacheMixin method)
get_hyperparam() (StaticScope method)
get_indicator() (StaticScope method)
get_indicator_names() (StaticScope method)
get_model_source() (StaticScope method)
get_parallel_config() (in module pybroker.parallel)
get_signals() (in module pybroker.scope)
get_unique_sorted_dates() (in module pybroker.common)
get_unique_sorted_dates_array() (in module pybroker.common)
grid_size() (SearchSpace method)
H
has_bar() (PriceScope method)
has_bar_on() (PriceScope method)
has_hyperparam() (StaticScope method)
has_indicator() (IndicatorScope method)
(StaticScope method)
has_long_positions() (ExecContext method)
has_model_source() (StaticScope method)
has_orders() (PendingOrderScope method)
has_short_positions() (ExecContext method)
high (CompressedBars attribute)
(ExecContext property)
(Hyperparam attribute)
(IntervalContext property)
HIGH (PriceType attribute)
high_10 (BootConfIntervals attribute)
high_2p5 (BootConfIntervals attribute)
high_5 (BootConfIntervals attribute)
high_price (ExecContext property)
highest() (in module pybroker.indicator)
highv() (in module pybroker.vect)
history_date_offset() (in module pybroker.model)
hold_bars (ExecContext attribute)
(ExecResult attribute)
Hyperparam (class in pybroker.optimize)
hyperparam() (ExecContext method)
(in module pybroker.optimize)
hyperparam_names (Indicator property)
hyperparams (SearchSpace attribute)
I
id (Entry attribute)
(Execution attribute)
(Order attribute)
(PendingOrder attribute)
(Stop attribute)
(Trade attribute)
incr_bars() (Portfolio method)
ind_name (IndicatorCacheKey attribute)
(IndicatorSymbol attribute)
ind_scope (SlippageContext attribute)
Indicator (class in pybroker.indicator)
indicator() (ExecContext method)
(in module pybroker.indicator)
(IntervalContext method)
indicator_cache (StaticScope attribute)
indicator_cache_ns (StaticScope attribute)
indicator_data_loading() (Logger method)
indicator_data_start() (Logger method)
indicator_interval_name() (in module pybroker.interval)
indicator_names (Execution attribute)
IndicatorCacheKey (class in pybroker.cache)
IndicatorScope (class in pybroker.scope)
IndicatorSet (class in pybroker.indicator)
IndicatorsMixin (class in pybroker.indicator)
IndicatorSymbol (class in pybroker.common)
info_download_bar_data_start() (Logger method)
info_indicator_data_start() (Logger method)
info_invalidate_data_source_cache() (Logger method)
info_loaded_bar_data() (Logger method)
info_loaded_indicator_data() (Logger method)
info_loaded_model() (Logger method)
info_loaded_models() (Logger method)
info_optimize_search_space() (Logger method)
info_optimize_sequential_trials() (Logger method)
info_train_model_completed() (Logger method)
info_train_model_start() (Logger method)
info_train_split_start() (Logger method)
info_walkforward_between_time() (Logger method)
info_walkforward_on_days() (Logger method)
initial_cash (StrategyConfig attribute)
initial_market_value (EvalMetrics attribute)
input() (ExecContext method)
(IntervalContext method)
input_cols (CachedModel attribute)
(TrainedModel attribute)
instance (TrainedModel attribute)
instance() (StaticScope class method)
intent (Order attribute)
interest_rate (StrategyConfig attribute)
interval (LagSeriesKey attribute)
interval() (ExecContext method)
INTERVAL_NAME_SEPARATOR (in module pybroker.interval)
IntervalBoundModel (class in pybroker.model)
IntervalContext (class in pybroker.context)
IntervalData (class in pybroker.interval)
intervals (Execution attribute)
(IntervalBoundModel attribute)
intervals() (Indicator method)
(ModelSource method)
IntervalScope (class in pybroker.scope)
intraday_intensity() (in module pybroker.indicator)
(in module pybroker.vect)
inverse_normal_cdf() (in module pybroker.vect)
iqr() (in module pybroker.eval)
(Indicator method)
is_fill_noop (FixedSlippageModel property)
(SlippageModel property)
(VolatilitySlippageModel property)
(VolumeSlippageModel property)
is_valid_interval() (in module pybroker.interval)
iter_hyperparams() (StaticScope method)
K
kwargs (Execution attribute)
L
lag (LagSeriesKey attribute)
lag_columns (CachedModel attribute)
(TrainedModel attribute)
lag_features (ModelInput attribute)
lag_warmup_len() (ModelInput method)
lags (ModelInput attribute)
LagSeriesKey (class in pybroker.model)
laguerre_rsi() (in module pybroker.indicator)
(in module pybroker.vect)
largest_loss (EvalMetrics attribute)
largest_loss_bars (EvalMetrics attribute)
largest_loss_pct (EvalMetrics attribute)
largest_win (EvalMetrics attribute)
largest_win_bars (EvalMetrics attribute)
largest_win_loss() (in module pybroker.eval)
largest_win_pct (EvalMetrics attribute)
leverage (StrategyConfig attribute)
LIMIT (OrderType attribute)
limit_price (Order attribute)
(PendingOrder attribute)
(Stop attribute)
(StopRecord attribute)
linear_deviation() (in module pybroker.indicator)
(in module pybroker.vect)
linear_trend() (in module pybroker.indicator)
(in module pybroker.vect)
loaded_bar_data() (Logger method)
loaded_indicator_data() (Logger method)
loaded_models() (Logger method)
log_profit_factor() (in module pybroker.eval)
Logger (class in pybroker.log)
logger (StaticScope attribute)
LONG_ONLY (PositionMode attribute)
long_pos() (ExecContext method)
long_positions (Portfolio attribute)
long_positions() (ExecContext method)
long_ranks (RotationContext attribute)
long_score (ExecContext attribute)
(ExecResult attribute)
long_shares (PositionBar attribute)
long_stops (ExecResult attribute)
lookahead (ModelCacheKey attribute)
lookahead_train_dates() (in module pybroker.interval)
losing_trades (EvalMetrics attribute)
LOSS (StopType attribute)
loss_rate (EvalMetrics attribute)
(ExecContext property)
(Portfolio attribute)
low (CompressedBars attribute)
(ExecContext property)
(Hyperparam attribute)
(IntervalContext property)
LOW (PriceType attribute)
low_10 (BootConfIntervals attribute)
low_2p5 (BootConfIntervals attribute)
low_5 (BootConfIntervals attribute)
low_price (ExecContext property)
lower (ConfInterval attribute)
lowest() (in module pybroker.indicator)
lowv() (in module pybroker.vect)
M
macd() (in module pybroker.indicator)
(in module pybroker.vect)
mae (Entry attribute)
(Trade attribute)
make_objective() (in module pybroker.optimize)
margin (Portfolio attribute)
(PortfolioBar attribute)
(Position attribute)
(PositionBar attribute)
margin_loan (ExecContext property)
(Portfolio attribute)
(PortfolioBar attribute)
mark_attempted() (PendingOrderScope method)
MARKET (OrderType attribute)
market_price (Order attribute)
market_value (Portfolio attribute)
(PortfolioBar attribute)
(Position attribute)
(PositionBar attribute)
max_drawdown (EvalMetrics attribute)
max_drawdown_date (EvalMetrics attribute)
max_drawdown_pct (EvalMetrics attribute)
max_drawdown_percent() (in module pybroker.eval)
max_losses (EvalMetrics attribute)
max_wins (EvalMetrics attribute)
max_wins_losses() (in module pybroker.eval)
merge_interval_lag_series_cache() (in module pybroker.model)
merge_lag_series_cache() (in module pybroker.model)
merge_lag_series_cache_from_arrays() (in module pybroker.model)
merge_lag_series_cache_from_store() (in module pybroker.model)
merge_symbol_array_stores() (in module pybroker.scope)
metrics (EvalResult attribute)
(TestResult attribute)
metrics_df (TestResult attribute)
mfe (Entry attribute)
(Trade attribute)
MIDDLE (PriceType attribute)
model (CachedModel attribute)
model() (ExecContext method)
(in module pybroker.model)
(IntervalContext method)
model_cache (StaticScope attribute)
model_cache_ns (StaticScope attribute)
model_input_from_arrays() (in module pybroker.model)
model_input_from_frame() (in module pybroker.model)
model_interval_name() (in module pybroker.interval)
model_name (ModelCacheKey attribute)
(ModelSymbol attribute)
model_names (Execution attribute)
ModelCacheKey (class in pybroker.cache)
ModelInput (class in pybroker.model)
ModelInputScope (class in pybroker.scope)
ModelLoader (class in pybroker.model)
ModelsMixin (class in pybroker.model)
ModelSource (class in pybroker.model)
ModelSymbol (class in pybroker.common)
ModelTrainer (class in pybroker.model)
module
pybroker
pybroker.cache
pybroker.common
pybroker.config
pybroker.context
pybroker.data
pybroker.eval
pybroker.ext.data
pybroker.indicator
pybroker.interval
pybroker.log
pybroker.model
pybroker.optimize
pybroker.parallel
pybroker.portfolio
pybroker.scope
pybroker.slippage
pybroker.strategy
pybroker.vect
MON (Day attribute)
money_flow() (in module pybroker.indicator)
(in module pybroker.vect)
N
n_jobs (ParallelConfig attribute)
name (ConfInterval attribute)
(Hyperparam attribute)
(TrainedModel attribute)
net_cash_balance (ExecContext property)
(PortfolioBar attribute)
normal_cdf() (in module pybroker.vect)
normalize_interval() (in module pybroker.interval)
normalize_intervals() (in module pybroker.interval)
normalized_negative_volume_index() (in module pybroker.indicator)
(in module pybroker.vect)
normalized_on_balance_volume() (in module pybroker.indicator)
(in module pybroker.vect)
normalized_positive_volume_index() (in module pybroker.indicator)
(in module pybroker.vect)
notional (PortfolioBar attribute)
O
objective (ObjectiveBundle attribute)
ObjectiveBundle (class in pybroker.optimize)
open (CompressedBars attribute)
(ExecContext property)
(IntervalContext property)
OPEN (PriceType attribute)
open_price (ExecContext property)
optimize() (OptimizeMixin method)
optimize_start() (Logger method)
OptimizeMixin (class in pybroker.optimize)
OptimizeResult (class in pybroker.optimize)
Order (class in pybroker.portfolio)
ORDER_PERCENT (FeeMode attribute)
order_type (FeeInfo attribute)
(Order attribute)
ordered_data_cols (StaticScope property)
orders (Portfolio attribute)
(TestResult attribute)
orders() (ExecContext method)
(PendingOrderScope method)
OrderType (class in pybroker.common)
P
parallel (ParallelConfig attribute)
ParallelConfig (class in pybroker.parallel)
param() (in module pybroker.scope)
(StaticScope method)
params (WindowOptimizeResult attribute)
parse_indicator_interval_name() (in module pybroker.interval)
parse_model_interval_name() (in module pybroker.interval)
parse_timeframe() (in module pybroker.common)
pct_confs (DrawdownMetrics attribute)
pending_order_id (ExecResult attribute)
pending_orders() (ExecContext method)
PendingOrder (class in pybroker.scope)
PendingOrderScope (class in pybroker.scope)
per_bar (TrainedModel attribute)
PER_ORDER (FeeMode attribute)
PER_SHARE (FeeMode attribute)
percent (Stop attribute)
(StopRecord attribute)
pnl (Portfolio attribute)
(PortfolioBar attribute)
(Position attribute)
(Trade attribute)
pnl_per_bar (Trade attribute)
points (Stop attribute)
(StopRecord attribute)
pooled_symbols (ModelCacheKey attribute)
Portfolio (class in pybroker.portfolio)
portfolio (RotationContext attribute)
(TestResult attribute)
PortfolioBar (class in pybroker.portfolio)
pos() (ExecContext method)
pos_type (Stop attribute)
(StopRecord attribute)
Position (class in pybroker.portfolio)
position_bars (Portfolio attribute)
position_mode (StrategyConfig attribute)
PositionBar (class in pybroker.portfolio)
PositionIntent (class in pybroker.common)
PositionMode (class in pybroker.common)
positions (TestResult attribute)
positions() (ExecContext method)
predict_fn (TrainedModel attribute)
PredictionScope (class in pybroker.scope)
preds() (ExecContext method)
(IntervalContext method)
prepare_input_data() (ModelSource method)
price (Entry attribute)
price_change_oscillator() (in module pybroker.indicator)
(in module pybroker.vect)
price_intensity() (in module pybroker.indicator)
(in module pybroker.vect)
price_volume_fit() (in module pybroker.indicator)
(in module pybroker.vect)
PriceScope (class in pybroker.scope)
PriceType (class in pybroker.common)
PROFIT (StopType attribute)
profit_factor (BootstrapResult attribute)
(EvalMetrics attribute)
pybroker
module
pybroker.cache
module
pybroker.common
module
pybroker.config
module
pybroker.context
module
pybroker.data
module
pybroker.eval
module
pybroker.ext.data
module
pybroker.indicator
module
pybroker.interval
module
pybroker.log
module
pybroker.model
module
pybroker.optimize
module
pybroker.parallel
module
pybroker.portfolio
module
pybroker.scope
module
pybroker.slippage
module
pybroker.strategy
module
pybroker.vect
module
Q
q_001 (DrawdownConfs attribute)
q_01 (DrawdownConfs attribute)
q_05 (DrawdownConfs attribute)
q_10 (DrawdownConfs attribute)
quadratic_deviation() (in module pybroker.indicator)
(in module pybroker.vect)
quadratic_trend() (in module pybroker.indicator)
(in module pybroker.vect)
quantize() (in module pybroker.common)
query() (Alpaca method)
(AlpacaCrypto method)
(DataSource method)
(YFinance method)
R
r_squared() (in module pybroker.eval)
reactivity() (in module pybroker.indicator)
(in module pybroker.vect)
record_portfolio_bars (StrategyConfig attribute)
record_position_bars (StrategyConfig attribute)
register_columns() (in module pybroker.scope)
register_custom_cols() (StaticScope method)
relative_entropy() (in module pybroker.eval)
(Indicator method)
remove() (IndicatorSet method)
(PendingOrderScope method)
remove_all() (PendingOrderScope method)
remove_stop() (Portfolio method)
remove_stops() (Portfolio method)
reset_bar() (PriceScope method)
result (OptimizeResult attribute)
retry_bars() (PendingOrderScope method)
return_pct (Trade attribute)
return_signals (StrategyConfig attribute)
return_stops (StrategyConfig attribute)
returns() (in module pybroker.indicator)
returnv() (in module pybroker.vect)
RotationContext (class in pybroker.context)
round_fill_price (StrategyConfig attribute)
round_test_result (StrategyConfig attribute)
run_with_scope() (in module pybroker.scope)
S
SAT (Day attribute)
score_overrides (ObjectiveBundle attribute)
search_space (ObjectiveBundle attribute)
SearchSpace (class in pybroker.optimize)
select_columns() (ModelInput method)
sell() (Portfolio method)
sell_all_shares() (ExecContext method)
sell_delay (StrategyConfig attribute)
sell_fill_price (ExecContext attribute)
(ExecResult attribute)
sell_limit_price (ExecContext attribute)
(ExecResult attribute)
sell_shares (ExecContext attribute)
(ExecResult attribute)
sell_timeout_bars (ExecContext attribute)
(ExecResult attribute)
SELL_TO_CLOSE (PositionIntent attribute)
SELL_TO_OPEN (PositionIntent attribute)
session (ExecContext attribute)
set_after_exec() (Strategy method)
set_before_exec() (Strategy method)
set_cached() (DataSourceCacheMixin method)
set_exec_ctx_data() (in module pybroker.context)
set_hyperparam() (StaticScope method)
set_indicator() (StaticScope method)
set_instance() (StaticScope class method)
set_max_long_positions() (Strategy method)
set_max_short_positions() (Strategy method)
set_model_source() (StaticScope method)
set_parallel() (in module pybroker.parallel)
set_slippage_model() (Strategy method)
set_target_shares() (ExecContext method)
shares (Entry attribute)
(FeeInfo attribute)
(Order attribute)
(PendingOrder attribute)
(Position attribute)
(SlippageContext attribute)
(Trade attribute)
sharpe (BootstrapResult attribute)
(EvalMetrics attribute)
sharpe_ratio() (in module pybroker.eval)
shift_array() (in module pybroker.model)
SHORT_ONLY (PositionMode attribute)
short_pos() (ExecContext method)
short_positions (Portfolio attribute)
short_positions() (ExecContext method)
short_ranks (RotationContext attribute)
short_score (ExecContext attribute)
(ExecResult attribute)
short_shares (PositionBar attribute)
short_stops (ExecResult attribute)
side (SlippageContext attribute)
signals (TestResult attribute)
slice() (ModelInput method)
slice_arrays_by_dates() (in module pybroker.interval)
slice_by_dates() (CompressedBars method)
slice_compressed_df_by_dates() (in module pybroker.interval)
slice_for_test() (IntervalData method)
slice_range() (ModelInput method)
slice_symbol_array_store_by_dates() (in module pybroker.scope)
SlippageContext (class in pybroker.slippage)
SlippageModel (class in pybroker.slippage)
sortino (EvalMetrics attribute)
sortino_ratio() (in module pybroker.eval)
source (DataSourceCacheKey attribute)
(IntervalBoundModel attribute)
specs (SearchSpace attribute)
start_date (CacheDateFields attribute)
(TestResult attribute)
StaticScope (class in pybroker.scope)
std_error (EvalMetrics attribute)
step (Hyperparam attribute)
stochastic() (in module pybroker.indicator)
(in module pybroker.vect)
stochastic_rsi() (in module pybroker.indicator)
(in module pybroker.vect)
Stop (class in pybroker.portfolio)
stop (Trade attribute)
STOP_BAR (OrderType attribute)
stop_id (StopRecord attribute)
stop_loss (ExecContext attribute)
STOP_LOSS (OrderType attribute)
stop_loss_exit_price (ExecContext attribute)
stop_loss_limit (ExecContext attribute)
stop_loss_pct (ExecContext attribute)
stop_profit (ExecContext attribute)
STOP_PROFIT (OrderType attribute)
stop_profit_exit_price (ExecContext attribute)
stop_profit_limit (ExecContext attribute)
stop_profit_pct (ExecContext attribute)
stop_trailing (ExecContext attribute)
STOP_TRAILING (OrderType attribute)
stop_trailing_exit_price (ExecContext attribute)
stop_trailing_limit (ExecContext attribute)
stop_trailing_pct (ExecContext attribute)
stop_type (Stop attribute)
(StopRecord attribute)
StopRecord (class in pybroker.portfolio)
stops (Entry attribute)
(PendingOrder attribute)
(TestResult attribute)
StopType (class in pybroker.common)
store (ColumnScope property)
Strategy (class in pybroker.strategy)
StrategyConfig (class in pybroker.config)
study (OptimizeResult attribute)
(WindowOptimizeResult attribute)
sumv() (in module pybroker.vect)
SUN (Day attribute)
sym_arrays (SymbolArrayStore attribute)
sym_bars (Entry attribute)
sym_data_from_store() (in module pybroker.scope)
sym_end_index (SlippageContext attribute)
sym_exec_dates_from_store() (in module pybroker.scope)
SYMBOL (DataCol attribute)
symbol (DataSourceCacheKey attribute)
(Entry attribute)
(ExecContext attribute)
(ExecResult attribute)
(FeeInfo attribute)
(IndicatorCacheKey attribute)
(IndicatorSymbol attribute)
(LagSeriesKey attribute)
(ModelCacheKey attribute)
(ModelSymbol attribute)
(Order attribute)
(PendingOrder attribute)
(Position attribute)
(PositionBar attribute)
(SlippageContext attribute)
(Stop attribute)
(StopRecord attribute)
(Trade attribute)
symbol_array_store_from_flat_frame() (in module pybroker.scope)
symbol_array_store_from_frame() (in module pybroker.scope)
symbol_array_store_from_indexed_df() (in module pybroker.scope)
symbol_dates_from_frame() (in module pybroker.interval)
symbol_history_arrays() (in module pybroker.model)
SymbolArrayStore (class in pybroker.scope)
symbols (ColumnScope property)
(Execution attribute)
(Portfolio attribute)
(SymbolArrayStore attribute)
(TestResult attribute)
SymbolSelector (in module pybroker.common)
T
test_data (WalkforwardWindow attribute)
test_end_date (WindowOptimizeResult attribute)
test_start_date (WindowOptimizeResult attribute)
TestResult (class in pybroker.strategy)
tf_seconds (CacheDateFields attribute)
THURS (Day attribute)
TimeframeInterval (in module pybroker.interval)
timeout_bars (PendingOrder attribute)
to_dataframe() (ModelInput method)
to_datetime() (in module pybroker.common)
to_decimal() (in module pybroker.common)
to_json() (BootstrapResult method)
(EvalMetrics method)
(OptimizeResult method)
(TestResult method)
(WindowOptimizeResult method)
to_json_str() (OptimizeResult method)
(TestResult method)
(WindowOptimizeResult method)
to_result() (ExecContext method)
to_seconds() (in module pybroker.common)
total_equity (ExecContext property)
total_fees (EvalMetrics attribute)
total_loss (EvalMetrics attribute)
total_margin (ExecContext property)
total_market_value (ExecContext property)
total_pnl (EvalMetrics attribute)
total_profit (EvalMetrics attribute)
total_profit_loss() (in module pybroker.eval)
total_return_pct (EvalMetrics attribute)
total_return_percent() (in module pybroker.eval)
Trade (class in pybroker.portfolio)
TRADE_COUNT (AlpacaCrypto attribute)
trade_count (EvalMetrics attribute)
trades (TestResult attribute)
trades() (ExecContext method)
TradeStats (class in pybroker.eval)
TRAILING (StopType attribute)
train_data (WalkforwardWindow attribute)
train_end_date (WindowOptimizeResult attribute)
train_models() (ModelsMixin method)
train_pooled() (ModelTrainer method)
train_score (WindowOptimizeResult attribute)
train_split_completed() (Logger method)
train_split_start() (Logger method)
train_start_date (WindowOptimizeResult attribute)
TrainedModel (class in pybroker.common)
TUES (Day attribute)
type (Entry attribute)
(Order attribute)
(PendingOrder attribute)
(Position attribute)
(Trade attribute)
U
ulcer_index (EvalMetrics attribute)
unfreeze_data_cols() (StaticScope method)
unique_dates() (ColumnScope method)
(SymbolArrayStore method)
unmarked_notional (Position attribute)
unmarked_shares (Position attribute)
unrealized_pnl (EvalMetrics attribute)
(PortfolioBar attribute)
(PositionBar attribute)
unregister_columns() (in module pybroker.scope)
unregister_custom_cols() (StaticScope method)
upi (EvalMetrics attribute)
upper (ConfInterval attribute)
V
validate() (SlippageModel method)
(VolumeSlippageModel method)
validate_base_timeframe_data() (in module pybroker.interval)
validate_interval() (in module pybroker.interval)
validate_registered_names() (StaticScope method)
validate_source_name() (in module pybroker.interval)
verify_data_source_columns() (in module pybroker.common)
verify_date_range() (in module pybroker.common)
VolatilitySlippageModel (class in pybroker.slippage)
volume (CompressedBars attribute)
VOLUME (DataCol attribute)
volume (ExecContext property)
(IntervalContext property)
volume_momentum() (in module pybroker.indicator)
(in module pybroker.vect)
volume_value (ExecContext property)
volume_weighted_ma_ratio() (in module pybroker.indicator)
(in module pybroker.vect)
VolumeSlippageModel (class in pybroker.slippage)
vwap (CompressedBars attribute)
VWAP (DataCol attribute)
vwap (ExecContext property)
vwap_value (ExecContext property)
W
walkforward() (Strategy method)
walkforward_completed() (Logger method)
walkforward_split() (WalkforwardMixin method)
walkforward_start() (Logger method)
WalkforwardMixin (class in pybroker.strategy)
WalkforwardWindow (class in pybroker.strategy)
warn_set_model_cache_failed() (Logger method)
was_attempted() (PendingOrderScope method)
WEDS (Day attribute)
win_loss_rate() (in module pybroker.eval)
win_rate (EvalMetrics attribute)
(ExecContext property)
(Portfolio attribute)
window_len() (IntervalScope method)
WindowOptimizeResult (class in pybroker.optimize)
windows (OptimizeResult attribute)
winning_losing_trades() (in module pybroker.eval)
winning_trades (EvalMetrics attribute)
Y
YFinance (class in pybroker.data)
YQuery (class in pybroker.ext.data)