input:p1(5),p2(10),p3(20);
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
买卖点:="DZHEXTEND@BSPOINT"("ddx.ddx");
drawicon(买卖点=1,low-low*0.02,7),align1;
drawicon(买卖点=-1,high+h*0.02,8),align1;
if barstatus = 2 then
begin
hh:=hhv(h,900);
p:=(hh-c)/c;
ll:=llv(l,300);
pl:=(c-ll)/ll;
drawtextabs(200,10,'斩去'+numtostrn(p,1)+'倍,涨'+numtostrn(pl,1)+'倍,流通盘:'+numtostrn(dynainfo(57)/100000000,1)+'亿,CYS:'+numtostrn("cys",1)),colorgreen;
dpyk:=selfdata('大盘CYS');
dpzj:=selfdata('MMF')/10000;
drawtextabs(200,25,'大盘资金:'+numtostrn(dpzj,2)+',大盘CYS:'+numtostrn(dpyk,2));
jjr:=selfstring('大小非解禁表');
pos:=1;
newday:=strtonum(strleft(jjr,5));
while pos > 0 and newday - days1970 < 0 do
begin
newday:=strtonum(strmid(jjr,pos+1,5));
pos:= strfind(jjr,':',pos+1);
end;
drawtextabs(200,40,'距最近解禁日:'+numtostr(newday - days1970)+'天'+',市盈:'+numtostr(DYNAINFO(39))+',市净:'+numtostr(DYNAINFO(58)));
end;
l5p:(c - ma1)/c*100,precis1,linethick0; |