diff --git a/backtrader/__init__.py b/backtrader/__init__.py index 13d95840d..15770f55a 100644 --- a/backtrader/__init__.py +++ b/backtrader/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzer.py b/backtrader/analyzer.py index 881302683..51abc02a5 100644 --- a/backtrader/analyzer.py +++ b/backtrader/analyzer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/__init__.py b/backtrader/analyzers/__init__.py index d7db3f7ee..e54cc09ad 100644 --- a/backtrader/analyzers/__init__.py +++ b/backtrader/analyzers/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/annualreturn.py b/backtrader/analyzers/annualreturn.py index 07a9c835e..d29024b52 100644 --- a/backtrader/analyzers/annualreturn.py +++ b/backtrader/analyzers/annualreturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/calmar.py b/backtrader/analyzers/calmar.py index ec4849285..97cb59c04 100644 --- a/backtrader/analyzers/calmar.py +++ b/backtrader/analyzers/calmar.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/drawdown.py b/backtrader/analyzers/drawdown.py index 62e1b2623..022168972 100644 --- a/backtrader/analyzers/drawdown.py +++ b/backtrader/analyzers/drawdown.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/leverage.py b/backtrader/analyzers/leverage.py index 1005d5e2a..749362f00 100644 --- a/backtrader/analyzers/leverage.py +++ b/backtrader/analyzers/leverage.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/logreturnsrolling.py b/backtrader/analyzers/logreturnsrolling.py index 7de7a1424..4dc8a8465 100644 --- a/backtrader/analyzers/logreturnsrolling.py +++ b/backtrader/analyzers/logreturnsrolling.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/periodstats.py b/backtrader/analyzers/periodstats.py index 0661ad21f..07271baec 100644 --- a/backtrader/analyzers/periodstats.py +++ b/backtrader/analyzers/periodstats.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/positions.py b/backtrader/analyzers/positions.py index 17d817fa3..7d2e1d7c4 100644 --- a/backtrader/analyzers/positions.py +++ b/backtrader/analyzers/positions.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/pyfolio.py b/backtrader/analyzers/pyfolio.py index 2a3858618..d15bc9d04 100644 --- a/backtrader/analyzers/pyfolio.py +++ b/backtrader/analyzers/pyfolio.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/returns.py b/backtrader/analyzers/returns.py index 5df9dc2aa..ceb39e31e 100644 --- a/backtrader/analyzers/returns.py +++ b/backtrader/analyzers/returns.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/sharpe.py b/backtrader/analyzers/sharpe.py index baaeab1db..d6971c636 100644 --- a/backtrader/analyzers/sharpe.py +++ b/backtrader/analyzers/sharpe.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/sqn.py b/backtrader/analyzers/sqn.py index 6c86a46e5..56732f856 100644 --- a/backtrader/analyzers/sqn.py +++ b/backtrader/analyzers/sqn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/timereturn.py b/backtrader/analyzers/timereturn.py index e9c1bee18..70374e368 100644 --- a/backtrader/analyzers/timereturn.py +++ b/backtrader/analyzers/timereturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/tradeanalyzer.py b/backtrader/analyzers/tradeanalyzer.py index 998476722..2714d0124 100644 --- a/backtrader/analyzers/tradeanalyzer.py +++ b/backtrader/analyzers/tradeanalyzer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/transactions.py b/backtrader/analyzers/transactions.py index 7bdf91a28..dbeb94e94 100644 --- a/backtrader/analyzers/transactions.py +++ b/backtrader/analyzers/transactions.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/analyzers/vwr.py b/backtrader/analyzers/vwr.py index 95f4881cd..2bd758aed 100644 --- a/backtrader/analyzers/vwr.py +++ b/backtrader/analyzers/vwr.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/broker.py b/backtrader/broker.py index 58132f86c..b88de5b21 100644 --- a/backtrader/broker.py +++ b/backtrader/broker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/brokers/__init__.py b/backtrader/brokers/__init__.py index ba060a560..0efd3ce67 100644 --- a/backtrader/brokers/__init__.py +++ b/backtrader/brokers/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/brokers/bbroker.py b/backtrader/brokers/bbroker.py index 568a97d97..fc87da7c6 100644 --- a/backtrader/brokers/bbroker.py +++ b/backtrader/brokers/bbroker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/brokers/ibbroker.py b/backtrader/brokers/ibbroker.py index 3f1651594..97188663d 100644 --- a/backtrader/brokers/ibbroker.py +++ b/backtrader/brokers/ibbroker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/brokers/oandabroker.py b/backtrader/brokers/oandabroker.py index 6f050507a..c584904be 100644 --- a/backtrader/brokers/oandabroker.py +++ b/backtrader/brokers/oandabroker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/brokers/vcbroker.py b/backtrader/brokers/vcbroker.py index 838dd0978..4c98d94e5 100644 --- a/backtrader/brokers/vcbroker.py +++ b/backtrader/brokers/vcbroker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/btrun/__init__.py b/backtrader/btrun/__init__.py index 599a2d72e..e3b9c4a6f 100644 --- a/backtrader/btrun/__init__.py +++ b/backtrader/btrun/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/btrun/btrun.py b/backtrader/btrun/btrun.py index a839389f3..f93727629 100644 --- a/backtrader/btrun/btrun.py +++ b/backtrader/btrun/btrun.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py index 2790ef1b7..9b18e7775 100644 --- a/backtrader/cerebro.py +++ b/backtrader/cerebro.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,6 +26,11 @@ import itertools import multiprocessing +try: # For new Python versions + collectionsAbc = collections.abc # collections.Iterable -> collections.abc.Iterable +except AttributeError: # For old Python versions + collectionsAbc = collections # Используем collections.Iterable + import backtrader as bt from .utils.py3 import (map, range, zip, with_metaclass, string_types, integer_types) @@ -330,7 +335,7 @@ def iterize(iterable): for elem in iterable: if isinstance(elem, string_types): elem = (elem,) - elif not isinstance(elem, collections.Iterable): + elif not isinstance(elem, collectionsAbc.Iterable): # Different functions will be called for different Python versions elem = (elem,) niterable.append(elem) diff --git a/backtrader/comminfo.py b/backtrader/comminfo.py index 4081284a0..6bfd8e015 100644 --- a/backtrader/comminfo.py +++ b/backtrader/comminfo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/commissions/__init__.py b/backtrader/commissions/__init__.py index 16a82b0b4..209627eb6 100644 --- a/backtrader/commissions/__init__.py +++ b/backtrader/commissions/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/dataseries.py b/backtrader/dataseries.py index 25841bb10..f35c170f4 100644 --- a/backtrader/dataseries.py +++ b/backtrader/dataseries.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/errors.py b/backtrader/errors.py index e1e47d7c4..5f3dcdb33 100644 --- a/backtrader/errors.py +++ b/backtrader/errors.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feed.py b/backtrader/feed.py index 1145c997b..84c6b2b89 100644 --- a/backtrader/feed.py +++ b/backtrader/feed.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -423,6 +423,7 @@ def next(self, datamaster=None, ticks=True): if self.lines.datetime[0] > datamaster.lines.datetime[0]: # can't deliver new bar, too early, go back self.rewind() + return False else: if ticks: self._tick_fill() diff --git a/backtrader/feeds/__init__.py b/backtrader/feeds/__init__.py index ceab7371e..8054715dc 100644 --- a/backtrader/feeds/__init__.py +++ b/backtrader/feeds/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/blaze.py b/backtrader/feeds/blaze.py index 5f6f148f8..5496e50b8 100644 --- a/backtrader/feeds/blaze.py +++ b/backtrader/feeds/blaze.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/btcsv.py b/backtrader/feeds/btcsv.py index a70e1078a..1d00e0745 100644 --- a/backtrader/feeds/btcsv.py +++ b/backtrader/feeds/btcsv.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/chainer.py b/backtrader/feeds/chainer.py index 24b1478e9..9cce29df9 100644 --- a/backtrader/feeds/chainer.py +++ b/backtrader/feeds/chainer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/csvgeneric.py b/backtrader/feeds/csvgeneric.py index 228c57acb..cc6a30d0c 100644 --- a/backtrader/feeds/csvgeneric.py +++ b/backtrader/feeds/csvgeneric.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/ibdata.py b/backtrader/feeds/ibdata.py index 6301f2c5c..66b012552 100644 --- a/backtrader/feeds/ibdata.py +++ b/backtrader/feeds/ibdata.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/influxfeed.py b/backtrader/feeds/influxfeed.py index ac21ad53f..7f047b8ae 100644 --- a/backtrader/feeds/influxfeed.py +++ b/backtrader/feeds/influxfeed.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/mt4csv.py b/backtrader/feeds/mt4csv.py index c1d62d6bf..74dc7dbca 100644 --- a/backtrader/feeds/mt4csv.py +++ b/backtrader/feeds/mt4csv.py @@ -2,8 +2,8 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/oanda.py b/backtrader/feeds/oanda.py index 4c09db0be..2581772ea 100644 --- a/backtrader/feeds/oanda.py +++ b/backtrader/feeds/oanda.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/pandafeed.py b/backtrader/feeds/pandafeed.py index c6ecff1c5..3cf3842ac 100644 --- a/backtrader/feeds/pandafeed.py +++ b/backtrader/feeds/pandafeed.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/quandl.py b/backtrader/feeds/quandl.py index 43fe55ef2..08ea1b2c3 100644 --- a/backtrader/feeds/quandl.py +++ b/backtrader/feeds/quandl.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/rollover.py b/backtrader/feeds/rollover.py index 869455582..689118d27 100644 --- a/backtrader/feeds/rollover.py +++ b/backtrader/feeds/rollover.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/sierrachart.py b/backtrader/feeds/sierrachart.py index 1c6da5974..ce12323ce 100644 --- a/backtrader/feeds/sierrachart.py +++ b/backtrader/feeds/sierrachart.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/vcdata.py b/backtrader/feeds/vcdata.py index 6449bcd6e..f60a0e760 100644 --- a/backtrader/feeds/vcdata.py +++ b/backtrader/feeds/vcdata.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/vchart.py b/backtrader/feeds/vchart.py index 3164ee5de..9f042c718 100644 --- a/backtrader/feeds/vchart.py +++ b/backtrader/feeds/vchart.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/vchartcsv.py b/backtrader/feeds/vchartcsv.py index a80a537c2..d5dbdf345 100644 --- a/backtrader/feeds/vchartcsv.py +++ b/backtrader/feeds/vchartcsv.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/vchartfile.py b/backtrader/feeds/vchartfile.py index b81fd5454..1e7b84ec6 100644 --- a/backtrader/feeds/vchartfile.py +++ b/backtrader/feeds/vchartfile.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/feeds/yahoo.py b/backtrader/feeds/yahoo.py index 333c06449..e0310a963 100644 --- a/backtrader/feeds/yahoo.py +++ b/backtrader/feeds/yahoo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/fillers.py b/backtrader/fillers.py index 5d1e5f915..3bd298f88 100644 --- a/backtrader/fillers.py +++ b/backtrader/fillers.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/__init__.py b/backtrader/filters/__init__.py index 502f729fe..3e6cad695 100644 --- a/backtrader/filters/__init__.py +++ b/backtrader/filters/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/bsplitter.py b/backtrader/filters/bsplitter.py index bd578c5a9..997aa2a51 100644 --- a/backtrader/filters/bsplitter.py +++ b/backtrader/filters/bsplitter.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/calendardays.py b/backtrader/filters/calendardays.py index 110e3f8d8..8f1345eb2 100644 --- a/backtrader/filters/calendardays.py +++ b/backtrader/filters/calendardays.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/datafiller.py b/backtrader/filters/datafiller.py index 0abf0ac3d..87fe0521c 100644 --- a/backtrader/filters/datafiller.py +++ b/backtrader/filters/datafiller.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/datafilter.py b/backtrader/filters/datafilter.py index cb3120ef8..f9fa8e25f 100644 --- a/backtrader/filters/datafilter.py +++ b/backtrader/filters/datafilter.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/daysteps.py b/backtrader/filters/daysteps.py index dfab25bef..7d56bd222 100644 --- a/backtrader/filters/daysteps.py +++ b/backtrader/filters/daysteps.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/heikinashi.py b/backtrader/filters/heikinashi.py index 453a91d6b..08165e73a 100644 --- a/backtrader/filters/heikinashi.py +++ b/backtrader/filters/heikinashi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/renko.py b/backtrader/filters/renko.py index 56006c61c..d07c080e7 100644 --- a/backtrader/filters/renko.py +++ b/backtrader/filters/renko.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/filters/session.py b/backtrader/filters/session.py index 6610f9539..60e437b5b 100644 --- a/backtrader/filters/session.py +++ b/backtrader/filters/session.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/flt.py b/backtrader/flt.py index 43e7f78fe..018385dae 100644 --- a/backtrader/flt.py +++ b/backtrader/flt.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/functions.py b/backtrader/functions.py index cd3884999..6faf5493e 100644 --- a/backtrader/functions.py +++ b/backtrader/functions.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicator.py b/backtrader/indicator.py index bc44f401b..22933b23d 100644 --- a/backtrader/indicator.py +++ b/backtrader/indicator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/__init__.py b/backtrader/indicators/__init__.py index bd92ee554..da7735c23 100644 --- a/backtrader/indicators/__init__.py +++ b/backtrader/indicators/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/accdecoscillator.py b/backtrader/indicators/accdecoscillator.py index 263745431..e3496932d 100644 --- a/backtrader/indicators/accdecoscillator.py +++ b/backtrader/indicators/accdecoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/aroon.py b/backtrader/indicators/aroon.py index 34a3e57e6..98782d0f6 100644 --- a/backtrader/indicators/aroon.py +++ b/backtrader/indicators/aroon.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/atr.py b/backtrader/indicators/atr.py index 1b3a0e34d..c6fd72e20 100644 --- a/backtrader/indicators/atr.py +++ b/backtrader/indicators/atr.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/awesomeoscillator.py b/backtrader/indicators/awesomeoscillator.py index ca0933d2c..40b5ac16d 100644 --- a/backtrader/indicators/awesomeoscillator.py +++ b/backtrader/indicators/awesomeoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/basicops.py b/backtrader/indicators/basicops.py index 6abf0dbb4..b4e3c6b24 100644 --- a/backtrader/indicators/basicops.py +++ b/backtrader/indicators/basicops.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/bollinger.py b/backtrader/indicators/bollinger.py index 7a3a0f0b3..8f95474ad 100644 --- a/backtrader/indicators/bollinger.py +++ b/backtrader/indicators/bollinger.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/cci.py b/backtrader/indicators/cci.py index f47d6e204..ab07f61f8 100644 --- a/backtrader/indicators/cci.py +++ b/backtrader/indicators/cci.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/contrib/__init__.py b/backtrader/indicators/contrib/__init__.py index 886abc4fa..e7bb3d36a 100644 --- a/backtrader/indicators/contrib/__init__.py +++ b/backtrader/indicators/contrib/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/contrib/vortex.py b/backtrader/indicators/contrib/vortex.py index 872d29bdd..fbeab5c64 100644 --- a/backtrader/indicators/contrib/vortex.py +++ b/backtrader/indicators/contrib/vortex.py @@ -2,8 +2,8 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/crossover.py b/backtrader/indicators/crossover.py index fa9861505..86c0f5de6 100644 --- a/backtrader/indicators/crossover.py +++ b/backtrader/indicators/crossover.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/dema.py b/backtrader/indicators/dema.py index d41200cbc..4f293a1e8 100644 --- a/backtrader/indicators/dema.py +++ b/backtrader/indicators/dema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/deviation.py b/backtrader/indicators/deviation.py index 956ad481e..33ed54826 100644 --- a/backtrader/indicators/deviation.py +++ b/backtrader/indicators/deviation.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/directionalmove.py b/backtrader/indicators/directionalmove.py index 21b1f0a6c..f52cd1468 100644 --- a/backtrader/indicators/directionalmove.py +++ b/backtrader/indicators/directionalmove.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/dma.py b/backtrader/indicators/dma.py index c6110436f..596e17023 100644 --- a/backtrader/indicators/dma.py +++ b/backtrader/indicators/dma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/dpo.py b/backtrader/indicators/dpo.py index e0c871b3a..f150ace5a 100644 --- a/backtrader/indicators/dpo.py +++ b/backtrader/indicators/dpo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/dv2.py b/backtrader/indicators/dv2.py index abec317fd..0bde533ab 100644 --- a/backtrader/indicators/dv2.py +++ b/backtrader/indicators/dv2.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/ema.py b/backtrader/indicators/ema.py index 546a3ab33..a3054c24d 100644 --- a/backtrader/indicators/ema.py +++ b/backtrader/indicators/ema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/envelope.py b/backtrader/indicators/envelope.py index fd0cbc083..ba117613b 100644 --- a/backtrader/indicators/envelope.py +++ b/backtrader/indicators/envelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/hadelta.py b/backtrader/indicators/hadelta.py index e7e862f0a..d2b0a7231 100644 --- a/backtrader/indicators/hadelta.py +++ b/backtrader/indicators/hadelta.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/heikinashi.py b/backtrader/indicators/heikinashi.py index 242ea8e66..a58ef2751 100644 --- a/backtrader/indicators/heikinashi.py +++ b/backtrader/indicators/heikinashi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/hma.py b/backtrader/indicators/hma.py index b8a52b352..5f9185277 100644 --- a/backtrader/indicators/hma.py +++ b/backtrader/indicators/hma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/hurst.py b/backtrader/indicators/hurst.py index 8decd1c08..90c57b1b8 100644 --- a/backtrader/indicators/hurst.py +++ b/backtrader/indicators/hurst.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/ichimoku.py b/backtrader/indicators/ichimoku.py index 26fe2f740..c08543212 100644 --- a/backtrader/indicators/ichimoku.py +++ b/backtrader/indicators/ichimoku.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/kama.py b/backtrader/indicators/kama.py index fb96f971c..704d6b40f 100644 --- a/backtrader/indicators/kama.py +++ b/backtrader/indicators/kama.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/kst.py b/backtrader/indicators/kst.py index 9f358f7b6..5933eda42 100644 --- a/backtrader/indicators/kst.py +++ b/backtrader/indicators/kst.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/lrsi.py b/backtrader/indicators/lrsi.py index b2b1ad1be..d6a9817e0 100644 --- a/backtrader/indicators/lrsi.py +++ b/backtrader/indicators/lrsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/mabase.py b/backtrader/indicators/mabase.py index 3ae4df3fe..c9dc8b437 100644 --- a/backtrader/indicators/mabase.py +++ b/backtrader/indicators/mabase.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/macd.py b/backtrader/indicators/macd.py index e2d331983..e12663fe2 100644 --- a/backtrader/indicators/macd.py +++ b/backtrader/indicators/macd.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/momentum.py b/backtrader/indicators/momentum.py index 8ed440af1..4f9d9ec40 100644 --- a/backtrader/indicators/momentum.py +++ b/backtrader/indicators/momentum.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/ols.py b/backtrader/indicators/ols.py index 53a203741..a87995ca8 100644 --- a/backtrader/indicators/ols.py +++ b/backtrader/indicators/ols.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/oscillator.py b/backtrader/indicators/oscillator.py index d131631b4..8155c3296 100644 --- a/backtrader/indicators/oscillator.py +++ b/backtrader/indicators/oscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/percentchange.py b/backtrader/indicators/percentchange.py index ee459a3f8..c1013db04 100644 --- a/backtrader/indicators/percentchange.py +++ b/backtrader/indicators/percentchange.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/percentrank.py b/backtrader/indicators/percentrank.py index 9a45cf6c1..3d4f14f9c 100644 --- a/backtrader/indicators/percentrank.py +++ b/backtrader/indicators/percentrank.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/pivotpoint.py b/backtrader/indicators/pivotpoint.py index bfc3befb6..750b4ab80 100644 --- a/backtrader/indicators/pivotpoint.py +++ b/backtrader/indicators/pivotpoint.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/prettygoodoscillator.py b/backtrader/indicators/prettygoodoscillator.py index 3d742a3a9..7db3ef0fa 100644 --- a/backtrader/indicators/prettygoodoscillator.py +++ b/backtrader/indicators/prettygoodoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/priceoscillator.py b/backtrader/indicators/priceoscillator.py index 206b42d5b..083f0ff4c 100644 --- a/backtrader/indicators/priceoscillator.py +++ b/backtrader/indicators/priceoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/psar.py b/backtrader/indicators/psar.py index 8dc41b875..b03c899e6 100644 --- a/backtrader/indicators/psar.py +++ b/backtrader/indicators/psar.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/rmi.py b/backtrader/indicators/rmi.py index a9e629720..e9a950a19 100644 --- a/backtrader/indicators/rmi.py +++ b/backtrader/indicators/rmi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/rsi.py b/backtrader/indicators/rsi.py index b0d4933c0..56cd9210b 100644 --- a/backtrader/indicators/rsi.py +++ b/backtrader/indicators/rsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/sma.py b/backtrader/indicators/sma.py index b0112a9bd..0207131ee 100644 --- a/backtrader/indicators/sma.py +++ b/backtrader/indicators/sma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/smma.py b/backtrader/indicators/smma.py index d9b94fafa..6859f8498 100644 --- a/backtrader/indicators/smma.py +++ b/backtrader/indicators/smma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/stochastic.py b/backtrader/indicators/stochastic.py index 09e8e155c..1cb5c7caa 100644 --- a/backtrader/indicators/stochastic.py +++ b/backtrader/indicators/stochastic.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/trix.py b/backtrader/indicators/trix.py index 55e48c086..03964a54e 100644 --- a/backtrader/indicators/trix.py +++ b/backtrader/indicators/trix.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/tsi.py b/backtrader/indicators/tsi.py index b0a718716..8b8025f23 100644 --- a/backtrader/indicators/tsi.py +++ b/backtrader/indicators/tsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/ultimateoscillator.py b/backtrader/indicators/ultimateoscillator.py index a1705c280..cd9a88e6c 100644 --- a/backtrader/indicators/ultimateoscillator.py +++ b/backtrader/indicators/ultimateoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/vortex.py b/backtrader/indicators/vortex.py index 4edfdcee0..dd369cc40 100644 --- a/backtrader/indicators/vortex.py +++ b/backtrader/indicators/vortex.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/williams.py b/backtrader/indicators/williams.py index c950851c9..cafe0a97b 100644 --- a/backtrader/indicators/williams.py +++ b/backtrader/indicators/williams.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/wma.py b/backtrader/indicators/wma.py index 7ffc18ddd..62fecc0a6 100644 --- a/backtrader/indicators/wma.py +++ b/backtrader/indicators/wma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/zlema.py b/backtrader/indicators/zlema.py index dc4856be7..ef3c57182 100644 --- a/backtrader/indicators/zlema.py +++ b/backtrader/indicators/zlema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/indicators/zlind.py b/backtrader/indicators/zlind.py index bd36a0c78..19ec77e10 100644 --- a/backtrader/indicators/zlind.py +++ b/backtrader/indicators/zlind.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/linebuffer.py b/backtrader/linebuffer.py index 066ac6cbf..0102ddbe0 100644 --- a/backtrader/linebuffer.py +++ b/backtrader/linebuffer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/lineiterator.py b/backtrader/lineiterator.py index 3aad26af1..2ead478b8 100644 --- a/backtrader/lineiterator.py +++ b/backtrader/lineiterator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/lineroot.py b/backtrader/lineroot.py index 4754e125b..ee5d5aabd 100644 --- a/backtrader/lineroot.py +++ b/backtrader/lineroot.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/lineseries.py b/backtrader/lineseries.py index 3f6154c22..babd10572 100644 --- a/backtrader/lineseries.py +++ b/backtrader/lineseries.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/mathsupport.py b/backtrader/mathsupport.py index 45db4a119..0ffec0653 100644 --- a/backtrader/mathsupport.py +++ b/backtrader/mathsupport.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/metabase.py b/backtrader/metabase.py index 9f507d723..8f19cbb89 100644 --- a/backtrader/metabase.py +++ b/backtrader/metabase.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observer.py b/backtrader/observer.py index e81208480..5b41be65b 100644 --- a/backtrader/observer.py +++ b/backtrader/observer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/__init__.py b/backtrader/observers/__init__.py index 99775a153..48690e57f 100644 --- a/backtrader/observers/__init__.py +++ b/backtrader/observers/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/benchmark.py b/backtrader/observers/benchmark.py index f7056ab25..042f8c027 100644 --- a/backtrader/observers/benchmark.py +++ b/backtrader/observers/benchmark.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/broker.py b/backtrader/observers/broker.py index c10532a07..85b42733b 100644 --- a/backtrader/observers/broker.py +++ b/backtrader/observers/broker.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/buysell.py b/backtrader/observers/buysell.py index b78637fae..2fe067b59 100644 --- a/backtrader/observers/buysell.py +++ b/backtrader/observers/buysell.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/drawdown.py b/backtrader/observers/drawdown.py index 9d7a7f467..e91ba295f 100644 --- a/backtrader/observers/drawdown.py +++ b/backtrader/observers/drawdown.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/logreturns.py b/backtrader/observers/logreturns.py index 95a1f679e..e4e9e7bd3 100644 --- a/backtrader/observers/logreturns.py +++ b/backtrader/observers/logreturns.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/timereturn.py b/backtrader/observers/timereturn.py index 248fb6be2..49503d599 100644 --- a/backtrader/observers/timereturn.py +++ b/backtrader/observers/timereturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/observers/trades.py b/backtrader/observers/trades.py index 085b3bd4e..144cf03fb 100644 --- a/backtrader/observers/trades.py +++ b/backtrader/observers/trades.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/order.py b/backtrader/order.py index 458a35e9f..4a68346cd 100644 --- a/backtrader/order.py +++ b/backtrader/order.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -319,11 +319,8 @@ def __init__(self): # Set a reference price if price is not set using # the close price - pclose = self.data.close[0] if not self.simulated else self.price - if not self.price and not self.pricelimit: - price = pclose - else: - price = self.price + pclose = self.data.close[0] if not self.p.simulated else self.price + price = pclose if not self.price and not self.pricelimit else self.price dcreated = self.data.datetime[0] if not self.p.simulated else 0.0 self.created = OrderData(dt=dcreated, @@ -477,19 +474,22 @@ def reject(self, broker=None): return False self.status = Order.Rejected - self.executed.dt = self.data.datetime[0] self.broker = broker + if not self.p.simulated: + self.executed.dt = self.data.datetime[0] return True def cancel(self): '''Marks an order as cancelled''' self.status = Order.Canceled - self.executed.dt = self.data.datetime[0] + if not self.p.simulated: + self.executed.dt = self.data.datetime[0] def margin(self): '''Marks an order as having met a margin call''' self.status = Order.Margin - self.executed.dt = self.data.datetime[0] + if not self.p.simulated: + self.executed.dt = self.data.datetime[0] def completed(self): '''Marks an order as completely filled''' diff --git a/backtrader/plot/__init__.py b/backtrader/plot/__init__.py index 768202b43..d949c7fa3 100644 --- a/backtrader/plot/__init__.py +++ b/backtrader/plot/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/plot/finance.py b/backtrader/plot/finance.py index 2c01d59a0..9aea06085 100644 --- a/backtrader/plot/finance.py +++ b/backtrader/plot/finance.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/plot/formatters.py b/backtrader/plot/formatters.py index 1dba7990a..2406d595c 100644 --- a/backtrader/plot/formatters.py +++ b/backtrader/plot/formatters.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/plot/locator.py b/backtrader/plot/locator.py index d0381ccdd..848e62bb8 100644 --- a/backtrader/plot/locator.py +++ b/backtrader/plot/locator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -223,8 +223,19 @@ def get_locator(self, dmin, dmax): locator.set_axis(self.axis) - locator.set_view_interval(*self.axis.get_view_interval()) - locator.set_data_interval(*self.axis.get_data_interval()) + try: + # try for matplotlib < 3.6.0 + locator.set_view_interval(*self.axis.get_view_interval()) + locator.set_data_interval(*self.axis.get_data_interval()) + except Exception as e: + try: + # try for matplotlib >= 3.6.0 + self.axis.set_view_interval(*self.axis.get_view_interval()) + self.axis.set_data_interval(*self.axis.get_data_interval()) + locator.set_axis(self.axis) + except Exception as e: + print("Error:", e) + return locator diff --git a/backtrader/plot/plot.py b/backtrader/plot/plot.py index cb8c7137c..39c8c8fec 100644 --- a/backtrader/plot/plot.py +++ b/backtrader/plot/plot.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -35,6 +35,7 @@ import matplotlib.font_manager as mfontmgr import matplotlib.legend as mlegend import matplotlib.ticker as mticker +import matplotlib.patches as mpatches from ..utils.py3 import range, with_metaclass, string_types, integer_types from .. import AutoInfoClass, MetaParams, TimeFrame, date2num @@ -100,6 +101,9 @@ class Plot_OldSync(with_metaclass(MetaParams, object)): def __init__(self, **kwargs): for pname, pvalue in kwargs.items(): setattr(self.p.scheme, pname, pvalue) + if not hasattr(self.p.scheme, 'locbg'): + setattr(self.p.scheme, 'locbg', 'white') + setattr(self.p.scheme, 'locbgother', 'white') def drawtag(self, ax, x, y, facecolor, edgecolor, alpha=0.9, **kwargs): @@ -190,13 +194,16 @@ def plot(self, strategy, figid=0, numfigs=1, iplot=True, # Create the rest on a per data basis dt0, dt1 = self.pinf.xreal[0], self.pinf.xreal[-1] + # fix bug: make multi-timeframe align to first data line + data_line_number = 0 for data in strategy.datas: if not data.plotinfo.plot: continue self.pinf.xdata = self.pinf.x xd = data.datetime.plotrange(self.pinf.xstart, self.pinf.xend) - if len(xd) < self.pinf.xlen: + # make other lines align to first data line + if len(xd) < self.pinf.xlen or data_line_number > 0: self.pinf.xdata = xdata = [] xreal = self.pinf.xreal dts = data.datetime.plot() @@ -209,6 +216,8 @@ def plot(self, strategy, figid=0, numfigs=1, iplot=True, self.pinf.xstart = bisect.bisect_left(dts, xtemp[0]) self.pinf.xend = bisect.bisect_right(dts, xtemp[-1]) + data_line_number += 1 + for ind in self.dplotsup[data]: self.plotind( data, @@ -487,7 +496,7 @@ def plotind(self, iref, ind, if linetag and not math.isnan(lplot[-1]): # line has valid values, plot a tag for the last value self.drawtag(ax, len(self.pinf.xreal), lplot[-1], - facecolor='white', + facecolor=self.pinf.sch.locbgother, edgecolor=self.pinf.color(ax)) farts = (('_gt', operator.gt), ('_lt', operator.lt), ('', None),) @@ -516,6 +525,21 @@ def plotind(self, iref, ind, interpolate=True, **kwargs) + # plot arrows + arrows = lineplotinfo._get('_arrows', []) + for arrow in arrows: + if arrow[0][0] >= self.pinf.xstart and arrow[1][0] <= self.pinf.xend: + x = arrow[0][0]-self.pinf.xstart + y = arrow[0][1]*1.5 + dx = arrow[1][0]-arrow[0][0] + dy = arrow[1][1]-arrow[0][1] + arr = mpatches.FancyArrow(x, y, dx, dy, + ec='black', fc='white', width=3, + head_length=dx/4, + length_includes_head=True, + ) + ax.add_patch(arr) + # plot subindicators that were created on self for subind in subinds: self.plotind(iref, subind, subinds=self.dplotsover[subind], @@ -543,10 +567,12 @@ def plotind(self, iref, ind, hlines = ind.plotinfo._get('plothlines', []) if not hlines: hlines = ind.plotinfo._get('plotyhlines', []) + + hlinescolor = ind.plotinfo._get('hlinescolor', self.pinf.sch.hlinescolor) + hlinesstyle = ind.plotinfo._get('hlinesstyle', self.pinf.sch.hlinesstyle) + hlineswidth = ind.plotinfo._get('hlineswidth', self.pinf.sch.hlineswidth) for hline in hlines: - ax.axhline(hline, color=self.pinf.sch.hlinescolor, - ls=self.pinf.sch.hlinesstyle, - lw=self.pinf.sch.hlineswidth) + ax.axhline(hline, color=hlinescolor, ls=hlinesstyle, lw=hlineswidth) if self.pinf.sch.legendind and \ ind.plotinfo._get('plotlegend', True): @@ -732,7 +758,8 @@ def plotdata(self, data, indicators): vtags = data.plotinfo._get('plotvaluetags', True) if self.pinf.sch.valuetags and vtags: self.drawtag(ax, len(self.pinf.xreal), closes[-1], - facecolor='white', edgecolor=self.pinf.sch.loc) + facecolor=self.pinf.sch.locbg, + edgecolor=self.pinf.sch.loc) ax.yaxis.set_major_locator(mticker.MaxNLocator(prune='both')) # make sure "over" indicators do not change our scale diff --git a/backtrader/plot/scheme.py b/backtrader/plot/scheme.py index ac03acdef..e6572a4a7 100644 --- a/backtrader/plot/scheme.py +++ b/backtrader/plot/scheme.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/plot/utils.py b/backtrader/plot/utils.py index 5dcf8e42a..cb187b26e 100644 --- a/backtrader/plot/utils.py +++ b/backtrader/plot/utils.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/position.py b/backtrader/position.py index d6d70b008..f7f2f764f 100644 --- a/backtrader/position.py +++ b/backtrader/position.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/resamplerfilter.py b/backtrader/resamplerfilter.py index 010a6b6bc..73257fd30 100644 --- a/backtrader/resamplerfilter.py +++ b/backtrader/resamplerfilter.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/signal.py b/backtrader/signal.py index e52041d73..74e41b2bb 100644 --- a/backtrader/signal.py +++ b/backtrader/signal.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/signals/__init__.py b/backtrader/signals/__init__.py index b1cbbecad..1e11f1cd6 100644 --- a/backtrader/signals/__init__.py +++ b/backtrader/signals/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/sizer.py b/backtrader/sizer.py index c9275e33a..c78f837bb 100644 --- a/backtrader/sizer.py +++ b/backtrader/sizer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/sizers/__init__.py b/backtrader/sizers/__init__.py index 4250db5ea..b79ab6cb0 100644 --- a/backtrader/sizers/__init__.py +++ b/backtrader/sizers/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/sizers/fixedsize.py b/backtrader/sizers/fixedsize.py index a5d47f6bc..adf7be18c 100644 --- a/backtrader/sizers/fixedsize.py +++ b/backtrader/sizers/fixedsize.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/sizers/percents_sizer.py b/backtrader/sizers/percents_sizer.py index ea88dcbd1..d9e3eeeb0 100644 --- a/backtrader/sizers/percents_sizer.py +++ b/backtrader/sizers/percents_sizer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/store.py b/backtrader/store.py index e1f0f4f29..a1352671d 100644 --- a/backtrader/store.py +++ b/backtrader/store.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/stores/__init__.py b/backtrader/stores/__init__.py index da21ffa16..f60afb6ad 100644 --- a/backtrader/stores/__init__.py +++ b/backtrader/stores/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/stores/ibstore.py b/backtrader/stores/ibstore.py index c261493ea..a1ea5a00d 100644 --- a/backtrader/stores/ibstore.py +++ b/backtrader/stores/ibstore.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/stores/oandastore.py b/backtrader/stores/oandastore.py index a549462f2..15396576e 100644 --- a/backtrader/stores/oandastore.py +++ b/backtrader/stores/oandastore.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/stores/vchartfile.py b/backtrader/stores/vchartfile.py index 3a4979cae..35ef8ebaf 100644 --- a/backtrader/stores/vchartfile.py +++ b/backtrader/stores/vchartfile.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/stores/vcstore.py b/backtrader/stores/vcstore.py index 7de96ca97..237e0ebc1 100644 --- a/backtrader/stores/vcstore.py +++ b/backtrader/stores/vcstore.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/strategies/__init__.py b/backtrader/strategies/__init__.py index ec7c205ad..b453b16f3 100644 --- a/backtrader/strategies/__init__.py +++ b/backtrader/strategies/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/strategies/sma_crossover.py b/backtrader/strategies/sma_crossover.py index 61c42eef7..3001ee886 100644 --- a/backtrader/strategies/sma_crossover.py +++ b/backtrader/strategies/sma_crossover.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/strategy.py b/backtrader/strategy.py index 375e3a385..e5115688d 100644 --- a/backtrader/strategy.py +++ b/backtrader/strategy.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/studies/__init__.py b/backtrader/studies/__init__.py index 7ff58ed82..83368468b 100644 --- a/backtrader/studies/__init__.py +++ b/backtrader/studies/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/studies/contrib/__init__.py b/backtrader/studies/contrib/__init__.py index 357957c50..9e2a10521 100644 --- a/backtrader/studies/contrib/__init__.py +++ b/backtrader/studies/contrib/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/studies/contrib/fractal.py b/backtrader/studies/contrib/fractal.py index c18714236..8cb644e80 100644 --- a/backtrader/studies/contrib/fractal.py +++ b/backtrader/studies/contrib/fractal.py @@ -3,7 +3,7 @@ ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # (based on backtrader from Daniel Rodriguez) # # This program is free software: you can redistribute it and/or modify diff --git a/backtrader/talib.py b/backtrader/talib.py index 5887a000d..eff5ced30 100644 --- a/backtrader/talib.py +++ b/backtrader/talib.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/timer.py b/backtrader/timer.py index 976349e01..a77706a5b 100644 --- a/backtrader/timer.py +++ b/backtrader/timer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/trade.py b/backtrader/trade.py index c49b7b332..8bbf5e380 100644 --- a/backtrader/trade.py +++ b/backtrader/trade.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/tradingcal.py b/backtrader/tradingcal.py index 9678c9c38..c2c11b9f8 100644 --- a/backtrader/tradingcal.py +++ b/backtrader/tradingcal.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/__init__.py b/backtrader/utils/__init__.py index a31da4294..43e45d257 100644 --- a/backtrader/utils/__init__.py +++ b/backtrader/utils/__init__.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/autodict.py b/backtrader/utils/autodict.py index 812e3ccb6..ff2b101ac 100644 --- a/backtrader/utils/autodict.py +++ b/backtrader/utils/autodict.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/date.py b/backtrader/utils/date.py index d247328f0..24eba07fe 100644 --- a/backtrader/utils/date.py +++ b/backtrader/utils/date.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/dateintern.py b/backtrader/utils/dateintern.py index fdd5322c4..a69977c50 100644 --- a/backtrader/utils/dateintern.py +++ b/backtrader/utils/dateintern.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/ordereddefaultdict.py b/backtrader/utils/ordereddefaultdict.py index ec88d37d8..a2335832f 100644 --- a/backtrader/utils/ordereddefaultdict.py +++ b/backtrader/utils/ordereddefaultdict.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/utils/py3.py b/backtrader/utils/py3.py index 33a7f1edb..60946b685 100644 --- a/backtrader/utils/py3.py +++ b/backtrader/utils/py3.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/backtrader/version.py b/backtrader/version.py index 9e8a77310..52d618f60 100644 --- a/backtrader/version.py +++ b/backtrader/version.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,6 +22,6 @@ unicode_literals) -__version__ = '1.9.76.123' +__version__ = '1.9.78.123' __btversion__ = tuple(int(x) for x in __version__.split('.')) diff --git a/backtrader/writer.py b/backtrader/writer.py index 1f765d464..7a4cecb91 100644 --- a/backtrader/writer.py +++ b/backtrader/writer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,6 +26,11 @@ import itertools import sys +try: # For new Python versions + collectionsAbc = collections.abc # collections.Iterable -> collections.abc.Iterable +except AttributeError: # For old Python versions + collectionsAbc = collections # Используем collections.Iterable + import backtrader as bt from backtrader.utils.py3 import (map, with_metaclass, string_types, integer_types) @@ -205,7 +210,7 @@ def writedict(self, dct, level=0, recurse=False): self.writelineseparator(level=level) self.writeline(kline) self.writedict(val, level=level + 1, recurse=True) - elif isinstance(val, (list, tuple, collections.Iterable)): + elif isinstance(val, (list, tuple, collectionsAbc.Iterable)): # Для разных версий Python будут вызываться разные функции line = ', '.join(map(str, val)) self.writeline(kline + ' ' + line) else: diff --git a/changelog.txt b/changelog.txt index db1dc0aed..c42d1bd20 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,11 @@ +1.9.78.123: + - PR#479 Fix errors for simulated orders +1.9.77.123: + - PR#472 + - Added posibitity for Black theme for charts + - Added posibitity to run on matplotlib 3.6+ + - Added posibitity to run on Python 3.9+ + 1.9.76.123: - PR#405 Fix initial Renko bricks - Add option to select fixing of initial Renko bricks diff --git a/pypi.sh b/pypi.sh index 3f3180ca4..54c258321 100644 --- a/pypi.sh +++ b/pypi.sh @@ -2,4 +2,6 @@ # # Generate pypi wheels universal package and upload # -python setup.py bdist_wheel --universal upload -r pypi +rm dist/* +python setup.py bdist_wheel --universal +twine upload dist/* diff --git a/samples/analyzer-annualreturn/analyzer-annualreturn.py b/samples/analyzer-annualreturn/analyzer-annualreturn.py index 15d3647cd..9bcb5224e 100644 --- a/samples/analyzer-annualreturn/analyzer-annualreturn.py +++ b/samples/analyzer-annualreturn/analyzer-annualreturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/bidask-to-ohlc/bidask-to-ohlc.py b/samples/bidask-to-ohlc/bidask-to-ohlc.py index d37cba274..92dc8b0ec 100644 --- a/samples/bidask-to-ohlc/bidask-to-ohlc.py +++ b/samples/bidask-to-ohlc/bidask-to-ohlc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/bracket/bracket.py b/samples/bracket/bracket.py index cdd769eb0..3df8326ca 100644 --- a/samples/bracket/bracket.py +++ b/samples/bracket/bracket.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/btfd/btfd.py b/samples/btfd/btfd.py index 21f142749..6cf233d48 100644 --- a/samples/btfd/btfd.py +++ b/samples/btfd/btfd.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/calendar-days/calendar-days.py b/samples/calendar-days/calendar-days.py index af3cb7f33..ab0df70a0 100644 --- a/samples/calendar-days/calendar-days.py +++ b/samples/calendar-days/calendar-days.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/calmar/calmar-test.py b/samples/calmar/calmar-test.py index 370646f89..02ceb7257 100644 --- a/samples/calmar/calmar-test.py +++ b/samples/calmar/calmar-test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/cheat-on-open/cheat-on-open.py b/samples/cheat-on-open/cheat-on-open.py index 5f83308ee..d0b658370 100644 --- a/samples/cheat-on-open/cheat-on-open.py +++ b/samples/cheat-on-open/cheat-on-open.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/commission-schemes/commission-schemes.py b/samples/commission-schemes/commission-schemes.py index aa9bf5adb..36a420006 100644 --- a/samples/commission-schemes/commission-schemes.py +++ b/samples/commission-schemes/commission-schemes.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/credit-interest/credit-interest.py b/samples/credit-interest/credit-interest.py index 4e518c656..b4e005c07 100644 --- a/samples/credit-interest/credit-interest.py +++ b/samples/credit-interest/credit-interest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-bid-ask/bidask.py b/samples/data-bid-ask/bidask.py index 3d8721c9c..04d790bde 100644 --- a/samples/data-bid-ask/bidask.py +++ b/samples/data-bid-ask/bidask.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-filler/data-filler.py b/samples/data-filler/data-filler.py index 422c3f8b7..eaafb7648 100644 --- a/samples/data-filler/data-filler.py +++ b/samples/data-filler/data-filler.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-filler/relativevolume.py b/samples/data-filler/relativevolume.py index 13772d4ff..52fba897c 100644 --- a/samples/data-filler/relativevolume.py +++ b/samples/data-filler/relativevolume.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-multitimeframe/data-multitimeframe.py b/samples/data-multitimeframe/data-multitimeframe.py index 6afd4aa13..22feb6511 100644 --- a/samples/data-multitimeframe/data-multitimeframe.py +++ b/samples/data-multitimeframe/data-multitimeframe.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-pandas/data-pandas-optix.py b/samples/data-pandas/data-pandas-optix.py index 87301010a..264187ec9 100644 --- a/samples/data-pandas/data-pandas-optix.py +++ b/samples/data-pandas/data-pandas-optix.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-pandas/data-pandas.py b/samples/data-pandas/data-pandas.py index 09b9ff35d..cc112a1a8 100644 --- a/samples/data-pandas/data-pandas.py +++ b/samples/data-pandas/data-pandas.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-replay/data-replay.py b/samples/data-replay/data-replay.py index 7e9bd4e34..685ba64ea 100644 --- a/samples/data-replay/data-replay.py +++ b/samples/data-replay/data-replay.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/data-resample/data-resample.py b/samples/data-resample/data-resample.py index 68fb9db87..228a8b69f 100644 --- a/samples/data-resample/data-resample.py +++ b/samples/data-resample/data-resample.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/daysteps/daysteps.py b/samples/daysteps/daysteps.py index f5acc0dd0..6335c6c37 100644 --- a/samples/daysteps/daysteps.py +++ b/samples/daysteps/daysteps.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/future-spot/future-spot.py b/samples/future-spot/future-spot.py index 046a78377..e1181c497 100644 --- a/samples/future-spot/future-spot.py +++ b/samples/future-spot/future-spot.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/gold-vs-sp500/gold-vs-sp500.py b/samples/gold-vs-sp500/gold-vs-sp500.py index 3bd3f372f..7b18675da 100644 --- a/samples/gold-vs-sp500/gold-vs-sp500.py +++ b/samples/gold-vs-sp500/gold-vs-sp500.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/ib-cash-bid-ask/ib-cash-bid-ask.py b/samples/ib-cash-bid-ask/ib-cash-bid-ask.py index 2c63ee833..3d8df7a86 100644 --- a/samples/ib-cash-bid-ask/ib-cash-bid-ask.py +++ b/samples/ib-cash-bid-ask/ib-cash-bid-ask.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/ibtest/ibtest.py b/samples/ibtest/ibtest.py index ba6844188..9951474fb 100644 --- a/samples/ibtest/ibtest.py +++ b/samples/ibtest/ibtest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/kselrsi/ksignal.py b/samples/kselrsi/ksignal.py index 656fac79a..3b3124014 100644 --- a/samples/kselrsi/ksignal.py +++ b/samples/kselrsi/ksignal.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/lineplotter/lineplotter.py b/samples/lineplotter/lineplotter.py index 9e3647401..a641824f6 100644 --- a/samples/lineplotter/lineplotter.py +++ b/samples/lineplotter/lineplotter.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/lrsi/lrsi-test.py b/samples/lrsi/lrsi-test.py index 553edcc62..669714312 100644 --- a/samples/lrsi/lrsi-test.py +++ b/samples/lrsi/lrsi-test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/macd-settings/macd-settings.py b/samples/macd-settings/macd-settings.py index f8a64a776..799f0397a 100644 --- a/samples/macd-settings/macd-settings.py +++ b/samples/macd-settings/macd-settings.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/memory-savings/memory-savings.py b/samples/memory-savings/memory-savings.py index 22e869260..e5a456a62 100644 --- a/samples/memory-savings/memory-savings.py +++ b/samples/memory-savings/memory-savings.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/mixing-timeframes/mixing-timeframes.py b/samples/mixing-timeframes/mixing-timeframes.py index f17f0cae0..0385a685f 100644 --- a/samples/mixing-timeframes/mixing-timeframes.py +++ b/samples/mixing-timeframes/mixing-timeframes.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multi-copy/multi-copy.py b/samples/multi-copy/multi-copy.py index 65b5390cd..a7dee85b5 100644 --- a/samples/multi-copy/multi-copy.py +++ b/samples/multi-copy/multi-copy.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multi-example/mult-values.py b/samples/multi-example/mult-values.py index c77f3a9e7..a0e82f293 100644 --- a/samples/multi-example/mult-values.py +++ b/samples/multi-example/mult-values.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multidata-strategy/multidata-strategy-unaligned.py b/samples/multidata-strategy/multidata-strategy-unaligned.py index c8b27a779..8097eaf9b 100644 --- a/samples/multidata-strategy/multidata-strategy-unaligned.py +++ b/samples/multidata-strategy/multidata-strategy-unaligned.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multidata-strategy/multidata-strategy.py b/samples/multidata-strategy/multidata-strategy.py index 82456c1f6..0ccb02c3d 100644 --- a/samples/multidata-strategy/multidata-strategy.py +++ b/samples/multidata-strategy/multidata-strategy.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multitrades/mtradeobserver.py b/samples/multitrades/mtradeobserver.py index e201c1043..9413e9115 100644 --- a/samples/multitrades/mtradeobserver.py +++ b/samples/multitrades/mtradeobserver.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/multitrades/multitrades.py b/samples/multitrades/multitrades.py index 99ce1bb71..29eea9599 100644 --- a/samples/multitrades/multitrades.py +++ b/samples/multitrades/multitrades.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/oandatest/oandatest.py b/samples/oandatest/oandatest.py index f14bc0e80..4dbe5cf98 100644 --- a/samples/oandatest/oandatest.py +++ b/samples/oandatest/oandatest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/observer-benchmark/observer-benchmark.py b/samples/observer-benchmark/observer-benchmark.py index 5d46488d3..1df01e9ef 100644 --- a/samples/observer-benchmark/observer-benchmark.py +++ b/samples/observer-benchmark/observer-benchmark.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/observers/observers-default-drawdown.py b/samples/observers/observers-default-drawdown.py index c87c75251..d053c7014 100644 --- a/samples/observers/observers-default-drawdown.py +++ b/samples/observers/observers-default-drawdown.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/observers/observers-default.py b/samples/observers/observers-default.py index 3a010d7ba..290756b5d 100644 --- a/samples/observers/observers-default.py +++ b/samples/observers/observers-default.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/observers/observers-orderobserver.py b/samples/observers/observers-orderobserver.py index 322624e96..5f3d2d864 100644 --- a/samples/observers/observers-orderobserver.py +++ b/samples/observers/observers-orderobserver.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/observers/orderobserver.py b/samples/observers/orderobserver.py index a03d98e69..379b25dfd 100644 --- a/samples/observers/orderobserver.py +++ b/samples/observers/orderobserver.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/oco/oco.py b/samples/oco/oco.py index a1666a576..3e49e9f93 100644 --- a/samples/oco/oco.py +++ b/samples/oco/oco.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/optimization/optimization.py b/samples/optimization/optimization.py index c852a8514..43c80458c 100644 --- a/samples/optimization/optimization.py +++ b/samples/optimization/optimization.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/order-close/close-daily.py b/samples/order-close/close-daily.py index 31983d820..9322824bd 100644 --- a/samples/order-close/close-daily.py +++ b/samples/order-close/close-daily.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/order-close/close-minute.py b/samples/order-close/close-minute.py index 4c63ca06c..7367a4344 100644 --- a/samples/order-close/close-minute.py +++ b/samples/order-close/close-minute.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/order-execution/order-execution.py b/samples/order-execution/order-execution.py index 1bc383e98..c398dad64 100644 --- a/samples/order-execution/order-execution.py +++ b/samples/order-execution/order-execution.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/order-history/order-history.py b/samples/order-history/order-history.py index f3d5baacd..e604a1430 100644 --- a/samples/order-history/order-history.py +++ b/samples/order-history/order-history.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/order_target/order_target.py b/samples/order_target/order_target.py index 84dd79dcf..3666390a0 100644 --- a/samples/order_target/order_target.py +++ b/samples/order_target/order_target.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/partial-plot/partial-plot.py b/samples/partial-plot/partial-plot.py index f5b9489e0..0c67f1097 100644 --- a/samples/partial-plot/partial-plot.py +++ b/samples/partial-plot/partial-plot.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/pinkfish-challenge/pinkfish-challenge.py b/samples/pinkfish-challenge/pinkfish-challenge.py index f4dcb1717..bf43aee8c 100644 --- a/samples/pinkfish-challenge/pinkfish-challenge.py +++ b/samples/pinkfish-challenge/pinkfish-challenge.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/pivot-point/pivotpoint.py b/samples/pivot-point/pivotpoint.py index c767b4656..09a091f4d 100644 --- a/samples/pivot-point/pivotpoint.py +++ b/samples/pivot-point/pivotpoint.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/pivot-point/ppsample.py b/samples/pivot-point/ppsample.py index 101dd799d..aad3aaf7c 100644 --- a/samples/pivot-point/ppsample.py +++ b/samples/pivot-point/ppsample.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/plot-same-axis/plot-same-axis.py b/samples/plot-same-axis/plot-same-axis.py index 2fb0ead03..c67c88963 100644 --- a/samples/plot-same-axis/plot-same-axis.py +++ b/samples/plot-same-axis/plot-same-axis.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/psar/psar-intraday.py b/samples/psar/psar-intraday.py index 1ad39ec15..f16af16b0 100644 --- a/samples/psar/psar-intraday.py +++ b/samples/psar/psar-intraday.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/psar/psar.py b/samples/psar/psar.py index 8ff089c79..7140d7e9f 100644 --- a/samples/psar/psar.py +++ b/samples/psar/psar.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/pyfolio2/pyfoliotest.py b/samples/pyfolio2/pyfoliotest.py index 691e4d4d6..681f94602 100644 --- a/samples/pyfolio2/pyfoliotest.py +++ b/samples/pyfolio2/pyfoliotest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/pyfoliotest/pyfoliotest.py b/samples/pyfoliotest/pyfoliotest.py index 6251aa939..2ee6701ff 100644 --- a/samples/pyfoliotest/pyfoliotest.py +++ b/samples/pyfoliotest/pyfoliotest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/relative-volume/relative-volume.py b/samples/relative-volume/relative-volume.py index ec41840a7..b285735d5 100644 --- a/samples/relative-volume/relative-volume.py +++ b/samples/relative-volume/relative-volume.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/relative-volume/relvolbybar.py b/samples/relative-volume/relvolbybar.py index 23bf6ba90..0ab5c91ca 100644 --- a/samples/relative-volume/relvolbybar.py +++ b/samples/relative-volume/relvolbybar.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/renko/renko.py b/samples/renko/renko.py index 8a6b15aae..6a662fffe 100644 --- a/samples/renko/renko.py +++ b/samples/renko/renko.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/resample-tickdata/resample-tickdata.py b/samples/resample-tickdata/resample-tickdata.py index 42f9c0636..39f4d2dae 100644 --- a/samples/resample-tickdata/resample-tickdata.py +++ b/samples/resample-tickdata/resample-tickdata.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/rollover/rollover.py b/samples/rollover/rollover.py index 9758b29fb..d287d5fd3 100644 --- a/samples/rollover/rollover.py +++ b/samples/rollover/rollover.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -68,7 +68,7 @@ def checkdate(dt, d): YCode = int(d._dataname[-1]) Y = decade + YCode - if Y < dt.year: # Example: year 2019 ... YCode is 0 for 2020 + if Y < dt.year: # Example: year 2019 ... YCode is 0 for 2023 Y += 10 exp_day = 21 - (calendar.weekday(Y, M, 1) + 2) % 7 diff --git a/samples/sharpe-timereturn/sharpe-timereturn.py b/samples/sharpe-timereturn/sharpe-timereturn.py index 102b95419..0922c2302 100644 --- a/samples/sharpe-timereturn/sharpe-timereturn.py +++ b/samples/sharpe-timereturn/sharpe-timereturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/signals-strategy/signals-strategy.py b/samples/signals-strategy/signals-strategy.py index 7c884a721..a556f3e51 100644 --- a/samples/signals-strategy/signals-strategy.py +++ b/samples/signals-strategy/signals-strategy.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/sigsmacross/sigsmacross.py b/samples/sigsmacross/sigsmacross.py index 16f964d4f..49026c9d2 100644 --- a/samples/sigsmacross/sigsmacross.py +++ b/samples/sigsmacross/sigsmacross.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/sigsmacross/sigsmacross2.py b/samples/sigsmacross/sigsmacross2.py index 6d6b62c67..15ad68ec3 100644 --- a/samples/sigsmacross/sigsmacross2.py +++ b/samples/sigsmacross/sigsmacross2.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/sizertest/sizertest.py b/samples/sizertest/sizertest.py index 2da6695d6..17ab3610b 100644 --- a/samples/sizertest/sizertest.py +++ b/samples/sizertest/sizertest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/slippage/slippage.py b/samples/slippage/slippage.py index 5f59b3247..2c9c88a38 100644 --- a/samples/slippage/slippage.py +++ b/samples/slippage/slippage.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/stop-trading/stop-loss-approaches.py b/samples/stop-trading/stop-loss-approaches.py index eaabfd9c5..48d6cd512 100644 --- a/samples/stop-trading/stop-loss-approaches.py +++ b/samples/stop-trading/stop-loss-approaches.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/stoptrail/trail.py b/samples/stoptrail/trail.py index 9ae9a96df..e4e7f3fe5 100644 --- a/samples/stoptrail/trail.py +++ b/samples/stoptrail/trail.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/strategy-selection/strategy-selection.py b/samples/strategy-selection/strategy-selection.py index 10f9cd345..85d7529a4 100644 --- a/samples/strategy-selection/strategy-selection.py +++ b/samples/strategy-selection/strategy-selection.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/talib/tablibsartest.py b/samples/talib/tablibsartest.py index 16a6b3364..701f76ac4 100644 --- a/samples/talib/tablibsartest.py +++ b/samples/talib/tablibsartest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/talib/talibtest.py b/samples/talib/talibtest.py index 9d92bfc5b..1387fdb29 100644 --- a/samples/talib/talibtest.py +++ b/samples/talib/talibtest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/timers/scheduled-min.py b/samples/timers/scheduled-min.py index 862068c85..80d2e6633 100644 --- a/samples/timers/scheduled-min.py +++ b/samples/timers/scheduled-min.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/timers/scheduled.py b/samples/timers/scheduled.py index c817598a1..4030701eb 100644 --- a/samples/timers/scheduled.py +++ b/samples/timers/scheduled.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/tradingcalendar/tcal-intra.py b/samples/tradingcalendar/tcal-intra.py index c42310933..83c35f5f1 100644 --- a/samples/tradingcalendar/tcal-intra.py +++ b/samples/tradingcalendar/tcal-intra.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/tradingcalendar/tcal.py b/samples/tradingcalendar/tcal.py index ac5e378eb..832b4b499 100644 --- a/samples/tradingcalendar/tcal.py +++ b/samples/tradingcalendar/tcal.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/vctest/vctest.py b/samples/vctest/vctest.py index f6c82fad4..66adf4b26 100644 --- a/samples/vctest/vctest.py +++ b/samples/vctest/vctest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/volumefilling/volumefilling.py b/samples/volumefilling/volumefilling.py index 827faf592..04395ab0e 100644 --- a/samples/volumefilling/volumefilling.py +++ b/samples/volumefilling/volumefilling.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/vwr/vwr.py b/samples/vwr/vwr.py index af9587210..0ac9965b8 100644 --- a/samples/vwr/vwr.py +++ b/samples/vwr/vwr.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/weekdays-filler/weekdaysaligner.py b/samples/weekdays-filler/weekdaysaligner.py index 4d4b3982a..eaac8be5a 100644 --- a/samples/weekdays-filler/weekdaysaligner.py +++ b/samples/weekdays-filler/weekdaysaligner.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/weekdays-filler/weekdaysfiller.py b/samples/weekdays-filler/weekdaysfiller.py index 8224fbbf3..2dce3da8f 100644 --- a/samples/weekdays-filler/weekdaysfiller.py +++ b/samples/weekdays-filler/weekdaysfiller.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/writer-test/writer-test.py b/samples/writer-test/writer-test.py index 9c321bdb8..c836f9a92 100644 --- a/samples/writer-test/writer-test.py +++ b/samples/writer-test/writer-test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/samples/yahoo-test/yahoo-test.py b/samples/yahoo-test/yahoo-test.py index f6e96cf38..12e18f662 100644 --- a/samples/yahoo-test/yahoo-test.py +++ b/samples/yahoo-test/yahoo-test.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/setup.py b/setup.py index d47f10725..dfd8df0df 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_analyzer-sqn.py b/tests/test_analyzer-sqn.py index a45578a7a..f9efe4cbd 100644 --- a/tests/test_analyzer-sqn.py +++ b/tests/test_analyzer-sqn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_analyzer-timereturn.py b/tests/test_analyzer-timereturn.py index 0e73b99a7..6c469b5df 100644 --- a/tests/test_analyzer-timereturn.py +++ b/tests/test_analyzer-timereturn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_comminfo.py b/tests/test_comminfo.py index 129f3bccd..cc66b21b8 100644 --- a/tests/test_comminfo.py +++ b/tests/test_comminfo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_data_multiframe.py b/tests/test_data_multiframe.py index 28f527054..f977dde72 100644 --- a/tests/test_data_multiframe.py +++ b/tests/test_data_multiframe.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_data_replay.py b/tests/test_data_replay.py index 51e380e55..e2ed16bb7 100644 --- a/tests/test_data_replay.py +++ b/tests/test_data_replay.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_data_resample.py b/tests/test_data_resample.py index 3b30e1f6e..b8bee55ea 100644 --- a/tests/test_data_resample.py +++ b/tests/test_data_resample.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_accdecosc.py b/tests/test_ind_accdecosc.py index 998bb9a58..1b0212ae4 100644 --- a/tests/test_ind_accdecosc.py +++ b/tests/test_ind_accdecosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_aroonoscillator.py b/tests/test_ind_aroonoscillator.py index fd1da1379..d8dd15a44 100644 --- a/tests/test_ind_aroonoscillator.py +++ b/tests/test_ind_aroonoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_aroonupdown.py b/tests/test_ind_aroonupdown.py index 33a0f3e37..868847ab9 100644 --- a/tests/test_ind_aroonupdown.py +++ b/tests/test_ind_aroonupdown.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_atr.py b/tests/test_ind_atr.py index 9b14e4455..1246c9d0b 100644 --- a/tests/test_ind_atr.py +++ b/tests/test_ind_atr.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_awesomeoscillator.py b/tests/test_ind_awesomeoscillator.py index 8299e5e69..df0616490 100644 --- a/tests/test_ind_awesomeoscillator.py +++ b/tests/test_ind_awesomeoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_bbands.py b/tests/test_ind_bbands.py index 44504d17a..e53f85b19 100644 --- a/tests/test_ind_bbands.py +++ b/tests/test_ind_bbands.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_cci.py b/tests/test_ind_cci.py index 9f0074a04..59f9eb3fe 100644 --- a/tests/test_ind_cci.py +++ b/tests/test_ind_cci.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_dema.py b/tests/test_ind_dema.py index c848309eb..42be6b8d6 100644 --- a/tests/test_ind_dema.py +++ b/tests/test_ind_dema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_demaenvelope.py b/tests/test_ind_demaenvelope.py index 0f403432b..4982b17c7 100644 --- a/tests/test_ind_demaenvelope.py +++ b/tests/test_ind_demaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_demaosc.py b/tests/test_ind_demaosc.py index 347657795..5e5c26321 100644 --- a/tests/test_ind_demaosc.py +++ b/tests/test_ind_demaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_dm.py b/tests/test_ind_dm.py index f132a56bf..6169a559c 100644 --- a/tests/test_ind_dm.py +++ b/tests/test_ind_dm.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_dma.py b/tests/test_ind_dma.py index 5ae2c7142..868cfceb0 100644 --- a/tests/test_ind_dma.py +++ b/tests/test_ind_dma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_downmove.py b/tests/test_ind_downmove.py index 090fafae7..b915b4aa3 100644 --- a/tests/test_ind_downmove.py +++ b/tests/test_ind_downmove.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_dpo.py b/tests/test_ind_dpo.py index 29aa0d0c6..74e98dc5f 100644 --- a/tests/test_ind_dpo.py +++ b/tests/test_ind_dpo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_dv2.py b/tests/test_ind_dv2.py index ae0850cc5..b5ecd3e75 100644 --- a/tests/test_ind_dv2.py +++ b/tests/test_ind_dv2.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_ema.py b/tests/test_ind_ema.py index 1be3bdcdc..207767988 100644 --- a/tests/test_ind_ema.py +++ b/tests/test_ind_ema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_emaenvelope.py b/tests/test_ind_emaenvelope.py index c3a204d84..715db3667 100644 --- a/tests/test_ind_emaenvelope.py +++ b/tests/test_ind_emaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_emaosc.py b/tests/test_ind_emaosc.py index b516a7525..22a1a347d 100644 --- a/tests/test_ind_emaosc.py +++ b/tests/test_ind_emaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_envelope.py b/tests/test_ind_envelope.py index 3c02e1eb8..87ac9d23b 100644 --- a/tests/test_ind_envelope.py +++ b/tests/test_ind_envelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_heikinashi.py b/tests/test_ind_heikinashi.py index 209fd9f08..c36d45708 100644 --- a/tests/test_ind_heikinashi.py +++ b/tests/test_ind_heikinashi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_highest.py b/tests/test_ind_highest.py index 9e55adc92..c7755b422 100644 --- a/tests/test_ind_highest.py +++ b/tests/test_ind_highest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_hma.py b/tests/test_ind_hma.py index 7d6d70c65..683ea6979 100644 --- a/tests/test_ind_hma.py +++ b/tests/test_ind_hma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_ichimoku.py b/tests/test_ind_ichimoku.py index b34a3076f..1e508e6b0 100644 --- a/tests/test_ind_ichimoku.py +++ b/tests/test_ind_ichimoku.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_kama.py b/tests/test_ind_kama.py index 486e116d8..660c280fd 100644 --- a/tests/test_ind_kama.py +++ b/tests/test_ind_kama.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_kamaenvelope.py b/tests/test_ind_kamaenvelope.py index f70ece426..8cca2c27c 100644 --- a/tests/test_ind_kamaenvelope.py +++ b/tests/test_ind_kamaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_kamaosc.py b/tests/test_ind_kamaosc.py index e1794a391..b12793990 100644 --- a/tests/test_ind_kamaosc.py +++ b/tests/test_ind_kamaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_kst.py b/tests/test_ind_kst.py index 82dbbfafc..07775e499 100644 --- a/tests/test_ind_kst.py +++ b/tests/test_ind_kst.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_lowest.py b/tests/test_ind_lowest.py index 94d6abccb..c8d18528a 100644 --- a/tests/test_ind_lowest.py +++ b/tests/test_ind_lowest.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_lrsi.py b/tests/test_ind_lrsi.py index e9e9df277..40381fc27 100644 --- a/tests/test_ind_lrsi.py +++ b/tests/test_ind_lrsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_macdhisto.py b/tests/test_ind_macdhisto.py index b712767e8..582681cb7 100644 --- a/tests/test_ind_macdhisto.py +++ b/tests/test_ind_macdhisto.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_minperiod.py b/tests/test_ind_minperiod.py index f9d8dc24b..b4b7d7f58 100644 --- a/tests/test_ind_minperiod.py +++ b/tests/test_ind_minperiod.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_momentum.py b/tests/test_ind_momentum.py index a57c1908d..f8e32a381 100644 --- a/tests/test_ind_momentum.py +++ b/tests/test_ind_momentum.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_momentumoscillator.py b/tests/test_ind_momentumoscillator.py index 46ea37b5b..7c587ea6d 100644 --- a/tests/test_ind_momentumoscillator.py +++ b/tests/test_ind_momentumoscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_oscillator.py b/tests/test_ind_oscillator.py index bca0c9030..c649e610a 100644 --- a/tests/test_ind_oscillator.py +++ b/tests/test_ind_oscillator.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_pctchange.py b/tests/test_ind_pctchange.py index 9d2dd6f2b..9780cb1c9 100644 --- a/tests/test_ind_pctchange.py +++ b/tests/test_ind_pctchange.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_pctrank.py b/tests/test_ind_pctrank.py index 1d1728afc..2f8e66154 100644 --- a/tests/test_ind_pctrank.py +++ b/tests/test_ind_pctrank.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_pgo.py b/tests/test_ind_pgo.py index a9bef388a..476a8bb80 100644 --- a/tests/test_ind_pgo.py +++ b/tests/test_ind_pgo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_ppo.py b/tests/test_ind_ppo.py index bc5a701f4..d32da43ff 100644 --- a/tests/test_ind_ppo.py +++ b/tests/test_ind_ppo.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_pposhort.py b/tests/test_ind_pposhort.py index 014708b92..78f323804 100644 --- a/tests/test_ind_pposhort.py +++ b/tests/test_ind_pposhort.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_priceosc.py b/tests/test_ind_priceosc.py index 587461124..004218b26 100644 --- a/tests/test_ind_priceosc.py +++ b/tests/test_ind_priceosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_rmi.py b/tests/test_ind_rmi.py index d67f2bd94..22b57d169 100644 --- a/tests/test_ind_rmi.py +++ b/tests/test_ind_rmi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_roc.py b/tests/test_ind_roc.py index 8017d5a7e..384f76e74 100644 --- a/tests/test_ind_roc.py +++ b/tests/test_ind_roc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_rsi.py b/tests/test_ind_rsi.py index 5b8990f94..ab115ba85 100644 --- a/tests/test_ind_rsi.py +++ b/tests/test_ind_rsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_rsi_safe.py b/tests/test_ind_rsi_safe.py index 57b1f6560..85fd33c06 100644 --- a/tests/test_ind_rsi_safe.py +++ b/tests/test_ind_rsi_safe.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_sma.py b/tests/test_ind_sma.py index 8fe03663a..41d11ae4c 100644 --- a/tests/test_ind_sma.py +++ b/tests/test_ind_sma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_smaenvelope.py b/tests/test_ind_smaenvelope.py index f70ece426..8cca2c27c 100644 --- a/tests/test_ind_smaenvelope.py +++ b/tests/test_ind_smaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_smaosc.py b/tests/test_ind_smaosc.py index 8ef2accfd..b5799c33f 100644 --- a/tests/test_ind_smaosc.py +++ b/tests/test_ind_smaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_smma.py b/tests/test_ind_smma.py index 5d0ce278d..f827ab2ad 100644 --- a/tests/test_ind_smma.py +++ b/tests/test_ind_smma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_smmaenvelope.py b/tests/test_ind_smmaenvelope.py index 4b94113c8..190f94b9b 100644 --- a/tests/test_ind_smmaenvelope.py +++ b/tests/test_ind_smmaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_smmaosc.py b/tests/test_ind_smmaosc.py index 42e8f363f..61f14701f 100644 --- a/tests/test_ind_smmaosc.py +++ b/tests/test_ind_smmaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_stochastic.py b/tests/test_ind_stochastic.py index 1c5cc5106..d4f28e61f 100644 --- a/tests/test_ind_stochastic.py +++ b/tests/test_ind_stochastic.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_stochasticfull.py b/tests/test_ind_stochasticfull.py index becabb903..06f8fe8d8 100644 --- a/tests/test_ind_stochasticfull.py +++ b/tests/test_ind_stochasticfull.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_sumn.py b/tests/test_ind_sumn.py index 3e68338a4..3d218fd63 100644 --- a/tests/test_ind_sumn.py +++ b/tests/test_ind_sumn.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_tema.py b/tests/test_ind_tema.py index 3841745d5..d2a83d31f 100644 --- a/tests/test_ind_tema.py +++ b/tests/test_ind_tema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_temaenvelope.py b/tests/test_ind_temaenvelope.py index d33d8e14a..4334f290e 100644 --- a/tests/test_ind_temaenvelope.py +++ b/tests/test_ind_temaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_temaosc.py b/tests/test_ind_temaosc.py index 21aa76d36..f66179ce2 100644 --- a/tests/test_ind_temaosc.py +++ b/tests/test_ind_temaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_trix.py b/tests/test_ind_trix.py index 77019e3d3..6058472bf 100644 --- a/tests/test_ind_trix.py +++ b/tests/test_ind_trix.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_tsi.py b/tests/test_ind_tsi.py index 25efd5ce6..9cb5d90a3 100644 --- a/tests/test_ind_tsi.py +++ b/tests/test_ind_tsi.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_ultosc.py b/tests/test_ind_ultosc.py index e24bf2a2e..5fd77fe61 100644 --- a/tests/test_ind_ultosc.py +++ b/tests/test_ind_ultosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_upmove.py b/tests/test_ind_upmove.py index a7ad0b327..a1acc63b1 100644 --- a/tests/test_ind_upmove.py +++ b/tests/test_ind_upmove.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_vortex.py b/tests/test_ind_vortex.py index 77062bdb3..60450ae38 100644 --- a/tests/test_ind_vortex.py +++ b/tests/test_ind_vortex.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_williamsad.py b/tests/test_ind_williamsad.py index 8dae01117..c0776260f 100644 --- a/tests/test_ind_williamsad.py +++ b/tests/test_ind_williamsad.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_williamsr.py b/tests/test_ind_williamsr.py index 0c8d7b611..919a66a6b 100644 --- a/tests/test_ind_williamsr.py +++ b/tests/test_ind_williamsr.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_wma.py b/tests/test_ind_wma.py index 103cbd120..28adb18af 100644 --- a/tests/test_ind_wma.py +++ b/tests/test_ind_wma.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_wmaenvelope.py b/tests/test_ind_wmaenvelope.py index 3180b5371..0480a4cbc 100644 --- a/tests/test_ind_wmaenvelope.py +++ b/tests/test_ind_wmaenvelope.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_wmaosc.py b/tests/test_ind_wmaosc.py index 4630923f3..0d88a00aa 100644 --- a/tests/test_ind_wmaosc.py +++ b/tests/test_ind_wmaosc.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_zlema.py b/tests/test_ind_zlema.py index 368aad436..b86e44c66 100644 --- a/tests/test_ind_zlema.py +++ b/tests/test_ind_zlema.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_ind_zlind.py b/tests/test_ind_zlind.py index 040b6e52a..6862d6860 100644 --- a/tests/test_ind_zlind.py +++ b/tests/test_ind_zlind.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_metaclass.py b/tests/test_metaclass.py index 3b47f7f5a..3637e839d 100644 --- a/tests/test_metaclass.py +++ b/tests/test_metaclass.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_order.py b/tests/test_order.py index 31f5007da..be895184b 100644 --- a/tests/test_order.py +++ b/tests/test_order.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_position.py b/tests/test_position.py index 611b0a5e5..ad320d074 100644 --- a/tests/test_position.py +++ b/tests/test_position.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_strategy_optimized.py b/tests/test_strategy_optimized.py index d01e97d3d..45f6acaca 100644 --- a/tests/test_strategy_optimized.py +++ b/tests/test_strategy_optimized.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_strategy_unoptimized.py b/tests/test_strategy_unoptimized.py index 43411eefa..053a07fc1 100644 --- a/tests/test_strategy_unoptimized.py +++ b/tests/test_strategy_unoptimized.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_study_fractal.py b/tests/test_study_fractal.py index 2d1739d14..d2d7aec02 100644 --- a/tests/test_study_fractal.py +++ b/tests/test_study_fractal.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_trade.py b/tests/test_trade.py index 3870464cb..8b40fd35f 100644 --- a/tests/test_trade.py +++ b/tests/test_trade.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/test_writer.py b/tests/test_writer.py index eb8016c54..f90cdc434 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tests/testcommon.py b/tests/testcommon.py index e6c18484f..e052db28f 100644 --- a/tests/testcommon.py +++ b/tests/testcommon.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tools/bt-run.py b/tools/bt-run.py index 68b2615f2..a4bb33223 100755 --- a/tools/bt-run.py +++ b/tools/bt-run.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tools/rewrite-data.py b/tools/rewrite-data.py index 88bd01acd..f0ab10b7a 100755 --- a/tools/rewrite-data.py +++ b/tools/rewrite-data.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/tools/yahoodownload.py b/tools/yahoodownload.py index 7e47d365f..e5f8b763c 100755 --- a/tools/yahoodownload.py +++ b/tools/yahoodownload.py @@ -2,7 +2,7 @@ # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # -# Copyright (C) 2015-2020 Daniel Rodriguez +# Copyright (C) 2015-2023 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by