1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| TJ:=(3*C+H+L+O)/6; SG1:(8*TJ+7*REF(TJ,1)+6*REF(TJ,2)+5*REF(TJ,3)+4*REF(TJ,4)+3*REF(TJ,5)+2*REF(TJ,6)+REF(TJ,8))/36,LINETHICK2,COLORRED; SG2:=(HHV(SG1,2)+HHV(SG1,4)+HHV(SG1,8))/3; SG3:=(LLV(SG1,2)+LLV(SG1,4)+LLV(SG1,8))/3; SG4:(HHV(SG2,2)+HHV(SG2,4)+HHV(SG2,8))/3; SG5:(LLV(SG3,2)+LLV(SG3,4)+LLV(SG3,8))/3,COLORRED; SG6:=(LLV(SG1,2)+LLV(SG1,4)+LLV(SG1,8))/3; {DRAWBAND(SG1,RGB(155,50,50),VAR6,RGB(250,250,0));} IF((SG1<=REF(SG1,1)),SG1,DRAWNULL),COLORGREEN,LINETHICK3; IF((SG1>=REF(SG1,1)),SG1,DRAWNULL),COLORRED,LINETHICK3; STICKLINE(SG4>SG1,SG4,SG1,0,0),COLORBLUE; DRAWKLINE(H,O,L,C); DRAWTEXT_FIX(C>O,0.01,1.0,0,'SGZBK.TOP'),COLORWHITE; DRAWTEXT(REF(SG5,1)=REF(SG1,1) AND SG5<SG1,L*0.99,'买入'),COLORRED; DRAWTEXT(REF(SG6,1)=REF(SG1,1) AND SG6<SG1,L*0.98,'↖加仓'),COLORYELLOW; DRAWTEXT(REF(SG4,1)=REF(SG1,1) AND SG4>SG1,H,'卖点'),COLORGREEN; ZT:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}; 突破:=CROSS(C,SG4) AND ZT; DRAWTEXT(突破,L,'爆点'); STICKLINE(突破,C,O,3.2,0),COLOR0077FF; STICKLINE(突破,C,O,2.5,0),COLOR0099FF; STICKLINE(突破,C,O,1.9,0),COLOR00BBFF; STICKLINE(突破,C,O,1.2,0),COLOR00DDFF; STICKLINE(突破,C,O,0.3,0),COLOR00FFFF;
|