CG:MA(C,10);
FL:HHV(CG,5);
FS:CG-(FL-CG);
ML:=FL=FS AND REF(FL,1)>REF(FS,1);
MC:=FL>FS AND REF(FL,1)=REF(FS,1);
DRAWTEXT(ML,FS,'买入'),COLORRED;
DRAWTEXT(MC,FL,'卖出'),COLORBLUE;
ML35:=BArslAST(MC)>=30&&ML&&REF(EVERY(FL>FS*1.01,BARSLAST(MC)-4),2)&&CO&&V>REF(V,1);
DRAWICON(ML35,FS,17);
DRAWTEXT(BARSLAST(MC)>=20&&ML&&REF(EVERY(FL>FS*1.01,BARSLAST(MC)-4),2),FS*1.07,BARSLAST(MC));
ML35XG10:=COUNT(ML35,10);
ML35XG30:=COUNT(ML35,30);
ML35TXG:=COUNT(ML35,BARSLASTCOUNT(C));