通达信突破压力线买入源码副图
NK:=SMA(RSVQ,3,1);
NK1:=(NK-50)*5,COLORRED;
NK2:=SMA(NK1,3,1);
ND2:=SMA(NK2,3,1);
NJ2:=3*NK2-2*ND2;
NBB1:=EMA(NJ2,5);
NBB2:=REF(NBB1,1);
买N入:=RR AND NOT(REF(RR,1)) AND (NBB1<-100 AND NBB1<-100) AND CB1<-100;
DRAWICON(买N入,L-0.010,5);
卖N出:=REF(RR,1)=1 AND NOT(RR) AND CB1>100,LINETHICK0;
DRAWICON(卖N出,H+0.01,6);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K11:=SMA(RSV1,5,1);
D11:=SMA(K11,5,1);
J11:=3*K11-2*D11;
AA11:=EMA(J11,5);
AA22:=REF(AA11,1);
RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K22:=SMA(RSV2,3,1);
D22:=SMA(K22,3,1);
J22:=3*K22-2*D22;
BB11:=EMA(J22,5);
BB22:=REF(BB11,1);
DD:=AA11>AA22 AND BB11>BB22;
注意买入:=DD AND NOT(REF(DD,1)) AND (AA11<50 OR BB11<50);
注意卖出:=REF(DD,1)=1 AND NOT(DD);
DRAWICON(注意买入,L-0.010,9);
DRAWICON(注意卖出,H+0.010,10);
STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;
DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));
- 上一篇公式:通达信顶部监测 副图源码
- 下一篇公式:与庄共舞副图、源码、说明