亲测效果还算不错 财神降临主图 通达信指标 源码 贴图
亲测效果还算不错 财神降临主图 通达信指标 源码 贴图
{公式名称: 财神降临主图}
操盘线:MA(CLOSE,5),COLORYELLOW;
VAR1:=(LOW+HIGH+CLOSE*2)/4;
VAR2:=EMA(VAR1,14)*1.1382;
DRAWNUMBER(ISLASTBAR,VAR2,VAR2),COLORWHITE;
VAR3:=EMA(VAR1,14)*1.0618;
DRAWNUMBER(ISLASTBAR,VAR3,VAR3),COLORWHITE;
VAR4:=EMA(VAR1,14);
DRAWNUMBER(ISLASTBAR,VAR4,VAR4),COLORWHITE;
VAR5:=EMA((EMA(CLOSE,29)+EMA(CLOSE,31)+EMA(CLOSE,33))/3,3);
VAR6:=REF(VAR5,1);
VAR7:=EMA(VAR5,25);
VAR8:=(VAR5-REF(VAR5,1))/REF(VAR5,1)*100;
VAR9:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100;
VAR10:=IF(VAR8>=0,VAR5,DRAWNULL);
VAR11:=IF(VAR8<0 AND VAR9<0,VAR5,DRAWNULL);
VAR12:=10;
VAR13:=20;
VAR14:=10;
VAR15:=0;
VAR16:=0;
VAR17:=0;
VAR18:=0;
VAR19:=REF(HIGH,VAR12)=HHV(HIGH,2*VAR12+1);
VAR20:=BACKSET(VAR19,VAR12+1);
VAR21:=FILTER(VAR20,VAR12) AND HIGH=HHV(HIGH,VAR12+1);
VAR22:=BARSLAST(VAR21);
VAR23:=IF(VAR21,CURRBARSCOUNT,0);
VAR24:=IF(VAR22,REF(HIGH,VAR22),HIGH);
VAR25:=IF(VAR22,REF(VAR23,VAR22),VAR23);
VAR26:=REF(VAR24,VAR22+1);
VAR27:=CONST(VAR25);
VAR28:=REF(VAR25,VAR22+1);
VAR29:=CONST(VAR28);
VAR30:=REF(VAR26,VAR22+1);
VAR31:=IF(CURRBARSCOUNT>VAR29,0,1);
VAR32:=FILTER(VAR20,VAR13) AND HIGH=HHV(HIGH,VAR13+1);
VAR33:=BARSLAST(VAR32);
VAR34:=IF(VAR32,CURRBARSCOUNT,0);
VAR35:=IF(VAR33,REF(VAR34,VAR33),VAR34);
VAR36:=CONST(VAR35);
VAR37:=REF(VAR35,VAR33+1);
VAR38:=CONST(VAR37);
VAR39:=DRAWLINE(CURRBARSCOUNT=VAR29,HIGH,CURRBARSCOUNT=VAR27,HIGH,1);
VAR40:=DRAWLINE(CURRBARSCOUNT=VAR29,HIGH,ISLASTBAR,REF(HIGH,VAR29-1),1);
VAR41:=DRAWLINE(CURRBARSCOUNT=VAR27,HIGH,ISLASTBAR,REF(HIGH,VAR27-1),1);
VAR42:=DRAWLINE(CURRBARSCOUNT=VAR38,HIGH,ISLASTBAR,REF(HIGH,VAR38-1),1);
VAR43:=DRAWLINE(CURRBARSCOUNT=VAR36,HIGH,ISLASTBAR,REF(HIGH,VAR36-1),1);
VAR44:=REF(LOW,VAR14)=LLV(LOW,2*VAR14+1);
VAR45:=BACKSET(VAR44,VAR14+1);
VAR46:=FILTER(VAR45,VAR14) AND LOW=LLV(LOW,VAR14+1);
VAR47:=BARSLAST(VAR46);
VAR48:=IF(VAR46,CURRBARSCOUNT,0);
VAR49:=IF(VAR47,REF(LOW,VAR47),LOW);
VAR50:=IF(VAR47,REF(VAR48,VAR47),VAR48);
VAR51:=CONST(VAR50);
VAR52:=REF(VAR49,VAR47+1);
VAR53:=REF(VAR50,VAR47+1);
VAR54:=CONST(VAR53);
VAR55:=DRAWLINE(CURRBARSCOUNT=VAR54,LOW,CURRBARSCOUNT=VAR51,LOW,1);
VAR56:=(VAR39+VAR55)/2;
VAR57:=CONST((VAR39+VAR55)/2);
VAR58:=IF(VAR54<VAR29,VAR54,VAR29);
VAR59:=DRAWLINE(CURRBARSCOUNT=VAR58,VAR56,ISLASTBAR,VAR57,1);
支A:DRAWLINE(CURRBARSCOUNT=VAR51,LOW,ISLASTBAR,REF(LOW,VAR51-1),1),COLORMAGENTA;
VAR60:=DRAWLINE(CURRBARSCOUNT=VAR54,LOW,ISLASTBAR,REF(LOW,VAR54-1),1);
VAR61:=REF(HIGH,8)=HHV(HIGH,2*8+1);
VAR62:=FILTER(VAR61,8);
VAR63:=BACKSET(VAR62,8+1);
VAR64:=FILTER(VAR63,8);
VAR65:=BACKSET(ISLASTBAR,BARSLAST(VAR64)+1);
VAR66:=VAR65>REF(VAR65,1);
VAR67:=REF(LOW,8)=LLV(LOW,2*8+1);
VAR68:=FILTER(VAR67,8);
VAR69:=BACKSET(VAR68,8+1);
VAR70:=FILTER(VAR69,8);
VAR71:=BACKSET(ISLASTBAR,BARSLAST(VAR70)+1);
VAR72:=VAR71>REF(VAR71,1);
VAR73:=INTPART(3*8/5);
VAR74:=REF(HIGH,VAR73)=HHV(HIGH,2*VAR73+1);
VAR75:=FILTER(VAR74,VAR73);
VAR76:=BACKSET(VAR75,VAR73+1);
VAR77:=FILTER(VAR76,VAR73);
VAR78:=BACKSET(ISLASTBAR,BARSLAST(VAR77)+1);
VAR79:=VAR78>REF(VAR78,1);
VAR80:=REF(LOW,VAR73)=LLV(LOW,2*VAR73+1);
VAR81:=FILTER(VAR80,VAR73);
VAR82:=BACKSET(VAR81,VAR73+1);
VAR83:=FILTER(VAR82,VAR73);
VAR84:=BACKSET(ISLASTBAR,BARSLAST(VAR83)+1);
VAR85:=VAR84>REF(VAR84,1);
VAR86:=DRAWLINE(VAR64,HIGH,VAR66,HIGH,1);
VAR87:=DRAWLINE(VAR77,HIGH,VAR79,HIGH,1);
VAR88:=DRAWLINE(VAR70,LOW,VAR72,LOW,1);
VAR89:=DRAWLINE(VAR83,LOW,VAR85,LOW,1);
VAR90:=TROUGHBARS(2,5,1);
VAR91:=HHV(HIGH,VAR90);
VAR92:=VAR91=HIGH AND VAR91<REF(VAR91,1);
VAR93:=SUMBARS(VAR92,2);
VAR94:=PEAKBARS(2,5,1)=1 AND VAR93>=VAR90;
VAR95:=BARSLAST(VAR94);
VAR96:=IF(BARSLAST(VAR92),REF(LOW,BARSLAST(VAR92)),DRAWNULL);
VAR97:=IF(BARSLAST(VAR94),REF(HIGH,VAR95),DRAWNULL);
VAR98:=BARSLAST(CLOSE>REF(CLOSE,1)*1.098);
VAR99:=REF(CLOSE,VAR98);
VAR100:=REF(OPEN,VAR98);
VAR101:=REF(LOW,VAR98);
VAR102:=REF(HIGH,VAR98);
VAR103:=EVERY(CLOSE/REF(CLOSE,1)>=1.097 AND CLOSE=HIGH,1);
VAR104:=EVERY(CLOSE/REF(CLOSE,1)>=1.097 AND CLOSE=HIGH,2);
VAR105:=EVERY(CLOSE/REF(CLOSE,1)>=1.097 AND CLOSE=HIGH,3) AND HIGH>LOW;
VAR106:=EXIST((CLOSE/REF(CLOSE,2)-1)*100>20,2) AND COUNT(VAR99>VAR100,3)>=1 AND OPEN<REF(CLOSE,1) AND CLOSE<REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND REF(CLOSE,1)>REF(CLOSE,2);
VAR107:=EXIST(VAR104,3) AND COUNT(VAR99>VAR100,4)>=1 AND OPEN<REF(CLOSE,1) AND CLOSE<REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE>REF(OPEN,1) AND REF(CLOSE,1)>REF(CLOSE,2);
DRAWTEXT(VAR106,LOW,37),COLORYELLOW;
DRAWTEXT(VAR107,LOW,37),COLORYELLOW;
VAR108:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999;
VAR109:=EXIST(VAR103,5) AND VAR108>75 AND CLOSE>VAR2 AND CLOSE>REF(CLOSE,1) AND CLOSE>VAR2;
VAR110:=VAR108>75 AND CLOSE>VAR2 AND CLOSE>REF(CLOSE,1) AND CLOSE>VAR2;
DRAWTEXT(VAR109,LOW,39),COLORYELLOW;
STICKLINE(VAR110,OPEN,CLOSE,1,0),COLORMAGENTA;
VAR111:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=10-0.01*100/REF(OPEN,1),1,0);
STICKLINE(VAR111,OPEN,CLOSE,1,0),COLORYELLOW;
VAR112:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
STICKLINE(VAR112<(-9.9),OPEN,CLOSE,1,0),COLORBLUE;
VAR113:=LLV(HIGH,240);
VAR114:=100*(CLOSE-VAR113);
VAR115:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR116:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR117:=0;
VAR118:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR119:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR120:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
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);
VAR122:=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);
VAR123:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR124:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR125:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR126:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR127:=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);
VAR128:=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);
VAR129:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR130:=VAR120;
VAR131:=VAR121+VAR123+VAR125+VAR127;
VAR132:=VAR122+VAR124+VAR126+VAR128;
B:IF(VAR130>0 OR VAR131>0,LOW*0.99,DRAWNULL),CROSSDOT,COLORYELLOW,LINETHICK3;
DRAWTEXT(VAR130>0 OR VAR131>0,LOW*0.99,40),COLORRED;
S:IF(VAR132>0,HIGH*1.01,DRAWNULL),CROSSDOT,COLORGREEN,LINETHICK3;
DRAWTEXT(VAR132>0,HIGH*1.02,41),COLORGREEN;
DRAWTEXT(VAR121 AND COUNT(VAR121,30)=1,LOW*0.95,42),COLORMAGENTA;
VAR133:=EMA(CLOSE,2);
VAR134:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
VAR135:=CROSS(VAR133,VAR134);
VAR136:=CROSS(VAR134,VAR133);
DRAWICON(VAR135,LOW-0.1,1);
DRAWICON(VAR136,HIGH+0.1,2);
DRAWTEXT(VAR136,HIGH+0.1,43);
STICKLINE(VAR135,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(VAR136,OPEN,CLOSE,2,0),COLORBLUE;
VAR137:=EMA(CLOSE,21);
VAR138:=EMA(CLOSE,3);
DRAWTEXT(CROSS(VAR138,VAR137),LOW*0.99,44),COLORYELLOW;
VAR139:=HHV(HIGH,20)-2*DKX;
VAR140:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
VAR141:=CROSS(MIN(MA(CLOSE,13),VAR139),CLOSE);
VAR142:=BARSLAST(VAR140);
VAR143:=BARSLAST(VAR141);
VAR144:=VAR142=0 AND REF(VAR143,1)<REF(VAR142,1);
DRAWTEXT(VAR144=1,LOW-0.6,45),COLORYELLOW;