在线检测未来函数

通达信分析持股区间主图指标公式

来源:Internet,编辑:股旁网,2022-11-14

出水牛股:=92212129;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
突破:=REF(EMA(CLOSE,9),1);
A1X:=(EMA(CLOSE,9)-突破)/突破*100;
多:=IF(A1X>=0 AND 买线>=卖线,REF(EMA(CLOSE,10),BARSLAST(crOSS(A1X,0))+1),DRAWNULL);
空:=IF(A1X<0 AND 买线<卖线,REF(EMA(CLOSE,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
TDXSTEP230:DRAWBAND(突破,RGB(110,20,120),多,RGB(10,100,10));
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:MA(CLOSE,20);
MA30:MA(CLOSE,30);
AB1:=MA(CLOSE,1);
AB2:=SMA(SMA(SMA(AB1,2,1),2,1),2,1);
SMA2:=MA(AB2,3);
TDXSTEP231:DRAWBAND(AB2,RGB(200,20,20),SMA2,RGB(20,200,20));
TDXSTEP232:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA14:=MA(CLOSE,14);
TDXSTEP233:DRAWICON(CROSS(MA14,CLOSE),HIGH,2);
离:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
GLL:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100<=(-12);
介入:=COUNT(GLL,4)>=1 AND CLOSE>OPEN;
TDXSTEP234:DRAWICON(介入 AND DATE>=出水牛股,LOW*0.96,19);
HIT1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
HIT2:=REF(HIT1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT3:=REF(HIT2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT4:=REF(HIT3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT5:=REF(HIT4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT6:=REF(HIT5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT7:=REF(HIT6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT8:=REF(HIT7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT9:=REF(HIT8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HITA:=REF(HIT9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HITB:=REF(HITA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HITC:=REF(HITB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HITD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
HITE:=REF(HITD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HITF:=REF(HITE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT10:=REF(HITF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT11:=REF(HIT10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT12:=REF(HIT11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT13:=REF(HIT12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT14:=REF(HIT13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT15:=REF(HIT14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT16:=REF(HIT15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT17:=REF(HIT16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
HIT18:=REF(HIT17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
HIT19:=REF(HITD OR HITE OR HITF OR HIT10 OR HIT11 OR HIT12 OR HIT13 OR HIT14 OR HIT15 OR HIT16 OR HIT17 OR HIT18,1) AND HIT1;
HIT1A:=REF(HIT1 OR HIT2 OR HIT3 OR HIT4 OR HIT5 OR HIT6 OR HIT7 OR HIT8 OR HIT9 OR HITA OR HITB OR HITC,1) AND HITD;
TDXSTEP235:STICKLINE(HIT19,MIN(OPEN,CLOSE),MIN(OPEN,CLOSE)+Abs(CLOSE-OPEN)*0.25,2.7,0);
TDXSTEP236:STICKLINE(HIT1A,MIN(OPEN,CLOSE)+ABS(CLOSE-OPEN)*0.75,MAX(OPEN,CLOSE),2.7,0);
F:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
PP1:=IF(CLOSE<REF(OPEN,1) AND F<0,1,0);
PP2:=IF(CLOSE<REF(OPEN,2) AND F<0,1,0);
TDXSTEP237:STICKLINE(PP1=0 AND REF(PP1,1)=1 AND PP2=0 AND REF(PP2,1)=1,OPEN,CLOSE,1,0);
AABB:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AABB,0),5,1)/SMA(ABS(CLOSE-AABB),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短线买点8:=IF(SS>13,MA(SS,2),SS)/6;
短线出击:=CROSS(短线买点8,1) AND 短线买点8<30;
LH:=80;
LXYC:=REF(CLOSE,1);
LXYD:=SMA(MAX(CLOSE-LXYC,0),7,1)/SMA(ABS(CLOSE-LXYC),7,1)*100;
LXYE:=SMA(MAX(CLOSE-LXYC,0),13,1)/SMA(ABS(CLOSE-LXYC),13,1)*100;
LXYF:=BARSLAST(LXYE<43)<=3 AND CROSS(LXYD,LXYE);
LXY10:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);
LXY11:=LLV(LOW,5);
LXY12:=HHV(HIGH,10);
LXY13:=EMA((CLOSE-LXY11)/(LXY12-LXY11)*100,4);
LXY14:=EMA(0.667*REF(LXY13,1)+0.333*LXY13,2);
LXY15:=1011131;
LXY16:=IF(DATE<=LXY15,LXY10,0) OR IF(DATE<=LXY15,LH,0);
秀:=0-(-1)*LXYF AND LXY10 AND CROSS(LXY13,LXY14) AND LXY13<=25;
LXY17:=REF(CLOSE,1);
LXY18:=SMA(MAX(CLOSE-LXY17,0),7,1)/SMA(ABS(CLOSE-LXY17),7,1)*100;
LXY19:=SMA(MAX(CLOSE-LXY17,0),13,1)/SMA(ABS(CLOSE-LXY17),13,1)*100;
LXY1A:=BARSLAST(LXY19<33)<=3 AND CROSS(LXY18,LXY19);
LXY1B:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);
LXY1C:=LLV(LOW,5);
LXY1D:=HHV(HIGH,10);
LXY1E:=EMA((CLOSE-LXY1C)/(LXY1D-LXY1C)*100,4);
LXY1F:=EMA(0.667*REF(LXY1E,1)+0.333*LXY1E,2);
LXY20:=1011131;
LXY21:=IF(DATE<=LXY20,LXY1B,0) OR IF(DATE<=LXY20,LH,0);
才:=0-(-1)*LXY1A AND LXY1B AND CROSS(LXY1E,LXY1F) AND LXY1E<=25;
TDXSTEP238:DRAWICON(秀>0 AND DATE>=出水牛股,LOW*0.97,18);
TDXSTEP239:DRAWICON(才>0 AND DATE>=出水牛股,LOW*0.96,22);
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*2*60;
HHHH:=AAA1-REF(AAA1,1);
DI0:=(EMA(DCLOSE,12)-EMA(DCLOSE,26))*100;
DE0:=EMA(DI0,9);
MA0:=2*(DI0-DE0);
TDXSTEP240:DRAWICON(MA0>REF(MA0,1)*2.5 AND MA0>15 AND DATE>=出水牛股,LOW*0.97,17);
TDXSTEP241:DRAWICON(CROSS(DEA1,DIF1) AND DIF1>0 AND DATE>=出水牛股,HIGH*1.02,12);
周K:=skdj.K#WEEK;
周D:=Skdj.D#WEEK;
周金叉K:=CROSS(周K,周D);
TDXSTEP242:DRAWICON(周金叉K AND DATE>=出水牛股,LOW*0.96,38);
周DIF:=DDZ.大单差分#WEEK;
周DEA:=DDZ#WEEK;
周金叉M:=CROSS(周DIF,周DEA);
TDXSTEP243:DRAWICON(周金叉M AND DATE>=出水牛股,LOW*0.95,34);
月ZL:=ddx.大单动向#MONTH;
月LI:=ZJBY.净流入#MONTH;
月T:=ZJQDL.净流入#MONTH;
cci:=CCI#MONTH;
rsi:=RSI.RSI1#MONTH;
YGBLST:=月ZL>REF(月ZL,1) AND 月LI>REF(月LI,1) AND 月T>REF(月T,1) AND 月RSI>REF(月RSI,1) AND 月CCI>REF(月CCI,1);
TDXSTEP244:DRAWICON(YGBLST,LOW*0.95,26);
DYGBD:=DATE>=出水牛股;
TDXSTEP245:STICKLINE(DYGBD,LLV(LOW,34),HHV(HIGH,34),18,0);
TDXSTEP246:DRAWTEXT(ISLASTBAR-40 AND FILTER(DYGBD,15),(LLV(LOW,34)+HHV(HIGH,34))*0.6,1);
TDXSTEP247:DRAWTEXT(ISLASTBAR-40 AND FILTER(DYGBD,15),(LLV(LOW,34)+HHV(HIGH,34))*0.5,2);

通达信分析持股区间主图指标公式

相关文章