通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信最强板块指标公式
{1}
W20:=LWINNER(20,C);
WC:=WINNER(C);
{2}
LC:=REF(CLOSE,1);
RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;
WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
活跃度:=RSI5-WR10,LINETHICK0,COLORFFFF00;
SC:=100*(CLOSE-MA(CLOSE,20)),LINETHICK2,COLORRED;
MAO:=EMA(SC,6),LINETHICK2,COLORGREEN;
{3}
A:=C/COST(5);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D,COLORMAGENTA;
X1:=REF(W20,1)<=0.03ORREF(WC,1)<=0.03;
X2:=COUNT(A<=0.95,5)>=1;
X3:=HHV(C,10)/LLV(C,10)>=1.2;
X4:=J<25;
X5:=MACD.MACD>REF(MACD.MACD,1)ANDMACD.MACD<0;
X6:=COUNT((CLOSE<REF(C,1)*0.91ANDH=L),10)<1;
X7:=COUNT((C/REF(C,1)-1)<-0.095,10)<1;
X8:=CROSS(SC,MAO);
X9:=活跃度>0;
XG:X1ANDX2ANDX3ANDX4ANDX5ANDX6ANDX7ANDX8ANDX9;
x1:=15;x2:=180;x3:=350;x4:=520;x5:=680;x6:=850; y1:=9;y2:=120;y3:=250;y4:=380;y5:=510;y6:=640;y7:=770;y8:=900;
DRAWTEXTREL(5,9,'上证:'+NUMTOSTRN(STKINDI('1a0001','涨幅引用.A')*100,2)+'%'),colorb48c33;
DRAWTEXTREL(80,9,'深:'+NUMTOSTRN(STKINDI('993124','涨幅引用.A')*100,2)+'%'),colorb48c33;
IFSTKINDI('991036','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y2,'券 商: '+NUMTOSTRN(STKINDI('991036','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991036','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y2,'券 商: '+NUMTOSTRN(STKINDI('991036','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991028','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y3,'医 药: '+NUMTOSTRN(STKINDI('991028','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991028','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y3,'医 药: '+NUMTOSTRN(STKINDI('991028','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991017','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y4,'银行类: '+NUMTOSTRN(STKINDI('991017','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991017','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y4,'银行类: '+NUMTOSTRN(STKINDI('991017','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991007','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y5,'房地产: '+NUMTOSTRN(STKINDI('991007','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991007','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y5,'房地产: '+NUMTOSTRN(STKINDI('991007','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991034','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y6,'有色金属: '+NUMTOSTRN(STKINDI('991034','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991034','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y6,'有色金属: '+NUMTOSTRN(STKINDI('991034','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991021','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y7,'农林牧渔: '+NUMTOSTRN(STKINDI('991021','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991021','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y7,'农林牧渔: '+NUMTOSTRN(STKINDI('991021','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991035','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x1,y8,'造纸印刷: '+NUMTOSTRN(STKINDI('991035','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991035','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x1,y8,'造纸印刷: '+NUMTOSTRN(STKINDI('991035','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991018','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y1,'旅游酒店: '+NUMTOSTRN(STKINDI('991018','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991018','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y1,'旅游酒店: '+NUMTOSTRN(STKINDI('991018','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991023','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y2,'商业连锁: '+NUMTOSTRN(STKINDI('991023','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991023','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y2,'商业连锁: '+NUMTOSTRN(STKINDI('991023','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991020','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y3,'酿酒食品: '+NUMTOSTRN(STKINDI('991020','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991020','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y3,'酿酒食品: '+NUMTOSTRN(STKINDI('991020','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991008','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y4,'纺织服装: '+NUMTOSTRN(STKINDI('991008','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991008','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y4,'纺织服装: '+NUMTOSTRN(STKINDI('991008','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991006','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y5,'电子信息: '+NUMTOSTRN(STKINDI('991006','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991006','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y5,'电子信息: '+NUMTOSTRN(STKINDI('991006','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991004','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y6,'计算机: '+NUMTOSTRN(STKINDI('991004','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991004','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y6,'计算机: '+NUMTOSTRN(STKINDI('991004','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991026','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y7,'汽车类: '+NUMTOSTRN(STKINDI('991026','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991026','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y7,'汽车类: '+NUMTOSTRN(STKINDI('991026','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991014','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x2,y8,'电 器: '+NUMTOSTRN(STKINDI('991014','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991014','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x2,y8,'电 器: '+NUMTOSTRN(STKINDI('991014','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('993745','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y1,'稀缺资源: '+NUMTOSTRN(STKINDI('993745','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('993745','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y1,'稀缺资源: '+NUMTOSTRN(STKINDI('993745','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991019','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y2,'煤炭石油: '+NUMTOSTRN(STKINDI('991019','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991019','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y2,'煤炭石油: '+NUMTOSTRN(STKINDI('991019','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991009','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y3,'钢 铁: '+NUMTOSTRN(STKINDI('991009','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991009','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y3,'钢 铁: '+NUMTOSTRN(STKINDI('991009','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991024','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y4,'建 材: '+NUMTOSTRN(STKINDI('991024','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991024','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y4,'建 材: '+NUMTOSTRN(STKINDI('991024','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991027','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y5,'机 械: '+NUMTOSTRN(STKINDI('991027','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991027','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y5,'机 械: '+NUMTOSTRN(STKINDI('991027','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991011','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y6,'化工化纤: '+NUMTOSTRN(STKINDI('991011','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991011','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y6,'化工化纤: '+NUMTOSTRN(STKINDI('991011','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991002','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y7,'工程建筑: '+NUMTOSTRN(STKINDI('991002','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991002','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y7,'工程建筑: '+NUMTOSTRN(STKINDI('991002','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991037','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x3,y8,'电力设备: '+NUMTOSTRN(STKINDI('991037','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991037','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x3,y8,'电力设备: '+NUMTOSTRN(STKINDI('991037','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991032','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y1,'教育传媒: '+NUMTOSTRN(STKINDI('991032','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991032','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y1,'教育传媒: '+NUMTOSTRN(STKINDI('991032','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991010','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y2,'供水供气: '+NUMTOSTRN(STKINDI('991010','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991010','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y2,'供水供气: '+NUMTOSTRN(STKINDI('991010','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991033','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y3,'仪电仪表: '+NUMTOSTRN(STKINDI('991033','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991033','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y3,'仪电仪表: '+NUMTOSTRN(STKINDI('991033','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991136','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y4,'运输物流: '+NUMTOSTRN(STKINDI('991136','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991136','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y4,'运输物流: '+NUMTOSTRN(STKINDI('991136','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991016','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y5,'交通设施: '+NUMTOSTRN(STKINDI('991016','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991016','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y5,'交通设施: '+NUMTOSTRN(STKINDI('991016','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991031','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y6,'外 贸: '+NUMTOSTRN(STKINDI('991031','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991031','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y6,'外 贸: '+NUMTOSTRN(STKINDI('991031','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991003','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y7,'电 力: '+NUMTOSTRN(STKINDI('991003','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991003','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y7,'电 力: '+NUMTOSTRN(STKINDI('991003','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
IFSTKINDI('991135','涨幅引用.A')*100>=0THENBEGINDRAWTEXTREL(x4,y8,'通 信: '+NUMTOSTRN(STKINDI('991135','涨幅引用.A')*100,2)+'%'),COLOR7711EE;end;
IFSTKINDI('991135','涨幅引用.A')*100<0THENBEGINDRAWTEXTREL(x4,y8,'通 信: '+NUMTOSTRN(STKINDI('991135','涨幅引用.A')*100,2)+'%'),colorb48c33;end;
指标公式知识:
龙回头战法详细操作方法
龙回头战法:“龙回头”战法大家并不陌生,所谓的“龙回头”就是指主力资金在大幅拉升股票后由于短期获利资金丰厚,股票抛压盘很重,需要通过打压股价达到洗盘效果,为继续拉升股价或出货做准备。
“龙回头”形态技术要点:
1、第一波大幅拉升的股票回调后出现“龙回头”情况往往是一次绝佳机会;
2、介入“龙回头”形态的股价往往是出现明显缩量或股价走势迟钝,回调过程中,主力资金红肥绿瘦形态,说明资金进多出少,龙头人气依然在。
3、“龙回头”股票在回调过程中,如在关键支撑位或重要均线附近止跌,回调到智能辅助线,则可靠性加大;
4、如果一只强势股出现“龙回头”的原因是由于大盘的大幅下跌,这类强势股的可操作性会很好(主力资金未能及时出逃);
5、回调的时间越短越好,幅度也越小越好。
每日通达信公式解答:
编写条件:
连续3个以上跌停的选股公式。
编写方法:
AA:=(C/REF(C,1)-1)*100<-9.5ANDC=L;
XG:EVERY(AA,3)ANDAA;
评论(0)