主图+先于庄家 通达信主图/副图指标 源码 贴图

2019-07-08 10:58:00来源:本站整理浏览:802

主图+先于庄家 通达信主图/副图指标 源码 贴图

先于庄家副图:

AAA:=REF(LLV(L,152),1);
AAABBB:=REFDATE(AAA,DATE);
BBCC:=REFDATE(AAABBB,DATE);
入:=BBCC=L AND ((H+L)<(O+C) OR (O+L)<(H+O));
买:=DRAWTEXT(入,LOW*1.00,'');{WWW.GPXIAZAI.COM}
XG:入 AND FINANCE(7)<15000000000 AND DYNAINFO(17)>0.5,NODRAW;
STICKLINE(XG>REF(XG,1) AND XG>0,0,XG,6,0),COLOR660066;
STICKLINE(XG>REF(XG,1) AND XG>0,0,XG,3,0),COLORMAGENTA ,COLORRED;
DRAWICON(XG>REF(XG,1) AND XG>0,+0.95,25);
DRAWICON(XG>REF(XG,1) AND XG>0,+0.80,26);
DRAWICON(XG>REF(XG,1) AND XG>0,+0.65,24);
DRAWICON(XG>REF(XG,1) AND XG>0,+0.45,9);
DRAWTEXT(XG,+0.75,' ←---先于庄家1'),COLORYELLOW;

主图+先于庄家 通达信主图/副图指标 源码 贴图


{主图}
牛股:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,22))/4 DOTLINE,COLOR00FF00,LINETHICK2;
角度N:=ATAN((牛股/REF(牛股,1)-1)*100)*180/3.1415926>=45;
IF(角度N,牛股,DRAWNULL),COLORRED,LINETHICK2;
AA05:MA(C,8) DOTLINE,COLORFF8800,LINETHICK1;
角度AN:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1415926>=50;
IF(角度AN,AA05,DRAWNULL),COLORRED,LINETHICK2;
MA(C,120),COLORFF00FF,LINETHICK2;
DRAWTEXT(ISLASTBAR,MA(C,120),'←走强线'),COLORRED;
BU:=CROSS(HIGH,SAR(3,1,20));
SEL:=CROSS(SAR(3,1,20),LOW);
DRAWTEXT(BU,LOW,'B'),COLORYELLOW,LINETHICK2;
DRAWTEXT(SEL,1.01*HIGH,'S'),COLORGREEN,LINETHICK2;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
飞天:MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORC0C0C0,DOTLINE,LINETHICK1;
DRAWTEXT(ISLASTBAR,MA(CLOSE,25)+MA(CLOSE,25)*20/100,'←成妖线'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0,0.01,0,STRCAT(Z5,FGBLOCK)),COLORYELLOW;
主图:MA(CLOSE,20) LINETHICK2,NODRAW;{WWW.GPXIAZAI.COM}
主图L:BOLL+2*STD(CLOSE,20),COLORWHITE,LINETHICK2;
均:主图-2*STD(CLOSE,20),COLORGREEN,LINETHICK3;
多: IF(均>=REF(均,1),均,DRAWNULL),COLORRED,LINETHICK3;
空:IF(REF(均,1)>均,均,DRAWNULL),COLORGREEN,LINETHICK3;

