Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kernc/backtesting.py
/ init
Method
init
backtesting/test/_test.py:774–776 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
772
def
test_resample(self):
773
class
S(SmaCross):
774
def
init(self):
775
self.I(
lambda
: [
'x'
] * len(self.data))
# categorical indicator, GH-309
776
super().init()
777
778
bt = Backtest(GOOG, S)
779
bt.run()
Callers
nothing calls this directly
Calls
2
I
Method · 0.80
init
Method · 0.45
Tested by
no test coverage detected