MA8:dma(CLOSE,VOL/CAPITAL*430/100);
MA20:dma(CLOSE,VOL/CAPITAL*240/100),colorffffff;
MA60:dma(CLOSE,VOL/CAPITAL*158/100),colorff00ff;
波段区:dma(CLOSE,VOL/CAPITAL*110/100),COLOR00ff00;
成本区:dma(CLOSE,VOL/CAPITAL*82/100),COLORff6600,linethick3;
PARTLINE(ma8 ,ma8 >ref(ma8 ,1),RGB(255,215,0),ma8<ref(ma8 ,1),RGB(0,0,255)),LINETHICK2;
A1:=REF(C,10)=HHV(C,2*10+1);
B1:=FILTER(A1,10);
C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(C,10)=LLV(C,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),ColorFF00FF,POINTDOT;
STICKLINE(t1,A,A,9,0),ColorFF00FF;
波谷:IF(t2,B,B),Color80FF00,POINTDOT;
STICKLINE(t2,B,B,9,0),Color80FF00;
买进价:=((c-ref(ma8,1))/6+ma8)*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
准备起爆:IF(买进条件,l,h),COLORWHITE,POINTDOT;
STICKLINE(买进条件,h,l,0,1),colorwhite,linethick2;
STICKLINE(买进条件,o,c,4,1),colorwhite,linethick2;
追加筹码:=((c-ref(ma20,1))/20+ma20)*1.004;
追加条件:=cross(c,追加筹码) and 追加筹码>ref(追加筹码,1);
起爆点:IF(追加条件,l,h),coloryellow,POINTDOT;
STICKLINE(追加条件,h,l,0,1),coloryellow,linethick2;
STICKLINE(追加条件,o,c,4,1),coloryellow,linethick2;
STICKLINE(C<=O,H,L,0,0),COLORWHITE;