2023攻击涨停买入 跟随庄家起涨《通达信+指标+公式+副图+源码》
副图公式源码支持 手机/电脑
CAI1:=CLOSE;CAI2:=LOW;CAI3:=HIGH;CAI4:=OPEN;
CAI5:=4*CAI1;CAI6:=3*CAI2;CAI7:=2*CAI3;CAI8:=1*CAI4;
CAI9:=POW(CAI5+CAI6+CAI7+CAI8,2);
CAI10:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55);
CAI11:=20*CAI1+19*CAI2+18*CAI3+17*CAI4;
CAI12:=100-100/(1+CAI10);
CAI13:=REF(CAI1,3)>REF((CAI4+CAI3)/2,2);
CAI14:=BARSSINCE(CAI3>10);
CAI15:=CAI1/REF(CAI1,1);CAI16:=REF(CAI2,1)/CAI2;
CAI17:=SQRT(CAI10)/CAI9;
CAI18:=SLOPE(CAI11+CAI12,CAI14);
CAI19:=CAI15 AND CAI16;CAI20:=SQRT(CAI9)/CAI10;
CAI21:=CAI1>REF(CAI1,1) AND CAI3>REF(CAI3,1);
CAI22:=CAI1-REF(MA(CAI1,20),20/2+1);CAI23:=MA(CAI22,6);
CAI24:=SUM(MA(CAI3-CAI2,9)/MA(MA(CAI3-CAI2,9),9),25);
CAI25:=MA(CAI24,6);CAI26:=4;CAI27:=3;CAI28:=2;CAI29:=1;
CAI30:=BARSCOUNT(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4);
CAI31:=REF(CAI3,CAI26/CAI28)>REF(CAI2,SQRT(CAI26));
CAI32:=CAI1/REF(CAI1,CAI28-CAI29)>CAI29+POW(CAI27,CAI28)/(CAI28+CAI29)/100;
CAI33:=REF(CAI2+CAI26,CAI27)<REF(CAI3+2*CAI28,CAI28+CAI29);
CAI34:=EMA(CAI11,CAI26+CAI28);
CAI35:=SMA(CAI9,CAI26*2+1,CAI28+CAI29);
CAI36:=CAI26*CAI2+CAI27*CAI4-CAI28*CAI1+CAI7/CAI27!=POW(CAI28,2)*CAI3+(CAI26-CAI29)*CAI4-SQRT(CAI26)*CAI1+CAI3*CAI28/(CAI28+CAI29);
CAI37:=CAI30+CAI26+CAI27+CAI28+CAI29+CAI5/CAI26;
CAI38:=REF(CAI7-CAI3,CAI26)>REF(CAI6-CAI28*CAI2,CAI5/CAI1);
CAI39:=EMA(CAI5+CAI6+CAI7+CAI8,CAI26+CAI28);
CAI40:=CAI26*CAI27*CAI28*CAI29+CAI26*CAI27-CAI27*CAI28;
CAI41:=CAI5/REF(POW(CAI28,2),CAI26-CAI27);
CAI42:=CAI28*CAI35;
CAI43:=CAI29+(SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26)/108;
CAI44:=CAI41+CAI27*CAI28>CAI43+CAI26+CAI28;
CAI45:=CAI26+CAI27+CAI28+CAI29;
CAI46:=CAI10+CAI11;CAI47:=REF(LOW,1);
CAI48:=SMA(ABS(LOW-CAI47),3,1)/SMA(MAX(LOW-CAI47,0),3,1)*100;
CAI49:=EMA(CAI48*10,3);
CAI50:=SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26;
CAI51:=LLV(LOW,13);CAI52:=HHV(CAI49,13);
CAI53:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618;
CAI54:=IF(CAI53>500,500,CAI53);CAI55:=CAI48+CAI24;
CAI56:=CAI49+CAI22;CAI57:=CAI30>CAI40;
CAI58:=MA(CAI1,CAI26+CAI18+CAI28);
CAI59:=MA(CAI5-CAI27*CAI1,CAI26+CAI27+CAI28);
CAI60:=(CAI27*CAI28+CAI26)*CAI2!=(CAI27*CAI26-CAI28)*CAI3;
CAI61:=MA(CAI51,CAI27+CAI27+CAI26);
CAI62:=MA(CAI52,CAI58+CAI59+CAI61);CAI63:=CAI43;
CAI64:=REF(CLOSE,CAI27)<1.095*REF(CLOSE,CAI26+CAI28) AND REF(CLOSE,CAI27)>1.028*REF(CLOSE,CAI26+CAI28) AND CAI59>CAI58 AND REF(LOW,CAI28+CAI27+CAI26)<REF(HIGH,CAI29+CAI28+CAI27) AND NOT(REF(CLOSE,CAI28*CAI27)>REF(CLOSE,CAI28*CAI26)) AND REF((CLOSE+HIGH+OPEN)/CAI26,CAI28*CAI27)>1.03*REF((CLOSE+HIGH+OPEN)/(CAI27+CAI28-CAI29),CAI26+CAI28+CAI27-CAI28-CAI29) AND CAI56>CAI55;
CAI65:=CAI61>CAI59 AND CAI53>CAI48 AND REF(CLOSE,CAI27+CAI28)>REF(HIGH,CAI28*CAI26) AND REF(LOW,CAI27*CAI28)<0.97*REF(CLOSE,CAI25+CAI26+CAI27) AND BARSLAST(REF(CLOSE,3)>REF(LOW,4)) AND REF(4*CLOSE+OPEN+2*LOW,8)>1.02*REF(OPEN+4*CLOSE+2*HIGH,8);
CAI66:=8*CLOSE+7*OPEN+6*HIGH+5*LOW;
CAI67:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618*(CAI27*CAI28+CAI29)/((CAI26+CAI27)*CAI53)+(CAI26*CAI27*CAI28+CAI28);
CAI68:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
CAI69:=SUM(IF(CLOSE=REF(CLOSE,1),0,CAI68),0);
CAI70:=CAI5/((CAI27-CAI28)*CAI1)*CAI67;CAI71:=MA(CAI69,33);
CAI72:=(INDEXV-REF(INDEXV,CAI26))/REF(INDEXV,CAI26);
CAI73:=(VOL-REF(VOL,CAI26))/REF(VOL,CAI26);
CAI74:=REF(CLOSE,CAI26+CAI27)>REF(HIGH,CAI26+CAI28) AND FILTER(CROSS(CAI70,CAI29+CAI28),CAI29+CAI28) AND REF((CAI26+CAI27)*CAI3,CAI26+CAI27+CAI28)<0.97*REF((CAI27*CAI28+CAI29)*CAI2,CAI28+CAI26+CAI27);
CAI75:=CAI70+EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618/CAI53-(CAI27*CAI28+SQRT(CAI26)+CAI29);
CAI76:=CAI67/CAI27+POW(CAI27*(CAI28+CAI29),2)+CAI26*CAI27-CAI28;
CAI77:=CAI76/CAI75+CAI7/HIGH*(8*CLOSE+7*OPEN+6*HIGH+5*LOW)/(CAI28*CAI76-CAI75)/CAI66;
CAI78:=7*CLOSE+6*OPEN+5*HIGH+(CAI26*CAI27*CAI28*CAI29-CAI67+CAI27*CAI28+CAI29)*LOW;
CAI79:=CAI66-CAI78;CAI80:=CAI79-(CLOSE+OPEN+LOW);
CAI81:=CAI80*CAI77;
CAI82:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55)+EMA(CAI81,CAI50)-CAI10;
CAI83:=MA(CAI24,6)+CAI26*CAI27*CAI28*CAI29-CAI25-CAI27*CAI28-CAI26-CAI28;
CAI84:=CAI57 AND CROSS(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4,CAI82) AND CAI36 AND CAI60;
CAI85:=CAI64 OR CAI65 OR CAI74 OR CAI84;
攻击涨停:FILTER(CAI85,CAI83),COLORRED;
A1:=BARSLAST(攻击涨停);
A2:=COUNT(REF(C,1)<REF(MA(C,5),1),A1);
买入:C<MA(C,5) AND A2=0 AND A1<10;
选股公式源码
{选股公式一:攻击涨停}
CAI1:=CLOSE;CAI2:=LOW;CAI3:=HIGH;CAI4:=OPEN;
CAI5:=4*CAI1;CAI6:=3*CAI2;CAI7:=2*CAI3;CAI8:=1*CAI4;
CAI9:=POW(CAI5+CAI6+CAI7+CAI8,2);
CAI10:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55);
CAI11:=20*CAI1+19*CAI2+18*CAI3+17*CAI4;
CAI12:=100-100/(1+CAI10);
CAI13:=REF(CAI1,3)>REF((CAI4+CAI3)/2,2);
CAI14:=BARSSINCE(CAI3>10);
CAI15:=CAI1/REF(CAI1,1);CAI16:=REF(CAI2,1)/CAI2;
CAI17:=SQRT(CAI10)/CAI9;
CAI18:=SLOPE(CAI11+CAI12,CAI14);
CAI19:=CAI15 AND CAI16;CAI20:=SQRT(CAI9)/CAI10;
CAI21:=CAI1>REF(CAI1,1) AND CAI3>REF(CAI3,1);
CAI22:=CAI1-REF(MA(CAI1,20),20/2+1);CAI23:=MA(CAI22,6);
CAI24:=SUM(MA(CAI3-CAI2,9)/MA(MA(CAI3-CAI2,9),9),25);
CAI25:=MA(CAI24,6);CAI26:=4;CAI27:=3;CAI28:=2;CAI29:=1;
CAI30:=BARSCOUNT(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4);
CAI31:=REF(CAI3,CAI26/CAI28)>REF(CAI2,SQRT(CAI26));
CAI32:=CAI1/REF(CAI1,CAI28-CAI29)>CAI29+POW(CAI27,CAI28)/(CAI28+CAI29)/100;
CAI33:=REF(CAI2+CAI26,CAI27)<REF(CAI3+2*CAI28,CAI28+CAI29);
CAI34:=EMA(CAI11,CAI26+CAI28);
CAI35:=SMA(CAI9,CAI26*2+1,CAI28+CAI29);
CAI36:=CAI26*CAI2+CAI27*CAI4-CAI28*CAI1+CAI7/CAI27!=POW(CAI28,2)*CAI3+(CAI26-CAI29)*CAI4-SQRT(CAI26)*CAI1+CAI3*CAI28/(CAI28+CAI29);
CAI37:=CAI30+CAI26+CAI27+CAI28+CAI29+CAI5/CAI26;
CAI38:=REF(CAI7-CAI3,CAI26)>REF(CAI6-CAI28*CAI2,CAI5/CAI1);
CAI39:=EMA(CAI5+CAI6+CAI7+CAI8,CAI26+CAI28);
CAI40:=CAI26*CAI27*CAI28*CAI29+CAI26*CAI27-CAI27*CAI28;
CAI41:=CAI5/REF(POW(CAI28,2),CAI26-CAI27);
CAI42:=CAI28*CAI35;
CAI43:=CAI29+(SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26)/108;
CAI44:=CAI41+CAI27*CAI28>CAI43+CAI26+CAI28;
CAI45:=CAI26+CAI27+CAI28+CAI29;
CAI46:=CAI10+CAI11;CAI47:=REF(LOW,1);
CAI48:=SMA(ABS(LOW-CAI47),3,1)/SMA(MAX(LOW-CAI47,0),3,1)*100;
CAI49:=EMA(CAI48*10,3);
CAI50:=SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26;
CAI51:=LLV(LOW,13);CAI52:=HHV(CAI49,13);
CAI53:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618;
CAI54:=IF(CAI53>500,500,CAI53);CAI55:=CAI48+CAI24;
CAI56:=CAI49+CAI22;CAI57:=CAI30>CAI40;
CAI58:=MA(CAI1,CAI26+CAI18+CAI28);
CAI59:=MA(CAI5-CAI27*CAI1,CAI26+CAI27+CAI28);
CAI60:=(CAI27*CAI28+CAI26)*CAI2!=(CAI27*CAI26-CAI28)*CAI3;
CAI61:=MA(CAI51,CAI27+CAI27+CAI26);
CAI62:=MA(CAI52,CAI58+CAI59+CAI61);CAI63:=CAI43;
CAI64:=REF(CLOSE,CAI27)<1.095*REF(CLOSE,CAI26+CAI28) AND REF(CLOSE,CAI27)>1.028*REF(CLOSE,CAI26+CAI28) AND CAI59>CAI58 AND REF(LOW,CAI28+CAI27+CAI26)<REF(HIGH,CAI29+CAI28+CAI27) AND NOT(REF(CLOSE,CAI28*CAI27)>REF(CLOSE,CAI28*CAI26)) AND REF((CLOSE+HIGH+OPEN)/CAI26,CAI28*CAI27)>1.03*REF((CLOSE+HIGH+OPEN)/(CAI27+CAI28-CAI29),CAI26+CAI28+CAI27-CAI28-CAI29) AND CAI56>CAI55;
CAI65:=CAI61>CAI59 AND CAI53>CAI48 AND REF(CLOSE,CAI27+CAI28)>REF(HIGH,CAI28*CAI26) AND REF(LOW,CAI27*CAI28)<0.97*REF(CLOSE,CAI25+CAI26+CAI27) AND BARSLAST(REF(CLOSE,3)>REF(LOW,4)) AND REF(4*CLOSE+OPEN+2*LOW,8)>1.02*REF(OPEN+4*CLOSE+2*HIGH,8);
CAI66:=8*CLOSE+7*OPEN+6*HIGH+5*LOW;
CAI67:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618*(CAI27*CAI28+CAI29)/((CAI26+CAI27)*CAI53)+(CAI26*CAI27*CAI28+CAI28);
CAI68:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
CAI69:=SUM(IF(CLOSE=REF(CLOSE,1),0,CAI68),0);
CAI70:=CAI5/((CAI27-CAI28)*CAI1)*CAI67;CAI71:=MA(CAI69,33);
CAI72:=(INDEXV-REF(INDEXV,CAI26))/REF(INDEXV,CAI26);
CAI73:=(VOL-REF(VOL,CAI26))/REF(VOL,CAI26);
CAI74:=REF(CLOSE,CAI26+CAI27)>REF(HIGH,CAI26+CAI28) AND FILTER(CROSS(CAI70,CAI29+CAI28),CAI29+CAI28) AND REF((CAI26+CAI27)*CAI3,CAI26+CAI27+CAI28)<0.97*REF((CAI27*CAI28+CAI29)*CAI2,CAI28+CAI26+CAI27);
CAI75:=CAI70+EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618/CAI53-(CAI27*CAI28+SQRT(CAI26)+CAI29);
CAI76:=CAI67/CAI27+POW(CAI27*(CAI28+CAI29),2)+CAI26*CAI27-CAI28;
CAI77:=CAI76/CAI75+CAI7/HIGH*(8*CLOSE+7*OPEN+6*HIGH+5*LOW)/(CAI28*CAI76-CAI75)/CAI66;
CAI78:=7*CLOSE+6*OPEN+5*HIGH+(CAI26*CAI27*CAI28*CAI29-CAI67+CAI27*CAI28+CAI29)*LOW;
CAI79:=CAI66-CAI78;CAI80:=CAI79-(CLOSE+OPEN+LOW);
CAI81:=CAI80*CAI77;
CAI82:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55)+EMA(CAI81,CAI50)-CAI10;
CAI83:=MA(CAI24,6)+CAI26*CAI27*CAI28*CAI29-CAI25-CAI27*CAI28-CAI26-CAI28;
CAI84:=CAI57 AND CROSS(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4,CAI82) AND CAI36 AND CAI60;
CAI85:=CAI64 OR CAI65 OR CAI74 OR CAI84;
攻击涨停:FILTER(CAI85,CAI83),COLORRED;
{选股公式二:买入}
CAI1:=CLOSE;CAI2:=LOW;CAI3:=HIGH;CAI4:=OPEN;
CAI5:=4*CAI1;CAI6:=3*CAI2;CAI7:=2*CAI3;CAI8:=1*CAI4;
CAI9:=POW(CAI5+CAI6+CAI7+CAI8,2);
CAI10:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55);
CAI11:=20*CAI1+19*CAI2+18*CAI3+17*CAI4;
CAI12:=100-100/(1+CAI10);
CAI13:=REF(CAI1,3)>REF((CAI4+CAI3)/2,2);
CAI14:=BARSSINCE(CAI3>10);
CAI15:=CAI1/REF(CAI1,1);CAI16:=REF(CAI2,1)/CAI2;
CAI17:=SQRT(CAI10)/CAI9;
CAI18:=SLOPE(CAI11+CAI12,CAI14);
CAI19:=CAI15 AND CAI16;CAI20:=SQRT(CAI9)/CAI10;
CAI21:=CAI1>REF(CAI1,1) AND CAI3>REF(CAI3,1);
CAI22:=CAI1-REF(MA(CAI1,20),20/2+1);CAI23:=MA(CAI22,6);
CAI24:=SUM(MA(CAI3-CAI2,9)/MA(MA(CAI3-CAI2,9),9),25);
CAI25:=MA(CAI24,6);CAI26:=4;CAI27:=3;CAI28:=2;CAI29:=1;
CAI30:=BARSCOUNT(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4);
CAI31:=REF(CAI3,CAI26/CAI28)>REF(CAI2,SQRT(CAI26));
CAI32:=CAI1/REF(CAI1,CAI28-CAI29)>CAI29+POW(CAI27,CAI28)/(CAI28+CAI29)/100;
CAI33:=REF(CAI2+CAI26,CAI27)<REF(CAI3+2*CAI28,CAI28+CAI29);
CAI34:=EMA(CAI11,CAI26+CAI28);
CAI35:=SMA(CAI9,CAI26*2+1,CAI28+CAI29);
CAI36:=CAI26*CAI2+CAI27*CAI4-CAI28*CAI1+CAI7/CAI27!=POW(CAI28,2)*CAI3+(CAI26-CAI29)*CAI4-SQRT(CAI26)*CAI1+CAI3*CAI28/(CAI28+CAI29);
CAI37:=CAI30+CAI26+CAI27+CAI28+CAI29+CAI5/CAI26;
CAI38:=REF(CAI7-CAI3,CAI26)>REF(CAI6-CAI28*CAI2,CAI5/CAI1);
CAI39:=EMA(CAI5+CAI6+CAI7+CAI8,CAI26+CAI28);
CAI40:=CAI26*CAI27*CAI28*CAI29+CAI26*CAI27-CAI27*CAI28;
CAI41:=CAI5/REF(POW(CAI28,2),CAI26-CAI27);
CAI42:=CAI28*CAI35;
CAI43:=CAI29+(SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26)/108;
CAI44:=CAI41+CAI27*CAI28>CAI43+CAI26+CAI28;
CAI45:=CAI26+CAI27+CAI28+CAI29;
CAI46:=CAI10+CAI11;CAI47:=REF(LOW,1);
CAI48:=SMA(ABS(LOW-CAI47),3,1)/SMA(MAX(LOW-CAI47,0),3,1)*100;
CAI49:=EMA(CAI48*10,3);
CAI50:=SQRT(CAI26)+CAI26*CAI27-POW(CAI28,2)-CAI28*CAI26;
CAI51:=LLV(LOW,13);CAI52:=HHV(CAI49,13);
CAI53:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618;
CAI54:=IF(CAI53>500,500,CAI53);CAI55:=CAI48+CAI24;
CAI56:=CAI49+CAI22;CAI57:=CAI30>CAI40;
CAI58:=MA(CAI1,CAI26+CAI18+CAI28);
CAI59:=MA(CAI5-CAI27*CAI1,CAI26+CAI27+CAI28);
CAI60:=(CAI27*CAI28+CAI26)*CAI2!=(CAI27*CAI26-CAI28)*CAI3;
CAI61:=MA(CAI51,CAI27+CAI27+CAI26);
CAI62:=MA(CAI52,CAI58+CAI59+CAI61);CAI63:=CAI43;
CAI64:=REF(CLOSE,CAI27)<1.095*REF(CLOSE,CAI26+CAI28) AND REF(CLOSE,CAI27)>1.028*REF(CLOSE,CAI26+CAI28) AND CAI59>CAI58 AND REF(LOW,CAI28+CAI27+CAI26)<REF(HIGH,CAI29+CAI28+CAI27) AND NOT(REF(CLOSE,CAI28*CAI27)>REF(CLOSE,CAI28*CAI26)) AND REF((CLOSE+HIGH+OPEN)/CAI26,CAI28*CAI27)>1.03*REF((CLOSE+HIGH+OPEN)/(CAI27+CAI28-CAI29),CAI26+CAI28+CAI27-CAI28-CAI29) AND CAI56>CAI55;
CAI65:=CAI61>CAI59 AND CAI53>CAI48 AND REF(CLOSE,CAI27+CAI28)>REF(HIGH,CAI28*CAI26) AND REF(LOW,CAI27*CAI28)<0.97*REF(CLOSE,CAI25+CAI26+CAI27) AND BARSLAST(REF(CLOSE,3)>REF(LOW,4)) AND REF(4*CLOSE+OPEN+2*LOW,8)>1.02*REF(OPEN+4*CLOSE+2*HIGH,8);
CAI66:=8*CLOSE+7*OPEN+6*HIGH+5*LOW;
CAI67:=EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618*(CAI27*CAI28+CAI29)/((CAI26+CAI27)*CAI53)+(CAI26*CAI27*CAI28+CAI28);
CAI68:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
CAI69:=SUM(IF(CLOSE=REF(CLOSE,1),0,CAI68),0);
CAI70:=CAI5/((CAI27-CAI28)*CAI1)*CAI67;CAI71:=MA(CAI69,33);
CAI72:=(INDEXV-REF(INDEXV,CAI26))/REF(INDEXV,CAI26);
CAI73:=(VOL-REF(VOL,CAI26))/REF(VOL,CAI26);
CAI74:=REF(CLOSE,CAI26+CAI27)>REF(HIGH,CAI26+CAI28) AND FILTER(CROSS(CAI70,CAI29+CAI28),CAI29+CAI28) AND REF((CAI26+CAI27)*CAI3,CAI26+CAI27+CAI28)<0.97*REF((CAI27*CAI28+CAI29)*CAI2,CAI28+CAI26+CAI27);
CAI75:=CAI70+EMA(IF(LOW<=CAI51,(CAI49+CAI52*2)/2,0),3)/618/CAI53-(CAI27*CAI28+SQRT(CAI26)+CAI29);
CAI76:=CAI67/CAI27+POW(CAI27*(CAI28+CAI29),2)+CAI26*CAI27-CAI28;
CAI77:=CAI76/CAI75+CAI7/HIGH*(8*CLOSE+7*OPEN+6*HIGH+5*LOW)/(CAI28*CAI76-CAI75)/CAI66;
CAI78:=7*CLOSE+6*OPEN+5*HIGH+(CAI26*CAI27*CAI28*CAI29-CAI67+CAI27*CAI28+CAI29)*LOW;
CAI79:=CAI66-CAI78;CAI80:=CAI79-(CLOSE+OPEN+LOW);
CAI81:=CAI80*CAI77;
CAI82:=SUM(IF(CAI9>REF(CAI9,1),CAI9*VOL,0),55)/SUM(IF(CAI9<REF(CAI9,1),CAI9*VOL,0),55)+EMA(CAI81,CAI50)-CAI10;
CAI83:=MA(CAI24,6)+CAI26*CAI27*CAI28*CAI29-CAI25-CAI27*CAI28-CAI26-CAI28;
CAI84:=CAI57 AND CROSS(4*CAI1+3*CAI2+2*CAI3+1*CAI4-CAI27*CAI1-(CAI28+CAI29)*CAI2-(CAI26-CAI28)*CAI3-(CAI28-CAI29)*CAI4,CAI82) AND CAI36 AND CAI60;
CAI85:=CAI64 OR CAI65 OR CAI74 OR CAI84;
攻击涨停:=FILTER(CAI85,CAI83),COLORRED;
A1:=BARSLAST(攻击涨停);
A2:=COUNT(REF(C,1)<REF(MA(C,5),1),A1);
买入:C<MA(C,5) AND A2=0 AND A1<10;