财神爷——志鸿 通达信副图指标 源码 贴图
2019-12-21 10:55:00来源:本站整理浏览:385
财神爷——志鸿 通达信副图指标 源码 贴图
VAR1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*10;
VAR2:=EMA(VAR1,27);
VAR3:=2*(VAR1-VAR2);
VAR4:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR5:=SMA(VAR4,3,1);
VAR6:=SMA(VAR5,3,1);
VAR7:=3*VAR5-2*VAR6;
VAR8:=MA(CLOSE,3);
VAR9:=MA(CLOSE,5);
VAR10:=MA(CLOSE,10);
VAR11:=MA(CLOSE,13);
VAR12:=MA(CLOSE,30);
VAR13:=MA(CLOSE,34);
VAR14:=MA(CLOSE,55);
VAR15:=MA(CLOSE,60);
VAR16:=MA(CLOSE,90);
VAR17:=MA(CLOSE,120);
VAR18:=MA(CLOSE,250);
VAR19:=(CLOSE-VAR9)/VAR9*100;
VAR20:=(CLOSE-VAR10)/VAR10*100;
VAR21:=(CLOSE-VAR11)/VAR11*100;
VAR22:=(CLOSE-VAR12)/VAR12*100;
VAR23:=(CLOSE-VAR13)/VAR13*100;
VAR24:=(CLOSE-VAR15)/VAR15*100;
VAR25:=(CLOSE-VAR16)/VAR16*100;
VAR26:=(CLOSE-VAR17)/VAR17*100;
VAR27:=(CLOSE-VAR18)/VAR18*100;
VAR28:=MA(CLOSE,4);
VAR29:=MA(CLOSE,25);
VAR30:=MA(CLOSE,45);
VAR31:=MA(CLOSE,74);
VAR32:=MA(CLOSE,99);
VAR33:=MA(CLOSE,144);
VAR34:=MA(CLOSE,165);
VAR35:=MA(CLOSE,200);
VAR36:=MA(CLOSE,318);
VAR37:=MA(CLOSE,453);
VAR38:=EMA(CLOSE,17);
VAR39:=EMA(CLOSE,50);
VAR40:=100*(CLOSE-VAR12)/VAR12;
鸿鹄之志:100-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40)),COLORFFFFCC;
VAR41:=CLOSE/REF(CLOSE,1)<=0.97 AND OPEN/CLOSE>=1.02 OR (CLOSE/REF(CLOSE,1)<=0.95 AND OPEN!=CLOSE);
VAR42:=SMA(MAX(CLOSE-REF(CLOSE,1),0),9,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),9,1)*100;
VAR43:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
VAR44:=ABS(VAR43-VAR42)<9 AND VAR43<20 AND VAR42>9.5 AND VAR42<12;
VAR45:=(VAR44 AND VAR19<(-9) AND VAR41 AND VOL<REF(VOL,1)*3)*VOL*1.5;
VAR46:=REF(VAR45,1);{WWW.GPXIAZAI.COM}
VAR47:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR48:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR49:=(HIGH+LOW+CLOSE)/3;
VAR50:=(VAR49-MA(VAR49,14))/(0.015*AVEDEV(VAR49,14));
VAR51:=REF(VAR50,1)>(-180);
VAR52:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR53:=SMA(VAR52,3,1);
VAR54:=SMA(VAR53,3,1);
VAR55:=3*VAR53-2*VAR54;
VAR56:=CROSS(VAR55,0);
VAR57:=CLOSE/REF(CLOSE,1)>=1.066 AND HIGH/CLOSE<1.005 AND MA(CLOSE,46)/CLOSE>=1.19;
VAR58:=VOL/REF(VOL,3)>=1.29;
VAR59:=VAR47<19 AND VAR48<23 AND VAR56 AND VAR51;
VAR60:=VAR57 AND COUNT(VAR57,10)=1;
VAR61:=VAR59>=1 AND VAR58;
VAR62:=VAR61 AND COUNT(VAR61,20)=1;
VAR63:=VAR62 OR VAR60;
VAR64:=REF(CLOSE,1)/REF(CLOSE,2)<=0.97 AND VAR3>(-2.5) AND REF(VAR6,1)<20 AND CLOSE>=OPEN AND CLOSE<VAR17 AND REF(VAR7,1)<10 AND HIGH<REF(OPEN,1) AND LOW>=REF(CLOSE,1);
VAR65:=REF(CLOSE,1)/REF(CLOSE,2)<=0.97 AND CLOSE>REF(HIGH,1) AND CLOSE<VAR17 AND VAR5>REF(VAR5,1) AND VAR7<30;
VAR66:=REF(VAR65,1) AND VAR6<30 AND CLOSE/REF(CLOSE,1)<0.98 AND VOL<REF(VOL,1);
VAR67:=VAR7<(-3) AND VAR6<25 AND CLOSE/REF(CLOSE,1)<=0.97 AND OPEN/CLOSE>=1.02 AND VOL<REF(VOL,1)*2.5;
VAR68:=REF(VAR67,1) AND CLOSE>OPEN AND VAR6-VAR5>3.5 AND VAR7>REF(VAR7,1);
VAR69:=(VAR64 OR VAR66 OR VAR68)*2;
VAR70:=CROSS(VAR53,VAR54)*60;
VAR71:=REF(CLOSE,1)/REF(CLOSE,2)<=0.97 AND REF(OPEN,1)/REF(CLOSE,1)>=1.02;
VAR72:=CLOSE/REF(CLOSE,1)<=0.96 AND OPEN/CLOSE>=1.02 OR (CLOSE/REF(CLOSE,1)<=0.95 AND OPEN!=CLOSE);
VAR73:=1;
VAR74:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
VAR75:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*VAR73;
VAR76:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR77:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*VAR73;
VAR78:=(VAR23+10)*5;
VAR79:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR80:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR81:=(VAR75+VAR76+VAR77+VAR78+VAR79+VAR80)/6*VAR73;
VAR82:=EMA(VAR81,3);
VAR83:=ABS(VAR78-VAR80);
VAR84:=(VAR81+VAR83)/2;
VAR85:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VAR86:=VAR85+VAR84;
VAR87:=IF(VAR74>0 AND VAR86<0,200,0)*VAR73;
VAR88:=IF(VAR84<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,(-50),0);
VAR89:=IF(VAR86<0 AND VAR88=(-50),100,0)*VAR73;
VAR90:=REF(CLOSE,2)*0.865;
VAR91:=REF(CLOSE,13)*0.772;
VAR92:=MIN(VAR90,VAR91);
VAR93:=100*VOL/CAPITAL*VAR73;
VAR94:=IF((CLOSE-VAR92)/CLOSE<3/100 AND SUM(VAR93,5)/5<1.8,1,0);
VAR95:=IF(VAR94>0 AND (VAR88<0 OR VAR74>0),100,0);
VAR96:=IF(VAR87>0 AND VAR89>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR (VAR94>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902) OR (VAR87>0 AND VAR89>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR94>0 AND (VAR88<0 OR VAR74>0) AND VAR95<10),50,0);
VAR97:=VAR87>0 AND VAR89>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR94>0 AND (VAR88<0 OR VAR74>0) OR (VAR87>0 AND VAR89>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR (VAR94>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902));
VAR98:=VAR95 OR VAR97;
VAR99:=VAR95;
VAR100:=MA(CLOSE,80)-VAR10/3*VAR73;
VAR101:=AMOUNT/VOL;
VAR102:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);
VAR103:=VOL*CLOSE;
VAR104:=EMA(VAR103,5)/EMA(VOL,5);
VAR105:=(CLOSE-VAR104)/VAR104*100;
VAR106:=VAR101/100;
VAR107:=MA(VAR106,5);
VAR108:=MA(VAR106,20);
VAR109:=MA(VAR106,30);
VAR110:=MA(CLOSE,27);
VAR111:=(CLOSE-VAR110)/VAR110*100;
VAR112:=MA(VAR111,3);
VAR113:=VAR105<(-2) AND (VAR107>VAR106*1.03 AND VAR108>VAR106*1.13);
VAR114:=(2*CLOSE+HIGH+LOW)/4;
VAR115:=EMA((EMA(VAR114,3)+EMA(VAR114,6)+EMA(VAR114,12)+EMA(VAR114,24))/4,2);
VAR116:=(1+100/1000)*VAR115;
VAR117:=(CLOSE-COST(10))/CLOSE*100;
VAR118:=(1+(-120)/1000)*VAR115;
VAR119:=IF(LOW<VAR118 AND CLOSE<OPEN AND VAR117<(-13)=1,65,0);
VAR120:=SUM(VOL/CAPITAL,13)*100;
VAR121:=(REF(CLOSE,13)-CLOSE)/REF(CLOSE,13)*100;
VAR122:=VAR120<=30 AND VAR120>=2 AND VOL/CAPITAL*100<2 AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*100<6;
VAR123:=MA(CLOSE,44);
VAR124:=(CLOSE-VAR123)/VAR123;
VAR125:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR126:=SUM(AMOUNT,13)/VAR106/100;
VAR127:=DMA(VAR125,VOL/VAR126);
VAR128:=(CLOSE-VAR127)/VAR127*100;
VAR129:=9999;
VAR130:=CLOSE-REF(MA(CLOSE,20),11);
VAR131:=IF(VAR74>0 AND VAR86<0,200,0)*VAR130;
VAR132:=IF(VAR86<0 AND VAR88=(-50),100,0)*VAR130;
VAR133:=100*VOL/CAPITAL*VAR130;
VAR134:=IF((CLOSE-VAR92)/CLOSE<3/100 AND SUM(VAR133,5)/5<1.8,1,0);
VAR135:=IF(VAR134>0 AND (VAR88<0 OR VAR74>0),100,0);
VAR136:=IF(VAR135>0,60,0);
VAR137:=IF(VAR131>0 AND VAR132>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR (VAR134>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902) OR (VAR131>0 AND VAR132>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR134>0 AND (VAR88<0 OR VAR74>0) AND VAR135<10),50,0);
VAR138:=VAR131>0 AND VAR132>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR134>0 AND (VAR88<0 OR VAR74>0) OR (VAR131>0 AND VAR132>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR (VAR134>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902));
VAR139:=VAR136 OR VAR138;
VAR140:=VAR135;
VAR141:=MA(CLOSE,80)-VAR10/3*VAR130;
VAR142:=REF(KDJ.J,1)<KDJ.J;
VAR143:=CLOSE/REF(CLOSE,1)<0.98 AND OPEN!=CLOSE;
VAR144:=SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,18,1),12,1);
VAR145:=SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,12,1);
VAR146:=IF(CROSS(VAR145,VAR144),30,0);
VAR147:=(HIGH+LOW+CLOSE)/3;
VAR148:=(VAR147-MA(VAR147,14))/(0.015*AVEDEV(VAR147,14));
VAR149:=(VAR147-MA(VAR147,85))/(0.015*AVEDEV(VAR147,85));
VAR150:=IF(VAR149>=200 AND VAR148>=150,10,0);
VAR151:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR152:=IF(CROSS(80,VAR151),30,0);
VAR153:=BARSLAST(CROSS((-10),VAR112)=1);
VAR154:=BARSLAST(CROSS(VAR112,10)=1);
VAR155:=VAR112<(-10) AND VAR153>3;
VAR156:=VAR112>10 AND VAR154>3;
安全:(IF(VAR155,VAR112,0)<0)*(-10),DOTLINE,COLORGREEN;
风险:100,DOTLINE,COLORLIMAGENTA;
龙抬头:(VAR70 AND 安全 AND VAR5-VAR6>1.5 AND OPEN!=HIGH AND VAR25<(-10) OR (安全 AND CROSS(VAR5,VAR6)))*10,STICK,COLORRED;
龙抬头1:STICKLINE(龙抬头>0,0,15,3,0),COLORYELLOW;
安全区:STICKLINE(IF(VAR155,VAR112,0)<0,(-10),0,10,1),COLORGREEN;
风险区:STICKLINE(IF(VAR156,VAR112,0)>0,110,100,10,1),COLORRED;
VAR157:=MAX(MAX(MAX(MAX(VAR38,VAR39),VAR29),VAR32),VAR35)/MIN(MIN(MIN(MIN(VAR38,VAR39),VAR29),VAR32),VAR35)<1.05;
VAR158:=(CLOSE<VAR16 AND CROSS(VAR5,VAR6) AND REF(VAR1,1)<1 AND VAR1>VAR2 AND VAR7>REF(VAR7,4) AND REF(VAR3,1)<REF(VAR3,2) AND VAR3>REF(VAR3,1))*55;
VAR159:=FILTER(REF(VAR39,1)<REF(VAR39,2) AND CLOSE>VAR32 AND VAR39>REF(VAR39,1) AND VAR1>VAR2 AND VAR7>REF(VAR7,1),5)*45;
VAR160:=MAX(MAX(MAX(MAX(VAR12,VAR15),VAR16),VAR17),VAR18)/MIN(MIN(MIN(MIN(VAR12,VAR15),VAR16),VAR17),VAR18)<1.05;
VAR161:=MAX(MAX(MAX(VAR12,VAR15),VAR16),VAR17)/MIN(MIN(MIN(VAR12,VAR15),VAR16),VAR17)<1.05;
海面:20,COLORLIBLUE;{WWW.GPXIAZAI.COM}
DRAWTEXT(ISLASTBAR,海面,3),COLORGREEN;
海天分界线:50,COLORYELLOW;
DRAWTEXT(ISLASTBAR,海天分界线,4),COLORYELLOW;
天际:80,COLORRED;
DRAWTEXT(ISLASTBAR,天际,5),COLORRED;
VAR162:=HHV(HIGH,9)-LLV(LOW,9);
VAR163:=HHV(HIGH,9)-CLOSE;
VAR164:=CLOSE-LLV(LOW,9);
VAR165:=VAR163/VAR162*100-70;
VAR166:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
VAR167:=(2*CLOSE+HIGH+LOW)/4;
VAR168:=SMA(VAR164/VAR162*100,3,1);
VAR169:=LLV(LOW,34);
VAR170:=SMA(VAR168,3,1)-SMA(VAR165,9,1);
VAR171:=IF(VAR170>100,VAR170-100,0);
VAR172:=HHV(HIGH,34);
多:EMA((VAR167-VAR169)/(VAR172-VAR169)*100,13),COLORRED;
空:EMA(0.667*REF(多,1)+0.333*多,2);
DRAWBAND(多,RGB(255,0,0),空,RGB(256,200,10));
DRAWTEXT(龙抬头>0,(-5),6),COLORYELLOW;
- 上一篇公式:顶底背离 通达信副图指标 源码 贴图
- 下一篇公式:超短追涨 通达信选股指标 源码 贴图