多个数据源条件下,为什么onbarclose运行了7次?
OnBarOpen(ArrayRef<Integer> indexes) { // 更新时间冷却计数器 for i = 0 to GetArraySize(timerecord1)-1 { if(timerecord1[i] > 0) { timerecord1[i] = timerecord1[i] - 1; } } }OnBarClose(ArrayRef<Integer> indexes){ print("-----------------"); print(DateTimeToString(date + time)+TextArray(timerecord1)); }我在onbaropen里为timerecord1这个变量进行递减操作,同时在onbarclose里输出,在订阅了9个数据源的情况下,为什么onbarclose运行了7次呢?看起来onbaropen也运行了多次(timerecord1在同一根bar里面多次递减了)?这正常吗