你好,老师!
我写一个指标,需要用到300根bar,想把它放在指标条件单里使用。
但我多次使用Alert预警放在指标条件单中,发现最多只能用200根bar。
请问是否用办法优化代码或者通过设置,提高在指标条件单中,可使用bar的数量?
谢谢!
Events
//Bar更新事件函数,参数indexs表示变化的数据源图层ID数组
OnBar(ArrayRef<Integer> indexs)
{
Numeric aa;
Alert(Text(Date+Time)+"--"+Symbol+"--CurrentBar:" + Text(CurrentBar()));
PlotNumeric("aa",aa);
}
嗯, 毕竟指标条件单是个比较轻的功能,如果你需要用到数据多, 可能应该使用tbquant3程序化软件,