今日分享:市場軟件指標精選更新:副圖--“主力新成交量”(源碼) 萬:VOL/10000,LINETHICK0; AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 預測:AA/10000; BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主動買:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 主買:主動買/10000,COLORRED; 主動賣:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2)); 主賣:-主動賣/10000,COLORLIBLUE; 主力凈買:(主動買+主動賣)/10000,COLORMAGENTA; 持幣:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORBLUE; 持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
上漲家:INDEXADV,COLOR0080FF,NODRAW; 下跌家:INDEXDEC,COLORGREEN,NODRAW; STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE; STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED; STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ; STICKLINE(主動買>=0,VOL,-主動賣,3.2,0),COLOR000033; STICKLINE(主動買>=0,VOL,-主動賣,2.7,0),COLOR000066; STICKLINE(主動買>=0,VOL,-主動賣,2.1,0),COLOR000099; STICKLINE(主動買>=0,VOL,-主動賣,1.5,0),COLOR0000CC; STICKLINE(主動買>=0,VOL,-主動賣,0.9,0),COLOR0000FF; STICKLINE(主動買>=0,VOL,-主動賣,0.2,0),COLORCC66FF; STICKLINE(主動賣<=0,0,-主動賣,3.2,0),COLOR990000; STICKLINE(主動賣<=0,0,-主動賣,2.7,0),COLORCC0000; STICKLINE(主動賣<=0,0,-主動賣,2.1,0),COLORFF4400; STICKLINE(主動賣<=0,0,-主動賣,1.5,0),COLORFF8800; STICKLINE(主動賣<=0,0,-主動賣,0.9,0),COLORFFCC00; STICKLINE(主動賣<=0,0,-主動賣,0.2,0),COLORCYAN; 五日: MA(V,5),COLOR40FF00; 三五日: MA(V,35),COLORYELLOW; 一三五日:MA(V,135),COLOR0080FF; NOTEXT強:IF(五日>MA(五日,2),五日,DRAWNULL),COLORRED;
N:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT); HH0:=HHV(H,N); LL0:=LLV(L,N); MM0:=CONST((HH0+LL0)*0.5); S01:=CONST(IF(REF(C,N-15)>MM0,1.00,-0.08)); S02:=CONST(IF(REF(C,N-15)>MM0,-1,1)); S1:=IF(FINDSTR(EXTERNSTR(0,13),'萬元'),S01+(0.08*S02),S01),NODRAW; S2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),S1+(0.08*S02),S1),NODRAW; S3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),S2+(0.08*S02),S2),NODRAW; S4:=IF(FINDSTR(EXTERNSTR(0,10),',,'),S3+(0.08*S02),S3); S5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),S4+(0.08*S02),S4); S6:=IF(FINDSTR(EXTERNSTR(0,1),',,'),S5+(0.08*S02),S5); S7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),S6+(0.08*S02),S6); S8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),S7+(0.08*S02),S7); S9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),S8+(0.08*S02),S8); K:=IF(S1<=0,0.05,IF(S1>=0,-0.05,0));
超B:=L2_AMO(0,2)/10000.0; 大B:=L2_AMO(1,2)/10000.0; 中B:=L2_AMO(2,2)/10000.0; 小B:=L2_AMO(3,2)/10000.0; 超S:=-L2_AMO(0,3)/10000.0; 大S:=-L2_AMO(1,3)/10000.0; 中S:=-L2_AMO(2,3)/10000.0; 小S:=-L2_AMO(3,3)/10000.0; 凈流入:=(超B+大B+中B+小B)+(超S+大S+中S+小S); 大宗凈流入:=(超B+大B)+(超S+大S); 三日大宗:=SUM(大宗凈流入,3); 十日大宗:=SUM(大宗凈流入,10); 超大單:=(超B)+(超S); 大單:=(大B)+(大S); 中單:=(中B)+(中S); 小單:=(小B)+(小S); 大宗進:=(超B)+(大B); 大宗出:=(超S)+(大S); 非大宗進:=(中B)+(小B); 非大宗出:=(中S)+(小S); 近3日流向:=SUM(凈流入,3); 近10日流向:=SUM(凈流入,10); 主力資金線:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0,LINETHICK2; 主力買力度:=LARGEINTRDVOL*100/VOL; 主力賣力度:=LARGEOUTTRDVOL*100/VOL; DRAWRECTREL(0,0,264,999.4,IF(10,RGB(10,0,0),0)); AA1:=CONST(MAX(ABS(大宗凈流入),MAX(ABS(三日大宗),ABS(十日大宗)))),NODRAW; DRAWRECTREL(153,CONST(80-(ABS(大宗凈流入)*500/AA1)),188,900,IF(CONST(大宗凈流入)>0,RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(190,CONST(800-(ABS(三日大宗)*500/AA1)),225,900,IF(CONST(三日大宗)>0,RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(227,CONST(800-(ABS(十日大宗)*500/AA1)),262,900,IF(CONST(十日大宗)>0,RGB(192,17,27),RGB(0,50,0))); DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.155,0.8,0,INTPART(大宗凈流入)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.191,0.8,0,INTPART(三日大宗)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.228,0.8,0,INTPART(十日大宗)),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.154,0.970,0,'大宗流入'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.192,0.970,0,'三日大宗'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.228,0.970,0,'十日大宗'),COLORYELLOW;
AA01:=CONST(MAX(ABS(大宗進),MAX(ABS(大宗出),MAX(ABS(非大宗進),ABS(非大宗出))))),NODRAW; DRAWRECTREL(2,CONST(800-(ABS(大宗進)*500/AA01)),37,900,IF(CONST(大宗進)>0,RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(39,CONST(800-(ABS(大宗出)*500/AA01)),74,900,IF(CONST(大宗出)<0,RGB(0,50,0),RGB(0,50,0))); DRAWRECTREL(76,CONST(800-(ABS(非大宗進)*500/AA01)),111,900,IF(CONST(非大宗進)>0,RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(113,CONST(800-(ABS(非大宗出)*500/AA01)),148,900,IF(CONST(非大宗出)<0,RGB(0,50,0),RGB(0,50,0))); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.006,0.970,0,'主 力 進'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.044,0.970,0,'主 力 出'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.080,0.970,0,'散 戶 進'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.117,0.970,0,'散 戶 出'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.004,0.8,0,INTPART(大宗進)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.040,0.8,0,INTPART(大宗出)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.078,0.8,0,INTPART(非大宗進)),COLORWHITE; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.113,0.8,0,INTPART(非大宗出)),COLORWHITE;
DRAWRECTREL(2,0,86,100,IF(CONST(主力買力度)>CONST(主力賣力度),RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(2,105,86,205,IF(CONST(主力賣力度)>CONST(主力買力度),RGB(0,50,0),RGB(192,17,27))); DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT('主力買力度:',CON2STR(主力買力度,2))),COLORWHITE; DRAWTEXT_FIX(1,0.005,0.12,0,STRCAT('主力賣力度:',CON2STR(主力賣力度,2))),COLORWHITE;
DRAWRECTREL(175,0,262,100,IF(CONST(大宗進-REF(大宗進,1))>0,RGB(192,17,27),RGB(0,50,0))); DRAWRECTREL(175,105,262,205,IF(CONST(大宗出-REF(大宗出,1))>0,RGB(0,50,0),RGB(192,17,27))); DRAWTEXT_FIX(1,0.180,0.01,0,STRCAT('主力正能量:',CON2STR(大宗進-REF(大宗進,1),2))),COLORWHITE; DRAWTEXT_FIX(1,0.180,0.12,0,STRCAT('主力負能量:',CON2STR(大宗出-REF(大宗出,1),2))),COLORWHITE;
流入比:=凈流入*1000000/AMOUNT; DRAWRECTREL(87,0,174,100,IF(CONST(流入比)>0,RGB(192,17,27),RGB(0,50,0))); DRAWTEXT_FIX(1,0.100,0.01,0,STRCAT('資金參與度:',CON2STR(流入比,2))),COLORWHITE;
大宗流入比:=大宗凈流入*1000000/AMOUNT; DRAWRECTREL(87,105,174,205,IF(CONST(大宗流入比)>0,RGB(192,17,27),RGB(0,50,0))); DRAWTEXT_FIX(1,0.100,0.12,0,STRCAT('機構參與度:',CON2STR(大宗流入比,2))),COLORWHITE;
注:平臺目前更新的有關公式源碼,, 部分提示編碼錯誤的。 是為了避免業(yè)內叨嘮,, 大家看好有意,, 可以線下,聯(lián)系我們這邊,。在線即回,!
免責聲明:指標來源網絡收集和會員提供,僅供學習和研究使用,,不得用于商業(yè)或者非法用途,。文中觀點,主觀性較強,,僅供股友參考,。據此操作,風險自負,! |
|
來自: 股海為家 > 《市場精選指標系列合集》