将ThinkScripts CompoundValue函数转换为python

2024-05-16 09:57:30 发布

您现在位置:Python中文网/ 问答频道 /正文

declare lower;
def x = CompoundValue(2, x[1] + x[2], 1); 
plot FibonacciNumbers = x;

这是在thinkscript中,我想在python中转换它,实际上我正在转换python backtrader中的Thinkorswim策略之一


Tags: plotdef策略lowerbacktraderdeclarefibonaccinumberscompoundvalue