通达信简单好用一直在用的一个指标公式

[复制链接]
查看58 | 回复0 | 2021-8-20 02:37:18 | 显示全部楼层 |阅读模式

以下是通达信简单好用一直在用的一个指标公式(无源码的请下载附件导入)

{简单好用}
建仓区: IF((EMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,34)-LLV(LOW,27))*4,4)*25<10),10,15),COLORDB7093,LINETHICK3;
昨开:CONST(REF(O,1)),NODRAW;
昨收:CONST(REF(C,1)),NODRAW;
获利比%:WINNER(CLOSE)*100,NODRAW,COLORRED;
 TYP:=(OPEN+CLOSE*2+HIGH+LOW)/5;
突破:(TYP+HIGH-LOW),COLORYELLOW,NODRAW;
阻力:TYP*2-LOW,COLORRED,NODRAW;
支撑:TYP*2-HIGH,COLORCYAN,NODRAW;
下降:TYP-HIGH+LOW,COLORMAGENTA,NODRAW;
保护价:(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3,COLORYELLOW,NODRAW;
 {简单好用}
 {LC:=REF(CLOSE,1);
猎杀:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
抄底:=15;
选股:CROSS(猎杀,抄底);}
LC:=REF(CLOSE,1);
猎杀:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORFFFFFF,LINETHICK2;
逃顶线:77,COLOR00FFFF;
警戒线:75,COLOR00FF00;
抄底:15,COLORGREEN;
 DRAWICON(CROSS(猎杀,抄底),抄底,1);
 DRAWICON(CROSS(逃顶线,猎杀),逃顶线,2);
 DRAWICON(CROSS(猎杀,警戒线),警戒线,15);
 {绝佳买点}
VARF1:=MA(HHV(HIGH,485),17);
 VARF2:=MA(HHV(HIGH,222),17);
 VARF3:=MA(HHV(HIGH,96),17);
 VARF4:=MA(LLV(LOW,485),17);
 VARF5:=MA(LLV(LOW,222),17);
 VARF6:=MA(LLV(LOW,96),17);
 VARF7:=MA((VARF4*0.96+VARF5*0.96+VARF6*0.96+VARF1*0.558+VARF2*0.558+VARF3*0.558)/6,17);
 VARF8:=MA((VARF4*1.25+VARF5*1.23+VARF6*1.2+VARF1*0.55+VARF2*0.55+VARF3*0.65)/6,17);
 VARF9:=MA((VARF4*1.3+VARF5*1.3+VARF6*1.3+VARF1*0.68+VARF2*0.68+VARF3*0.68)/6,17);
 VARFA:=MA((VARF7*3+VARF8*2+VARF9)/6*1.738,17);
 VARFB:=IF(C=C,VARFA,VARFA*DAY);
 VARFC:=LOW;
 VARFD:=REF(LOW,1);
 VARFE:=SMA(ABS(VARFC-VARFD),3,1)/SMA(MAX(VARFC-VARFD,0),3,1)*100;
 VARFF:=MA(IF(CLOSE*1.35<=VARFB,VARFE*10,VARFE/10),3);
 VARF10:=LLV(LOW,30);
 VARF11:=HHV(VARFF,30);
绝佳买点:IF(C=C,MA(IF(LOW<=VARF10,(VARFF+VARF11*2)/2,0),3),100000000)/(1200),COLORCYAN,LINETHICK2;

{双手}
双手:=CROSS(C,MA((MA(CLOSE,3)+MA(CLOSE,2*3)+MA(CLOSE,3*3)+MA(CLOSE,4*3))/4,5)*1.05)AND C/REF(C,1)>1.085;
又双手:=CROSS(C,MA((MA(CLOSE,3)+MA(CLOSE,2*3)+MA(CLOSE,3*3)+MA(CLOSE,4*3))/4,5)*1.08)AND C/REF(C,1)>1.085;
 DRAWICON(双手,3,11);
 DRAWICON(又双手,0,11);
 DRAWTEXT(O=H AND (O-C)>(C-L) AND (REF(O,1)-REF(C,1))/REF(C,1)*100>5,LOW*0.986,'↑大阴光头'),COLORYELLOW;
 {洗盘结束}
DRAWTEXT(FILTER(IF(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1)*10.9<=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1) AND EMA(IF(LOW<=LLV(LOW,34),MA((SMA(ABS(LOW-REF(LOW,1)),13,1))/(SMA(MAX(LOW-REF(LOW,1),0),13,1))*100,13),0),3)>REF(EMA(IF(LOW<=LLV(LOW,34),MA((SMA(ABS(LOW-REF(LOW,1)),13,1))/(SMA(MAX(LOW-REF(LOW,1),0),13,1))*100,13),0),3),1),EMA(IF(LOW<=LLV(LOW,34),MA((SMA(ABS(LOW-REF(LOW,1)),13,1))/(SMA(MAX(LOW-REF(LOW,1),0),13,1))*100,13),0),3)*8,0),20),LOW-0.4,'↑洗盘结束'),COLORFF00FF;
 DRAWTEXT((MA(C,5)/L)>1.11,LOW-0.20,'↑超跌'),COLORGREEN;
 {出货}
HHH:=CROSS(C,MA(L+(H-L)/2,25)*0.95);LLL:=CROSS(MA(L+(H-L)/2,25)*0.95,C);
 CCC:=CROSS(H,MA(L+(H-L)/2,25)*1.15);DDD:=CROSS(H,MA(L+(H-L)/2,25)*1.25);
 DRAWTEXT(CCC AND MA(L+(H-L)/2,75)>=REF(MA(L+(H-L)/2,75),1),78,'卖了'),COLOR6699FF;
 DRAWTEXT(DDD AND MA(L+(H-L)/2,75)>=REF(MA(L+(H-L)/2,75),1),80,'逃顶'),COLOR6699FF;
 DRAWTEXT(CCC AND MA(L+(H-L)/2,75)<=REF(MA(L+(H-L)/2,75),1),80,'逃命'),COLOR6699FF;
 {行业}
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:'),COLORFF60FF;
 DRAWTEXT_FIX(1,0.14,0,0,HYBLOCK),COLORFF60FF;
 DRAWTEXT_FIX(1,0.30,0,0,'所属地区:'),COLOR6F59FF;
 DRAWTEXT_FIX(1,0.44,0,0,DYBLOCK),COLOR6F59FF;
 DRAWTEXT_FIX(1,0.00,0.04,0,'出千概念:'),COLORFF972F;
 DRAWTEXT_FIX(1,0.14,0.04,0,EXTERNSTR(0,3)),COLORFF972F;
 DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:'),COLOR34A6FA;
 DRAWTEXT_FIX(1,0.14,0.08,0,EXTERNSTR(0,2)),COLOR34A6FA;
 DRAWTEXT_FIX(1,0.00,0.12,0,'主题概念:'),COLOR00FFFF;
 DRAWTEXT_FIX(1,0.20,0.12,0,EXTERNSTR(0,4)),COLOR00FFFF;
 DRAWTEXT_FIX(1,0.55,0,0,CONST(REF(C,1))),COLOR7F00FF;

 VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
 VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
 VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
 DRAWTEXT(VAR12 AND COUNT(VAR12,30)=1,7,'↑有大资金进场迹象,关注!'),COLORRED;

734466919.jpg

734466919.jpg

回复

使用道具 举报

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

本版积分规则