将分钟真实量改成大智慧
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

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;
 

 


选股票看什么指标最好 >股票指标网