【黄金分割】跟着光标走把它加进主图即不占图面又方便(源码,主图)介绍
【黄金分割】跟着光标走把它加进主图即不占图面又方便(源码,主图)
叫黄金分割跟着光标走把它加进任何主图即不占图面又可看任何地方的数据,它跟光标走,我发不了图,请见谅,不过请注意每条的字符不要和原主图混绕,
X:=BARSSINCE(DISPSTATUS=1)+1;
ahX:hhvall(hhv(h,X)),Color0598FF,DOTLINE;
alX:llvall(llv(l,X)),ColorFF9900,DOTLINE;
nnlX:=DISPSTATUS=2;
ahl:=ahX-alX;
q191:=alX+ahl*0.191;
q382:=alX+ahl*0.382;
q500:alX+ahl*0.500,Color999999,DOTLINE;
q618:=alX+ahl*0.618;
q809:=alX+ahl*0.809;
DRAWTEXT(nnlX ,ahX*0.998,''+ahX+''),Color00FFFF,LINETHICK1;
DRAWTEXT( nnlX,alX*1.01,''+alX+''),Color00FFFF,LINETHICK1;
DRAWTEXT( nnlX,q500*1.01,''+q500+''),Color00FFFF,LINETHICK1;
DRAWFLAGTEXT(C>0,C,'<*t=99FF99*><*c=000000*><*p=95*>'+'H-----'+NUMTOSTRN(H,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=0077FF*><*c=000000*><*p=95*>'+'AH--------'+NUMTOSTRN(ahX,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=00FF00*><*c=000000*><*p=95*>'+'80.9%---'+NUMTOSTRN(q809,2)+'元 '+'');
DRAWFLAGTEXT(C>0,C,'<*t=00FFFF*><*c=000000*><*p=95*>'+'61.8%-----'+NUMTOSTRN(q618,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=FF99FF*><*c=000000*><*p=95*>'+'50.0%---'+NUMTOSTRN(q500,2)+'元 '+'C='+NUMTOSTRN(C,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=00FFFF*><*c=000000*><*p=95*>'+'38.2%-----'+NUMTOSTRN(q382,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=00FF00*><*c=000000*><*p=95*>'+'19.1%---'+NUMTOSTRN(q191,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=0077FF*><*c=000000*><*p=95*>'+'AL--------'+NUMTOSTRN(alX,2)+'元'+'');
DRAWFLAGTEXT(C>0,C,'<*t=99FF99*><*c=000000*><*p=95*>'+'L-----'+NUMTOSTRN(L,2)+'元'+'');
主净额:(bigorder(1,2)-bigorder(2,2))*AMOUNT/10000,linethick0;
DRAWFLAGTEXT(C>0,C,'<*t=00FFff*><*c=000000*><*p=95*>'+'主净额【当日】:'+NUMTOSTRN(主净额,0)+'万'+'');
DRAWFLAGTEXT(C>0,C,'<*t=0000FF*><*c=000000*><*p=95*>'+'主净额【五天】:'+NUMTOSTRN(SUM(主净额,5),0)+'万'+'');
补几句话:要光标按END键不要光标按ESC键,下边的DDX数据你只要加几条累计20天累计50天】---------都可以加上。太有用了
X天【加法如下】
DRAWFLAGTEXT(C>0,C,'<*t=FF9900*><*c=000000*><*p=95*>'+'主净额【'+X+'天】:'+NUMTOSTRN(SUM(主净额,X),0)+'万'+'');
gd18255