A:=PERIOD;N:=IF(A=0,1,IF(A=1,5,IF(A=2,15,IF(A=3,30,IF(A=4,60,IF(A=5,240,DRAWNULL))))));M:=IF(N=1,IF(MOD(FROMOPEN,1)=0,1,MOD(FROMOPEN,1)),IF(N=5,IF(MOD(FROMOPEN,5)=0,5,MOD(FROMOPEN,5)),IF(N=15,IF(MOD(FROMOPEN,15)=0,15,MOD(FROMOPEN,15)),IF(N=30,IF(MOD(FROMOPEN,30)=0,30,MOD(FROMOPEN,30)),IF(N=60,IF(MOD(FROMOPEN,60)=0,60,MOD(FROMOPEN,60)),IF(N=240,FROMOPEN,DRAWNULL))))));现量:,NODRAW;虚拟:IF(CURRBARSCOUNT=0,V*N/M,DRAWNULL),NODRAW,COLORFFFF00;STICKLINE(CURRBARSCOUNT=0 AND N,虚拟,0,10,-1),COLORFFFF00;{ _通达信