大智慧成交均量副图指标
源码
input:M1(5,1,10,1),M2(20,10,60,1),N(4,1,10);
成交:=VOL;
均量3:MA(VOL,3),LAYER0,ColorYELLOW,LINETHICK2;
均量5:=MA(VOL,M1);
均量20:MA(VOL,M2),LAYER0,colorGREEN,LINETHICK2;
均量50:MA(VOL,50),COLORRED,LAYER0,LINETHICK2;
HS:=V/CAPITAL*100;
放量:=IF(CROSS(HS,N),1,0);
DRAWICON(放量 AND CROSS(均量5,均量20) and 均量3>ref(均量3,1) ,vol,12),colorYELLOW,ALIGN1,VALIGN1,LINETHICK1;
JV:=(OPEN+CLOSE+HIGH+LOW)/4;
JG:=AMOUNT/VOL/100;
均价5:MA(JG,5),colorred;
均价20:MA(JG,20),colorff00ff;
持股:STICKLINE(均价20<JV and 均价5<JV,0,V,8,0),colorred;
STICKLINE(均价20< JV and 均价5<JV,0,V,8,0 ),Color041CEC;
STICKLINE(均价20< JV and 均价5<JV,0,V,6.6,0 ),Color0F26FB;
STICKLINE(均价20< JV and 均价5<JV,0,V,4.4,0 ),Color2439FB;
STICKLINE(均价20< JV and 均价5<JV,0,V,2.2,0 ),Color485AFB;
STICKLINE(均价20< JV and 均价5<JV,0,V,1,0 ),Color6473FB;
持币:STICKLINE(均价20>JV and 均价5>JV,0,V,8,0),COLORFF7700;
STICKLINE(均价20>JV and 均价5>JV,0,V,6.6 ,0 ),COLORFF8811;
STICKLINE(均价20>JV and 均价5>JV,0,V,4.4,0 ),COLORFFAA22;
STICKLINE(均价20>JV and 均价5>JV,0,V,3.3,0 ),COLORFFBB33;
STICKLINE(均价20>JV and 均价5>JV,0,V,2 ,0 ),COLORFFDD44;
STICKLINE(均价20>JV and 均价5>JV,0,V,0.8 ,0 ),COLORFFEE55;
警戒:STICKLINE(均价20<JV and 均价5>JV,0,V,6,0),colorBB11AA;
STICKLINE(均价20<JV and 均价5>JV,0,V,8,0 ),COLORBB11BB;
STICKLINE(均价20<JV and 均价5>JV,0,V,6.6,0 ),COLORBB11AA;
STICKLINE(均价20<JV and 均价5>JV,0,V,4.4,0 ),COLORCC22BB;
STICKLINE(均价20<JV and 均价5>JV,0,V,3.3,0 ),COLORDD33BB;
STICKLINE(均价20<JV and 均价5>JV,0,V,2,0 ),COLOREE44BB;
STICKLINE(均价20<JV and 均价5>JV,0,V,0.8,0 ),COLORFF55BB;
关注:STICKLINE(均价20>JV and 均价5<JV,0,V,6,0),color00BBFF;
STICKLINE(均价20>JV and 均价5<JV,0,V,8,0),COLOR00AAFF;
STICKLINE(均价20>JV and 均价5<JV,0,V,4.4,0),COLOR00CCFF;
STICKLINE(均价20>JV and 均价5<JV,0,V,3.3,0),COLOR00DDFF;
STICKLINE(均价20>JV and 均价5<JV,0,V,2,0),COLOR00EEFF;
STICKLINE(均价20>JV and 均价5<JV,0,V,1.1,0),COLOR00FFFF;
今天成交额:=AMOUNT/10000;
昨天成交额:=REF(今天成交额,1);
图长度像素:=800*0.4;
昨天图长度:=180+图长度像素;
交易分钟数:=if(CURRENTTIME>93000 and CURRENTTIME<150000 and DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,
if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
预测今天:=今天成交额/交易分钟数*240;
今天图长度:=(预测今天/昨天成交额)*图长度像素+180;
目前成交量:=(今天成交额/昨天成交额)*图长度像素+180;
DRAWTEXTABS(5,25,'昨天金额:'+昨天成交额+'万元'),Color00FFFF,LINETHICK2;
DRAWRECTABS(180,25,昨天图长度,40 ,RGB(0,255,0) ),Color6699FF;
DRAWTEXTABS(5,45,'预计今天:'+预测今天+'万元'),Color2F73FF,LINETHICK2;
DRAWRECTABS(180,45,今天图长度, 60 ,0 ),ColorFFFFFF;
DRAWRECTABS(180,45,目前成交量, 60 ,RGB(200,60,0) ),ColorFFFFFF;
Y1:=(2*CLOSE+HIGH+LOW)/4;
Y2:=LLV(LOW,21);
Y3:=HHV(HIGH,27);
KK:EMA((Y1-Y2)/(Y3-Y2)*100,5);
DD:EMA((0.657*REF(KK,1)+0.333*KK),3);
结束洗盘:IF(CROSS(KK,DD) AND DD<10,38,0);
DRAWTEXT(结束洗盘,38,'★'),COLORwhite;