以下是通达信逃顶涨停主图源码

使用方法:红箭头是rsi上穿买点,上行趋势加仓,下行趋势做短或者忽略,绿色箭头rsi下穿100或者逃顶标识卖出、涨停板加亮显示更直观。

源码:涨停:=IF(REF(C,1)*1.1-C<0.2 ,1,0);
 STICKLINE(涨停,OPEN,CLOSE,4,2),COLORRED;
 STICKLINE(涨停,OPEN,CLOSE,0.8,0),COLORYELLOW;
 STICKLINE(涨停,H,L,0,0),COLORYELLOW;
 ZT:=C/REF(C,1)>1.095;
 STICKLINE(MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND ZT,O,C,0.6,0),COLORYELLOW;
 STICKLINE(MA(CLOSE,5)<=REF(MA(CLOSE,5),1) AND ZT,O,C,0.6,0),COLORRED;
 VAR6:=REF(C,1);
 VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
 DRAWTEXT(CROSS(82,VAR7),H*1.02,’逃顶’),COLORYELLOW;
 N:=9;
 M1:=3;
 M2:=3;
 RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,NODRAW;
 K:=SMA(RSV,M1,1),NODRAW;
 D:=SMA(K,M2,1),NODRAW;
 J:=3*K-2*D,NODRAW;
 CJ_K:=MA(K,15),LINETHICK2,NODRAW;
 CJ_D:=MA(D,15),LINETHICK2,NODRAW;
 CJ_J:=MA(J,15),LINETHICK2,NODRAW;
 DRAWICON(CROSS(CJ_K,CJ_D)&&CJ_D<30,L*0.92,11);
 DRAWICON(CROSS(CJ_D,CJ_K)&&CJ_D>70,H*1.05,12);
 DRAWICON(CROSS(CCI,-100),L*0.98,1);
 DRAWICON(CROSS(CCI,0),L*0.98,1);
 DRAWICON(CROSS(CCI,100),L*0.98,1);
 DRAWICON(CROSS(100,CCI),H*1.02,2);
 {DRAWICON(CROSS(50,CCI),H*1.02,12);};
 PT1:=CONST(HHV(H,20))/1.2;
 IF(CURRBARSCOUNT<=10,PT1,DRAWNULL),COLORGREEN;
 DRAWTEXT(ISLASTBAR,PT1,’回马枪观测’),COLORWHITE;
 PT2:=CONST(HHV(H,10))/1.2;
 IF(CURRBARSCOUNT<=10,PT2,DRAWNULL),COLORGREEN;
 DRAWTEXT(ISLASTBAR,PT2,’回马枪观测’),COLORWHITE;

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