pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/py-backtrader py-backtrader: updated to 1.9.74...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/044f1b445f56
branches:  trunk
changeset: 335280:044f1b445f56
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jun 17 05:43:02 2019 +0000

description:
py-backtrader: updated to 1.9.74.123

1.9.74.123:
  - Correct calculation in haDelta indicator
  - Use initial datalabel for non-overlaid volume plot

1.9.73.123:
  - 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

1.9.72.122:
  - Cover case in which result in high-level overridden operations have
    multiple lines and wer not be taken into account for minimum period
    calculations
  - Add "Int" variants of percentage based sizers to import
  - Trades observer to show net profit instead of brutto, with parameter
    to control behavior

1.9.71.122:
  - Improve on indicator legend plotting to overcome matplotlib legend
    reordering
  - Added PercenSizerInt and AllSizerInt which truncate the returned size
    to an int, suited better for stocks/futures

1.9.70.122:
  - 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

1.9.69.122:
  - Fix offline Yahoo feed by moving the new adjclose line up to the offline
    feed
  - Adapt the yahoodownload tool to the current status (ex: data not reversed)
  - Redownload all yahoo data feeds

1.9.68.122
  - Fix call to _nextday in TradingCalendar
  - Clean up and rework of Yahoo Data. The data feeds seems to be reliable
    again
  - IBStore Support for IND prices

1.9.67.122
  - Fix compression only scenarios when resampling and resampling after
    changes in 1.9.66.122
  - Final correction for rollover fix introduced in 1.9.66.122
  - Cover use case for mininum period calculation when all
    operations/indicators don't use the data feeds directly but lines of it

1.9.66.122
  - 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

1.9.65.122
  - 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

1.9.64.122
  - Avoid stage2 comparison using [0] in API methods
  - Support plotname, if given, as name of indicator in csv output

1.9.63.122
  - 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

1.9.62.122
  - Correct PSAR acceleration capping
  - Enable PandasData line extension without the need to extend datafields

1.9.61.122
  - 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

1.9.60.122
  - Remove unused files
  - README update, Docstring corrections, documentation corrections
  - Update travis settings

1.9.58.122
  - 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

1.9.57.122
  - 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

1.9.56.122
  - Handle volume as string null in YahooFinanceData
  - Corrections/Improvements to order history support
  - Add fund history support
  - Increase plotting margin of trade observers

diffstat:

 finance/py-backtrader/ALTERNATIVES                          |    2 +
 finance/py-backtrader/Makefile                              |   18 +-
 finance/py-backtrader/PLIST                                 |  697 +++++------
 finance/py-backtrader/distinfo                              |   11 +-
 finance/py-backtrader/patches/patch-backtrader_datacache.py |   24 -
 5 files changed, 364 insertions(+), 388 deletions(-)

diffs (truncated from 964 to 300 lines):

diff -r 8a5840cc8b80 -r 044f1b445f56 finance/py-backtrader/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-backtrader/ALTERNATIVES        Mon Jun 17 05:43:02 2019 +0000
@@ -0,0 +1,2 @@
+bin/bt-run.py @PREFIX@/bin/bt-run-@PYVERSSUFFIX@.py
+bin/btrun @PREFIX@/bin/btrun-@PYVERSSUFFIX@
diff -r 8a5840cc8b80 -r 044f1b445f56 finance/py-backtrader/Makefile
--- a/finance/py-backtrader/Makefile    Mon Jun 17 05:33:23 2019 +0000
+++ b/finance/py-backtrader/Makefile    Mon Jun 17 05:43:02 2019 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2018/05/12 22:06:53 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2019/06/17 05:43:02 adam Exp $
 
-DISTNAME=      backtrader-1.9.58.122
+DISTNAME=      backtrader-1.9.74.123
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    finance python
+#MASTER_SITES= ${MASTER_SITE_PYPI:=b/backtrader/}
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mementum/}
 GITHUB_PROJECT=        backtrader
-GITHUB_TAG=    ${PKGVERSION_NOREV}
 
 MAINTAINER=    minskim%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/mementum/backtrader
