mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
API: Conform timeperiad to TALib interface instead of BatchTransform's.
For the creation of a TALib transform use timeperiod intsead of window_length, to be more in the style of TALib usage, since all TALib functions may not ending up using BatchTransform, so start the practice of adhering to TALib conventions to make porting and explanation easier.
This commit is contained in:
@@ -344,8 +344,8 @@ class TestTALIB(TestCase):
|
||||
# factory.create_test_panel_ohlc_source(self.sim_params)
|
||||
|
||||
def test_multiple_talib_with_args(self):
|
||||
zipline_transforms = [ta.MA(window_length=10),
|
||||
ta.MA(window_length=25)]
|
||||
zipline_transforms = [ta.MA(timeperiod=10),
|
||||
ta.MA(timeperiod=25)]
|
||||
talib_fn = talib.abstract.MA
|
||||
algo = TALIBAlgorithm(talib=zipline_transforms)
|
||||
algo.run(self.source)
|
||||
|
||||
Reference in New Issue
Block a user