以下是黄金柱(指标副图通达信贴图源码和截图
黄金柱(指标副图通达信贴图源码:
总手:=VOL;
HPLZ1:=V/REF(V,1) =0.95ANDV/REF(V,1) =1.05;
HLZ2:=REF(HHV(V,2),1);
HPLZ2:=V/HLZ2 =0.95ANDV/HLZ2 =1.05;
HLZ3:=REF(HHV(V,3),1);
HPLZ3:=V/HLZ3 =0.95ANDV/HLZ3 =1.05;
HLZ4:=REF(HHV(V,4),1);
HPLZ4:=V/HLZ4 =0.95ANDV/HLZ4 =1.05;
HLZ5:=REF(HHV(V,5),1);
HPLZ5:=V/HLZ5 =0.95ANDV/HLZ5 =1.05;
HLZ6:=REF(HHV(V,6),1);
HPLZ6:=V/HLZ6 =0.95ANDV/HLZ6 =1.05;
HLZ7:=REF(HHV(V,7),1);
HPLZ7:=V/HLZ7 =0.95ANDV/HLZ7 =1.05;
HLZ8:=REF(HHV(V,8),1);
HPLZ8:=V/HLZ8 =0.95ANDV/HLZ8 =1.05;
HLZ9:=REF(HHV(V,9),1);
HPLZ9:=V/HLZ9 =0.95ANDV/HLZ9 =1.05;
HLZ10:=REF(HHV(V,10),1);
HPLZ10:=V/HLZ10 =0.95ANDV/HLZ10 =1.05;
HLZ11:=REF(HHV(V,11),1);
HPLZ11:=V/HLZ11 =0.95ANDV/HLZ11 =1.05;
HLZ12:=REF(HHV(V,12),1);
HPLZ12:=V/HLZ12 =0.95ANDV/HLZ12 =1.05;
HLZ13:=REF(HHV(V,13),1);
HPLZ13:=V/HLZ13 =0.95ANDV/HLZ13 =1.05;
PLZ:=HPLZ13ORHPLZ12ORHPLZ11ORHPLZ10ORHPLZ9ORHPLZ8ORHPLZ7ORHPLZ6ORHPLZ5ORHPLZ4ORHPLZ3ORHPLZ2ORHPLZ1;
N:=100;
DDL:=100*(V-LLV(V,N))/(HHV(V,N)-LLV(V,N));
M:=13;
DL:=100*(V-LLV(V,M))/(HHV(V,M)-LLV(V,M));
倍量:V =REF(V,1)*1.8,coloryellow;
低量:(V =HHV(V,13)*0.33ORDL 5)ANDV REF(V,1),colormagenta;
地量:V =MA(LLV(V,100),100)OR(DDL 4ANDV REF(V,1)),colorgreen;
平量:PLZ,colorwhite;
倍缩:V =REF(V,1)*0.55,colorred;
缩量涨:(COUNT(C REF(C,1),2)=2ANDCOUNT(V REF(V,1),2)=2),colorblue;
STICKLINE(C O,0,V,8,1),colorred;
STICKLINE(C =O,0,V,8,0),colorliblue;
STICKLINE(平量,0,V,3,0),colorwhite;
STICKLINE(倍量,0,V,4.8,0),coloryellow;
STICKLINE(倍缩,0,V,3,0),colorred;
STICKLINE(低量,0,V,3,0),colormagenta;
STICKLINE(地量,0,V,3,0),colorgreen;
STICKLINE(缩量涨,0,V,3,0),colorblue;
DRAWTEXT(倍量,V*1.09,'倍'),coloryellow;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE HJZ2ANDC
黄金柱:FILTER(HJZ3,5),STICK,colorred,LINETHICK1;
STICKLINE(黄金柱,0,V,2.8,0),colorred;
DRAWTEXT(黄金柱,V*1.23,'黄'),colorred;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,POINTDOT;
主买:IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),colorred,POINTDOT,NODRAW;
主卖:IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;
STICKLINE(主卖 0,0,主卖,8,0),colorgreen;
DRAWTEXT(VOL=HHV(VOL,0),HHV(VOL,30)*0.918,'天量'),colorred;
MAV5:MA(V,5),,colorred;
MA35:MA(V,35),colorliblue,LINETHICK1;
MAV120:MA(V,120),coloryellow,LINETHICK2;
N:=5;N1:=21;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
VAR2:=8,COLORGREEN,LINETHICK0;
尝试买:IF(CROSS(VAR1,VAR2),60,0),LINETHICK2,COLORLIBLUE;
DRAWTEXT(尝试买,85,'试买'),COLORYELLOW,COLORLIBLUE;
有庄:=IF(VAR1 =8,50,0),COLORCYAN,LINETHICK2;
低吸线:20,LINETHICK2,COLORLIMAGENTA;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓:=IF((VARO7 10),100,118),COLOR00CCFF,LINETHICK1;
CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;
CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));
CD3:=SMA(SMA(CD2,3,1),3,1);
CD4:=(CD3-SMA(CD1,9,1))-0.5;
CD5:=IF(CD4 0.00,CD4,0.00);
CD6:=REF(CD5,1);
VAR81:=MA(C,9),COLORRED;
空头1:=IF(CD6-CD5,CD6,CD5),LINETHICK3,COLORYELLOW;
减仓:=CROSS(CD6,CD5),STICK,COLORYELLOW;
VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2A:=SMA(VAR1A,9,1)+100;
VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4A:=SMA(VAR3A,3,1);
VAR5A:=SMA(VAR4A,3,1)+100;
VAR6A:=VAR5A-VAR2A;
出击:=IF(VAR6A N1,VAR6A-N1,0),COLORLIRED;
钻石黄金柱:IF(CROSS(出击,0.01),72,0),STICK,COLORYELLOW,LINETHICK9;
DRAWICON(钻石黄金柱 0,72,24);
XG:=CROSS(出击,0.01);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
E:=CROSS(83,RSI);
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
操盘线:SMA(RSV,3,1),LINETHICK2,COLORRED;
线:SMA(操盘线,3,1),LINETHICK3,COLORYELLOW;
STICKLINE(REF(出击,1) 出击,出击,REF(出击,1),3,0),COLORLIMAGENTA;
STICKLINE(REF(出击,1) 出击,出击,REF(出击,1),3,0),COLORFFCCCC;
VOLUME:VOL,VOLSTICK;
|:COUNT(CLOSE REF(CLOSE,1),2)=2ANDCOUNT(VOL REF(VOL,1),2)=2;
STICKLINE(|,0,V,3,0),COLORGREEN;
DRAWTEXT(|,VOL+3000,'降'),COLORGREEN;
T:=DYNAINFO(8)
VO:VOL=LLV(VOL,100)ANDT;
地量柱:TANDVO,COLORBLUE;
STICKLINE(地量柱,0,V,3,0),COLORBLUE;
DRAWTEXT(地量柱,VOL+3000,'地'),COLORBLUE;
BLZ:=VOL REF(V,1)*1.9;
BLZ1:=VOL REF(LLV(VOL,13),1);
BLZ2:=VOL REF(LLV(VOL,55),1);
STICKLINE(BLZ,0,V,3,0),COLORYELLOW;
倍量柱:BLZ,COLORYELLOW;
DRAWTEXT(倍量柱,VOL+3000,'倍'),COLORYELLOW;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10)ANDVOL 2*REF(VOL,1)ANDCLOSE HJZ2ANDC
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4;
STICKLINE(黄金柱,0,V,3,0),COLORRED;
DRAWTEXT(黄金柱,VOL+15000,'黄'),COLORRED;
价涨量缩:|,COLORGREEN;
FLZ:=V REF(V,1)*0.98ANDV REF(V,1)*1.02,LINETHICK0;
STICKLINE(FLZ,0,V,3,0),COLORMAGENTA;
DRAWTEXT(FLZ,VOL+3000,'平'),COLORMAGENTA;
平量柱:FLZ,COLORMAGENTA;
黄金柱(指标副图通达信贴图截图