N:=28;
M:=48;
現(xiàn)價:C,COLOR80FFFF,LINETHICK2;
均價:MA(現(xiàn)價,N),COLOR0080FF,LINETHICK2;
均價M:MA(現(xiàn)價,M),COLOR800080,LINETHICK2;
PJ:=(均價*2+均價M)/3;
SJ1:=BARSLASTCOUNT(現(xiàn)價>=均價);
SJ2:=BARSLASTCOUNT(均價>=現(xiàn)價);
時間:MAX(SJ1,SJ2),NODRAW;
HH:=H*0.99;
LL:=(L*3+C)/4;
GD:=HHV(HH,時間);
DD:=HHV((PJ*3+C)/4,時間);
ZS0:=(GD-DD)/GD>0.5;
ZS1:=(GD-DD)/GD>0.30;
ZS2:=(GD-DD)/GD>0.25;
ZS3:=(GD-DD)/GD>0.2;
ZS4:=(GD-DD)/GD>0.15;
ZS5:=(GD-DD)/GD>0.1;
操作率:IF(ZS0,0.91,IF(ZS1,0.926,IF(ZS2,0.937,IF(ZS3,0.947,IF(ZS4,0.956,IF(ZS5,0.964,0.971))))))*10,NODRAW;
高點:=HHV(HH,時間)*操作率/10;
低點:=HHV((均價*3+C)/4,時間);
操作價:IF(現(xiàn)價>均價,高點,低點),COLOR8000FF,LINETHICK2;
市凈率:C/FINANCE(34),NODRAW;
市凈率28:MA(市凈率,28),NODRAW;
DRAWTEXT(CROSS(現(xiàn)價,操作價),C,'買'),COLOR0000FF;
DRAWTEXT(CROSS(操作價,現(xiàn)價),C*0.98,'賣'),COLOR00FF00;