股龙归心战无不胜买卖 通达信主图指标 源码 贴图
{公式名称: 股龙归心战公式描述: 股龙归心战无不胜}
VAR1:=5;
VAR2:=13;
VAR3:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR4:=(1-7/100)*DMA(CLOSE,VAR3);
VAR5:=(1+7/100)*DMA(CLOSE,VAR3);
VAR6:=MA((LOW+HIGH+CLOSE)/3,5);
支撑:REFDATE(VAR4,DATE),POINTDOT,COLORCC66FF,LINETHICK3;
阻力:REFDATE(VAR5,DATE),POINTDOT,COLORGREEN,LINETHICK3;
VAR7:=MEMA(CLOSE,5);
VAR8:=ATAN((VAR7/REF(VAR7,1)-1)*100)*180/3.1416;
VAR9:=IF(VAR8 0,VAR8,VAR8);
MA5:MA(CLOSE,VAR1),COLOR888899;
MA13:MA(CLOSE,VAR2),COLORFF9900,LINETHICK2;
VAR10:=CLOSE=HHV(CLOSE,4) AND (REF(CLOSE,1) =REF(CLOSE,2) OR REF(CLOSE,1) =REF(CLOSE,3)) OR REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE =REF(CLOSE,2) OR REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE =REF(CLOSE,1) OR REF(CLOSE,3)=HHV(CLOSE,4) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR11:=CLOSE=HHV(CLOSE,4) AND REF(CLOSE,1)=LLV(CLOSE,4);
VAR12:=CLOSE=LLV(CLOSE,4) AND (REF(CLOSE,1) REF(CLOSE,2) OR REF(CLOSE,1) REF(CLOSE,3)) OR REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE REF(CLOSE,1) OR REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2);
VAR13:=REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE =REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1) =REF(CLOSE,3) AND REF(CLOSE,2) REF(CLOSE,4) AND CLOSE =REF(CLOSE,1);
VAR14:=REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE REF(CLOSE,2) OR (REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,3) OR REF(CLOSE,3)=HHV(CLOSE,4) AND REF(CLOSE,1) REF(CLOSE,2)) AND REF(CLOSE,2) =REF(CLOSE,4) AND CLOSE REF(CLOSE,1);
VAR15:=VAR6 REF(VAR6,1) AND REF(VAR6,1) REF(VAR6,2);
VAR16:=LOW HHV(VAR6,13) AND HIGH HHV(VAR6,13) AND CLOSE REF(CLOSE,1) AND CLOSE OPEN;
VAR17:=VAR16 AND COUNT(VAR15,2);
VAR18:=100*EMA(EMA(CLOSE-REF(CLOSE,1),6),6)/EMA(EMA(ABS(CLOSE-REF(CLOSE,1)),6),6);
VAR19:=EMA(MA(CLOSE,13),13);
VAR20:=FILTER((LLV(VAR18,2)=LLV(VAR18,7) AND COUNT(VAR18 0,2) AND CROSS(VAR18,MA(VAR18,2)))=1,5);
VAR21:=FILTER((HHV(VAR18,2)=HHV(VAR18,7) AND COUNT(VAR18 50,2) AND CROSS(MA(VAR18,2),VAR18))=1,1);
VAR22:=SMA(EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),5)*100,3,1)*10;
VAR23:=FILTER((CROSS(VAR22,0) OR CROSS(CLOSE,VAR19) AND VAR20)=1,3);
VAR24:=MA(CLOSE,18) =REF(MA(CLOSE,18),3) AND CROSS(CLOSE,MA(CLOSE,18));
VAR25:=VAR17 AND NOT(REF(VAR17,1));
强攻:IF(VAR9 REF(VAR9,1) AND VAR9 =0,MA13,DRAWNULL),COLORYELLOW,LINETHICK2;
回调:IF(VAR9 REF(VAR9,1) AND VAR9 0,MA13,DRAWNULL),COLORGREEN,LINETHICK2;
VAR26:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR27:=SMA(VAR26,3,1);{www.9m8.cn 九毛八公式指标网}
VAR28:=SMA(VAR27,3,1);
VAR29:=3*VAR27-2*VAR28;
VAR30:=CROSS(VAR29,VAR28);
VAR31:=CROSS(VAR28,VAR29);
VAR32:=VAR23 OR VAR24 AND VAR20;
VAR33:=VAR23 OR VAR24 AND VAR13;
VAR34:=VAR23 OR VAR24 AND VAR11;
VAR35:=VAR11 AND VAR20 OR (VAR13 AND VAR20);
VAR36:=VAR30 AND VAR13 OR (VAR30 AND VAR11) OR (VAR30 AND VAR20);
STICKLINE(CLOSE REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,(-1)),COLORYELLOW;
STICKLINE(CLOSE REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,(-1)),COLORGREEN;
STICKLINE(OPEN =CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN =CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN =CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN =CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5,0),COLORRED;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(VAR12,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;
STICKLINE(VAR12,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
STICKLINE(VAR12,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;
STICKLINE(VAR12,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORGREEN;
STICKLINE(VAR13,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
STICKLINE(VAR13,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;
STICKLINE(VAR13,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;
STICKLINE(VAR13,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORWHITE;
STICKLINE(VAR30,OPEN,CLOSE,0.5,0),COLORYELLOW;
STICKLINE(VAR31,OPEN,CLOSE,0.5,0),COLOR000099;
DRAWICON(VAR25,LOW-0.02,7);
DRAWICON(VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36,LOW-0.01,1);
DRAWICON(VAR31 OR VAR21 OR CROSS(40,VAR18),HIGH+0.01,2);
VAR37:=MA(CLOSE,3);
VAR38:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*VAR38+19*REF(VAR38,1)+18*REF(VAR38,2)+17*REF(VAR38,3)+16*REF(VAR38,4)+15*REF(VAR38,5)+14*REF(VAR38,6)+13*REF(VAR38,7)+12*REF(VAR38,8)+11*REF(VAR38,9)+10*REF(VAR38,10)+9*REF(VAR38,11)+8*REF(VAR38,12)+7*REF(VAR38,13)+6*REF(VAR38,14)+5*REF(VAR38,15)+4*REF(VAR38,16)+3*REF(VAR38,17)+2*REF(VAR38,18)+REF(VAR38,20))/210,COLORRED;
马线:MA(牛线,6),POINTDOT,COLORYELLOW,LINETHICK4;
买:马线-2*STD(CLOSE,20),COLORFF937F,LINETHICK2;
卖:马线+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;
等待:IF(VAR37 =牛线,马线,DRAWNULL),POINTDOT,COLORRED,LINETHICK4;
VAR39:=CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2);
VAR40:=REF(VAR39,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR41:=REF(VAR40,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR42:=REF(VAR41,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR43:=REF(VAR42,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR44:=REF(VAR43,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR45:=REF(VAR44,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR46:=REF(VAR45,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR47:=REF(VAR46,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR48:=REF(VAR47,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR49:=REF(VAR48,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR50:=REF(VAR49,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
持股:IF(VAR39 OR VAR40 OR VAR41 OR VAR42 OR VAR43 OR VAR44 OR VAR45 OR VAR46 OR VAR47 OR VAR48 OR VAR49 OR VAR50,牛线,DRAWNULL),COLORRED;
VAR51:=CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2);
VAR52:=REF(VAR51,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR53:=REF(VAR52,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR54:=REF(VAR53,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR55:=REF(VAR54,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR56:=REF(VAR55,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR57:=REF(VAR56,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR58:=REF(VAR57,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR59:=REF(VAR58,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR60:=REF(VAR59,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR61:=REF(VAR60,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
VAR62:=REF(VAR61,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2);
持币:IF(VAR51 OR VAR52 OR VAR53 OR VAR54 OR VAR55 OR VAR56 OR VAR57 OR VAR58 OR VAR59 OR VAR60 OR VAR61 OR VAR62,牛线,DRAWNULL),COLORLIGRAY;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,3,0),COLOR000045;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,2.5,0),COLOR000065;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,2,0),COLOR000085;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,1.5,0),COLOR0000A5;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,1,0),COLOR0000C5;
STICKLINE(CLOSE =OPEN,CLOSE,OPEN,0.5,0),COLOR0000E5;
STICKLINE(CLOSE =OPEN,HIGH,LOW,0,0),COLOR0000F5;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,3,0),COLOR353500;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,2.5,0),COLOR454500;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,2,0),COLOR555500;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1.5,0),COLOR656500;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1,0),COLOR757500;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,0.5,0),COLOR858500;
STICKLINE(CLOSE OPEN,HIGH,LOW,0,0),COLOR959500;
VAR63:=MA(CLOSE,5);
VAR64:=MA(CLOSE,10);
VAR65:=MA(CLOSE,30);
VAR66:=(CLOSE-VAR63)/VAR63*100;
VAR67:=(CLOSE-VAR65)/VAR65*100;
VAR68:=ATAN((VAR63/REF(VAR63,1)-1)*100)*180/3.1416;
VAR69:=ATAN((VAR64/REF(VAR64,1)-1)*100)*180/3.1416;
VAR70:=ATAN((VAR65/REF(VAR65,1)-1)*100)*180/3.1416;
VAR71:=SMA(EMA((VAR63-REF(VAR63,1))/REF(VAR63,1),3)*100,3,1);
VAR72:=EMA(VAR71-REF(VAR71,1),3);
VAR73:=FILTER(VAR70 30 AND VAR69 45 AND CROSS(VAR68,60),10);
VAR74:=FILTER(COUNT(CROSS(VAR68,30),5) =1 AND VAR63 REF(VAR63,1) AND VAR67 REF(VAR67,1) AND VAR64 REF(VAR64,1) AND VAR72 REF(VAR72,1) AND VAR71 REF(VAR71,1),10);
VAR75:=FILTER(COUNT(CROSS(30,VAR68),5) =1 AND (CLOSE VAR65 OR OPEN VAR65) AND VAR63 REF(VAR63,1) AND VAR67 REF(VAR67,1) AND VAR64 REF(VAR64,1),10);
VAR76:=COUNT(CROSS(VAR66,0),3) =1 AND VAR67 REF(VAR67,1) AND VAR63 REF(VAR63,1) AND (CLOSE/REF(CLOSE,1)-1)*100 5 AND REF(CLOSE,1) VAR65;
VAR77:=CROSS(0,VAR66) AND VAR67 REF(VAR67,1) AND VAR64 REF(VAR64,1);
VAR78:=FILTER(VAR77,10);
VAR79:=FILTER(VAR76,10);
DRAWTEXT(VAR78,HIGH*1.02,2),COLORFF99FF;
DRAWTEXT(VAR74,LOW*0.98,3),COLORRED;
DRAWTEXT(VAR79,LOW*0.98,4),COLORYELLOW;
DRAWTEXT(VAR75,HIGH*1.02,5),COLORGREEN;