缺少分号
Params Numeric TestParam(10);Vars Numeric WaveHigh[3]; // 测试分号; 错误 缺少分号 Events OnBar(ArrayRef<Integer> indexs) { WaveHigh[1] = High; } 求大神帮忙 谢谢 !
Params Numeric TestParam(10);Vars Numeric WaveHigh[3]; // 测试分号; 错误 缺少分号 Events OnBar(ArrayRef<Integer> indexs) { WaveHigh[1] = High; } 求大神帮忙 谢谢 !
Numeric WaveHigh;普通numeric没有方框下标数组是array<>
把 WaveHigh[3] 的括号改成圆括号 WaveHigh(3)
回复:你要回溯就定义成 Series<Numeric> WaveHigh(3)
你这写的是些啥?要不先看看系统示例代码?变量默认值用()另外,WaveHigh[1]是什么鬼, 你这变量不是数组也不是序列变量 哪来的[1]先看 零基础学量化 课程吧 https://video.tbquant.net/