A股小妖女 发表于 2023-7-19 00:07:14

通达信跟庄回踩主图指标公式

彩虹桥投资充电站,每天分享免费通达信指标

MA480:MA(C,480);
TJ360:=C=HHV(C,150);{黑马线}
TS360:=BArslAST(TJ360);
HHC360:=REF(C,TS360);
RHHC360:=REF(HHC360,1);
TJ1360:=H>L AND C>RHHC360 ;
CS1360:=BARSLASTCOUNT(TJ1360);
CSS:=COUNT(CS1360=1,60);
MR:=CS1360=1 AND CSS=1;
STICKLINE(MR,O,C,3,0),COLORBLUE;
DRAWTEXT(MR,L,'黑马线'),COLORYELLOW;
HMXTS:=BARSLAST(MR);
黑马线:CONST(REF(C,HMXTS)),COLORFFFF00,LINETHICK2;
高D:=REF(HHV(H,72),5);
龙门:REFDATE(高D,DATE),COLORWHITE,LINETHICK2;
TM:=1200823;
涨停:IF(DATE<TM,ZTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;
跌停:IF(DATE<TM,DTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;
明涨停:IF(DATE<TM,C*IF(CODELIKE('688'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(IF(CODELIKE('688') OR CODELIKE('300'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)))),NODRAW,COLORLIMAGENTA;
明跌停:IF(DATE<TM,C*IF(CODELIKE('688'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(IF(CODELIKE('688') OR CODELIKE('300'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)))),NODRAW,COLORFFFF00;
ZT:=C=涨停 AND PERIOD=5 AND H=C;
ZT1:=H=涨停 AND PERIOD=5 AND H>C;
DT:=C=跌停 AND PERIOD=5 AND L=C;
DT1:=L=跌停 AND PERIOD=5 AND L<C;
DRAWTEXT(CURRBARSCOUNT=1,L*0.995,EXTERNSTR(0,4)); { 涨停原因}
半分:(O+C)/2,NODRAW;
昨半:REF((O+C)/2,1),NODRAW,COLORYELLOW;
STICKLINE(ISLASTBAR,昨半,昨半,8,2),COLORLIRED;
LB:=REF(EVERY(ZT,3),2) AND REF(H=HHV(H,20),1) AND H<REF(H,1);
LBQ:=BARSLAST(LB);
打折:=REF(H,LBQ+1)*0.7,NODRAW,COLORWHITE;
STICKLINE(打折,打折,打折,5,0),COLORFFFF44;
Q3:=STRCAT(CON2STR(打折,2),'打折线');
DRAWTEXT(ISLASTBAR,打折,VARCAT(VARCAT('打折线',VAR2STR(打折,2)),'元'))COLORFFFF00;
基柱:=C>REF(C,1)*1.05 AND V>=REF(V,1)*1.85;
周期:=BARSLAST(基柱);
STICKLINE(基柱,O,C,2.8,0),COLORFF00FF;
DRAWLINE(基柱,C,REF(基柱,1),REF(C,1),1),COLORWHITE,DOTLINE;
DRAWLINE(基柱,O,REF(基柱,1),REF(O,1),1),COLORLIGREEN,DOTLINE;
小K:=BETWEEN(C,REF(C,1)*0.98,REF(C,1)*1.02);
买点1:=小K AND BETWEEN(周期,3,100) AND BETWEEN(L, REF(C,周期)*0.99,REF(C,周期)*1.005) AND V<=REF(V,1)*0.85;
DRAWICON(买点1,MIN(C,O),7);
买点2:=小K AND BETWEEN(周期,3,100) AND BETWEEN(L, REF(L,周期),REF(L,周期)*1.01) AND V<=REF(V,1)*0.85;
DRAWICON(买点2,MIN(C,O),1);
买点3:=EXIST(买点1 OR 买点2,60) AND crOSS(C,REF(H,周期));
DRAWICON(买点3,MIN(C,O),13);
{涨停k线颜色设置}
STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099;
STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC;
STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00;
{曾涨跌停打开K线颜色设置}
STICKLINE(ZT1 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(ZT1 AND C<O,H,L,0,0),COLORLIBLUE;
STICKLINE(DT1 AND C>=O,H ,L,0,0),COLORRED;
STICKLINE(DT1 AND C<O,H,L,0,0),COLORLIBLUE;
STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,C,(O+C)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT1,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT1,O,(O+C)/2,2.5,0),COLOR888888;
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT1,C,(O+C)/2,2.5,0),COLOR009900;
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00;
假阴:=REF(C>=O,1) AND AMOUNT/V/100>REF(C,1) AND C<O;
假阳:=REF(C<=O,1) AND H<REF(O,1) AND C<(REF(O-C,1))/3+REF(C,1) AND AMOUNT/V/100<REF(C,1) AND C>O;
STICKLINE(假阴,O,C,0.2,0),COLORRED;{假阴柱};
STICKLINE(假阳,O,C,0.7,0),COLORLIGREEN;{假阳柱};
首板:=ZT AND COUNT(ZT,2)=1;
二板:=REF(首板,1) AND ZT;
三板:=REF(二板,1) AND ZT;
四板:=REF(三板,1) AND ZT;
五板:=REF(四板,1) AND ZT;
六板:=REF(五板,1) AND ZT;
七板:=REF(六板,1) AND ZT;
八板:=REF(七板,1) AND ZT;
九板:=REF(八板,1) AND ZT;
十板:=REF(九板,1) AND ZT;
DRAWTEXT(首板,0.1+(C+O)/2,'1'),COLORWHITE;
DRAWTEXT(二板,0.1+(C+O)/2,'2'),COLORYELLOW;
DRAWTEXT(三板,0.1+(C+O)/2,'3'),COLOR00CC99;
DRAWTEXT(四板,0.1+(C+O)/2,'4'),COLORGREEN;
DRAWTEXT(五板,0.1+(C+O)/2,'5'),COLORLIGRAY;
DRAWTEXT(六板,0.1+(C+O)/2,'6'),COLORLIRED;
DRAWTEXT(七板,0.1+(C+O)/2,'7'),COLORLIBLUE;
DRAWTEXT(八板,0.1+(C+O)/2,'8'),COLORBLUE;
DRAWTEXT(九板,0.1+(C+O)/2,'9'),COLORWHITE;
DRAWTEXT(十板,0.1+(C+O)/2,'10'),COLORYELLOW;
月:REF(O,BARSLAST(MONTH!=REF(MONTH,1))),COLORRED,NODRAW;
STICKLINE(C>月,月,月,5,0),COLORRED;
STICKLINE(C<月,月,月,5,0),COLORFFFF00;
STICKLINE(C=月,月,月,5,0),COLORWHITE;
收阴:=(C<REF(C,1) OR L<REF(L,1) OR AMOUNT/V/100<REF((C+O)/2,1)) AND O<=REF(C,1);
多阴:=EVERY(收阴,2);
小阳:=O-L<=0.03 AND H>C AND C>O AND O<REF(C,1) AND C<REF(MAX(C,O),1) AND V<REF(V,1);
宝莲灯:=REF(多阴,1) AND 小阳;
STICKLINE(宝莲灯,O,C,2.5,0),COLORCC22FF;
STICKLINE(宝莲灯,(O+C)/2-0.007,(O+C)/2+0.007,1,0),COLORWHITE;
A1:=EMA(C,12)-EMA(C,25);
A2:=EMA(A1,6);
获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;
大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;
坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;
买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;
VAR8:=vol>2*MA(VOL,30);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)<4;
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
STICKLINE(FILTER(VARF=1,5) AND 多空<-10,C,O,2.8,0),COLORF00FF0;
STICKLINE(FILTER(VARF=1,5),(C+O)*0.5-0.007,(C+O)*0.5+0.007,1,0),COLORBLacK;
DRAWTEXT(FILTER(VARF=1,3),L,'黑马'),COLORRED ;
VAR121:=zig(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR141:=ZIG(3,25)<REF(ZIG(3,25),1) AND REF(ZIG(3,25),1)>=REF(ZIG(3,25),2) AND REF(ZIG(3,25),2)>=REF(ZIG(3,25),3);
VAR161:=ZIG(3,55)<REF(ZIG(3,55),1) AND REF(ZIG(3,55),1)>=REF(ZIG(3,55),2) AND REF(ZIG(3,55),2)>=REF(ZIG(3,55),3);
VAR181:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
卖:=VAR121+VAR141+VAR161+VAR181;
DRAWLINE(卖,O,BARSLAST(卖)>=1,REF(O,BARSLAST(卖)),1),COLORYELLOW,LINETHICK2;





阅读后把下面的在看和赞点亮,并且设定为星标

系统才会给你主动推荐最新指标

大海374 发表于 2023-7-27 02:42:34

thanks for the sharing!

心理强迫症 发表于 2023-8-1 20:41:26

牛人一个

李圆子wzl 发表于 2023-8-23 13:04:18

找了很久了,多谢!

侬去斯 发表于 2023-9-6 09:59:31

已收藏,以后会常来!

anitaye007 发表于 2023-9-16 09:29:40

很好的内容,感谢分享!

不太弁心冒 发表于 2023-10-1 05:23:41

太棒了吧,真的很好

芙蓉花开2017 发表于 2023-10-24 17:48:20

楼主哪儿来的这么多好东西!

穿越夜时空簿 发表于 2023-11-18 01:35:08

很好的内容,感谢分享!

此路难行谎 发表于 2023-12-26 22:59:06

我是来挣鲜花的,嘿嘿
页: [1] 2
查看完整版本: 通达信跟庄回踩主图指标公式