{公式名称: 量化庄建仓}
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,21);
VAR4:=MA(CLOSE,30);
VAR5:=MA(CLOSE,60);
VAR6:=MA(CLOSE,120);
VAR7:=CLOSE>=VAR3;
VAR8:=CLOSE<VAR3;
VAR9:=STICKLINE(VAR7>=VAR8,LOW,HIGH,0,0);
VAR10:=STICKLINE(VAR7>=VAR8,CLOSE,OPEN,2.2,0);
VAR11:=STICKLINE(VAR7>=VAR8,CLOSE,OPEN,1.5,0);
VAR12:=STICKLINE(VAR7>=VAR8,CLOSE,OPEN,1,0);
VAR13:=STICKLINE(VAR7>=VAR8,CLOSE,OPEN,0.5,0);
VAR14:=STICKLINE(VAR7<VAR8,CLOSE,OPEN,0.5,0);
VAR15:=STICKLINE(VAR7<VAR8,CLOSE,OPEN,1,0);
VAR16:=STICKLINE(VAR7<VAR8,CLOSE,OPEN,1.5,0);
VAR17:=STICKLINE(VAR7<VAR8,CLOSE,OPEN,2.2,0);
VAR18:=STICKLINE(VAR7<VAR8,LOW,HIGH,0,0);
VAR19:=STICKLINE(CROSS(VAR7,VAR8) OR CROSS(VAR8,VAR7),OPEN,CLOSE,1.5,0);
VAR20:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
TESTSKIP(DATE>117042099);
VAR21:=1;
VAR22:=1/WINNER(CLOSE);
VAR23:=MA(CLOSE,13);
VAR24:=100-ABS((CLOSE-VAR23)/VAR23*100);
VAR25:=LLV(LOW,75);
VAR26:=HHV(HIGH,75);
VAR27:=(VAR26-VAR25)/100;
VAR28:=SMA((CLOSE-VAR25)/VAR27,20,1);
VAR29:=SMA((OPEN-VAR25)/VAR27,20,1);
VAR30:=3*VAR28-2*SMA(VAR28,15,1);
VAR31:=3*VAR29-2*SMA(VAR29,15,1);
VAR32:=100-VAR31;
VAR33:=REF(LOW,1);
VAR34:=SMA(ABS(LOW-VAR33),3,1)/SMA(MAX(LOW-VAR33,0),3,1)*100;
VAR35:=EMA(IF(CLOSE*1.2,VAR34*10,VAR34/10),3);
VAR36:=LLV(LOW,38);
VAR37:=HHV(VAR35,38);
VAR38:=IF(LLV(LOW,90),1,0);
VAR39:=EMA(IF(LOW<=VAR36,(VAR35+VAR37*2)/2,0),3)/618*VAR38;
有庄:VAR39,NODRAW,COLORGREEN;
有庄的影子:STICKLINE(VAR39,0,VAR39,1,0),COLORLIRED;
VAR40:=1;
VAR41:=1/WINNER(CLOSE);
VAR42:=MA(CLOSE,13);
VAR43:=100-ABS((CLOSE-VAR42)/VAR42*100);
VAR44:=LLV(LOW,75);
VAR45:=HHV(HIGH,75);
VAR46:=(VAR45-VAR44)/100;
VAR47:=SMA((CLOSE-VAR44)/VAR46,20,1);
VAR48:=SMA((OPEN-VAR44)/VAR46,20,1);
VAR49:=3*VAR47-2*SMA(VAR47,15,1);
VAR50:=3*VAR48-2*SMA(VAR48,15,1);
VAR51:=100-VAR50;
新庄:(100-IF(VAR41>5,IF(VAR41<100,VAR41,VAR43-10),0))*VAR40,POINTDOT,COLORRED;
正能量:MA(WINNER(CLOSE*0.95)*100,3)*VAR40,DOTLINE,COLOR0099FF;
负能量:(100-VAR49)*VAR40,DOTLINE,COLORLIGREEN;
VAR52:=正能量>VAR43;
VAR53:=REF(LOW,1)*0.9;
VAR54:=LOW*0.9;
VAR55:=(VAR54*VOL+VAR53*(CAPITAL-VOL))/CAPITAL;
VAR56:=EMA(VAR55,30);
VAR57:=CLOSE-REF(CLOSE,1);
VAR58:=MAX(VAR57,0);
VAR59:=ABS(VAR57);
VAR60:=SMA(VAR58,7,1)/SMA(VAR59,7,1)*100;
VAR61:=SMA(VAR58,13,1)/SMA(VAR59,13,1)*100;
VAR62:=BARSCOUNT(CLOSE);
VAR63:=SMA(MAX(VAR57,0),6,1)/SMA(ABS(VAR57),6,1)*100;
VAR64:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR65:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR66:=SMA((SMA(VAR65,4,1)-50)*2,3,1);
VAR67:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR68:=SMA(VAR67,4,1);
VAR69:=SMA(VAR68,3,1);
VAR70:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR71:=VAR63<=25 AND VAR64<(-95) AND VAR70>20 AND VAR66<(-30) AND VAR69<30 AND VAR56-CLOSE>=(-0.25) AND VAR60<22 AND VAR61<28 AND VAR62>50;
中线波段图标1:STICKLINE(VAR52,VAR43,正能量,1,0),COLORGREEN;
中线波段图标2:STICKLINE(1,新庄,100,1,0),COLORRED;
中线波段图标3:STICKLINE(VAR71,0,20,1,0),COLORYELLOW;
VAR72:=VAR71;
中线:SMA(VAR20,5,1),COLORLIMAGENTA;
长线:(0+VAR30)*VAR21,COLORYELLOW;
VAR73:=正能量<=20;
VAR74:=长线<=20;
VAR75:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
VAR76:=-((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100);
VAR77:=CROSS(REF(VAR75,0),0);
VAR78:=CROSS(0,REF(VAR75,0));
VAR79:=正能量>VAR24;
VAR80:=REF(LOW,1)*0.9;
VAR81:=LOW*0.9;
VAR82:=(VAR81*VOL+VAR80*(CAPITAL-VOL))/CAPITAL;
VAR83:=EMA(VAR82,30);
VAR84:=CLOSE-REF(CLOSE,1);
VAR85:=MAX(VAR84,0);
VAR86:=ABS(VAR84);
VAR87:=SMA(VAR85,7,1)/SMA(VAR86,7,1)*100;
VAR88:=SMA(VAR85,13,1)/SMA(VAR86,13,1)*100;
VAR89:=BARSCOUNT(CLOSE);
VAR90:=SMA(MAX(VAR84,0),6,1)/SMA(ABS(VAR84),6,1)*100;
VAR91:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR92:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR93:=SMA((SMA(VAR92,4,1)-50)*2,3,1);
VAR94:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR95:=SMA(VAR94,4,1);
VAR96:=SMA(VAR95,3,1);
VAR97:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR98:=VAR90<=25 AND VAR91<(-95) AND VAR97>20 AND VAR93<(-30) AND VAR96<30 AND VAR83-CLOSE>=(-0.25) AND VAR87<22 AND VAR88<28 AND VAR89>50;
VAR99:=(-20);
VAR100:=(-25);
VAR101:=(-30);
VAR102:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR103:=SMA(VAR102,3,1);
VAR104:=SMA(VAR103,3,1);
VAR105:=3*VAR103-2*VAR104;
VAR106:=VAR103;
VAR107:=IF(VAR106>REF(VAR106,1),VAR106,DRAWNULL);
VAR108:=IF(VAR106=REF(VAR106,1),VAR106,DRAWNULL);
VAR109:=IF(VAR106<REF(VAR106,1),VAR106,DRAWNULL);
VAR110:=VAR104;
VAR111:=IF(VAR110>REF(VAR110,1),VAR110,DRAWNULL);
VAR112:=IF(VAR110=REF(VAR110,1),VAR110,DRAWNULL);
VAR113:=IF(VAR110<REF(VAR110,1),VAR110,DRAWNULL);
VAR114:=VAR105;
VAR115:=IF(VAR114>REF(VAR114,1),VAR114,DRAWNULL);
VAR116:=IF(VAR114=REF(VAR114,1),VAR114,DRAWNULL);
VAR117:=IF(VAR114<REF(VAR114,1),VAR114,DRAWNULL);
VAR118:=VAR3;
VAR119:=CLOSE>VAR3;
VAR120:=CLOSE<VAR3;
VAR121:=9;
VAR122:=3;
VAR123:=3;
VAR124:=CROSS(VAR103>VAR104,VAR103);
VAR125:=CROSS(VAR103<VAR104,VAR103);
VAR126:=CROSS(VAR105>VAR104,VAR105);
VAR127:=CROSS(VAR105<VAR104,VAR105);
VAR128:=MA(KDJ.K#WEEK(VAR121,VAR122,VAR123),5);
VAR129:=MA(KDJ.D#WEEK(VAR121,VAR122,VAR123),5);
VAR130:=MA(KDJ.J#WEEK(VAR121,VAR122,VAR123),5);
周金叉:DRAWTEXT(CROSS(KDJ.K#WEEK(VAR121,VAR122,VAR123),KDJ.D#WEEK(VAR121,VAR122,VAR123)),(-3),61),COLORRED;
周死叉:DRAWTEXT(CROSS(KDJ.D#WEEK(VAR121,VAR122,VAR123),KDJ.K#WEEK(VAR121,VAR122,VAR123)),103,115),COLORGREEN;
月金叉:DRAWTEXT(CROSS(KDJ.K#MONTH(VAR121,VAR122,VAR123),KDJ.D#MONTH(VAR121,VAR122,VAR123)),(-3),61),COLORMAGENTA;
月死叉:DRAWTEXT(CROSS(KDJ.D#MONTH(VAR121,VAR122,VAR123),KDJ.K#MONTH(VAR121,VAR122,VAR123)),103,115),COLORYELLOW;
VAR131:=正能量<1;
VAR132:=负能量<1;
多头关注信号:DRAWICON(FILTERX(VAR131,5),(-20),1);
空头关注信号:DRAWICON(FILTERX(VAR132,5),118,2);
第一买点:长线<=20 AND 新庄>=100 AND 有庄<=0 AND 周金叉 AND CROSS(REF(长线,0),REF(长线,1)) AND CROSS(REF(CLOSE,0),REF(VAR3,1));
ZXCP买点1:DRAWICON(第一买点,(-10),5);
第一卖点:长线>80 AND 新庄<100 AND 有庄>0 AND 周死叉 AND CROSS(REF(VAR3,1),REF(CLOSE,0)) AND CROSS(REF(长线,1),REF(长线,0)) AND CROSS(REF(VAR3,1),REF(CLOSE,0));
ZXCP卖点1:DRAWICON(第一卖点,108,4);
DRAWTEXT(周金叉,(-3),61),COLORRED;
DRAWTEXT(周死叉,103,115),COLORGREEN;
天界:123,COLORRED;
地界:(-25),COLORGREEN;
VAR133:=100;
VAR134:=0;
上线:115,DOTLINE,COLORWHITE;
下线:(-15),DOTLINE,COLORWHITE;
958244657.jpg
|