DRAWGBK(C 0, RGB(0,0,00),RGB(0,0,0),0, H3 ,0);
M1:=5; M2:=10;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,
IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME 0.5,TOTAL,MTIME);
虚拟量:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
成交量:VOL,NODRAW;
五日均量:MA(成交量,M1);
十日均量:MA(成交量,M2);
大单动
向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),COLORRED,N
ODRAW;
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃度:(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;
{--------VOL.饱和--------}
N1:=34;
N2:=N1*1.05;
N3:=N1+3;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:IF(SAT 1,1,SAT)*100,COLOR0099FF,NODRAW;
中点:=REF(REFDATE(HHV(V,60)/2,DATE),5);{量能饱和的变色切换}
{中点:=REFDATE(HHV(V,240)/2,DATE);}
STICKLINE(CURRBARSCOUNT=1 (SETCODE=0 || SETCODE=1),虚拟
量,0,-1,-1),COLOR00C0C0;
STICKLINE( MACD.MACD 0,0,V,2.8,1),COLORRED;
STICKLINE( MACD.MACD =0,0,V,2.8,1),COLORCYAN;
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1) =0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1) =0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
VAR2A:=MA(OPEN,32);
:=(VAR1A-VAR2A);
STICKLINE(MO ML AND 趋势 0 AND MO REF(MO,3) AND 趋势 REF(趋
势,3),VOL,0,2.5,0) COLORYELLOW;
C1:=10000*CLOSE/INDEXC;
O1:=10000*OPEN/INDEXO;
H1:=10000*HIGH/INDEXH;
L1:=10000*LOW/INDEXL;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,2.5,0),COLOR000099;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,1.3,0),COLOR0000CC;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,0.1,0),COLOR9966FF;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,2.5,0),COLORFF6600;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,1.3,0),COLORFF9933;
STICKLINE((C O AND C1 O1) OR ((C O OR C REF(C,1)) AND
(C1 O1)),0,VOL/3*2,0.1,0),COLORFFCC66;
STICKLINE(活跃度 0,0,VOL/3,2.5,0),COLOR990099;
STICKLINE(活跃度 0,0,VOL/3,1.3,0),COLORCC00CC;
STICKLINE(活跃度 0,0,VOL/3,0.1,0),COLORFF66FF;
STICKLINE(活跃度 0,0,VOL/3,2.5,0),COLOR009900;
STICKLINE(活跃度 0,0,VOL/3,1.3,0),COLOR00CC33;
STICKLINE(活跃度 0,0,VOL/3,0.1,0),COLOR99FF66;
大单动向限制:=IF(大单动向 1,1,IF(大单动向 -1,-1,大单动向));
流入:=IF(大单动向限制 0,大单动向限制,DRAWNULL);
流出:=IF(大单动向限制 =0,大单动向限制*-1,DRAWNULL);
STICKLINE(大单动向限制 0,0,VOL*流入,1,0),COLOR66CCFF;
STICKLINE(大单动向限制 0,0,VOL*流出,1,0),COLORFF0000;
{--------VOL.量能饱和--------}
STICKLINE(CURRBARSCOUNT=N1,中点*1.8,中点*1.6,100,1),COLOR00DDDD;
STICKLINE(CURRBARSCOUNT=N1,中点*1.79,中点*1.61,量能饱和
度,0),COLOR0055FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和
度,0),COLOR0077FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.73,中点*1.67,量能饱和
度,0),COLOR0099FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.7,中点*1.7,量能饱和
度,0),COLOR00DDFF;
DRAWTEXT(CURRBARSCOUNT=N3,中点*1.7, 量能饱和度 ),COLORYELLOW;
VAR11:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR12:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR13:=ZIG(3,22) REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1) =REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR14:=ZIG(3,22) REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1) =REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR15:=ZIG(3,51) REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1) =REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR16:=ZIG(3,51) REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1) =REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR17:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2) =REF(ZIG(3,72),3);
VAR18:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2) =REF(ZIG(3,72),3);
VAR10:=IF(TROUGHBARS(3,16,1)=0ANDHIGH LOW+0.04,4,0);
黑码:(VAR10)*8,COLORRED,LINETHICK2;
K线公式指标:DRAWNULL,COLORRED;买入:(VAR11+VAR13+VAR15+VAR17)*8,COLORYELLOW,LINETHICK2;
:(买入 8ANDREF(黑码,1) 8)*18,STICK,LINETHICK4,COLORDB70DB;
卖出:(VAR12+VAR14+VAR16+VAR18)*8,COLORGREEN,LINETHICK2;