ZF:=100*(C/REF(C,1)-1);
SH:=CODELIKE('00') OR CODELIKE('60');
SZ:=CODELIKE('30') OR CODELIKE('68');
SS:=CODELIKE('4') OR CODELIKE('8');
X1:=IF(SH,0.1,IF(SZ,0.2,IF(SS,0.3,100)));
ZT:=C=H AND C>=ZTPRICE(REF(C,1),X1);
DT:=C=L AND ZF< -9;
LBTS:=BARSLASTCOUNT(ZT);
ZB:=C< H AND H>=ZTPRICE(REF(C,1),X1);
SYX:=100*(H-MAX(C,O))/REF(C,1);
ST:=100*ABS(C-O)/REF(C,1);
XYX:=100*(MIN(C,O)-L)/REF(C,1);
JZF:=100*(O/REF(C,1)-1);
V5:=MA(V,5);
V10:=MA(V,10);
BL:=V>2*REF(V,1);
VJ:=V< REF(V,1);
VS:=V>REF(V,1);
ZTY:=ZT=0 AND C>O AND VS AND REF(ZT AND COUNT(ZT,5)=1 AND ST>7,1);
ZTYN:=BARSLAST(ZTY);
STSB:=ST>8 AND ZT AND COUNT(ZT,10)=1 AND NOT(JZF>1 AND XYX=0) AND IF(REF(ST>5,1),C>REF(MAX(C,O),1) AND REF(XYX< 1.5 AND HHV(SYX,10)< 6 AND HHV(LBTS,30)< 4 AND REF(BL=0,1) AND EVERY(VS,3)=0,1),1) AND IF(SZ,BL AND REF(C< O,1),1);
N1:=BARSLAST(STSB);
DRAWTEXT_FIX(1,0.60,0.75,0,'更多指标,低费率交易,私聊 '),COLORYELLOW;
T1:=CROSS(REF(O,N1),C) AND EVERY(C< O AND VJ AND ZT=0 AND ZB=0 AND ST< 5,N1-1) AND REF(C< O,N1-1) AND REF(COUNT(ZT AND C=O,20)=0,1);
N2:=BARSLAST(T1);
章鱼A:=N1=6 AND REF(C< O,1) AND REF(JZF>0,N1-1);
章鱼B:=N1=5 AND REF(JZF>0,N1-1);
章鱼C:=N1=4 AND REF(C< O,N1+1);
章鱼:=章鱼A OR 章鱼B OR 章鱼C;
章鱼D:=REF(ST< 18 AND COUNT(EVERY(C=O AND JZF< -9,2),20)=0 AND NOT(ST>5 AND SYX>3 AND XYX>3) AND VS,N1-1);
章鱼E:=REF(NOT(BL AND C>O) AND NOT(XYX>3*ST AND C>O AND N2>1),1);
章鱼F:=COUNT(REF(ST=0,1) AND C< REF(C,1),N2)=0 AND IF(N2>30,COUNT(BL,N1)>0,1);
章鱼1:=章鱼D AND 章鱼E AND 章鱼F;
章鱼G:=NOT(JZF< 0 AND SYX>5 AND XYX>3 AND ST>1) AND IF(VJ,REF(BL,2),1) AND IF(JZF>1 AND ST>5 AND V/REF(V,1)>1.15 AND REF(BL,1),C< REF(C,1) AND REF(BL=0,2) AND V/REF(V,1)>1.2 AND XYX< 5 AND SH,1);
章鱼H:=IF(SYX>5,BL,1) AND NOT(VS AND REF(BL,1)) AND NOT(JZF>4 AND BL) AND IF(COUNT(ZTY,20)>0,REF(V=LLV(V,ZTYN) AND C>REF(O,ZTYN+1),1),1);
章鱼哥1:=SYX< 3 AND EVERY(ST>3,2)=0 AND REF(ST< 9,1);
章鱼哥2:=NOT((LLV(L,N2)/REF(L,N2)-1)*100< -20 AND SS);
章鱼哥3:=IF(N2<=REF(N1,N2),N2=2 AND REF(L,1)=LLV(L,N1) AND 章鱼,1);
章鱼哥4:=(COUNT(H>REF(H,N2),N2-1)=1 OR COUNT(H>REF(H,N2),N2-1)>5);
章鱼哥5:=IF(N1-N2=2,章鱼1,1) AND REF(章鱼G,N1-1) AND REF(章鱼H,N1+1);
章鱼哥6:=REF(EVERY(C>O AND ST>4,4) AND V< REF(HHV(V,3),1),N1)=0;
章鱼哥7:=REF(EVERY(VJ,3) AND COUNT(BL AND C>O,10)>0,N1)=0;
章鱼哥8:=REF(REF(HHV(LBTS,30)>5,30),N1)=0;
LYTS:=BARSLASTCOUNT(C>O);
章鱼哥9:=REF(COUNT(VJ AND C< O AND REF(LYTS>6 AND REF(VJ,LYTS),1),15)=0,N1);
章鱼哥10:=REF(COUNT(JZF< -9 AND XYX=0 AND COUNT(EVERY(ZT,2),10)>0,40)=0,N1);
章鱼哥:=章鱼哥1 AND 章鱼哥2 AND 章鱼哥3 AND 章鱼哥4 AND 章鱼哥5 AND 章鱼哥6 AND 章鱼哥7 AND 章鱼哥8 AND 章鱼哥9 AND 章鱼哥10;
XG1:=CROSS(H,REF(H,N2)) AND COUNT(CROSS(H,REF(H,N2)),N2)=1 AND EVERY(ZT=0 AND ZB=0,N2) AND 章鱼哥;
鱼哥1:=SS=0 AND ZT AND COUNT(ZT,20)=1 AND ST>8 AND COUNT(ZB,5)=0 AND REF(BL=0 AND HHV(LBTS,20)< 2 AND HHV(LBTS,60)< 3,1) AND L< REF(HHV(H,3),1);
鱼哥2:=REF(鱼哥1,1) AND C< O AND V>1.05*REF(V,1) AND JZF< 5.1 AND SYX< 5 AND IF(REF(JZF>3,1),C< REF(O,1),1);
鱼哥3:=REF(鱼哥2,3) AND REF(H< REF(H,1) AND JZF>-4,2) AND EVERY(V< REF(V,1) AND L< REF(L,1) AND H>REF(L,1) AND MIN(C,O)< REF(MIN(C,O),1),3) AND IF(V>REF(V,4),REF(BL=0,4),1) AND IF(REF(EVERY(VJ,3),5),REF(ST< 1.5 AND C< O,5) AND REF(IF(C>O,C< REF(C,1),1),1) AND ST< 4,1) AND REF(JZF< 2,2);
NN1:=BARSLAST(鱼哥1);
NN2:=BARSLAST(鱼哥3);
鱼哥4:=NN1>NN2 AND NN2>0 AND CROSS(V10,V5) AND COUNT(CROSS(V10,V5),NN1)=1 AND REF(COUNT(ZT,NN1)=0,1);
鱼哥A:=鱼哥4 AND ZT AND REF(VJ AND C>O,1);
鱼哥B:=鱼哥4 AND NN2=1 AND REF(C< O AND REF(C>O,1),NN1+1) AND ST< 3 AND REF(JZF>-2,4);
鱼哥C:=鱼哥4 AND NN2=3 AND REF(C>O,1) AND REF(SYX< 5,5) AND REF(SYX< 3,1) AND ST< 2 AND IF(SZ,EVERY(VJ,6),EVERY(VJ,6) OR REF(JZF< 0,6));
鱼哥D:=鱼哥4 AND NN2>3 AND SZ AND C=LLV(C,NN1);
鱼哥E:=鱼哥4 AND NN2=2 AND SZ AND EVERY(VJ AND L< REF(L,1),5) AND REF(C< O,4);
鱼哥F:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)>REF(V,6) AND REF(C< O AND C>REF(O,2),4) AND REF(C< O,2) AND REF(XYX< 3 AND EXIST(C>O,5),1) AND C>O AND REF(NOT(EVERY(C< O,2)),7);
鱼哥G:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)>REF(V,6) AND REF(C< O AND C< REF(O,2),4) AND EVERY(VJ AND H<=REF(H,1),5) AND REF(JZF>1,6);
鱼哥H:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)< REF(V,6) AND REF(C>O,4) AND REF(C>REF(O,2) AND SYX< 5,4) AND IF(REF(C>O,3),LLV(C,5)< REF(O,6),1) AND EVERY(C< MA(C,60),3)=0 AND EVERY(JZF>=0,4)=0;
鱼哥I:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)< REF(V,6) AND REF(C< O,4) AND REF(JZF<=0,5) AND REF(JZF>0 AND C>REF(O,2),4) AND REF(C< REF(H,1) AND ZF>-5,1) AND REF(O>REF(H,1) AND JZF>1,6)=0;
鱼哥J:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)< REF(V,6) AND REF(C< O,4) AND REF(JZF>0,5) AND REF(IF(ST>3,REF(BL,1),1),7) AND REF(L< REF(H,1) AND IF(COUNT(ZB,10)>0,C< HHV(H,10),1),6) AND LLV(C,5)>REF(O,6) AND HHV(LBTS,100)< 3 AND REF(C< REF(C,1) AND SYX< 2 AND XYX< 2,5) AND ST< 3 AND HHV(XYX,5)< 3 AND REF(H< REF(C,2),4);
鱼哥K:=鱼哥4 AND NN2=2 AND SH AND REF(V,4)< REF(V,6) AND REF(C< O,4) AND REF(JZF>0,5) AND REF(IF(ST>3,REF(BL,1),1),7) AND REF(L< REF(H,1) AND IF(COUNT(ZB,10)>0,C< HHV(H,10),1),6) AND IF(LLV(C,5)< REF(O,6) AND VJ,REF(BARSLASTCOUNT(C>O)=2,1) OR EVERY(C<=O,6) OR REF(BARSLASTCOUNT(C< O AND ST< 3)=2,1),LLV(C,5)< REF(O,6) AND V>REF(V,1) AND REF(HHV(ST,4)>6,1));
TB1:=SS=0 AND ZT AND COUNT(ZT,20)=1 AND ST>8 AND COUNT(ZB,5)=0 AND REF(BL AND HHV(LBTS,20)< 2 AND HHV(LBTS,60)< 3,1) AND L< REF(HHV(H,3),1);
TB2:=REF(TB1,1) AND C< O AND V>1.05*REF(V,1) AND JZF< 5.1 AND SYX< 5 AND IF(REF(JZF>3,1),C< REF(O,1),1);
TB3:=REF(TB2,3) AND REF(H< REF(H,1) AND JZF>-4,2) AND EVERY(V< REF(V,1) AND H< REF(H,1) AND H>REF(L,1) AND MIN(C,O)< REF(MIN(C,O),1),3) AND IF(V>REF(V,4),REF(BL=0,4),1) AND IF(REF(EVERY(VJ,3),5),REF(ST< 1.5 AND C< O,5) AND REF(IF(C>O,C< REF(C,1),1),1) AND ST< 4,1) AND REF(JZF< 2,2);
ZYG1:=BARSLAST(TB1);
ZYG2:=BARSLAST(TB3);
TB4:=ZYG1>ZYG2 AND ZYG2>0 AND CROSS(V10,V5) AND COUNT(CROSS(V10,V5),ZYG1)=1 AND REF(COUNT(ZT,ZYG1)=0 AND BL,1);
XGA:=鱼哥A OR 鱼哥B OR 鱼哥C OR 鱼哥D OR 鱼哥E OR 鱼哥F OR 鱼哥G OR 鱼哥H OR 鱼哥I OR 鱼哥J OR 鱼哥K OR TB4;
NN3:=BARSLAST(XGA);
JC:=CROSS(C,REF(H,NN3)) AND COUNT(CROSS(C,REF(H,NN3)),NN3)=1;
TG:XG1 OR XGA,NODRAW;
STICKLINE(ZT,H,L,0,0),COLORRED;
STICKLINE(ZT,C,O,3,0),COLORRED;
STICKLINE(STSB,H,L,0,0),COLORRED;
STICKLINE(STSB,C,O,3,0),COLORRED;
DRAWSL(XG1,REF(H,N2),0,N2,1)COLORYELLOW;
DRAWICON(XG1,L,38);
DRAWSL(XG1,LLV(L,2),0,20,0)COLORGREEN;
DRAWSL(JC,REF(H,NN3),0,NN3,1)COLORRED;
DRAWICON(JC,L,23);
DRAWSL(XGA,REF(L*0.96,NN1),0,10,0)COLORGREEN;
DRAWSL(XGA,REF(L*0.96,NN1),0,NN1,1)COLORGREEN;
DRAWICON(XGA,L,38);
STICKLINE(鱼哥1,L,L*0.96,0,-1)COLORGREEN;
DRAWTEXT_FIX(C>0,1,0,1,STRCAT(STRCAT(HYBLOCK,'+'),GNBLOCK)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.9,1,1,'策略:红色三角是首次进场信号,红色 + 是加仓信号'),COLORYELLOW;