今天分享一个首版指标公式,废话不多说,直接上干货。如果对您有帮助或对指标公式有研究的欢迎留言评论!
DIF:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA:=EMA(DIF,12);
E24:=EMA(C,24);
LC:=REF(C,1);
{IK}
W30:=C>REF(C,1) AND 100*WINNER(C)-REF(100*WINNER(C),1)>=30;
W50:=C>REF(C,1) AND 100*WINNER(C)-REF(100*WINNER(C),1)>=50;
D30:=BARSLAST(W30);
D301:=BARSLAST(W30)-1;
{战法}
F3L:=EVERY(CREF(C,1) AND C>O AND L=HHV(MAX(O,C),30) AND WINNER(C)*100>85 AND W30 AND C=H AND REF(C,1)=ZTP
RICE(REF(C,1),0.05) AND S3;
SIK5:=REF(D30,1)=HHV(MAX(O,C),30) AND WINNER(C)*100>85 AND W50 AND C=H AND REF(C,1)=ZTPRICE(REF(C,1),0.05) AND S3;
{上标}
总涨:"SZ399001$ADVANCE"+"SH999999$ADVANCE",COLORRED,NODRAW;
总跌:"SZ
399001$DEC
LINE"+"SH999999$DECLINE",COLORBROWN,NODRAW;
涨占比%:总涨/(总涨+总跌)*100,COLORRED,NODRAW;
涨停数:SCJY
VALUE(3,1,0),COLORRED,NODRAW;
跌停数:SCJYVALUE(4,1,0),COLORBROWN, NODRAW;
{K线优化}
STICKLINE(W30,H,L,0,1), COLORRED;
STICKLINE(W30,O,C,3,1), COLORRED;
STICKLINE(W30 AND F3,H,L,0,0), COLORRED;
STICKLINE(W30 AND F3,O,C,3,0), COLORRED;
STICKLINE(SIK3,H,L,0,0), COLORRED;
STICKLINE(SIK3,O,C,3,0), COLORRED;
{BUY(SIK3,EMA(C,24));}
STICKLINE(W50,H,L,0,1), COLORMA
GENTA;
STICKLINE(W50,O,C,3,1), COLORM
AGENTA;
STICKLINE(W50 AND F3,H,L,0,0), COLORMAGENTA;
STICKLINE(W50 AND F3,O,C,3,0), COLORMAGENTA;
STICKLINE(SIK5,H,L,0,0),COLORMAGENTA;
STICKLINE(SIK5,O,C,3,0),COLORMAGENTA;
{均线}
均线:EMA(C,24),COLORMAGENTA;
获利盘%:WINNER(C)*100,COLORRED,NODRAW;
N
OTEXTE24:IF(EMA(C,24)REF(E24,1) AND DIFREF(DIF,1),E24,DRAWNULL)COLORRED,DOTLINE;
{行业概念标识}
HYDY:=STRCAT(HYBLOCK,STRCAT(‘ / ‘,DYBLOCK));
DRAWTEXT_FIX(1,0,0,0,IF(CCT=1,STRCAT(‘行业/地域:‘,HYDY),DRAWNULL)),COLORRED;
DRAWTEXT_FIX(1,0.13,0,0,IF(CCT=1,STRCAT(‘系统概念:‘,GNBLOCK),DRAWNULL)),COLORRED;
{L1:=(WINNER(C*1.09)-WINNER(C))*100>30;
L2:=C*1.05>EMA(C,24) AND C=REF(DIF,1) AND VE24 OR L4=L5 AND C>E24,E24);};