SetGlobalVar 有bug

这段代码,SetGlobalVar 当日期变更后,其值不变,导致画出来的线是平的?不知道为什么。

if(Time<=sj1) 
        {
            todayhigh = highd(0);    
            SetGlobalVar(0,highd(0));    // 有Bug,设置全局 无效
                
        }
        if(Time<=sj1) 
        {
            todaylow = lowd(0);
            SetGlobalVar(1,todaylow);
                
        }
        
        top = GetGlobalVar(0);
        bottom = GetGlobalVar(1);
    
        Commentary("top"+text(highd(0)))    ;
        PlotNumeric("top",top);
        PlotNumeric("bottom",bottom);

画的图如下,正常top 会随着每天变化,但是连续好多天top (黄线)都不变化,是不是SetGlobalVar 这个函数有bug?

关于 SetGlobalVar 的疑问
智大领峰有个bug
智大领峰有个bug
系统有bug
更新后有行情报价有bug!
SetGlobalVar (1,lastentryprice); 可以总而言写代码吗?
TBQ有个bug,FileDelete 这个函数不起作用,请改正
帐户透视有BUG
Bug!Bug!Bug!Bug!Bug!Bug!Bug!Bug!
SetGlobalVar-设置某个索引的全局变量值

lowd和highd是序列类型,用在分支结构里会出错得,这个警告编译得时候应该有出现。

具体解决方案可以搜论坛里关于序列类型得帖子

这写得什么意思?两个条件一样?