Commit Graph

45 Commits

Author SHA1 Message Date
Matthias 191a31db30 NameErrors should not stop loading a different strategy 2021-04-23 19:36:26 +02:00
Matthias 63e1cba597 fix some typos 2020-10-04 09:12:52 +02:00
Matthias 350fcc071e Don't use __code__
__code__ is a special method name used by python already
source:
https://docs.python.org/3/reference/datamodel.html#special-method-names
2020-09-29 06:35:47 +02:00
Matthias becccca3d1 Add test for __code__ loading 2020-09-29 06:35:47 +02:00
Matthias ba10bd7756 Add strategy code to __code__ 2020-09-29 06:35:47 +02:00
Matthias 253b7b763e Apply isort to freqtrade codebase 2020-09-28 19:40:46 +02:00
Matthias 8c9297e1f0 Don't crash if a strategy imports something wrongly 2020-09-05 16:51:19 +02:00
Matthias 5adbe3c2d3 initial search path is optional ... 2020-02-19 19:50:01 +01:00
Matthias d91b9d1253 Fix some tests, don't default to freqtrade/strategy for imports 2020-02-18 20:26:20 +01:00
hroff-1902 6139239b86 Address points stated in comments 2020-02-15 20:43:11 +03:00
hroff-1902 e8c0a0bcd3 Make mypy happy 2020-02-15 06:18:00 +03:00
hroff-1902 06b84b4086 Remove redundant code 2020-02-14 23:13:49 +03:00
hroff-1902 c92e1d97d6 Attempt to make mypy happy 2020-02-14 21:52:02 +03:00
hroff-1902 9cbf8c5f00 Add status for listed strategies 2020-02-14 21:15:36 +03:00
Matthias fff8ced3b0
Merge pull request #2843 from hroff-1902/allow-derived-strategies
Allow derived strategies
2020-02-08 09:15:35 +01:00
hroff-1902 537596001e Allow derived strategies 2020-02-03 06:20:01 +03:00
hroff-1902 f3d500085c Add some type hints 2020-02-02 07:00:40 +03:00
Matthias 1ffda29fd2 Adjust improts to new exception location 2019-12-30 15:02:17 +01:00
Matthias 402c761a23 Change loglevel of Path output to debug 2019-12-24 15:44:04 +01:00
Matthias 2ab989e274 Cleanup some code and add option 2019-12-24 15:28:35 +01:00
Matthias 5a11ca86bb Move instanciation out of search_object 2019-12-24 14:01:28 +01:00
Matthias 25e6d6a7bf Combine load_object methods into one 2019-12-24 13:54:46 +01:00
Matthias eb1040ddb7 Convert resolvers to classmethods 2019-12-24 13:34:37 +01:00
Matthias 1c5f8070e5 Refactor build_paths to staticmethod 2019-12-23 09:53:55 +01:00
Matthias 44289e4c58 Allow not using files from user_dir 2019-10-30 15:57:08 +01:00
Matthias fda71085e0 Refactor load-path building to parent class 2019-10-16 08:12:24 +02:00
Matthias 1a765f1a17 Return generator instead of Object from _get_valid_object 2019-10-16 08:11:42 +02:00
hroff-1902 849d694c27 Don't inherit from object 2019-09-12 04:39:52 +03:00
Matthias aaeeb9c0c6 Merge branch 'develop' into align_userdata 2019-08-21 19:41:10 +02:00
Matthias ea4db0ffb6 Pass object-name to loader to fix logging 2019-08-18 18:11:34 +02:00
Matthias 9de8d7276e have strategyresolver use user_data_dir 2019-07-28 14:57:05 +02:00
Matthias 482f5f7a26 Update plotly dependencies (will break 3.x installations) 2019-07-22 20:39:38 +02:00
Matthias dcddfce5bc Fix small mistakes 2019-07-21 19:21:50 +02:00
Matthias 08ca260e82 Simplify return valuef rom _load_object 2019-07-21 15:29:17 +02:00
Matthias b35efd96dc Extract load_object from multiple paths to iResolver 2019-07-21 15:03:12 +02:00
hroff-1902 b499e74502 minor improvements to resolvers 2019-07-12 23:45:49 +03:00
Matthias 44acf2f471 Catch syntaxerror on import 2019-03-15 19:50:38 +01:00
Matthias f9aa3c27be Catch ModuleNotFoundError when importing external code 2019-03-11 19:49:03 +01:00
iuvbio 3e2f90a32a formatting 2019-02-19 22:27:20 +01:00
Matthias 1d35428c8d Rename get_valid_objects to get_valid object
it only ever returns one object ...
2018-11-25 10:08:27 +01:00
Matthias a3477e07eb Remove constructor, it's not needed in the baseclass 2018-11-25 09:55:36 +01:00
Matthias 20de8c82e4 Convert to Pathlib 2018-11-24 20:39:16 +01:00
Matthias cc7b820978 Move hyperoptresolver to resolvers package 2018-11-24 20:14:08 +01:00
Matthias 2c0d0946e6 Small stylistic improvements to strategyresolver 2018-11-24 20:02:29 +01:00
Matthias 21a093bcdb extract resolvers to IResolvers and it's own package 2018-11-24 20:00:02 +01:00