走停版日线主图+macd+kdj主图 通达信选股指标 副图 源码 贴图
MA1:=MA(CLOSE,M1);
MA2:MA(CLOSE,M2),COLOR40FF00;
MA3:MA(CLOSE,M3),COLORFF00FF,DOTLINE;
MA4:MA(CLOSE,M4),COLORFF8080,LINETHICK2;
MA250:=MA(C,250);
跌穿250:=CROSS(MA250,C);
{年线之下天数:BARSLAST(跌穿250),NODRAW;}
C2:=REF(C,1),NODRAW;
涨停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORFF0000;
STICKLINE(跌停,H,L,0,0),COLORFF0000;
所属地域:DRAWTEXT_FIX(ISLASTBAR ,0.93,0,1,DYBLOCK),COLORWHITE;
所属行业:DRAWTEXT_FIX(ISLASTBAR ,0.89,0,1,HYBLOCK),COLORWHITE;
所属概念:DRAWTEXT_FIX(ISLASTBAR ,0.85,0,1,GNBLOCK),COLORWHITE;
SSTS:=STRCAT(CON2STR(FINANCE(42)/1,0),'天');
LTSZ:=STRCAT(CON2STR(FINANCE(40)/100000000,0),'亿');
YSTB:=STRCAT(CON2STR(FINANCE(44)/1,2),'%');
LRTB:=STRCAT(CON2STR(FINANCE(43)/1,2),'%');
DRAWTEXT_FIX(1,0.02,0,0,'上市:'),COLORWHITE;
DRAWTEXT_FIX(1,0.04,0,0,SSTS),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0,0,'流通市值:'),COLORWHITE;
DRAWTEXT_FIX(1,0.12,0,0,LTSZ),COLORWHITE;
DRAWTEXT_FIX(1,0.16,0,0,'营收同比:'),COLORWHITE;
DRAWTEXT_FIX(1,0.20,0,0,YSTB),COLORWHITE;
{macdkdj}:
周DI:(EMA(CLOSE,60)-EMA(CLOSE,130)),NODRAW;
周DE:EMA(周DI,25),NODRAW;
周DIF:=20*周DI;
周DEA:=20*周DE;
DRAWBAND(周DIF,RGB(139,0,139),周DEA,RGB(0,100,50));
XG2:=CROSS(周DEA,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*40,COLORSTICK;
DIFF:20*DIF,COLORWHITE;
DEAA:20*DEA,COLORYELLOW;
DRAWICON(XG2,2*DEAA,42);DRAWTEXT(XG2,2*DIFF,'周');
MACD250:=REF(MACD,BARSLAST(MACD=HHV(MACD,250))),COLORA00000,DOTLINE;
XG:=NOT(REF(MACD250,1)=MACD250);
STICKLINE(XG,0,MACD,1,0),COLORYELLOW;
周MACD:(周DIF-周DEA)*2,COLORSTICK,NODRAW;
MA250:=MA(C,250);
DRAWICON(周DIF>=0 AND CROSS(DIF,DEA) AND C>=MA250,2,11);
{跌穿250:=CROSS(MA250,C);
年线之下天数:BARSLAST(跌穿250),NODRAW;}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1)COLORYELLOW;
D:=SMA(K,3,1),COLORBLUE;
J:=3*K-2*D,COLORWHITE;
月N:=DAY;
月HIGH:=IF(DAY=月N,HHV(H,30),0);
月LOW:=IF(DAY=月N,LLV(L,30),0);
月CLOSE:=IF(DAY=月N,CLOSE,0);
月RSV:=(月CLOSE-LLV(月LOW,72))/(HHV(月HIGH,72)-LLV(月LOW,72))*100;
月K:=SMA(月RSV,3,1),COLORWHITE ;
月D:=SMA(月K,3,1),COLORYELLOW ;
月J:=3*月K-2*月D ;
{DRAWBAND(月K,RGB(255,0,0),月D,RGB(0,0,250));}
周N:=WEEKDAY;
周HIGH:=IF(WEEKDAY=周N,HHV(H,4),0);
周LOW:=IF(WEEKDAY=周N,LLV(L,4),0);
周CLOSE:=IF(WEEKDAY=周N,CLOSE,0);
周RSV:=(周CLOSE-LLV(周LOW,45))/(HHV(周HIGH,45)-LLV(周LOW,45))*100;
周K:=SMA(周RSV,3,1),COLORWHITE ;
周D:=SMA(周K,3,1),COLORYELLOW ;
周J:=3*周K-2*周D,COLORFFFFFF ;
{DRAWBAND(周K,RGB(255,255,0),周D,RGB(0,100,200));}
D1:=1;
{15,POINTDOT,COLOR00FF00;}
B:=C-MA250;
DRAWICON((B>=0 AND CROSS(J,K) AND 月D>=50 AND 周D>=20 AND DIFF>=0),0,1);
郑重声明:股市具有不确定性,个股走势是无法预测的。公式软件描述中的案例截图仅代表过去,仅供参考学习研究之用,不构成投资建议或未来保证,也并不能代表未来,依此操作,责任自负。股市有风险,入市需谨慎。
指标公式评论
(走停版日线主图+macd+kdj主图 通达信选股指标 源码 贴图)