./finance/py-backtrader, Python Backtesting library for trading strategies

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version:, Package name: py39-backtrader-, Maintainer: minskim

Backtrader is a feature-rich Python framework for backtesting and
trading. It allows you to focus on writing reusable trading
strategies, indicators and analyzers instead of having to spend time
building infrastructure.

Required to run:
[graphics/py-matplotlib] [devel/py-setuptools] [math/py-numpy] [math/py-pandas] [lang/python37]

Required to build:

Master sites:

Filesize: 2124.103 KB

Version history: (Expand)

CVS history: (Expand)

   2022-04-10 16:42:19 by Nia Alarie | Files touched by this commit (9)
Log message:
Paper over tree breakage caused by unresolvable Python deps from
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-12-30 14:05:42 by Adam Ciarcinski | Files touched by this commit (125)
Log message:
Forget about Python 3.6
   2021-10-26 12:26:13 by Nia Alarie | Files touched by this commit (119)
Log message:
finance: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 15:54:03 by Nia Alarie | Files touched by this commit (119)
Log message:
finance: Remove SHA1 hashes for distfiles
   2021-04-09 17:42:35 by Tobias Nygren | Files touched by this commit (6)
Log message:
propagate python incompatibilities
   2019-06-17 07:43:02 by Adam Ciarcinski | Files touched by this commit (5) | Package updated
Log message:
py-backtrader: updated to
  - Correct calculation in haDelta indicator
  - Use initial datalabel for non-overlaid volume plot
  - Add utility NonZeroDifference indicator
  - Redefine CrossUp, CrossDown and CrossOver indicators using
    NonZeroDifference to cover the case in which the crossing entities
    converge right before crossing up and down
  - Cover case in which result in high-level overridden operations have
    multiple lines and wer not be taken into account for minimum period
  - Add "Int" variants of percentage based sizers to import
  - Trades observer to show net profit instead of brutto, with parameter
    to control behavior
  - Improve on indicator legend plotting to overcome matplotlib legend
  - Added PercenSizerInt and AllSizerInt which truncate the returned size
    to an int, suited better for stocks/futures
  - Use opening price for submission check for Market orders when
    cheat-on-open is active
  - Update pnlcomm on all operations and not just profit/loss locking
  - Correct comment for fillalpha and add baralpha for candlestick opacity
  - Use internal dict for data feed presence test and update trade observer
  - Fix offline Yahoo feed by moving the new adjclose line up to the offline
  - Adapt the yahoodownload tool to the current status (ex: data not reversed)
  - Redownload all yahoo data feeds
  - Fix call to _nextday in TradingCalendar
  - Clean up and rework of Yahoo Data. The data feeds seems to be reliable
  - IBStore Support for IND prices
  - Fix compression only scenarios when resampling and resampling after
    changes in
  - Final correction for rollover fix introduced in
  - Cover use case for mininum period calculation when all
    operations/indicators don't use the data feeds directly but lines of it
  - Fix regression introduced with 8f537a1c2c271eb5cfc592b373697732597d26d6
    which voids the count of lost trades
  - Allow rollover to distinguish between no values temporarily (with None)
    and no values permanently (with False)
  - Avoid math domain error for negative returns in logarithmic calculations
  - Fix local variable declaration for compound returns
  - Fix typo in date2num tz conversion which shows up in direct usage
  - Fix commission info assigment and orderref seeking in OandaStore
  - Add strategy type to OptReturn
  - Fix prepend_constant for OLS_Transformation
  - Fix LogReturnsRolling compression when not specified
  - Have ints instead of bools in some values with 1 Trade in TradeAnalyzer
  - Avoid stage2 comparison using [0] in API methods
  - Support plotname, if given, as name of indicator in csv output
  - Add optimization callbacks when running with 1 Core
  - Correct sell_bracket by removing old append code
  - Correct typo in store.py
  - Pass period from RateOfChange100 to underlying ROC
  - Correct PSAR acceleration capping
  - Enable PandasData line extension without the need to extend datafields
  - Add `_skipnan` to plotlines to allow joining two points with a line
  - buy_bracket/sell_bracket allow suppressing stop/limit orders
  - Add stop-loss approaches sample
  - Correct codes for minutes compression
  - Remove unused files
  - README update, Docstring corrections, documentation corrections
  - Update travis settings
  - Provide default fundmode methods for all brokers
  - Correct order notification if positions exist when starting the broker
    and will be simulated
  - Correct csv values output if object has no length
  - Fix set_fundmode in bbroker
  - Synchronize fund history mode with master clock
  - Allow relocation of legend in plotting charts
  - Adapt broker observer to fund mode
  - Handle volume as string null in YahooFinanceData
  - Corrections/Improvements to order history support
  - Add fund history support
  - Increase plotting margin of trade observers