以下是通达信3个副图叠加合并成一个副图
3个副图叠加合并成一个副图:
{1副图}
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000,POINTDOT;
STICKLINE(控盘<0,控盘,0,2,0),COLORWHITE;
无庄控盘:控盘<0,COLORWHITE;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,2,1),COLORRED;
有庄控盘: 控盘>REF(控盘,1) AND 控盘>0,COLORRED;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,2,0),COLOR00FF00;
主力出货: 控盘<REF(控盘,1) AND 控盘>0,COLOR00FF00;
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,2,0),COLORFF00FF;
高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLORFF00FF;
B10:=CROSS(控盘,0);
开始控盘:IF(B10,3,0),COLORYELLOW;
VR:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(VR,0);
DRAWTEXT(A10,-3,'起'),COLORYELLOW;
VAR9:=EMA(100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,33)),20);
VARA:=EMA(VAR9,1);
VARB:=VOL/CAPITAL*100;
VARC:=SUM(VARB,5)>=3;
VARD:=VARC/REF(VARB,10)>=2;
VARE:=HHV(CLOSE,5);
VARF:=VARE/REF(CLOSE,5)>=1.01;
VAR10:=VARA > 20;
VAR11:=HIGH/REF(LOW,20) ;
VAR12:=WINNER(CLOSE)*100;
VAR13:=VARC AND VAR10 AND VARD AND VAR11 AND VARF;
VAR14:=FILTER(VAR13,20);
DRAWTEXT(VAR14,-3,'有主力活动迹象'),LINETHICK1,COLORMAGENTA;
{2副图}
VA1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VA2:=EMA(VA1,8);
VA3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA
(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势:EMA(VA3,3)-10,COLORFF0000;
A1:IF(趋势>76,趋势,80),COLORYELLOW;
DRAWICON(CROSS(趋势,0),0,1);
建仓:=0,COLORFFFF00;
VA4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
STICKLINE(趋势<=4,0,20,5,0),COLORCC9900;
DRAWTEXT(FILTER(趋势<=4,15),30,'建仓区'),COLORWHITE;
STICKLINE(趋势>=90 AND VA4,0,30,5,0),COLORGRAY;
VA5:=MA(趋势,8);
A2:IF(CROSS(VA2,VA5) AND VA2<15,10,0),COLORRED;
{3副图}
VR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VR2:=SMA(VR1,3,1);
VR3:=SMA(VR2,3,1);
VR4:=SMA(VR3,3,1);
0,COLORYELLOW;90,COLORGREEN;
VR6:=CROSS(VR3,VR4) AND VR3<20;
STICKLINE(FILTER(VR6,10)=1,0,90,2,0),COLORRED;
DRAWTEXT(FILTER(VR6,10)=1,79,' 底'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VR6,10)=1,67,' 部'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VR6,10)=1,55,' 信'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(VR6,10)=1,43,' 号'),LINETHICK1,COLOR00AAFF;
VR7:=CROSS(VR4,VR3) AND VR3>80;
STICKLINE(FILTER(VR7,5)=1,0,90,2,0),COLORGREEN ;
DRAWTEXT(FILTER(VR7,5)=1,79,' 顶'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VR7,5)=1,67,' 部'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VR7,5)=1,55,' 信'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(VR7,5)=1,43,' 号'),LINETHICK1,COLORFFCC66;
BAR1:=REF(LOW,1);
BAR2:=SMA(ABS(LOW-BAR1),13,1)/SMA(MAX(LOW-BAR1,0),13,1)*4;
BAR3:=EMA(BAR2,13);
BAR4:=LLV(LOW,34);
BAR5:=EMA(IF(LOW<=BAR4,BAR3,0),3);
BAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
BAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
BAR8:=BAR6<REF(BAR7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,62,'主'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,50,'力'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,38,'进'),COLORFF00FF;
DRAWTEXT(BAR8 AND COUNT(BAR8,30)=1,26,'场'),COLORFF00FF;