riyingkui:asset-ref(asset,todaybar);
nn:=barslast(month<>ref(month,1))+1;
yueyingkui:asset-ref(asset,nn);
輸出到excel的參考這個鏈接
http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=5865