Closed bi-kash closed 3 years ago
Can we deepcopy, so that each version is separately defined, as per https://github.com/ta-oliver/infertrade/pull/217/files?
Can we deepcopy, so that each version is separately defined, as per https://github.com/ta-oliver/infertrade/pull/217/files?
Please take a look at the review at the same PR
Problematic code:
All the allocation_function in allocation_dictionary are showing the same behavior i.e. calculating allocations using the same indicator.
It's so because ta_signal_func and ta_rule_name are not local to function. One of the solutions can be adding ta_signal_func and ta_rule_name as a default argument. But we want to avoid that to maintain consistency with other allocation functions.
@SaurabhBansalInferstat This is the reason why setting parameters is giving an error on inferlib side.
@ta-oliver Any suggestions?