手机端
当前位置:爱约股 > 公式技巧 > 将分钟真实量改成大智慧

将分钟真实量改成大智慧

 网友求助:

T1:=FROMOPEN-INTPART(FROMOPEN/30)*30;
【30分拟量】:IF(CURRBARSCOUNT=1 AND PERIOD=3,VOL*30/T1,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=3,【30分拟量】,0,-1,-1),COLORYELLOW;

T2:=FROMOPEN-INTPART(FROMOPEN/60)*60;
【60分拟量】:IF(CURRBARSCOUNT=1 AND PERIOD=4,VOL*60/T2,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=4,【60分拟量】,0,-1,-1),COLORYELLOW;

【日虚拟量】:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORRED,NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,【日虚拟量】,0,-1,-1),COLORYELLOW;

【实际成交量】:VOL,VOLSTICK;

 

解答如下:

FROMOPEN:=IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE);
PERIOD:=COUNT(DATE<>REF(DATE,1),2)=2;
T1:=FROMOPEN-INTPART(FROMOPEN/30)*30;
【30分拟量】:IF(BARSTATUS=1 AND PERIOD=3,VOL*30/T1,0),COLORMAGENTA,LINETHICK0;
STICKLINE(BARSTATUS=1 AND PERIOD=3,【30分拟量】,0,-1,-1),COLORYELLOW;
T2:=FROMOPEN-INTPART(FROMOPEN/60)*60;
【60分拟量】:IF(BARSTATUS=1 AND PERIOD=4,VOL*60/T2,0),COLORMAGENTA,LINETHICK0;
STICKLINE(BARSTATUS=1 AND PERIOD=4,【60分拟量】,0,-1,-1),COLORYELLOW;
【日虚拟量】:IF(BARSTATUS=1 AND PERIOD=5,VOL*240/FROMOPEN,0),COLORRED,LINETHICK0;
STICKLINE(BARSTATUS=1 AND PERIOD=5,【日虚拟量】,0,-1,-1),COLORYELLOW;
【实际成交量】:VOL,VOLSTICK;
 

TAG:
分享至:

相关推荐