通達信日BS指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 超買超賣
- 畫線方法: 副圖
- 日期:2023-11-09 來源:互聯網
通達信日BS指標公式:
N:=5;
A0:=(L+H+C*2)/4;
A1:=EMA(A0,N);
A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
{多頭買入}買:IF(A1X>=0 AND REF(A1X,1)<0,1,0),COLOR0000FF,STICK,LINETHICK5;
DRAWTEXT(買>0,1.5,'買'),COLORFFFFFF;
{多頭賣出}賣:IF(A1X<0 AND REF(A1X,1)>=0 ,1,0),COLORDCC705,STICK,LINETHICK5;
DRAWTEXT(賣>0,1.2,'賣'),COLORFFFFFF;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*60;
不貪:CROSS(AAA1-REF(AAA1,1),5),COLOR8080FF,STICK,LINETHICK3;
DRAWTEXT(不貪>0,1.9,'不貪'),COLORFFFFFF;
J1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)),5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)),5,1),3,1);
底買:CROSS(J1,-0.02) OR CROSS(J1,0.03),COLOR00F0F0,STICK,LINETHICK6;
DRAWTEXT(底買>0,1.3,'底買'),COLORFFFFFF;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
底:CROSS(RSI1,25),COLOR00F0F0,STICK,LINETHICK6;
DRAWTEXT(底>0,1.3,'底'),COLORFFFFFF;
KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);
買1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);
買2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
買3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);
買0:=買1+買2+買3;
底背買:IF(買0>1,買0,0),COLOR28FFFF,STICK,LINETHICK1;
DRAWTEXT(底背買>0,1.7,'底背買'),COLORFFFFFF;
D1:=(L+H+C*2)/4;
D2:= MA(D1,4);
D3:=HHV(D2,10);
D4:=MA(D3,3);
D5:=1.25*D4-0.25*D3;
A:=IF(D5>D3,D3,D5);
F1:=LLV(D2,10);
F2:=MA(F1,3); F3:=1.25*F2-0.25*F1;
B:=IF(F3<F1,F1,F3);
MA13:=MA(C,13);
擎天買:CROSS(C,B) AND CROSS(C,MA13) AND CROSS(C,A),COLOR0000FF,STICK,LINETHICK5;
DRAWTEXT(擎天買>0,0.7,'擎天買'),COLORFFFFFF;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:=8,COLORGREEN,LINETHICK0;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盤線:=SMA(V3,2,1);
V5:=SMA(操盤線,2,1);
抄底:IF(操盤線>REF(操盤線,1) AND REF(操盤線,1)<REF(操盤線,2) AND 操盤線<23 ,25,0) AND CROSS(VAR1,VAR2),COLOR00FFFF,STICK,LINETHICK5;
DRAWTEXT(抄底>0,0.5,'抄底'),COLORFFFFFF;
RSV:=(C-LLV(LOW,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
HX:=EMA((VA-VB)/(VC-VB)*100,5);
LX:=EMA(HX,3);
乖離買:CROSS(K,D) AND CROSS(HX,LX),COLOR00FFFF,STICK,LINETHICK5;
DRAWTEXT(乖離買>0,1.5,'乖離買'),COLORFFFFFF;
N1:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
短線持股:C>=MA(C,N1),COLOR0000FF;
通達信日BS指標公式實例圖解:
通達信日BS指標公式