? · ? 一.【分時(shí)大單異動(dòng)】指標(biāo)源碼 所屬板塊:=STRCAT('【所屬板塊】',STRCAT(STRCAT(STRCAT(' [行業(yè)]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.005,0.05,0,所屬板塊),COLORWHITE;主力大單1:=MAX(DYNAINFO(3),DYNAINFO(5));主力大單2:=MIN(DYNAINFO(3),DYNAINFO(6));主力大單3:=主力大單1-主力大單2;主力大單4:=(主力大單1+主力大單2)/1;支撐:主力大單2+主力大單3*1/8,POINTDOT,COLORMAGENTA;支撐1:主力大單2+主力大單3*0.5/8,POINTDOT;御祥底參考:主力大單2+主力大單3/3,POINTDOT,COLORBLUE;DRAWTEXT_FIX(1,0.01,0.01,0,4),COLORCYAN;STICKLINE(CLOSE< 支撐,支撐,CLOSE,2,0),COLORRED;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;支撐A:=L1+P1*0.5/8,COLORMAGENTA;DRAWTEXT(LONGCROSS(支撐A,C,2),C,'買'),COLORYELLOW,LINETHICK4;資金萬(wàn):=AMO/10000;資金1:=資金萬(wàn)>500 AND 資金萬(wàn)< 1000;資金2:=資金萬(wàn)>1000;TXT:=VARCAT(VAR2STR(資金萬(wàn)/1000,1),'億');DRAWTEXT(資金1 AND C>REF(C,1),C,'O'),COLORRED;DRAWTEXT(資金1 AND C< REF(C,1),C,'O'),COLORGREEN;DRAWTEXT(資金2 AND C>REF(C,1),C,TXT),COLORRED;DRAWTEXT(資金2 AND C< REF(C,1),C,TXT),COLORGREEN;DRAWTEXT_FIX(1,0.0,0.003,0,'★圓圈是1:【單筆資金大于5百萬(wàn)小于1億】+【大于1億顯示金額】+【紅色主動(dòng)買】 +【綠色主動(dòng)賣】;【--紅色低吸買】!!!'),COLORYELLOW,LINETHICK2;DRAWTEXT_FIX(C>O,0,0.07,0,'更多實(shí)用指標(biāo)公式,請(qǐng)關(guān)注微信公眾號(hào):婧琪創(chuàng)意信息'),COLORMAGENTA;主力攻擊量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;主力攻擊量A:=SUM(IF(C>REF(C,1),主力攻擊量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;主力攻擊量B:=-SUM(IF(C< REF(C,1),主力攻擊量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;攻擊流量:=主力攻擊量A+主力攻擊量B,COLORSTICK;DRAWTEXT_FIX(1,0.75,0.92,0,' '),COLORYELLOW;攻擊比:=攻擊流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;資金攻擊:=IF(攻擊比>=0,(攻擊比+50),100-ABS((攻擊比-50)));資金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;資金流出:=-SUM(IF(C< REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;資金出入:=資金流入+資金流出,COLORSTICK;資金比:=資金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;資金流比:=IF(資金比>=0,(資金比+100)/2,100-ABS((資金比-100)/2));DRAWTEXT_FIX(1,0.180,0.88,0,STRCAT(STRCAT('【資金流比】',CON2STR(資金流比,2)),'%買')),COLORYELLOW;DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【資金攻擊】',CON2STR(資金攻擊,2)),' %買')),COLORYELLOW;A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>40) AND (CLOSE< (REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1< 40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1< 40) AND (CLOSE< (REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((BARSTATUS=2),((100*A2)/A6),0);A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));機(jī)構(gòu)買盤:=(A2),LINETHICK2;機(jī)構(gòu)賣盤:=(A3),LINETHICK2;成交額:=V*C/100,NODRAW;BA2:=SUM((IF(((成交額/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交額,0)),0);BA3:=SUM((IF(((成交額/8>20) AND (CLOSE< (REF(CLOSE,1)))),成交額,0)),0);BA6:=(BA2+BA3);BA7:=IF((ISLASTBAR),((100*BA2)/BA6),0);BA8:=IF((ISLASTBAR),((100*BA3)/BA6),0);BAAA3:=STRCAT(STRCAT('總買入',CON2STR((100*(BA2-BA3))/BA6,0)),'%');SSLB:=STRCAT(STRCAT('三日量比',CON2STR((VOL/FROMOPEN)/(MA(V,3)/240)*100,0)),'%');DRAWTEXT_FIX(1,0,0.18,0,BAAA3),COLOR00FFFF;DRAWTEXT_FIX(1,0,0.26,0,SSLB),COLORRED;DRAWTEXT_FIX(1,0.0,1-0.05,0,STRCAT(STRCAT('【機(jī)構(gòu)買盤】',CON2STR(機(jī)構(gòu)買盤,2)),'萬(wàn)')),COLORYELLOW;DRAWTEXT_FIX(1,0.18,1-0.05,0,STRCAT(STRCAT('【機(jī)構(gòu)賣盤】',CON2STR(機(jī)構(gòu)賣盤,2)),'萬(wàn)')),COLOR00FF00; ? · ? |
|