DRAWTEXTABS(635,2,'■'),LINETHICK2,COLORYELLOW;
DRAWTEXTABS(650 ,2,'黄色区域'),LINETHICK2,COLORYELLOW;
DRAWTEXTABS(720 ,2,'持股'),LINETHICK2,COLORYELLOW;
DRAWTEXTABS(635,20,'■'),LINETHICK2,COLORRED;
DRAWTEXTABS(650 ,20,'红色区域'),LINETHICK2,COLORRED;
DRAWTEXTABS(720 ,20,'抄底'),LINETHICK2,COLORRED;
DRAWTEXTABS(635,38,'■'),LINETHICK2,COLORGREEN;
DRAWTEXTABS(650 ,38,'红黄消失'),LINETHICK2,COLORGREEN;
DRAWTEXTABS,linethick1,COLOR00EEff;
DRAWTEXTABS(720 ,38,'出局'),LINETHICK2,COLORGREEN;
A1:=CAPITAL;
A2:=(((H + L) + O) + C) / 4;
A33:=SUMBARS(VOL,(A1 * 0.8));
A34:=IF((A33 < 9),9,A33);
A35:=HHV(A2,A34);
A36:=LLV(A2,A34);
A37:=IF((A35 = A36),0,((100 * (A2 - A36)) / (A35 - A36)));
中线:(1.5 * (SUM(A37,6))) / 6,COLORWHITE,LINETHICK0;
长线:(SUM(中线,6)) / 6,COLORYELLOW,LINETHICK0;
STICKLINE(中线,中线,0,5,0),COLORYELLOW;
STICKLINE(长线,长线,0,5,0),COLORBLUE;
STICKLINE(中线>长线 AND 中线<50,中线,长线,5,0),COLORRED;