ma6:MA(C,6),colorwhite,linethick2;ma18:MA(C,18),color0099ff,linethick2;
ma55:MA(C,55),colorff00FF;ma125:MA(C,125),colorffcc66;ma250:MA(C,250),colorblue;
TY:=C;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)
NOT(LD);
波峰:IF(t1,A,A),ColorFF00FF,POINTDOT;STICKLINE(t1,A,A,9,0),ColorFF00FF;
波谷:IF(t2,B,B),Color80FF00,POINTDOT;STICKLINE(t2,B,B,9,0),Color80FF00;
买进价:=((C-REF(ma6,1))/6+ma6)*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(ma18,1))/18+ma18)*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;