通达信量价配合买点--垃圾股也赚钱指标公式通达信公式
2017-08-25 来源:网络 编辑:翔博软件
20,DOTLINE,COLORLIGRAY; 80,DOTLINE,COLORLIGRAY; N:=9; M:=12; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=((3*K)-(2*D));
20,DOTLINE,COLORLIGRAY;
80,DOTLINE,COLORLIGRAY;
N:=9;
M:=12;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3*K)-(2*D));
DRAWBAND(K,100,D,RGB(0,100,0));
DRAWBAND(J,200,K,RGB(0,90,150));
DRAWBAND(IF(J<0,J,0),0,0,200);
DRAWBAND(IF(J>100,J,100),RGB(190,190,0),100,RGB(190,190,0));
DRAWTEXT(REF((J<-5)>0,1) AND (J<-3)=0,2,'买'),COLORYELLOW;
VAR1:=(L+H+C*4)/6;
EMA12:=EMA(VAR1,N);
VAR2:=(EMA12-REF(EMA12,1))/REF(EMA12,1)*100;
G:=BARSLAST(CROSS(VAR2,0))+1;
DL:=V<REF(LLV(V,M),1);
DLZ:=BARSLAST(DL);
LJ:=C<REF(LLV(L,DLZ),1) AND COUNT(V<REF(HHV(V,G),1),5)=5;
DRAWTEXT(J<-1 AND LJ AND VAR2<-1,25,'买'),COLORWHITE;