这样的均线价格计算仅做参考之用
dm:=4-INTPART(LOG(C));
n1:=todaybar;
均线:ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),dm),COLORYELLOW;
todaybar,当日开盘后的k线数
dm:=4-INTPART(LOG(C));
n1:=todaybar;
均线:ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),dm),COLORYELLOW;
这样写均线已经不管用了,因为夜盘和白天的 TODAYBAR 取的值变了