主力线:MA(CLOSE,10),color778899,linethick2;
生命线:MA(CLOSE,30),colorlimagenta,linethick3;
多空趋势60:MA(CLOSE,60),colorliblue,linethick1;
多空趋势90:=MA(CLOSE,90),colorblue,linethick4;
多空趋势601:=MA(多空趋势60,3),colorgreen,linethick1;
多空趋势602:=MA(多空趋势601,3),colorgreen,linethick1;
多空趋势603:=MA(多空趋势602,3),colorgreen,linethick1;
半年线:=MA(CLOSE,120),colorblue,linethick1;
半年线2:=MA(半年线,3),colorblue,linethick1;
半年线3:=MA(半年线2,3),colorblue,linethick1;
半年线4:=MA(半年线3,3),colorblue,linethick1;
DRAWTEXT(CROSS(生命线,多空趋势603),多空趋势603*0.98,'中线牛回买'),COLOR0000FF;
DRAWTEXT(CROSS(多空趋势603,半年线),半年线*0.98,'锁定中长牛回买'),COLOR999999;
aa:=CLOSE/REF(C,1)>=1.09;
STICKLINE(aa,O,C,3,0),coloryellow;
STICKLINE(aa,L,H,0,0),coloryellow;
HH:=HHV(VOL,100);
T:=BARSLAST(HH=VOL);
LL:=LLV(VOL,100);
T1:=BARSLAST(LL=VOL);
DRAWLINE(T=0,C,REF(T=0,1),REF(C,1),1),colorwhite;
DRAWLINE(T1=0,C,REF(T1=0,1),REF(C,1),1),colorgreen,linethick1;
MID : =MA(CLOSE,20);
UPPER: MID + 2*STD(CLOSE,20),color556677;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),colorcyan;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),coloryellow;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,'成立'),coloryellow;
正向分形:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
正向定位:=CROSS(C,正向分形) AND 正向分形>REF(正向分形,1);
STICKLINE(正向定位,H,L,0,1),colorligreen,LINETHICK2;
STICKLINE(正向定位,O,C,1.8,0),colorligreen,LINETHICK2;