同花顺长线吃肉指标公式

[复制链接]
查看137 | 回复0 | 2021-8-20 21:36:03 | 显示全部楼层 |阅读模式

N:=13;
M5:=MA(C,5);
M13:=MA(C,13);
M21:=MA(C,21),LINETHICK1;
MA55:EMA(C,55),LINETHICK0;
MA89:EMA(C,89),LINETHICK0;
MA144:EMA(C,144),LINETHICK0;
MA233:=EMA(C,233),colorred,LINETHICK0;
A:MAX(MAX(MAX(MA55,MA89),MA144),MA233),LINETHICK1,COLOR80FFFF;
B:MIN(MIN(MIN(MA55,MA89),MA144),MA233),LINETHICK1,COLOR80FFFF;
粘合:=(A-B)/B*100,NODRAW,COLOR80FFFF;
多头:=A>REF(A,1) AND B>REF(B,1),NODRAW,colorred ;
S头:=A<REF(A,1) OR B<REF(B,1),NODRAW,colorred ;
STICKLINE(多头,A,B,4,0),COLOR8080FF;
STICKLINE(S头,A,B,4,0),COLORFFFF00;
IF(A>REF(A,1) ,A,DRAWNULL),colorred,LINETHICK2;
IF(B>REF(B,1) ,B,DRAWNULL),colorred,LINETHICK2;
SR1:=C=HHV(C,N);
SR2:=BACKSET(SR1,N);
HD:=FILTER(SR2,N);
前高:=REF(C,BARSLAST(HD));
倍量:=VOL/REF(VOL,1)>=1.9;
SR4:=V=HHV(V,N);
SR5:=BACKSET(SR4,N);
HD1:=FILTER(SR5,N);
前高量:=REF(V,BARSLAST(HD1));
突破前高:=CROSS(C,前高);
突破前高量:=CROSS(V,前高量);
选股:= 突破前高 AND 突破前高量 AND 多头;
A1:=CROSS(M5,M13) OR CROSS(M5,M21);
A2:=CROSS(M13,M5);
A3:=COUNT(A1 OR A2,8)>1 AND A1;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2,COLORSTICK;
A4:=BARSLAST(CROSS(DIFF,DEA));
空中:=A3 AND CROSS(CCI,100) AND (RANGE(A4,0,4) OR CROSS(DIFF,DEA)) AND 多头;
DRAWTEXT(空中,H,'空中'),colorred;
DRAWTEXT(选股,H,'突破'),colorred;
STICKLINE(选股,A,C,0,0),colorred;
STICKLINE(空中,A,C,0,0),colorred;

202108202133.jpg

202108202133.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则