Highest和Lowest为何计算错误
print("Lowest="+text(Lowest(open[2],k))+"LowestB="+text(LowestBar(open[2],k)))


代码如上,抓取k周期的开盘价最低值,总是不正确,k是变量,难道这个函数,lenghth必须是常数?

Highest,Lowest 最大计算周期
Highest,Lowest 最大计算周期
求跨周期函数源码:MinsXAverage,K_Highest,K_Lowest
Highest和HighestFC的区别
Lowest/Lowest无法获取指定周期的最小值
多维数组内部计算错误
if语句lowest计算值不对
错误 error C2664: “autotrade::Numeric _function_Lowest::Lowest(autotrade::Numeric,
止损次数为啥计算错误
hhigh=Highest(High[1],BarsSinceEntry);

对的,k必须是常值,不可以是变量。具体算法其实可以打开函数内部看看代码就知道为什么必须是变量了,算法特性决定的


无论是在参数还是在变量处定义K,代码编译都是通过的呀

你说的不正确是什么