中枢王任远看盘主图 突破卖出 通达信主图/选股指标 源码 贴图
点击下载中枢王任远看盘主图 突破卖出 通达信主图/选股指标 源码 贴图
{公式名称: 中枢公式描述: 王任远看盘主图
主图叠加}
VAR1:=4;
VAR2:=HIGH=HHV(HIGH,VAR1*5) AND HHV(HIGH,VAR1*5) REF(HHV(HIGH,VAR1*5),1);
VAR3:=LOW=LLV(LOW,VAR1*5) AND LLV(LOW,VAR1*5) REF(LLV(LOW,VAR1*5),1);
CC1:DRAWLINE(VAR2,HIGH,VAR3,LOW,0);
CC2:DRAWLINE(VAR3,LOW,VAR2,HIGH,0);
VAR4:=1;
VAR5:=BACKSET(LLV(LOW,5) REF(LLV(LOW,4),1),4);
VAR6:=BACKSET(VAR5=0 AND REF(VAR5,1)=1,2);
VAR7:=IF(VAR6=1 AND REF(VAR6,1)=0,(-1),0);
VAR8:=BACKSET(HHV(HIGH,5) REF(HHV(HIGH,4),1),4);
VAR9:=BACKSET(VAR8=0 AND REF(VAR8,1)=1,2);
VAR10:=IF(VAR9=1 AND REF(VAR9,1)=0,1,0);
VAR11:=IF(LOW REF(HIGH,1),1,IF(HIGH REF(LOW,1),(-1),0));
VAR12:=BARSLAST(VAR10=1);
VAR13:=BARSLAST(VAR7=(-1));
VAR14:=LOWRANGE(LOW);
VAR15:=TOPRANGE(HIGH);
{www.9m8.cn 九毛八公式指标网}
VAR16:=IF(VAR7=(-1) AND REF(VAR12,1) REF(VAR13,1) AND LLV(LOW,VAR12+1) REF(LLV(LOW,VAR12+1),1),(-1),0);
VAR17:=IF(VAR7=(-1) AND REF(VAR12,1) =REF(VAR13,1) AND (VAR12 =4 OR LLV(VAR11,VAR12)=(-1) OR LLV(LOW,VAR13+2) REF(LLV(LOW,VAR13+1),1)),(-1),0);
VAR18:=IF(VAR16=(-1) OR VAR17=(-1) AND LOW REF(HIGH,VAR12+1),(-1),0);
VAR19:=IF(VAR13 4 AND HHV(VAR11,VAR13)!=1 OR REF(VAR18,VAR13)=0,1,0);
VAR20:=IF(VAR10=1 AND REF(VAR13,1) =REF(VAR12,1) AND VAR19=1 AND VAR15 REF(VAR14,VAR13+1) AND VAR15 REF(VAR14,VAR13) AND VAR15 REF(VAR15,VAR12),1,0);
VAR21:=IF(VAR10=1 AND REF(VAR13,1) REF(VAR12,1) AND HHV(HIGH,VAR13+1) REF(HHV(HIGH,VAR13+1),1),1,0);
VAR22:=IF(VAR10=1 AND REF(VAR13,1) =REF(VAR12,1) AND REF(VAR18,VAR13)=(-1) AND (VAR13 =4 OR HHV(VAR11,VAR13)=1),1,0);
VAR23:=IF(VAR21=1 OR VAR22=1 OR VAR20=1 AND HIGH REF(LOW,VAR13+1),1,0);
VAR24:=IF(VAR12 4 AND HHV(VAR11,VAR12)!=1 OR REF(VAR23,VAR12)=0,1,0);
VAR25:=IF(VAR7=(-1) AND REF(VAR12,1) =REF(VAR13,1) AND VAR24=1 AND VAR14 REF(VAR15,VAR12+1) AND VAR14 REF(VAR15,VAR12) AND VAR14 REF(VAR14,VAR13),(-1),0);
VAR26:=IF(VAR7=(-1) AND REF(VAR12,1) REF(VAR13,1) AND LLV(LOW,VAR12+1) REF(LLV(LOW,VAR12+1),1),(-1),0);
VAR27:=IF(VAR7=(-1) AND REF(VAR12,1) =REF(VAR13,1) AND (VAR12 =4 OR LLV(VAR11,VAR12)=(-1) OR VAR25=(-1)),(-1),0);
VAR28:=IF(VAR26=(-1) OR VAR27=(-1) AND LOW REF(HIGH,VAR12+1),(-1),0);
VAR29:=BARSLAST(VAR23=1);
VAR30:=BARSLAST(VAR28=(-1));
VAR31:=IF(VAR30 4 AND HHV(VAR11,VAR30)!=1 OR REF(VAR28,VAR30)=0,1,0);
VAR32:=IF(VAR10=1 AND REF(VAR30,1) =REF(VAR29,1) AND VAR31=1 AND VAR15 REF(VAR14,VAR30+1) AND VAR15 REF(VAR14,VAR30) AND VAR15 REF(VAR15,VAR29),1,0);
VAR33:=IF(VAR10=1 AND REF(VAR30,1) REF(VAR29,1) AND HHV(HIGH,VAR30+1) REF(HHV(HIGH,VAR30+1),1),1,0);
VAR34:=IF(VAR10=1 AND REF(VAR30,1) =REF(VAR29,1) AND REF(VAR28,VAR30)=(-1) AND (VAR30 =4 OR HHV(VAR11,VAR30)=1),1,0);
VAR35:=IF(VAR33=1 OR VAR34=1 OR VAR32=1 AND HIGH REF(LOW,VAR30+1),1,0);
VAR36:=IF(VAR29 4 AND HHV(VAR11,VAR29)!=1 OR REF(VAR33,VAR29)=0,1,0);
VAR37:=IF(VAR7=(-1) AND REF(VAR29,1) =REF(VAR30,1) AND VAR36=1 AND VAR14 REF(VAR15,VAR29+1) AND VAR14 REF(VAR15,VAR29) AND VAR14 REF(VAR14,VAR30),(-1),0);
VAR38:=IF(VAR7=(-1) AND REF(VAR29,1) REF(VAR30,1) AND LLV(LOW,VAR29+1) REF(LLV(LOW,VAR29+1),1),(-1),0);
VAR39:=IF(VAR7=(-1) AND REF(VAR29,1) =REF(VAR30,1) AND (VAR29 =4 OR LLV(VAR11,VAR29)=(-1) OR VAR37=(-1)),(-1),0);
VAR40:=IF(VAR38=(-1) OR VAR39=(-1) AND LOW REF(HIGH,VAR29+1),(-1),0);
VAR41:=BARSLAST(VAR35=1);
VAR42:=BARSLAST(VAR40=(-1));
VAR43:=IF(VAR42 4 AND HHV(VAR11,VAR42)!=1 OR REF(VAR40,VAR42)=0,1,0);
VAR44:=IF(VAR10=1 AND REF(VAR42,1) =REF(VAR41,1) AND VAR43=1 AND VAR15 REF(VAR14,VAR42+1) AND VAR15 REF(VAR14,VAR42) AND VAR15 REF(VAR15,VAR41),1,0);
VAR45:=IF(VAR10=1 AND REF(VAR42,1) REF(VAR41,1) AND HHV(HIGH,VAR42+1) REF(HHV(HIGH,VAR42+1),1),1,0);
VAR46:=IF(VAR10=1 AND REF(VAR42,1) =REF(VAR41,1) AND REF(VAR40,VAR42)=(-1) AND (VAR42 =4 OR HHV(VAR11,VAR42)=1),1,0);
VAR47:=IF(VAR45=1 OR VAR46=1 OR VAR44=1 AND HIGH REF(LOW,VAR42+1),1,0);
VAR48:=IF(VAR41 4 AND HHV(VAR11,VAR41)!=1 OR REF(VAR45,VAR41)=0,1,0);
VAR49:=IF(VAR7=(-1) AND REF(VAR41,1) =REF(VAR42,1) AND VAR48=1 AND VAR14 REF(VAR15,VAR41+1) AND VAR14 REF(VAR15,VAR41) AND VAR14 REF(VAR14,VAR42),(-1),0);
VAR50:=IF(VAR7=(-1) AND REF(VAR41,1) REF(VAR42,1) AND LLV(LOW,VAR41+1) REF(LLV(LOW,VAR41+1),1),(-1),0);
VAR51:=IF(VAR7=(-1) AND REF(VAR41,1) =REF(VAR42,1) AND (VAR41 =4 OR LLV(VAR11,VAR41)=(-1) OR VAR49=(-1)),(-1),0);
VAR52:=IF(VAR50=(-1) OR VAR51=(-1) AND LOW REF(HIGH,VAR41+1),(-1),0);
VAR53:=IF(VAR47=1 AND VAR52=(-1) AND HIGH REF(HIGH,REF(VAR41,1)+2),1,IF(VAR47=1 AND VAR52=(-1) AND LOW REF(LOW,REF(VAR42,1)+2),(-1),0));
VAR54:=IF(VAR53=0,VAR47+VAR52,VAR53);
局部极点:IF(VAR54=(-1),LOW,IF(VAR54=1,HIGH,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;
C1:DRAWLINE(VAR54=(-1),局部极点,VAR54=1,局部极点,0),COLORLIGRAY;
C2:DRAWLINE(VAR54=1,局部极点,VAR54=(-1),局部极点,0),COLORLIGRAY;
VAR55:=IF(VAR4=1,C2=C1 AND VAR8 AND VAR54=1,DRAWNULL);
VAR56:=IF(VAR4=1,C2=C1 AND VAR5 AND VAR54=(-1),DRAWNULL);
VAR57:=BARSLAST(VAR55);
VAR58:=CURRBARSCOUNT=CONST(VAR57)+1;
VAR59:=BARSLAST(VAR58);
VAR60:=CONST(REF(HIGH,VAR59));
VAR61:=REF(VAR57,VAR57+1)+VAR57+1;
VAR62:=CURRBARSCOUNT=CONST(VAR61)+1;
VAR63:=BARSLAST(VAR62);
VAR64:=CONST(REF(HIGH,VAR63));
VAR65:=REF(VAR61,VAR57+1)+VAR57+1;
VAR66:=CURRBARSCOUNT=CONST(VAR65)+1;
VAR67:=BARSLAST(VAR66);
VAR68:=CONST(REF(HIGH,VAR67));
VAR69:=BARSLAST(VAR56);
VAR70:=CURRBARSCOUNT=CONST(VAR69)+1;
VAR71:=BARSLAST(VAR70);
VAR72:=CONST(REF(LOW,VAR71));
VAR73:=REF(VAR69,VAR69+1)+VAR69+1;
VAR74:=CURRBARSCOUNT=CONST(VAR73)+1;
VAR75:=BARSLAST(VAR74);
VAR76:=CONST(REF(LOW,VAR75));
VAR77:=REF(VAR73,VAR69+1)+VAR69+1;
VAR78:=CURRBARSCOUNT=CONST(VAR77)+1;
VAR79:=BARSLAST(VAR78);
VAR80:=CONST(REF(LOW,VAR79));
VAR81:=VAR72 VAR76 AND VAR64 VAR60 AND VAR73 VAR57 AND VAR57 VAR69 AND VAR61 VAR73 AND CONST(CLOSE) VAR76;
VAR82:=IF(VAR81 AND CONST(CLOSE) VAR60,VAR74,DRAWNULL);
STICKLINE(VAR82,CONST(CLOSE),VAR76,0,0),COLORLIMAGENTA;
VAR83:=IF(VAR81 AND CONST(CLOSE) VAR60,ISLASTBAR,DRAWNULL);
STICKLINE(VAR83,CONST(CLOSE),VAR76,0,0),COLORLIMAGENTA;
DRAWLINE(VAR82=1,CONST(CLOSE),VAR83=1,CONST(CLOSE),0),DOTLINE,COLORLIMAGENTA;
DRAWLINE(VAR82=1,VAR76,VAR83=1,VAR76,0),COLORLIMAGENTA;
VAR84:=IF(VAR81 AND CONST(CLOSE) =VAR60,VAR74,DRAWNULL);
STICKLINE(VAR84,VAR60,VAR72,0,0),COLORLIMAGENTA;
VAR85:=IF(VAR81 AND CONST(CLOSE) =VAR60,ISLASTBAR,DRAWNULL);
STICKLINE(VAR85,VAR60,VAR72,0,0),COLORLIMAGENTA;
DRAWLINE(VAR84=1,VAR60,VAR85=1,VAR60,0),COLORLIMAGENTA;
DRAWLINE(VAR84=1,VAR72,VAR85=1,VAR72,0),COLORLIMAGENTA;
VAR86:=VAR72 VAR76 AND VAR60 VAR64 AND VAR69 VAR57 AND VAR61 VAR69 AND VAR73 VAR61 AND CONST(CLOSE) VAR64;
VAR87:=IF(VAR86 AND CONST(CLOSE) VAR72,VAR62,DRAWNULL);
STICKLINE(VAR87,CONST(CLOSE),VAR64,0,0),COLORGREEN;
VAR88:=IF(VAR86 AND CONST(CLOSE) VAR72,ISLASTBAR,DRAWNULL);
STICKLINE(VAR88,CONST(CLOSE),VAR64,0,0),COLORGREEN;
DRAWLINE(VAR87=1,VAR64,VAR88=1,VAR64,0),COLORGREEN;
DRAWLINE(VAR87=1,CONST(CLOSE),VAR88=1,CONST(CLOSE),0),DOTLINE,COLORGREEN;
VAR89:=IF(VAR86 AND CONST(CLOSE) =VAR72,VAR62,DRAWNULL);
STICKLINE(VAR89,VAR64,VAR72,0,0),COLORGREEN;
VAR90:=IF(VAR86 AND CONST(CLOSE) =VAR72,ISLASTBAR,DRAWNULL);
STICKLINE(VAR90,VAR64,VAR72,0,0),COLORGREEN;
DRAWLINE(VAR89=1,VAR64,VAR90=1,VAR64,0),COLORGREEN;
DRAWLINE(VAR89=1,VAR72,VAR90=1,VAR72,0),COLORGREEN;
VAR91:=VAR72 VAR76 AND VAR64 VAR60 AND VAR73 VAR57 AND VAR57 VAR69 AND VAR61 VAR73 AND CONST(CLOSE) VAR72;
VAR92:=IF(VAR91 AND CONST(CLOSE) VAR60,VAR74,DRAWNULL);
STICKLINE(VAR92,CONST(CLOSE),VAR72,0,0),COLORYELLOW;
VAR93:=IF(VAR91 AND CONST(CLOSE) VAR60,ISLASTBAR,DRAWNULL);
STICKLINE(VAR93,CONST(CLOSE),VAR72,0,0),COLORYELLOW;
DRAWLINE(VAR92=1,CONST(CLOSE),VAR93=1,CONST(CLOSE),0),DOTLINE,COLORYELLOW;
DRAWLINE(VAR92=1,VAR72,VAR93=1,VAR72,0),COLORYELLOW;
VAR94:=IF(VAR91 AND CONST(CLOSE) =VAR60,VAR74,DRAWNULL);
STICKLINE(VAR94,VAR60,VAR72,0,0),COLORYELLOW;
VAR95:=IF(VAR91 AND CONST(CLOSE) =VAR60,ISLASTBAR,DRAWNULL);
STICKLINE(VAR95,VAR60,VAR72,0,0),COLORYELLOW;
DRAWLINE(VAR94=1,VAR60,VAR95=1,VAR60,0),COLORYELLOW;
DRAWLINE(VAR94=1,VAR72,VAR95=1,VAR72,0),COLORYELLOW;
VAR96:=VAR72 VAR76 AND VAR60 VAR64 AND VAR69 VAR57 AND VAR61 VAR69 AND VAR73 VAR61 AND CONST(CLOSE) VAR60;
VAR97:=IF(VAR96 AND CONST(CLOSE) VAR72,VAR62,DRAWNULL);
STICKLINE(VAR97,CONST(CLOSE),VAR60,0,0),COLORLICYAN;
VAR98:=IF(VAR96 AND CONST(CLOSE) VAR72,ISLASTBAR,DRAWNULL);
STICKLINE(VAR98,CONST(CLOSE),VAR60,0,0),COLORLICYAN;
DRAWLINE(VAR97=1,VAR60,VAR98=1,VAR60,0),COLORLICYAN;
DRAWLINE(VAR97=1,CONST(CLOSE),VAR98=1,CONST(CLOSE),0),DOTLINE,COLORLICYAN;
VAR99:=IF(VAR96 AND CONST(CLOSE) =VAR72,VAR62,DRAWNULL);
STICKLINE(VAR99,VAR60,VAR72,0,0),COLORLICYAN;
VAR100:=IF(VAR96 AND CONST(CLOSE) =VAR72,ISLASTBAR,DRAWNULL);
STICKLINE(VAR100,VAR60,VAR72,0,0),COLORLICYAN;
DRAWLINE(VAR99=1,VAR60,VAR100=1,VAR60,0),COLORLICYAN;
DRAWLINE(VAR99=1,VAR72,VAR100=1,VAR72,0),COLORLICYAN;
VAR101:=LLV(LOW,13);
VAR102:=HHV(HIGH,13);
VAR103:=SMA((CLOSE-VAR101)/(VAR102-VAR101)*100,5,1);
VAR104:=SMA((VAR102-CLOSE)/(VAR102-VAR101)*100,5,1);
VAR105:=VAR103;
VAR106:=VAR104;
VAR107:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
VAR108:=EMA(VAR107,3);
VAR109:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR110:=EMA(VAR109,9);
VAR111:=CROSS(VAR109,0) OR CROSS(VAR110,0);
VAR112:=CROSS(VAR108,VAR106) AND VAR108 =REF(VAR108,1) AND VAR106 =REF(VAR106,3) AND VAR108 =49.5 AND MA(CLOSE,3) =REF(MA(CLOSE,3),1) AND MA(CLOSE,7) =REF(MA(CLOSE,7),1) AND MA(CLOSE,60) REF(MA(CLOSE,60),3) AND VAR111;
STICKLINE(VAR112,CLOSE,OPEN,4,0),COLORBLUE;
STICKLINE(VAR112 0,CLOSE,OPEN,3,0),COLORBLUE;
STICKLINE(VAR112 0,CLOSE,OPEN,2.5,0),COLOR730000;
STICKLINE(VAR112 0,CLOSE,OPEN,1.5,0),COLOR870000;
STICKLINE(VAR112 0,CLOSE,OPEN,0.8,0),COLOR9B0000;
STICKLINE(VAR112 0,CLOSE,OPEN,0.1,0),COLORAF0000;
STICKLINE(VAR112 0,CLOSE,OPEN,0.5,0),COLORC30000;
VAR113:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR114:=100-ABS(VAR113);
VAR115:=IF(VAR114 90,VAR114,100);
VAR116:=(HIGH+LOW+CLOSE)/3;
VAR117:=(VAR116-MA(VAR116,14))/(0.015*AVEDEV(VAR116,14));
VAR118:=(VAR116-MA(VAR116,70))/(0.015*AVEDEV(VAR116,70));
VAR119:=IF(VAR117 =150 AND VAR117 200 AND VAR118 =150 AND VAR118 200,10,0);
VAR120:=IF(VAR117 =(-150) AND VAR117 (-200) AND VAR118 =(-150) AND VAR118 (-200),(-10),VAR119);
VAR121:=IF(VAR118 =200 AND VAR117 =150,15,IF(VAR118 =(-200) AND VAR117 =(-150),(-15),VAR120))+60;
VAR122:=VAR115 100 AND VAR121
VAR123:=VOL SMA(VOL,3,1)*1.5;
VAR124:=VAR122 AND VAR123;
DRAWICON(VAR124,HIGH*1.03,19);
{www.9m8.cn 九毛八公式指标网}
VAR125:=MA(CLOSE,3);
VAR126:=MA(CLOSE,5);
VAR127:=MA(CLOSE,10);
VAR128:=MA(CLOSE,20);
VAR129:=(VAR125+VAR126)/2;
VAR130:=IF(CLOSE =OPEN,CLOSE,OPEN);
VAR131:=(HIGH-VAR130)/VAR130*100;
VAR132:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR133:=(REF(HIGH,1)-REF(CLOSE,6))/REF(CLOSE,6)*100;
VAR134:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR135:=(LOW-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR136:=(CLOSE-OPEN)/CLOSE*100;
VAR137:=COUNT(COUNT(VAR132 9.9 AND CLOSE=HIGH,1) =1,30)
VAR138:=COUNT(COUNT(VAR132 9.9 AND CLOSE=HIGH,1) =1,60)
VAR139:=REF(HHV(VOL,10),1);
VAR140:=VAR128 REF(VAR128,1) AND VOL VAR139 AND VAR137 AND VAR134 3 AND OPEN =VAR126 AND CLOSE VAR126 AND (COUNT(VAR129 REF(VAR129,1),3) =3 OR COUNT(VAR126 REF(VAR126,1),3) =3) AND COUNT(VAR128 REF(VAR128,1),25)
VAR141:=(CLOSE-OPEN)/OPEN*100;
VAR142:=VAR138 AND VOL 1.3*REF(VOL,1) AND COUNT(VAR141 0.5,6) =5 AND COUNT(VAR125 VAR126,5) =5 AND COUNT(HIGH REF(HIGH,1),6) =5 AND VAR134 4.5 AND OPEN =VAR125 AND CLOSE VAR125 AND OPEN VAR126;
VAR143:=VAR112;{www.9m8.cn 九毛八公式指标网}
VAR144:=VAR143=1 AND COUNT(VAR143,15)=1;
VAR145:=COUNT(VAR144,8)=1 AND COUNT(VOL REF(VOL,1),3) 3 AND COUNT(VAR131 4 AND CLOSE OPEN,1)=0 AND VAR136 (-5.2) AND VOL 1.17*REF(VOL,1) AND VOL VAR139 AND (VAR126 REF(VAR126,1) OR VAR125 REF(VAR125,1));
VAR146:=VAR145;
VAR147:=VAR144=0 AND COUNT(VAR144,8) =1 AND (VAR146=0 OR COUNT(VAR146=1,8)
VAR148:=VAR144=0 AND COUNT(VAR144,8) =1 AND VAR146=1;
VAR149:=VAR147=1 AND COUNT(VAR147,8)=1;
VAR150:=VAR148=1 AND COUNT(VAR148,8) =1 AND COUNT(VAR147,8)=0;
MR:DRAWICON(VAR144,(OPEN+CLOSE)/2,23);
MC:DRAWICON(VAR149,(OPEN+CLOSE)/2,35);
CG:DRAWICON(VAR150,(OPEN+CLOSE)/2,1);