通达信成本线主图指标 源码 贴图

2021-09-23 09:49:00来源:本站整理浏览:1228

通达信成本线主图指标 源码 贴图

通达信成本线主图指标 源码 贴图

通达信成本线主图指标 源码 贴图


ZJ:=(O+H+L+C)/4;
YZ:=IF(BARSCOUNT(C)>60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));
超短期:DMA(ZJ,YZ/0.125);
短期:DMA(ZJ,YZ/0.25);
中期:DMA(ZJ,YZ/0.50);
长期:DMA(ZJ,YZ);
牛熊:MA(CLOSE,453),COLORRED,LINETHICK2;
筹码:=COST(70)COLORLICYAN DOTLINE,LINETHICK2;
N1:=10;
T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;
量能平台:IF(CURRBARSCOUNT<=N1+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFFFFFF,LINETHICK1;
新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORFFFFFF,LINETHICK9;
DRAWTEXT(ISLASTBAR,量能平台,' 量能平台'),COLOR00F0F0;
HV:=HHV(V,5)=V OR V/REF(V,1)>=5;
FT:=BARSLAST(HV);
量能平台1:=IF(HV,C,REF(C,FT));


{DRAWTEXT(量能平台1>REF(量能平台1,1)AND C<REF(C,1),L,'*带量跌'),COLORGREEN;
DRAWTEXT(量能平台1<REF(量能平台1,1) AND C>REF(C,1),L,'*缩量涨'),COLORYELLOW;
DRAWTEXT(量能平台1>REF(量能平台1,1) AND C>REF(C,1) AND C>MA(C,13) AND C=HHV(C,20) AND C/REF(C,1)>1.05,H*1.01,'*突破量'),COLORFFFFFF;}
ZTS:=C>REF(C,1)*1.095 AND C=H;
ZT1:=C=H AND C=O AND L=H AND C>REF(C,1)*1.098;
VV:=VOL/REF(VOL,1);
T:=BARSLAST(VOL=HHV(VOL,30) AND VV>2.5 AND REF(ZTS,1));
STICKLINE(T>=0,REF(H,T),REF(H,T),4,-1),COLORCYAN;
AB:=CROSS(C,REF(H,T));
V1:=VOL/REF(VOL,T);
XGB:=VOL<REF(VOL,T) AND COUNT(AB AND V1<0.5,T)=1 AND AB AND NOT(ZT1) AND T<20;
DRAWICON(XGB,L*0.95,1);

STICKLINE(XGB,C,O,2,0),COLORYELLOW;
STICKLINE(XGB,H,L,0,0),COLORYELLOW;

CC:=超短期>短期 AND 短期>中期 AND CROSS(超短期,长期);
DRAWTEXT(CC ,LOW-0.1,'↖走牛'),COLORGREEN;
STICKLINE(CC,O,C,3,0) ,COLORFF0000;
{DRAWBAND(中期,RGB(55,250,96),短期,RGB(240,50,50));}
DRAWKLINE(H,O,L,C);
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
MA450:=MA(CLOSE,450);

BB:=MA5>MA10 AND MA10>MA20 AND MA20>MA60 AND MA60>MA120;
ABXGD:=CROSS(MA5,MA250) AND C>MA250 AND BB;


DRAWTEXT(ABXGD,H*1.01,'[牛关注!]'),COLORYELLOW;
DRAWICON(ABXGD,MAX(C,H)*1.008,2);
STICKLINE( ABXGD,O,C,3,0) ,COLORFF0000;
STICKLINE(ABXGD,L,H,0,1), COLORFF1100;
STICKLINE(ABXGD,O,C,3,0), COLORFF2200;
STICKLINE(ABXGD,L,H,0,1) ,COLORFF3300;
STICKLINE(ABXGD,OPEN,CLOSE,3,0),COLORFF00FF;


过滤:=(NAMELIKE('ST')=0&&NAMELIKE('*')=0&&NAMELIKE('S')=0)>0 AND DYNAINFO(8)>0;
上升十字:=O=C AND H>=O AND O>L AND 过滤;
选股:=REF(上升十字,1) AND C>REF(C,1)*1.097;
DRAWTEXT(选股 ,LOW-0.1,'↖十字涨停'),COLORYELLOW;
STICKLINE( 选股,O,C,3,0) ,COLORFF0000;
STICKLINE(选股,L,H,0,1), COLORFF1100;
STICKLINE(选股,O,C,3,0), COLORFF2200;
STICKLINE(选股,L,H,0,1) ,COLORFF3300;
STICKLINE(选股,OPEN,CLOSE,3,0),COLORFF00FF;
ZT:=C>REF(C,1)*1.095 AND C=H AND H=O AND L<O;
涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0984,1.110) AND C=H AND C>O;
XG:= ZT AND (OPEN-LOW)/LOW*100<=5;
DRAWTEXT(XG ,LOW-0.1,'↖送礼线'),COLORGREEN;