XZ_1:=ABS(((3.48*CLOSE+HIGH+LOW+OPEN)/5-EMA(CLOSE,20))/EMA(CLOSE,20));
XZ_2:=DMA((2.15*CLOSE+LOW+HIGH+OPEN)/5,XZ_1);
XZ_3:=EMA(XZ_2,200)*1.26;
XZ_4:=EMA(XZ_2,200)*1.18;
XZ_5:=MA((LOW+HIGH+CLOSE)/3,5);
XZ_6:=HHV(XZ_5,60);
XZ_7:=IF(XZ_6>REF(XZ_6,1),XZ_6,DRAWNULL);
XZ_8:=CLOSE*VOL;
XZ_9:=EMA((EXPMA(XZ_8,3)/EXPMA(VOL,3)+EXPMA(XZ_8,6)/EXPMA(VOL,6)+EXPMA(XZ_8,12)/EXPMA(VOL,12)+EXPMA(XZ_8,24)/EXPMA(VOL,24))/4,13);
XZ_10:=1.03*XZ_9;
XZ_11:=1.13*XZ_9;
XZ_12:=MIN(XZ_7,XZ_3);
XZ_13:=MIN(XZ_10,XZ_3);
XZ_14:=MIN(XZ_7,XZ_4);
XZ_15:=MIN(XZ_10,XZ_4);
XZ_16:=CLOSE/REF(CLOSE,1)>1.03 AND CLOSE=HIGH;
XZ_17:=CROSS(CLOSE,XZ_11) AND XZ_16;
DRAWICON(XZ_17,LOW*0.86,5);
DRAWTEXT(XZ_17,LOW*0.86,' 90%吃肉'),COLORYELLOW;
XA_17:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
STICKLINE(XA_17,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(XA_17,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(XA_17,HIGH,LOW,0,0),COLORYELLOW;
XA_22:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
XA_123:=DMA((2.15*CLOSE+LOW+HIGH)/4,XA_22);
XA_124:=EMA(XA_123,200)*1.118;
XA_125:=EMA(XA_123,200)*1.118;
XA_26:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>8;
XA_27:=CROSS(CLOSE,XA_124) AND XA_26;
JJ:=CLOSE;J1:=MA(JJ,5);
J6:=MA(JJ,250);DRAWTEXT(ISLASTBAR,J1,'1'),COLORWHITE;
年线:J6,LINETHICK1,COLORRED,DOTLINE;
DRAWTEXT_FIX(1,0.9,0.98,0,EXTERNSTR(0,2)),COLORWHITE;
涨家数:INDEXADV,COLOR0000EE,NODRAW;
跌家数:INDEXDEC,COLOR00EE00,NODRAW;
{K线九转序列数}
周期上数:=IF(PERIOD=5 OR PERIOD=6 OR PERIOD=7 OR PERIOD=8,1.015,IF(PERIOD=4,1.006,IF(PERIOD=3,1.004,IF(PERIOD=2,1.002,IF(PERIOD=1,1.001,IF(PERIOD=0,1.001,DRAWNULL))))));
周期下数:=IF(PERIOD=5 OR PERIOD=6 OR PERIOD=7 OR PERIOD=8,0.993,IF(PERIOD=4,0.994,IF(PERIOD=3,0.995,IF(PERIOD=2,0.996,IF(PERIOD=1,0.997,IF(PERIOD=0,0.998,DRAWNULL))))));
买入起点:=REF(CLOSE,1)>REF(CLOSE,5) AND CLOSE<REF(CLOSE,4) NODRAW;
卖出起点:=REF(CLOSE,1)<REF(CLOSE,5) AND CLOSE>REF(CLOSE,4) NODRAW;
买起至今:=BARSLAST(买入起点)+1 NODRAW;
卖起至今:=BARSLAST(卖出起点)+1 NODRAW;
后买终值:=CONST(买起至今) NODRAW;
后卖终值:=CONST(卖起至今) NODRAW;
{DRAWTEXT(买入起点 AND CURRBARSCOUNT=后买终值,HIGH*周期上数,'空') COLORBLUE;
DRAWTEXT(卖出起点 AND CURRBARSCOUNT=后卖终值,LOW*周期下数,'多') COLORRED;}
空前置:BACKSET(买入起点 AND CURRBARSCOUNT=后买终值,TOTALBARSCOUNT-CURRBARSCOUNT) NODRAW;
多前置:BACKSET(卖出起点 AND CURRBARSCOUNT=后卖终值,TOTALBARSCOUNT-CURRBARSCOUNT) NODRAW;
{///////////////////////////////////}
买入低四:=CLOSE<REF(CLOSE,4) NODRAW;
买低计数:=BARSLASTCOUNT(买入低四) NODRAW;
买十计数:=BARSLASTCOUNT(买低计数>=10) NODRAW;
买十九计数:=BARSLASTCOUNT(买低计数>=19) NODRAW;
买二八计数:=BARSLASTCOUNT(买低计数>=28) NODRAW;
买三轮回值:=IF(买低计数<=9 AND 买低计数>=1,买低计数,IF(买低计数<=18 AND 买低计数>=1,买十计数,IF(买低计数<=27 AND 买低计数>=1,买十九计数,IF(买低计数<=36 AND 买低计数>=1,买二八计数,-100)))) NODRAW;
买中断时:=BARSLAST(买低计数=0 AND REF(买低计数,1)>0) NODRAW;
STICKLINE(买中断时=0 AND CURRBARSCOUNT=后买终值,O,C,3,0) COLORYELLOW;
买断距今:=BARSNEXT(买中断时=0) NODRAW;
买九距今:=IF(买三轮回值>=1,BARSLAST(买三轮回值=9),DRAWNULL) NODRAW;
买九最大:=REFX(HHV(买三轮回值,买中断时),买断距今-1) NODRAW;
买断过滤:=BACKSET(买中断时=0,REF(买九距今,1)+1) NODRAW;
DRAWNUMBER(买低计数>=1 AND 买断过滤=0 AND (买九最大<=8)=0 AND 空前置=0,LOW*周期下数,买三轮回值) COLORBLUE;
DRAWNUMBER(买低计数>=1 AND 买断过滤=0 AND (REFX(空前置,1)=0 OR ISLASTBAR),LOW*周期下数,买三轮回值) COLORBLUE;
DRAWNUMBER(买三轮回值=9 AND 买断过滤=0,LOW*周期下数,买三轮回值) COLORGREEN;
{/////////////////////////////////}
卖出低四:=CLOSE>REF(CLOSE,4) NODRAW;
卖低计数:=BARSLASTCOUNT(卖出低四) NODRAW;
卖十计数:=BARSLASTCOUNT(卖低计数>=10) NODRAW;
卖十九计数:=BARSLASTCOUNT(卖低计数>=19) NODRAW;
卖三轮回值:=IF(卖低计数<=9 AND 卖低计数>=1,卖低计数,IF(卖低计数<=18 AND 卖低计数>=1,卖十计数,IF(卖低计数<=27 AND 卖低计数>=1,卖十九计数,-100))) NODRAW;
卖中断时:=BARSLAST(卖低计数=0 AND REF(卖低计数,1)>0) NODRAW;
STICKLINE(卖中断时=0 AND CURRBARSCOUNT=后卖终值,O,C,3,0) COLORBLUE;
卖断距今:=BARSNEXT(卖中断时=0) NODRAW;
卖九距今:=IF(卖三轮回值>=1,BARSLAST(卖三轮回值=9),DRAWNULL) NODRAW;
卖九最大:=REFX(HHV(卖三轮回值,卖中断时),卖断距今-1) NODRAW;
卖断过滤:=BACKSET(卖中断时=0,REF(卖九距今,1)+1) NODRAW;
DRAWNUMBER(卖低计数>=1 AND 卖断过滤=0 AND (卖九最大<=8)=0 AND 多前置=0,HIGH*周期上数,卖三轮回值) COLORMAGENTA;
DRAWNUMBER(卖低计数>=1 AND 卖断过滤=0 AND (REFX(多前置,1)=0 OR ISLASTBAR),HIGH*周期上数,卖三轮回值) COLORMAGENTA;
DRAWNUMBER(卖三轮回值=9 AND 卖断过滤=0,HIGH*周期上数,卖三轮回值) COLORRED;
{四前线:IF(CURRBARSCOUNT<=5,CONST(REF(CLOSE,4)),DRAWNULL) COLORBLUE LINETHICK3;
五前线:IF(CURRBARSCOUNT<=6,CONST(REF(CLOSE,5)),DRAWNULL) COLORMAGENTA LINETHICK3;}
{多头信号计算部分}
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=9,LOW*周期下数,'9多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=8,LOW*周期下数,'8多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=7,LOW*周期下数,'7多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=6,LOW*周期下数,'6多') COLORRED;
DRAWTEXT(空前置=0 AND 多前置=1 AND 卖出起点 AND REF(买三轮回值,1)=5,LOW*周期下数,'5多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=4,LOW*周期下数,'4多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=3,LOW*周期下数,'3多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=2,LOW*周期下数,'2多') COLORRED;
DRAWTEXT(空前置=0 AND 卖出起点 AND REF(买三轮回值,1)=1,LOW*周期下数,'1多') COLORRED;
{空头信号计算部分}
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=9,HIGH*周期上数,'9空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=8,HIGH*周期上数,'8空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=7,HIGH*周期上数,'7空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=6,HIGH*周期上数,'6空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=5,HIGH*周期上数,'5空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=4,HIGH*周期上数,'4空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=3,HIGH*周期上数,'3空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=2,HIGH*周期上数,'2空') COLORBLUE;
DRAWTEXT(多前置=0 AND 买入起点 AND REF(卖三轮回值,1)=1,HIGH*周期上数,'1空') COLORBLUE;
M89:=MA(CLOSE,89),COLORMAGENTA,LINETHICK2;
M144:=MA(CLOSE,144),COLORBROWN,LINETHICK2;
M233:=MA(CLOSE,233),COLORYELLOW,LINETHICK2;
M377:=MA(CLOSE,377),COLORCYAN,LINETHICK2;
M450:=MA(CLOSE,450),COLORGREEN,LINETHICK2;
M610:=MA(CLOSE,610),COLORRED,LINETHICK2;
A90:=(MA(COST(90),6)),DOTLINE,COLOR808040;
A70:=(MA(COST(70),6)),DOTLINE,COLOR808040;
M20:=MA(CLOSE,20),COLORWHITE,LINETHICK2;T5:=REF(HHVBARS(HIGH,60),15)+15;
T60:=REF(HIGH,T5),COLORRED,NODRAW;
STICKLINE(BARSTATUS=2,T60,T60,2000,1),COLORBLUE;
DRAWTEXT(BARSTATUS=2,T60,'强势平台'),COLORYELLOW;
DOWN:=OPEN>CLOSE;
F:=COUNT(DOWN,6)=6;
AD:=COUNT(C<REF(C,1) ,6)=6;
BB:=(C<MA(C,30)*0.9);
E:=F AND AD AND BB;
AA:="MACD.DEA"(12,26,9)<=0.6;
ZT4:=C>=REF(C,1)*1.099 AND C< MA(C,20)*1.15 AND C>MA(C,20) AND "MACD.DEA"(12,26,9)<=0.3 AND"MACD.DEA"(12,26,9)>=0;
ZT3:=C>=REF(C,1)*1.099 AND C< MA(C,20)*1.16 AND C>MA(C,20) AND AA AND C>=HHV(C,20) { AND V>REF(V,1)*1.3 } ;
STICKLINE(XA_27,CLOSE,OPEN,3.2,0),COLOR0077FF;
STICKLINE(XA_27,CLOSE,OPEN,2.5,0),COLOR0099FF;
STICKLINE(XA_27,CLOSE,OPEN,1.9,0),COLOR00BBFF;
STICKLINE(XA_27,CLOSE,OPEN,1.2,0),COLOR00DDFF;
STICKLINE(XA_27,CLOSE,OPEN,0.3,0),COLORYELLOW;
T1:=SMA(MAX(C-REF(C,1),0),24,1)/SMA(ABS(C-(REF(C,1))),24,1)*100>65 ;
VAR0:=((EMA(C,5))*7+(EMA(C,10))*3)/10;
VAR12:=MA(C,26)+2*(STD(C,26));
VAR18:=T1 AND VAR0>EMA(C,13) AND EMA(C,13)>EMA(C,55) AND VAR12>REF(VAR12,1) AND (C>(EMA((H+L+C)/3,13))) AND MA(C,5)>MA(C,10)
AND ((CROSS(HHV(C,5),(MA(H,10))*(1+5/(100)))) AND ((((C-(REF(C,1)))/(REF(C,1)))*(100))>(6.5)));
DRAWTEXT((VAR18)>0,L*0.98,'▲追击'),LINETHICK1,COLORYELLOW;
DRAWTEXT(((((C-(REF(C,1)))/(REF(C,1)))*(100))>(5.5)) AND (CROSS((L/((H+REF(C,1)+O)/3))*C,EMA((EMA(C,9))*(1.14),5))),EMA(L-(0.0),1),'★涨'),COLOR00FF00;
涨:=((C-REF(C,3))/REF(C,3)*100) >6.8;
STICKLINE(涨,O,C,0.5,0),COLORRED;
涨停:=((C-REF(C,1))/REF(C,1)*100) >9.7;
STICKLINE(涨停,O,(C-O)/2+O,3.1,0),COLOR660066;
STICKLINE(涨停,O,(C-O)/2+O,2.6,0),COLOR7D007D;
STICKLINE(涨停,O,(C-O)/2+O,2.1,0),COLOR990099;
STICKLINE(涨停,O,(C-O)/2+O,1.6,0),COLORBD00BD;
STICKLINE(涨停,O,(C-O)/2+O,1.0,0),COLORMAGENTA;
STICKLINE(涨停,O,(C-O)/2+O,0.5,0),COLORMAGENTA;


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式