当前位置:首页 > 通达信 > 正文

【通达信免费源码】回马枪公式源码主图逃顶与涨停使用方法

2022-06-23未知 编 辑:掌上指标


使用方法:红箭头是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;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标