LCA:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LCA,0),9,1)/SMA(ABS(CLOSE-LCA),9,1)*100;
A:=CROSS(WRSI,20);
{STICKLINE(A,C,O,-1,0),COLORBLUE;}
B:=CROSS(80,WRSI);
{STICKLINE(B,C,O,-1,0),COLORYELLOW;}
{STICKLINE(A,H,L,0.0.1,0),COLORBLUE;
STICKLINE(B,H,L,0.0.1,0),COLORYELLOW;}
K:=BARSLAST(A OR B);
T1A:=C=ZTPRICE(REF(C,1),0.1);
T21:=L<=REF(H*1.008,K) && L>=REF(H*0.992,K);
T22:=L<=REF(L*1.008,K) && L>=REF(L*0.992,K);
T2A:=T21 OR T22;
T3A:=K>=1;
MLHS:=T1A && T2A && T3A;
DRAWTEXT_FIX(1,0.980,20,1,'★公式网'),COLOR666666;
DRAWTEXT(MLHS,LOW-0.1,'↖猛龙回首'),COLOR0099FF;
DRAWTEXT(MLHS,L*0.99,'★'),COLORRED;
STICKLINE(MLHS,C,O,2,0),COLOR0033CC;STICKLINE(MLHS,C,O,1,0),COLOR0055EE;
STICKLINE(MLHS,C,O,0.3,0),COLOR0099EE;STICKLINE(MLHS,H,L,0,1),COLOR0099FF;

{主图叠加指标}

MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);

MA55:=MA(CLOSE,60);
MA66:=MA(CLOSE,120);
AM1:=C/REF(C,1)>1.095 AND C=H;
H1A:=(REF(C,1)/REF(C,2)<=0.96) OR (REF(O,1)/REF(C,1)>=1.05);
H2A:=H/REF(C,1)>1.041 AND C>REF(C,1);
XGH1:=H1A AND H2A;{WWW.GPXIAZAI.COM}
XGH2:=REF(C,2)/REF(C,3)<1.099;
XGY:=XGH1 AND XGH2;
BBC:= MA3>MA55 AND MA55>MA66 AND C>=MA55;
ABXG:=COUNT(REF(AM1,3),8) AND XGY AND BBC;

DRAWICON(ABXG,L*0.98,24);


{顺哥妖股}
月DIF:="MACD.DIF#MONTH";
月DEA:="MACD.DEA#MONTH",;
周DIF:="MACD.DIF#WEEK";
周DEA:="MACD.DEA#WEEK",;
日DIF:="MACD.DIF";
日DEA:="MACD.DEA";
日金叉:=CROSS(日DIF,日DEA);
周金叉:=CROSS(周DIF,周DEA);
月金叉:=CROSS(月DIF,月DEA);
金叉共振:=IF(CROSS(周DIF,周DEA),MACD+0.1,0),COLORWHITE,LINETHICK2;
共振:=IF((日DIF>日DEA AND 周DIF>周DEA AND 月金叉) OR ( 周DIF>周DEA AND 月DIF>月DEA AND 日金叉) AND C/REF(C,1)>1.08
OR (月DIF>月DEA AND 日DIF>日DEA AND 周金叉) OR (日金叉 AND 周金叉 AND 月金叉),MACD+0.2,0),COLORF00FF0,LINETHICK3;
STICKLINE(金叉共振 AND C/REF(C,1)>1.05,O,REF(C,1)*1.05,3.2,0),COLOR0077FF;
STICKLINE(金叉共振 AND C/REF(C,1)>1.05,O,REF(C,1)*1.05,2.5,0),COLOR0099FF;
STICKLINE(金叉共振 AND C/REF(C,1)>1.05,O,REF(C,1)*1.05,1.9,0),COLOR00BBFF;
STICKLINE(金叉共振 AND C/REF(C,1)>1.05,O,REF(C,1)*1.05,1.2,0),COLOR00DDFF;
STICKLINE(金叉共振 AND C/REF(C,1)>1.05,O,REF(C,1)*1.05,0.3,0),COLOR00FFFF;

STICKLINE(共振 AND C/REF(C,1)>1.08,C,REF(C,1)*1.05,3,0),COLOR000099;
STICKLINE(共振 AND C/REF(C,1)>1.08,C,REF(C,1)*1.05,2.2,0),COLOR0000CC;
STICKLINE(共振 AND C/REF(C,1)>1.08,C,REF(C,1)*1.05,1.5,0),COLOR0000FF;
STICKLINE(共振 AND C/REF(C,1)>1.08,C,REF(C,1)*1.05,0.5,0),COLORCC66FF;
STICKLINE(共振 AND C/REF(C,1)>1.08,REF(C,1)*1.05,C,0.5,0),COLORYELLOW;
DRAWTEXT(共振 AND C/REF(C,1)>1.08,REF(C,1)*1.058,'↖起爆捉妖'),COLORYELLOW;
{DRAWTEXT(金叉共振 AND C/REF(C,1)>1.05,REF(C,1)*1.028,'↖妖股初现'),COLORRED;}
DRAWTEXT_FIX(ISLASTBAR,0.5,0.06,0,CODE),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.06,0,STKNAME),COLORYELLOW;
前炮:=(C-REF(C,1))*100/REF(C,1)>9;
后炮:=(C-REF(C,1))*100/REF(C,1)>9;
调整天数:=BARSLAST(前炮)<10;
不破前炮开盘:=LLV(C,BARSLAST(前炮))>=REF(O,BARSLAST(前炮));
小实体:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,BARSLAST(前炮))<=5;
回调:=调整天数 AND 不破前炮开盘 AND 小实体;
选股A:=后炮 AND REF(回调,1);
DRAWICON(选股A,MAX(C,H)*1.008,2);
DRAWTEXT(选股A,L*0.99, ' 双响炮 ')COLORRED;


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式