RSI暴漲買點指標 通達信公式源碼(附圖)
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
賣點:CROSS(85,RSI1)*10,COLOR00FF00,LINETHICK2;
賣:IF(賣點,5,0),STICK,COLORGREEN,LINETHICK4;
洗錢A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
量1:=EMA(洗錢A,3);
量2:=EMA(洗錢A,5);
量3:=EMA(洗錢A,7);
STICKLINE(量1>量2,量3,量1,3,1),COLORRED;
STICKLINE(量1<量2,量3,量1,2,0),COLORCYAN;
T1:=量2>量3 AND 量1
T2:=量2<量3 AND 量1>REF(量1,1);
STICKLINE(T1,量1,量3,2,0),COLORYELLOW;
STICKLINE(T2,量1,量3,3,1),COLORFF00FF;
洗錢B:=SMA(洗錢A,13,1);
分水嶺:SMA(洗錢B,2.5,1.5),LINETHICK2,COLORWHITE;
牛線:3*洗錢B-2*分水嶺,LINETHICK2,COLORFF00FF ;
熊線:4*分水嶺-3*洗錢B,LINETHICK2,COLORFF6633;
TT:=CROSS(分水嶺 ,熊線);
TY:=CROSS(牛線 ,分水嶺);
黃金買點:IF((TT AND TY),5,0),coloryellow,LINETHICK2;
AA:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
GG:=ALL(AA>=-0.03,5);
SS:=ALL(AA<=0.03,5);
QQ:=IF((GG AND SS),1,0);
暴漲買點:IF((黃金買點 AND QQ),10,0),colorred,LINETHICK4;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
STICKLINE(VAR8,0,VAR8,10,15),color000999;
主力入貨:(VAR8),color000999;