Skip to content

Releases: edtechre/pybroker

v1.1.9

05 May 23:59
Compare
Choose a tag to compare

v1.1.7

01 May 20:41
Compare
Choose a tag to compare
  • Adds __version__ field for getting version number of PyBroker.
  • Adds cover_fill_price, cover_shares, and cover_limit_price properties to ExecContext. These alias buy_fill_price, buy_shares, and buy_limit_price respectively. However, setting the cover* properties guarantees that the resulting buy orders are placed before any sell orders. This is useful for covering short positions when max_short_positions is set, since normally all sell orders are placed before all buy orders.
  • Adds optional cash argument to calc_target_shares to override using portfolio equity by default.

v1.1.6

26 Apr 06:49
Compare
Choose a tag to compare

v1.1.4

23 Apr 21:16
Compare
Choose a tag to compare

Adds param function for setting and getting global parameters.

v1.1.3

11 Apr 08:38
Compare
Choose a tag to compare

Fixes duplicate stop ID error when there are multiple symbols.

v1.1.1

01 Apr 01:25
Compare
Choose a tag to compare

v1.1.0

25 Mar 01:54
Compare
Choose a tag to compare
  1. Stop loss
  2. Trailing stop loss
  3. Take profit

v1.0.21

17 Mar 20:26
Compare
Choose a tag to compare
  • Adds exit_on_last_bar configuration option to exit any open positions on the last bar of data available for a symbol. (See #6)
  • Adds PriceScope to improve performance when retrieving price data.

v1.0.20

16 Mar 01:29
Compare
Choose a tag to compare
  • Fixes bug where test results were being repeated for each walkforward window.

v1.0.19

12 Mar 03:57
Compare
Choose a tag to compare
  • Fixes bug where incorrect market value was being calculated if bar dates were not shared by multiple symbols (#7)
  • Changes PnL in TestResult#portfolio to be running total of realized + unrealized PnL. Removes unrealized_pnl column.
  • Adds unrealized_pnl to EvalMetrics.
  • Adds better error messaging if "predict" method is not found on a trained model instance when running predictions.
  • Updates the project's license to Apache 2.0 with Commons Clause. PyBroker is free for non-commercial use.