以下是通达信三图叠加源码

VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;

VAR2:=SMA(VAR1,3,1);      

VAR3:=SMA(VAR2,3,1);

VAR4:=SMA(VAR3,3,1);

0,COLORYELLOW;90,COLORGREEN;

VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;

STICKLINE(FILTER(VAR6,10)=1,0,90,2,0),COLORRED;

DRAWTEXT(FILTER(VAR6,10)=1,79,’ 底’),LINETHICK1,COLOR00AAFF;

DRAWTEXT(FILTER(VAR6,10)=1,67,’ 部’),LINETHICK1,COLOR00AAFF;

DRAWTEXT(FILTER(VAR6,10)=1,55,’ 信’),LINETHICK1,COLOR00AAFF;

DRAWTEXT(FILTER(VAR6,10)=1,43,’ 号’),LINETHICK1,COLOR00AAFF;

VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;

STICKLINE(FILTER(VAR7,5)=1,0,90,2,0),COLORGREEN ;

DRAWTEXT(FILTER(VAR7,5)=1,79,’ 顶’),LINETHICK1,COLORFFCC66;

DRAWTEXT(FILTER(VAR7,5)=1,67,’ 部’),LINETHICK1,COLORFFCC66;

DRAWTEXT(FILTER(VAR7,5)=1,55,’ 信’),LINETHICK1,COLORFFCC66;

DRAWTEXT(FILTER(VAR7,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;

VAR11:=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);

VAR12:=EMA(VAR1,8);

VAR13:=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(VAR3,3)-10,LINETHICK2,COLOR0000FF;

A1:IF(趋势>76,趋势,80),COLORYELLOW;

DRAWICON(CROSS(趋势,0),0,1);

建仓:=0,COLORFFFF00;

VAR14:=(趋势-REF(趋势,1))/REF(趋势,1)*100;

STICKLINE(趋势<=4,0,20,5,0),COLORCC9900;

DRAWTEXT(FILTER(趋势<=4,15),30,’建仓区’),COLORWHITE;

STICKLINE(趋势>=90 AND VAR4,0,30,5,0),COLORGRAY;

VAR5:=MA(趋势,8);

A2:IF(CROSS(VAR2,VAR5) AND VAR2<15,10,0),COLORRED;

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。