最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信筹码能量图副图源码

    正文概述    2024-04-13 11:25:29  
    换:=IF(CAPITAL 0,今量/CAPITAL*100,V),NODRAW; 主力筹码估算:EMA(WINNER(CLOSE)*70,3),NODRAW; 散户筹码估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW; 散户套牢比率:=散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW; 主力控盘比率:=主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW; 市场总量:MA(主力筹码估算+散户筹码估算,13),NODRAW; 散户警戒:=EMA(散户套牢比率,89),NODRAW; 主力警戒:=EMA(主力控盘比率,89),NODRAW; 价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) ,COLOR00CCFF,NODRAW; 主线:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25) ,COLORCYAN,NODRAW; 快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25) ,COLOR55AAFF,NODRAW; RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; K1:=SMA(RSV,3,1); D1:=SMA(K1,3,1); KK:=INTPART(K1); DD:=INTPART(D1); TFXXS:=KK+DD;{变异KD风险系数} TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向} {顶变异KD乖离系数:资金流向} STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA; STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB; STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF; STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700; STICKLINE(1,100,TGLXS+100,0,0),COLORFFFFFF; {主力控盘筹码} STICKLINE(主力控盘比率 REF(主力控盘比率,1) AND 主力控盘比率 20,主力控盘比率,20,2.5,0 ),COLORAA00BB; STICKLINE(主力控盘比率 =REF(主力控盘比率,1) AND 主力控盘比率 20,主力控盘比率,20,2.5,0 ),COLORFF7700; STICKLINE(主力控盘比率 REF(主力控盘比率,1) AND 主力控盘比率 20,主力控盘比率,0,2.5,0 ),COLOR131FFD; STICKLINE(主力控盘比率 =REF(主力控盘比率,1) AND 主力控盘比率 20,主力控盘比率,0,2.5,0 ),COLORAA0000; STICKLINE(主力控盘比率 20,20,主力控盘比率,0,0),COLORAAAAAA; {主力筹码警戒} STICKLINE(主力警戒 REF(主力警戒,1),主力控盘比率,主力警戒,2.5,0 ),COLOR00AAFF; STICKLINE(主力警戒 REF(主力警戒,1),主力控盘比率,主力警戒,0.5,0 ),COLOR00FFFF; STICKLINE(主力控盘比率 主力警戒 AND 主力警戒 50,主力控盘比率,主力警戒,2.5,0 ),COLOR0000AA; STICKLINE(主力控盘比率 主力警戒 AND 主力警戒 50,主力控盘比率,主力警戒,0.5 ,0 ),COLOR0055FF; STICKLINE(主力控盘比率 主力警戒 AND 主力警戒 50 AND 主力控盘比率 50 AND 主力警戒 REF(主力警戒,1),主力控盘比率,50,2.5,0 ),COLOR0000AA; STICKLINE(主力控盘比率 主力警戒 AND 主力警戒 50 AND 主力控盘比率 50 AND 主力警戒 REF(主力警戒,1),主力控盘比率,50,0.5 ,0 ),COLOR0055FF; {底信号} {散兵坑} STICKLINE(主力控盘比率 =10,主力控盘比率,0,5,0),COLORDD00DD; {神秘黑洞} STICKLINE(REF(散户套牢比率,1) 90 AND 散户套牢比率 90,30,0,3,0),COLOR0000FF; {价量主线} {价量,COLOR0CC0FF,LINETHICK3; 主线,COLOR00FFAA,LINETHICK2; 快线,COLORFFFF99,LINETHICK1,LINESTICK; {筹码总量} {ZCMZL2:市场总量,COLORGREEN,LINETHICK2; IF(市场总量 REF(市场总量,1),市场总量,DRAWNULL),COLOR0066FF,LINETHICK2;} RSV1:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; FASTK:=SMA(RSV1,3,1); 龙K:=SMA(FASTK,2,1); 龙D:=SMA(龙K,5,1); STICKLINE(龙K =龙D,龙D,龙K,3,0),COLOR000085; STICKLINE(龙K 龙D,龙D,龙K,3,0),COLOR324800; L1:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*150-10; 凤K:SMA(L1,3,1),COLORAACCAA; 凤D:SMA(凤K,3,1),COLORAACCAA; KP:=DYNAINFO(4); ZX:=DYNAINFO(7); A1:=IF(主买 =今量/2,255,255); A2:=IF(主买 =今量/2,0,0); A3:=IF(主买 =今量/2,0,255); DRAWRECTREL(0,250,MM*今量,280,RGB(0,250,250)); DRAWRECTREL(0,250,MM*主买,280,RGB(A1,A2,A3)); DRAWRECTREL(0,250,MM*ABS(主买-(今量-主买)),280,RGB(A3,255,00)); ZO:=CONST( FSKY.ZO#DAY ZC:=CONST( FSKY.ZC#DAY A4:=IF(昨主 =昨量/2,255,255); A5:=IF(昨主 =昨量/2,0,0); A6:=IF(昨主 =昨量/2,0,255); DRAWRECTREL(0,200,MM*昨量,230,RGB(0,250,250)); DRAWRECTREL(0,200,MM*昨主,230,RGB(A4,A5,A6)); DRAWRECTREL(0,200,MM*ABS(昨主-(昨量-昨主)),230,RGB(A6,255,00)); JO:=CONST( FSKY.JO#DAY JC:=CONST( FSKY.JC#DAY A7:=IF(前主 =前量/2,255,255); A8:=IF(前主 =前量/2,0,0); A9:=IF(前主 =前量/2,0,255); DRAWRECTREL(0,150,MM*前量,180,RGB(0,250,250)); DRAWRECTREL(0,150,MM*前主,180,RGB(A7,A8,A9)); DRAWRECTREL(0,150,MM*ABS(前主-(前量-前主)),180,RGB(A9,255,00)); JO3:=CONST( FSKY.JO3#DAY JC3:=CONST( FSKY.JC3#DAY A10:=IF(主4 =前4/2,255,255); A11:=IF(主4 =前4/2,0,0); A12:=IF(主4 =前4/2,0,255); DRAWRECTREL(0,100,MM*前4,130,RGB(0,250,250)); DRAWRECTREL(0,100,MM*主4,130,RGB(A10,A11,A12)); DRAWRECTREL(0,100,MM*ABS(主4-(前4-主4)),130,RGB(A12,255,00)); JO4:=CONST( FSKY.JO4#DAY JC4:=CONST( FSKY.JC4#DAY A13:=IF(主5 =前5/2,255,255); A14:=IF(主5 =前5/2,0,0); A15:=IF(主5 =前5/2,0,255); DRAWRECTREL(0,50,MM*前5,80,RGB(0,250,250)); DRAWRECTREL(0,50,MM*主5,80,RGB(A13,A14,A15)); DRAWRECTREL(0,50,MM*ABS(主5-(前5-主5)),80,RGB(A15,255,00)); 五纯%:=CONST(IF(1 , FSKY2.五纯%#DAY ,DRAWNULL)),NODRAW; 一纯%:=CONST(IF(1, FSKY2.一纯%#DAY ,DRAWNULL)),NODRAW; 三纯%:=CONST(IF(1 , FSKY2.三纯%#DAY ,DRAWNULL)),NODRAW; DRAWRECTREL(0,300,200,750,RGB(80,80,80)); DRAWTEXT_FIX(五纯% =0,0.0,1-0.70,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLOR0000FF; DRAWTEXT_FIX(五纯% 0,0.0,1-0.70,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFF00; DRAWTEXT_FIX(三纯% =0,0.0,1-0.55,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLOR0000FF; DRAWTEXT_FIX(三纯% 0,0.0,1-0.55,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFF00; DRAWTEXT_FIX(一纯% =0,0.0,1-0.40,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLOR0000FF; DRAWTEXT_FIX(一纯% 0,0.0,1-0.40,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFF00; ======================================================= {FSKY} 比:=240/FROMOPEN; TT:=IF(ISLASTBAR,240/FROMOPEN,1); WJ:=(H+L+C)/3; V1:=IF(H=L,1,H-MAX(O,C)); V2:=IF(H=L,1,MAX(C,O)-WJ); V3:=IF(H=L,1,MIN(O,C)-L); V4:=IF(H=L,1,WJ-MIN(C,O)); V5:=VOL/IF(H=L,4,H-L); V6:=(V1*V5); V7:=(V2*V5); V8:=(V3*V5); V9:=(V4*V5); 买盘1:=DYNAINFO(23)*比; 卖盘1:=DYNAINFO(22)*比; 买盘2:=IF(ISLASTBAR AND C 300,(V9+V8)*TT,(V9+V8)); 卖盘2:=IF(ISLASTBAR AND C 300,(V6+V7)*TT,(V6+V7)); 买盘:=IF(ISLASTBAR AND PERIOD=5 AND C 300,买盘1,买盘2); 卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C 300,卖盘1,卖盘2); 今量:买盘+卖盘; 主买:买盘; 昨量:REF(VOL,1); 昨主:REF(主买,1); 前量:REF(VOL,2); 前主:REF(主买,2); 前4:REF(VOL,3); 主4:REF(主买,3); 前5:REF(VOL,4); 主5:REF(主买,4); ZO:REF(O,1); ZC:REF(C,1); ZH:REF(H,1); ZL:REF(L,1); JO:REF(O,2); JC:REF(C,2); JH:REF(H,2); JL:REF(L,2); JO3:REF(O,3); JC3:REF(C,3); JH3:REF(H,3); JL3:REF(L,3); JO4:REF(O,4); JC4:REF(C,4); JH4:REF(H,4); JL4:REF(L,4); JO5:REF(O,5); JC5:REF(C,5); JH5:REF(H,5); JL5:REF(L,5); JO6:REF(O,6); JC6:REF(C,6); JH6:REF(H,6); JL6:REF(L,6); JO7:REF(O,7); JC7:REF(C,7); JH7:REF(H,7); JL7:REF(L,7); JO8:REF(O,8); JC8:REF(C,8); JH8:REF(H,8); JL8:REF(L,8); JO9:REF(O,9); JC9:REF(C,9); JH9:REF(H,9); JL9:REF(L,9); MA5:MA(C,5); MA10:MA(C,10); MA20:MA(C,20); MA60:MA(C,60); =============================================== {FSKY2} 比:=240/FROMOPEN; TT:=IF(ISLASTBAR,240/FROMOPEN,1); WJ:=(H+L+C)/3; V1:=IF(H=L,1,H-MAX(O,C)); V2:=IF(H=L,1,MAX(C,O)-WJ); V3:=IF(H=L,1,MIN(O,C)-L); V4:=IF(H=L,1,WJ-MIN(C,O)); V5:=VOL/IF(H=L,4,H-L); V6:=(V1*V5); V7:=(V2*V5); V8:=(V3*V5); V9:=(V4*V5); 买盘1:=DYNAINFO(23)*比; 卖盘1:=DYNAINFO(22)*比; 买盘2:=IF(ISLASTBAR AND C 300,(V9+V8)*TT,(V9+V8)); 卖盘2:=IF(ISLASTBAR AND C 300,(V6+V7)*TT,(V6+V7)); 买盘:=IF(ISLASTBAR AND PERIOD=5 AND C 300,买盘1,买盘2); 卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C 300,卖盘1,卖盘2); 今量:=买盘+卖盘; 差:=买盘-卖盘; 主买:=买盘; 昨量:=REF(VOL,1); 昨主:=REF(主买,1); 昨差:=REF(差,1); 前量:=REF(VOL,2); 前主:=REF(主买,2); 前差:=REF(差,2); 前4:=REF(VOL,3); 主4:=REF(主买,3); 差4:=REF(差,3); 前5:=REF(VOL,4); 主5:=REF(主买,4); 差5:=REF(差,4); 总5:=今量+昨量+前量+前4+前5; 总差:=差+昨差+前差+差4+差5; 一纯%:差/今量*100; 三纯%:(差+昨差+前差)/(今量+昨量+前量)*100; 五纯%:总差/总5*100; 上涨家数:INDEXADV; 下跌家数:INDEXDEC;

    通达信筹码能量图副图源码

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信筹码能量图副图源码 加入收藏