MCPcopy Index your code
hub / github.com/quantopian/zipline / make_algo

Method make_algo

tests/test_algorithm.py:3237–3243  ·  view source on GitHub ↗
(min_leverage, grace_period)

Source from the content-addressed store, hash-verified

3235
3236 # Helper for not having to pass init/handle_data at each callsite.
3237 def make_algo(min_leverage, grace_period):
3238 return self.make_algo(
3239 initialize=initialize,
3240 handle_data=handle_data,
3241 min_leverage=min_leverage,
3242 grace_period=grace_period,
3243 )
3244
3245 # Set min leverage to 1.
3246 # The algorithm will succeed because it doesn't run for more

Calls

no outgoing calls

Tested by

no test coverage detected