-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e90b99b
commit b853d7c
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b853d7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found an error in the ols.py indicator library - class OLS_BetaN uses pandas.ols which is I think depreciated (anyway doesn't work). You should update it to scipy's linregress or similar.
Also the Community gateway is down (error 502). I am a novice user and am trying to find information there on creating a slope from a self.line e.g. (closing prices over time (such as 10 days)). I can regress two existing indicators (e.g., closing prices vs opening prices) but cannot create an indicator that regresses over a linear array as it hangs and I have to keyboard interrupt, getting part of the following traceback:
File "C:\Users\Trader\AppData\Local\Programs\Python\Python311\Lib\site-packages\backtrader\strategy.py", line 394, in _start
self._periodset()
File "C:\Users\Trader\AppData\Local\Programs\Python\Python311\Lib\site-packages\backtrader\strategy.py", line 175, in _periodset
clk2 = getattr(clk._owner, '_clock', None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You have written a very interesting and useful set of code but if you could add these small corrections/enhancements, I would appreciate it.