DRAWGBK(CLOSE>0,colorRGB(95,95,95),colorRGB(0,0,0),1);
VERTLINE(HOUR=15),POINTDOT,LINETHICK1,color5900;
STICKLINE(VOL>0 AND CLOSE>OPEN,VOL,0,7.8,1),color1472FF;
STICKLINE(VOL>0 AND CLOSE<OPEN,VOL,0,7.8,1),color6900;
STICKLINE(VOL>0 AND CLOSE=OPEN,VOL,0,7.8,1),colorFFFFFF;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
YE6:=SUM(YE1*YE5,1);
YE7:=SUM(YE2*YE5,1);
YE8:=SUM(YE3*YE5,1);
YE9:=SUM(YE4*YE5,1);
STICKLINE(YE9-YE7<0,0,YE9-YE7,8,0),colorFF00;
STICKLINE(YE9-YE7<0 AND TROUGHBARS(3,5,1)=0 AND HIGH>LOW+0.001,0,YE9-YE7,6,0),colorFF0000;
STICKLINE(YE9-YE7>0,0,YE9-YE7,8,0),colorFF;
STICKLINE(YE8-YE6<0,0,YE8-YE6,3,0),colorFFA800;
STICKLINE(YE8-YE6>0,0,YE8-YE6,3,0),color80;
YEC6:=SUM(YE1*YE5,1);
YEC7:=SUM(YE2*YE5,1);
YEC8:=SUM(YE3*YE5,1);
YEC9:=SUM(YE4*YE5,1);
STICKLINE(YEC9+YEC8,YEC9+YEC8,YEC9+YEC8,7.3,0),LINETHICK2,color80;
STICKLINE(YEC7+YEC6,YEC7+YEC6,YEC7+YEC6,7.3,0),LINETHICK1,colorFF00;
STICKLINE(ISLASTBAR AND YEC9+YEC8>0,0,YEC9+YEC8,8,0),SHIFT1,color1472FF;
STICKLINE(ISLASTBAR AND YEC9>0,0,YEC9,5,0),SHIFT1,colorFF;
STICKLINE(ISLASTBAR AND YEC8>0,YEC9+YEC8,YEC9,3,0),SHIFT1,color80;
STICKLINE(ISLASTBAR AND YEC7+YEC6,0,YEC7+YEC6,8,0),SHIFT2,color8900;
STICKLINE(ISLASTBAR AND YEC7>0,0,YEC7,5,0),SHIFT2,colorFF00;
STICKLINE(ISLASTBAR AND YEC6>0,YEC7+YEC6,YEC7>0,2,0),SHIFT2,colorFFA800;
总买比:=(YEC9+YEC8)/(YEC9+YEC8+YEC7+YEC6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),YEC9+YEC8,总买比,2),ALIGN4,SHIFT1,PXUP2,colorFFFF;
总卖比:=(YEC7+YEC6)/(YEC9+YEC8+YEC7+YEC6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),YEC7+YEC6,总卖比,2),ALIGN4,SHIFT2,PXUP2,colorFFFF;
DRAWTEXT(ISLASTBAR AND YEC9,YEC9,'买量'),ALIGN5,SHIFT1,colorFFFFFF;
DRAWTEXT(ISLASTBAR AND YEC9,YEC9,'卖量'),ALIGN5,SHIFT2,colorFFFFFF;
YEE6:=SUM(YE1*YE5,2);
YEE7:=SUM(YE2*YE5,2);
YEE8:=SUM(YE3*YE5,2);
YEE9:=SUM(YE4*YE5,2);
STICKLINE(ISLASTBAR AND YEE9+YEE8>0,0,(YEE9+YEE8)*0.23,8,0),SHIFT3,colorFF;
STICKLINE(ISLASTBAR AND YEE7+YEE6>0,0,(YEE7+YEE6)*0.23,6,0),SHIFT3,color8900;
STICKLINE(ISLASTBAR AND YEE9>0,0,YEE9*0.23,4,0),SHIFT3,color80;
STICKLINE(ISLASTBAR AND YEE7>0,0,YEE7*0.23,1,0),SHIFT3,colorFFFFFF;
DRAWTEXT(ISLASTBAR AND YEE7>0,YEE7*2,'2'),ALIGN5,SHIFT3,colorFFFFFF;
买卖比3:=(YEE9+YEE8)/(YEE7+YEE6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),买卖比3,买卖比3,2),ALIGN4,SHIFT3,PXUP2,colorFFFF;
YEC6:=SUM(YE1*YE5,3);
YEC7:=SUM(YE2*YE5,3);
YEC8:=SUM(YE3*YE5,3);
YEC9:=SUM(YE4*YE5,3);
三日主力买卖净值:YEC9-YEC7,LINETHICK1,color1476FF;
STICKLINE(ISLASTBAR AND YEC9+YEC8,0,(YEC9+YEC8)*0.28,8,0),SHIFT4,colorFF;
STICKLINE(ISLASTBAR AND YEC7+YEC6,0,(YEC7+YEC6)*0.28,6,0),SHIFT4,color8900;
STICKLINE(ISLASTBAR AND YEC9>0,0,YEC9*0.28,4,0),SHIFT4,color80;
STICKLINE(ISLASTBAR AND YEC7>0,0,YEC7*0.28,1,0),SHIFT4,colorFFFFFF;
DRAWTEXT(ISLASTBAR AND YEE7>0,YEE7*2,'3'),ALIGN5,SHIFT4,colorFFFFFF;
买卖比5:=(YEC9+YEC8)/(YEC7+YEC6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),买卖比3,买卖比3,2),ALIGN4,SHIFT4,PXUP2,colorFFFF;
主力买卖比5:=YEC9/YEC7;
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),主力买卖比5,主力买卖比5,2),ALIGN3,SHIFT4,PXUP2,colorFFFF;
YEH6:=SUM(YE1*YE5,5);
YEH7:=SUM(YE2*YE5,5);
YEH8:=SUM(YE3*YE5,5);
YEH9:=SUM(YE4*YE5,5);
STICKLINE(ISLASTBAR AND YEH9+YEH8,0,(YEH9+YEH8)*0.31,8,0),SHIFT5,colorFF;
STICKLINE(ISLASTBAR AND YEH7+YEH6,0,(YEH7+YEH6)*0.31,6,0),SHIFT5,color8900;
STICKLINE(ISLASTBAR AND YEH9,0,YEH9*0.31,4,0),SHIFT5,color80;
STICKLINE(ISLASTBAR AND YEH7,0,YEH7*0.31,1,0),SHIFT5,colorFFFFFF;
DRAWTEXT(ISLASTBAR AND YEE7>0,YEE7*2,'5'),ALIGN5,SHIFT5,colorFFFFFF;
买卖比7:=(YEH9+YEH8)/(YEH7+YEH6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),买卖比7,买卖比7,2),ALIGN4,SHIFT5,PXUP2,colorFFFF;
主力买卖比7:=YEH9/YEH7;
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),主力买卖比7,主力买卖比7,2),ALIGN3,SHIFT5,PXUP2,colorFFFF;
YEG6:=SUM(YE1*YE5,7);
YEG7:=SUM(YE2*YE5,7);
YEG8:=SUM(YE3*YE5,7);
YEG9:=SUM(YE4*YE5,7);
STICKLINE(ISLASTBAR AND YEG9+YEG8,0,(YEG9+YEG8)*0.33,9,0),SHIFT6,colorFF;
STICKLINE(ISLASTBAR AND YEG7+YEG6,0,(YEG7+YEG6)*0.33,6,0),SHIFT6,color8900;
STICKLINE(ISLASTBAR AND YEG9>0,0,YEG9*0.33,4,0),SHIFT6,color80;
STICKLINE(ISLASTBAR AND YEG7>0,0,YEG7*0.33,1,0),SHIFT6,colorFFFFFF;
DRAWTEXT(ISLASTBAR AND YEE7>0,YEE7*2,'7'),ALIGN5,SHIFT6,colorFFFFFF;
买卖比14:=(YEG9+YEG8)/(YEG7+YEG6);
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),买卖比14,买卖比14,2),ALIGN4,SHIFT6,PXUP2,colorFFFF;
主力买卖比14:=YEG9/YEG7;
DRAWNUMBER(BARSCOUNT(CLOSE)=SYSPARAM(1),主力买卖比14,主力买卖比14,2),ALIGN3,SHIFT6,PXUP2,colorFFFF;
当前最低:=DYNAINFO(6);
DRAWTEXT(CROSS(CLOSE,当前最低),LOW,'买'),ALIGN3,colorFFFF; |