@@ -16,12 +16,14 @@
 DEPENDS+=      ${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
 DEPENDS+=      ${PYPKGPREFIX}-pandas-[0-9]*:../../math/py-pandas
 
-.include "../../lang/python/egg.mk"
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27      # py-matplotlib
 
 post-install:
-.for f in bt-run.py btrun
-       ${MV} ${DESTDIR}${PREFIX}/bin/${f} \
-               ${DESTDIR}${PREFIX}/bin/${f}${PYVERSSUFFIX}
-.endfor
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} bt-run.py bt-run-${PYVERSSUFFIX}.py && \
+       ${MV} btrun btrun-${PYVERSSUFFIX} || ${TRUE}
 
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8a5840cc8b80 -r 044f1b445f56 finance/py-backtrader/PLIST
--- a/finance/py-backtrader/PLIST       Mon Jun 17 05:33:23 2019 +0000
+++ b/finance/py-backtrader/PLIST       Mon Jun 17 05:43:02 2019 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1 2018/05/12 22:06:53 minskim Exp $
-bin/bt-run.py${PYVERSSUFFIX}
-bin/btrun${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.2 2019/06/17 05:43:02 adam Exp $
+bin/bt-run-${PYVERSSUFFIX}.py
+bin/btrun-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -8,518 +8,515 @@
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/backtrader/__init__.py
+${PYSITELIB}/backtrader/__init__.pyc
 ${PYSITELIB}/backtrader/__init__.pyo
-${PYSITELIB}/backtrader/__init__.pyc
+${PYSITELIB}/backtrader/analyzer.py
+${PYSITELIB}/backtrader/analyzer.pyc
 ${PYSITELIB}/backtrader/analyzer.pyo
-${PYSITELIB}/backtrader/analyzer.pyc
-${PYSITELIB}/backtrader/broker.pyo
+${PYSITELIB}/backtrader/analyzers/__init__.py
+${PYSITELIB}/backtrader/analyzers/__init__.pyc
+${PYSITELIB}/backtrader/analyzers/__init__.pyo
+${PYSITELIB}/backtrader/analyzers/annualreturn.py
+${PYSITELIB}/backtrader/analyzers/annualreturn.pyc
+${PYSITELIB}/backtrader/analyzers/annualreturn.pyo
+${PYSITELIB}/backtrader/analyzers/calmar.py
+${PYSITELIB}/backtrader/analyzers/calmar.pyc
+${PYSITELIB}/backtrader/analyzers/calmar.pyo
+${PYSITELIB}/backtrader/analyzers/drawdown.py
+${PYSITELIB}/backtrader/analyzers/drawdown.pyc
+${PYSITELIB}/backtrader/analyzers/drawdown.pyo
+${PYSITELIB}/backtrader/analyzers/leverage.py
+${PYSITELIB}/backtrader/analyzers/leverage.pyc
+${PYSITELIB}/backtrader/analyzers/leverage.pyo
+${PYSITELIB}/backtrader/analyzers/logreturnsrolling.py
+${PYSITELIB}/backtrader/analyzers/logreturnsrolling.pyc
+${PYSITELIB}/backtrader/analyzers/logreturnsrolling.pyo
+${PYSITELIB}/backtrader/analyzers/periodstats.py
+${PYSITELIB}/backtrader/analyzers/periodstats.pyc
+${PYSITELIB}/backtrader/analyzers/periodstats.pyo
+${PYSITELIB}/backtrader/analyzers/positions.py
+${PYSITELIB}/backtrader/analyzers/positions.pyc
+${PYSITELIB}/backtrader/analyzers/positions.pyo
+${PYSITELIB}/backtrader/analyzers/pyfolio.py
+${PYSITELIB}/backtrader/analyzers/pyfolio.pyc
+${PYSITELIB}/backtrader/analyzers/pyfolio.pyo
+${PYSITELIB}/backtrader/analyzers/returns.py
+${PYSITELIB}/backtrader/analyzers/returns.pyc
+${PYSITELIB}/backtrader/analyzers/returns.pyo
+${PYSITELIB}/backtrader/analyzers/sharpe.py
+${PYSITELIB}/backtrader/analyzers/sharpe.pyc
+${PYSITELIB}/backtrader/analyzers/sharpe.pyo
+${PYSITELIB}/backtrader/analyzers/sqn.py
+${PYSITELIB}/backtrader/analyzers/sqn.pyc
+${PYSITELIB}/backtrader/analyzers/sqn.pyo
+${PYSITELIB}/backtrader/analyzers/timereturn.py
+${PYSITELIB}/backtrader/analyzers/timereturn.pyc
+${PYSITELIB}/backtrader/analyzers/timereturn.pyo
+${PYSITELIB}/backtrader/analyzers/tradeanalyzer.py
+${PYSITELIB}/backtrader/analyzers/tradeanalyzer.pyc
+${PYSITELIB}/backtrader/analyzers/tradeanalyzer.pyo
+${PYSITELIB}/backtrader/analyzers/transactions.py
+${PYSITELIB}/backtrader/analyzers/transactions.pyc
+${PYSITELIB}/backtrader/analyzers/transactions.pyo
+${PYSITELIB}/backtrader/analyzers/vwr.py
+${PYSITELIB}/backtrader/analyzers/vwr.pyc
+${PYSITELIB}/backtrader/analyzers/vwr.pyo
+${PYSITELIB}/backtrader/broker.py
 ${PYSITELIB}/backtrader/broker.pyc
-${PYSITELIB}/backtrader/cerebro.pyo
-${PYSITELIB}/backtrader/cerebro.pyc
-${PYSITELIB}/backtrader/comminfo.pyo
-${PYSITELIB}/backtrader/comminfo.pyc
-${PYSITELIB}/backtrader/datacache.pyo
-${PYSITELIB}/backtrader/datacache.pyc
-${PYSITELIB}/backtrader/dataseries.pyo
-${PYSITELIB}/backtrader/dataseries.pyc
-${PYSITELIB}/backtrader/errors.pyo
-${PYSITELIB}/backtrader/errors.pyc
-${PYSITELIB}/backtrader/feed.pyo
-${PYSITELIB}/backtrader/feed.pyc
-${PYSITELIB}/backtrader/fillers.pyo
-${PYSITELIB}/backtrader/fillers.pyc
-${PYSITELIB}/backtrader/flt.pyo
-${PYSITELIB}/backtrader/flt.pyc
-${PYSITELIB}/backtrader/functions.pyo
-${PYSITELIB}/backtrader/functions.pyc
-${PYSITELIB}/backtrader/indicator.pyo
-${PYSITELIB}/backtrader/indicator.pyc
-${PYSITELIB}/backtrader/linebuffer.pyo
-${PYSITELIB}/backtrader/linebuffer.pyc
-${PYSITELIB}/backtrader/lineiterator.pyo
-${PYSITELIB}/backtrader/lineiterator.pyc
-${PYSITELIB}/backtrader/lineroot.pyo
-${PYSITELIB}/backtrader/lineroot.pyc
-${PYSITELIB}/backtrader/lineseries.pyo
-${PYSITELIB}/backtrader/lineseries.pyc
-${PYSITELIB}/backtrader/mathsupport.pyo
-${PYSITELIB}/backtrader/mathsupport.pyc
-${PYSITELIB}/backtrader/metabase.pyo
-${PYSITELIB}/backtrader/metabase.pyc
-${PYSITELIB}/backtrader/observer.pyo
-${PYSITELIB}/backtrader/observer.pyc
-${PYSITELIB}/backtrader/order.pyo
-${PYSITELIB}/backtrader/order.pyc
-${PYSITELIB}/backtrader/position.pyo
-${PYSITELIB}/backtrader/position.pyc
-${PYSITELIB}/backtrader/resamplerfilter.pyo
-${PYSITELIB}/backtrader/resamplerfilter.pyc
-${PYSITELIB}/backtrader/signal.pyo
-${PYSITELIB}/backtrader/signal.pyc
-${PYSITELIB}/backtrader/sizer.pyo
-${PYSITELIB}/backtrader/sizer.pyc
-${PYSITELIB}/backtrader/store.pyo
-${PYSITELIB}/backtrader/store.pyc
-${PYSITELIB}/backtrader/strategy.pyo
-${PYSITELIB}/backtrader/strategy.pyc
-${PYSITELIB}/backtrader/talib.pyo
-${PYSITELIB}/backtrader/talib.pyc
-${PYSITELIB}/backtrader/timer.pyo
-${PYSITELIB}/backtrader/timer.pyc
-${PYSITELIB}/backtrader/trade.pyo
-${PYSITELIB}/backtrader/trade.pyc
-${PYSITELIB}/backtrader/tradingcal.pyo
-${PYSITELIB}/backtrader/tradingcal.pyc
-${PYSITELIB}/backtrader/version.pyo
-${PYSITELIB}/backtrader/version.pyc
-${PYSITELIB}/backtrader/writer.pyo
-${PYSITELIB}/backtrader/writer.pyc
-${PYSITELIB}/backtrader/analyzer.py
-${PYSITELIB}/backtrader/analyzers/__init__.py
-${PYSITELIB}/backtrader/analyzers/__init__.pyo
-${PYSITELIB}/backtrader/analyzers/__init__.pyc
-${PYSITELIB}/backtrader/analyzers/annualreturn.pyo
-${PYSITELIB}/backtrader/analyzers/annualreturn.pyc
-${PYSITELIB}/backtrader/analyzers/calmar.pyo
-${PYSITELIB}/backtrader/analyzers/calmar.pyc
-${PYSITELIB}/backtrader/analyzers/drawdown.pyo
-${PYSITELIB}/backtrader/analyzers/drawdown.pyc
-${PYSITELIB}/backtrader/analyzers/leverage.pyo
-${PYSITELIB}/backtrader/analyzers/leverage.pyc
-${PYSITELIB}/backtrader/analyzers/logreturnsrolling.pyo
-${PYSITELIB}/backtrader/analyzers/logreturnsrolling.pyc
-${PYSITELIB}/backtrader/analyzers/periodstats.pyo
-${PYSITELIB}/backtrader/analyzers/periodstats.pyc
-${PYSITELIB}/backtrader/analyzers/positions.pyo
-${PYSITELIB}/backtrader/analyzers/positions.pyc
-${PYSITELIB}/backtrader/analyzers/pyfolio.pyo
-${PYSITELIB}/backtrader/analyzers/pyfolio.pyc
-${PYSITELIB}/backtrader/analyzers/returns.pyo
-${PYSITELIB}/backtrader/analyzers/returns.pyc
-${PYSITELIB}/backtrader/analyzers/sharpe.pyo
-${PYSITELIB}/backtrader/analyzers/sharpe.pyc
-${PYSITELIB}/backtrader/analyzers/sqn.pyo
-${PYSITELIB}/backtrader/analyzers/sqn.pyc
-${PYSITELIB}/backtrader/analyzers/timereturn.pyo
-${PYSITELIB}/backtrader/analyzers/timereturn.pyc
-${PYSITELIB}/backtrader/analyzers/tradeanalyzer.pyo
-${PYSITELIB}/backtrader/analyzers/tradeanalyzer.pyc
-${PYSITELIB}/backtrader/analyzers/transactions.pyo
-${PYSITELIB}/backtrader/analyzers/transactions.pyc
-${PYSITELIB}/backtrader/analyzers/vwr.pyo
-${PYSITELIB}/backtrader/analyzers/vwr.pyc
-${PYSITELIB}/backtrader/analyzers/annualreturn.py
-${PYSITELIB}/backtrader/analyzers/calmar.py
-${PYSITELIB}/backtrader/analyzers/drawdown.py
-${PYSITELIB}/backtrader/analyzers/leverage.py
-${PYSITELIB}/backtrader/analyzers/logreturnsrolling.py
-${PYSITELIB}/backtrader/analyzers/periodstats.py
-${PYSITELIB}/backtrader/analyzers/positions.py
-${PYSITELIB}/backtrader/analyzers/pyfolio.py
-${PYSITELIB}/backtrader/analyzers/returns.py
-${PYSITELIB}/backtrader/analyzers/sharpe.py
-${PYSITELIB}/backtrader/analyzers/sqn.py
-${PYSITELIB}/backtrader/analyzers/timereturn.py
-${PYSITELIB}/backtrader/analyzers/tradeanalyzer.py
-${PYSITELIB}/backtrader/analyzers/transactions.py
-${PYSITELIB}/backtrader/analyzers/vwr.py
-${PYSITELIB}/backtrader/broker.py
+${PYSITELIB}/backtrader/broker.pyo
 ${PYSITELIB}/backtrader/brokers/__init__.py
+${PYSITELIB}/backtrader/brokers/__init__.pyc
 ${PYSITELIB}/backtrader/brokers/__init__.pyo
-${PYSITELIB}/backtrader/brokers/__init__.pyc
-${PYSITELIB}/backtrader/brokers/bbroker.pyo
+${PYSITELIB}/backtrader/brokers/bbroker.py
 ${PYSITELIB}/backtrader/brokers/bbroker.pyc
-${PYSITELIB}/backtrader/brokers/ibbroker.pyo
-${PYSITELIB}/backtrader/brokers/ibbroker.pyc
-${PYSITELIB}/backtrader/brokers/oandabroker.pyo
-${PYSITELIB}/backtrader/brokers/oandabroker.pyc
-${PYSITELIB}/backtrader/brokers/vcbroker.pyo
-${PYSITELIB}/backtrader/brokers/vcbroker.pyc
-${PYSITELIB}/backtrader/brokers/bbroker.py
+${PYSITELIB}/backtrader/brokers/bbroker.pyo
 ${PYSITELIB}/backtrader/brokers/ibbroker.py
+${PYSITELIB}/backtrader/brokers/ibbroker.pyc
+${PYSITELIB}/backtrader/brokers/ibbroker.pyo
 ${PYSITELIB}/backtrader/brokers/oandabroker.py
+${PYSITELIB}/backtrader/brokers/oandabroker.pyc
+${PYSITELIB}/backtrader/brokers/oandabroker.pyo
 ${PYSITELIB}/backtrader/brokers/vcbroker.py
+${PYSITELIB}/backtrader/brokers/vcbroker.pyc
+${PYSITELIB}/backtrader/brokers/vcbroker.pyo
 ${PYSITELIB}/backtrader/btrun/__init__.py
+${PYSITELIB}/backtrader/btrun/__init__.pyc
 ${PYSITELIB}/backtrader/btrun/__init__.pyo
-${PYSITELIB}/backtrader/btrun/__init__.pyc
-${PYSITELIB}/backtrader/btrun/btrun.pyo
-${PYSITELIB}/backtrader/btrun/btrun.pyc
 ${PYSITELIB}/backtrader/btrun/btrun.py
+${PYSITELIB}/backtrader/btrun/btrun.pyc
+${PYSITELIB}/backtrader/btrun/btrun.pyo
 ${PYSITELIB}/backtrader/cerebro.py
+${PYSITELIB}/backtrader/cerebro.pyc
+${PYSITELIB}/backtrader/cerebro.pyo
 ${PYSITELIB}/backtrader/comminfo.py
+${PYSITELIB}/backtrader/comminfo.pyc
+${PYSITELIB}/backtrader/comminfo.pyo
 ${PYSITELIB}/backtrader/commissions/__init__.py
+${PYSITELIB}/backtrader/commissions/__init__.pyc
 ${PYSITELIB}/backtrader/commissions/__init__.pyo
-${PYSITELIB}/backtrader/commissions/__init__.pyc
-${PYSITELIB}/backtrader/datacache.py
 ${PYSITELIB}/backtrader/dataseries.py
+${PYSITELIB}/backtrader/dataseries.pyc
+${PYSITELIB}/backtrader/dataseries.pyo
 ${PYSITELIB}/backtrader/errors.py
+${PYSITELIB}/backtrader/errors.pyc
+${PYSITELIB}/backtrader/errors.pyo
 ${PYSITELIB}/backtrader/feed.py
+${PYSITELIB}/backtrader/feed.pyc
+${PYSITELIB}/backtrader/feed.pyo
 ${PYSITELIB}/backtrader/feeds/__init__.py
-${PYSITELIB}/backtrader/feeds/__init__.pyo
 ${PYSITELIB}/backtrader/feeds/__init__.pyc
-${PYSITELIB}/backtrader/feeds/blaze.pyo
+${PYSITELIB}/backtrader/feeds/__init__.pyo
+${PYSITELIB}/backtrader/feeds/blaze.py
 ${PYSITELIB}/backtrader/feeds/blaze.pyc
-${PYSITELIB}/backtrader/feeds/btcsv.pyo
+${PYSITELIB}/backtrader/feeds/blaze.pyo
+${PYSITELIB}/backtrader/feeds/btcsv.py
 ${PYSITELIB}/backtrader/feeds/btcsv.pyc
-${PYSITELIB}/backtrader/feeds/chainer.pyo
+${PYSITELIB}/backtrader/feeds/btcsv.pyo
+${PYSITELIB}/backtrader/feeds/chainer.py
 ${PYSITELIB}/backtrader/feeds/chainer.pyc
-${PYSITELIB}/backtrader/feeds/csvgeneric.pyo
+${PYSITELIB}/backtrader/feeds/chainer.pyo



Home | Main Index | Thread Index | Old Index