MA5:MA(C,5),colorwhite,linethick1; ma10:MA(C,10),coloryellow,linethick1;
TY:=C;//公式网www.8*8*g*s.com
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A),colorred,POINTDOT;
STICKLINE(t1,A,A,9,0),colorred;
波谷:IF(t2,B,B),Color80FF00,POINTDOT;
STICKLINE(t2,B,B,9,0),Color80FF00;
买进价:=((C-REF(MA5,1))/5+MA5)*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
白K买进:IF(买进条件,L,H),colorwhite,POINTDOT;
STICKLINE(买进条件,H,L,0,1),colorwhite,linethick2;
STICKLINE(买进条件,O,C,4,1),colorwhite,linethick2;
加码价:=((C-REF(MA10,1))/10+MA10)*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
黄K突破:IF(加码条件,L,H),coloryellow,POINTDOT;
STICKLINE(加码条件,H,L,0,1),coloryellow,linethick2;
STICKLINE(加码条件,O,C,4,1),coloryellow,linethick2;
fa:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
STICKLINE(fa,MA5,MA5-0.09,4,0),colorwhite;
DRAWTEXT(fa,MA5-0.13,'阳'),colorwhite,align2;
|
