同花顺超准买卖公式
1.指标 80 时,回档机率大;指标 20 时,反弹机率大;
2.K在20左右向上交叉D时,视为买进信号参考;
3.K在80左右向下交叉D时,视为卖出信号参考;
4.SKDJ波动于50左右的任何讯号,其作用不大。
源码
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M);
顶线:80,colorgreen,Linethick2;
中线: 50,colorred;
底线:20,colorwhite;
RSV:= (C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
FASTK:=SMA(RSV,3,1);
Y1A:=((SMA(FASTK,3,1))/2+40)*1.1;
线上牛:SMA(Y1A,3,1),colorwhite;
RSV1:= (HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))*100;
Y2A:=(SMA(RSV1,3,1)/2)*1.1;
线下熊:SMA(Y2A,3,1),colorgreen;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH LOW+0.04,4,0);
VAR11:=ZIG(3,6) REF(ZIG(3,6),1) AND REF(ZIG(3,6),1) =REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR12:=ZIG(3,6) REF(ZIG(3,6),1) AND REF(ZIG(3,6),1) =REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR13:=ZIG(3,22) REF(ZIG(3,22),1) AND REF(ZIG(3,22),1) =REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR14:=ZIG(3,22) REF(ZIG(3,22),1) AND REF(ZIG(3,22),1) =REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR15:=ZIG(3,51) REF(ZIG(3,51),1) AND REF(ZIG(3,51),1) =REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR16:=ZIG(3,51) REF(ZIG(3,51),1) AND REF(ZIG(3,51),1) =REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR17:=ZIG(3,72) REF(ZIG(3,72),1) AND REF(ZIG(3,72),1) =REF(ZIG(3,72),2) AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3);
DRAWTEXT(VAR17,20.3,'★发现黑马'), COLORFF6600;
V9:=TROUGHBARS(3,15,1) V11:=IF(V9=1,50,0);
底部:= IF(V11=50,50,0);
V10:=PEAKBARS(3,15,1) V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
V6:=CLOSE/REF(CLOSE,2) =1.1;
V7:=BACKSET(V6,2);
买:IF((V7 AND COUNT(V7,3)=1),50,0),colormagenta,LINETHICK2;
头部:= IF(V12=50,100,0);
卖:IF(头部 REF(头部,1),50,0),colorgreen,LINETHICK2;DRAWTEXT(卖,50,'高顶出货 '),colorgreen;
底部:= IF(V11=50,50,0);
买:IF( 底部 REF(底部,1),25,0),coloryellow,LINETHICK3; DRAWTEXT(买,25,'主力抄底 '),coloryellow;
VAR8:=VOL 2*MA(VOL,30);
VARB:=CLOSE MA(CLOSE,30) AND CLOSE MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARE:=0- MACD.DIFF (7,21,3);
VARF:=TROUGHBARS(3,15,1)
VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
STICKLINE(FILTER(VARF=1,5),50,0,8,0),coloryellow;
DRAWTEXT(FILTER(VARF=1,3),20,'大黑马★'),colorred ;
N:=5;
C0:=(H+L+C)/3;
a1:=HHV(C0,n);
a2:=LLV(C0,n);
a3:=a1-a2;
a4:=EMA((C0-a2)/a3,2)*100;
b1:=HHV(C0,4*n);
b2:=LLV(C0,4*n);
b3:=b1-b2;
b4:=EMA((C0-b2)/b3,2)*100;
C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;
C4:=EMA((C0-C2)/C3,2)*100;
j:a4,colorred,linethick2;
VARC:=(ZIG(3,6) =REF(ZIG(3,6),1)) AND (REF(ZIG(3,6),1) =REF(ZIG(3,6),2)) AND (REF(ZIG
(3,6),2) =REF(ZIG(3,6),3))AND (REF(ZIG(3,6),3) =REF(ZIG(3,6),4));
VARD:=(ZIG(3,6) =REF(ZIG(3,6),1)) AND (REF(ZIG(3,6),1) =REF(ZIG(3,6),2)) AND (REF(ZIG
(3,6),2) =REF(ZIG(3,6),3))AND (REF(ZIG(3,6),3) =REF(ZIG(3,6),4));
DRAWTEXT((VARC=1),(18),'★短买一分钟线一定要买'),Color0000FF;
DRAWTEXT((VARD=1),88,'★短卖一分钟线一定要卖'),Color00FF00;