当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:龙申资金分布1(通达信公式 副图 源码 测试图)
软件名称:[B]龙申资金分布1(通达信公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-03-17 00:15:38
软件简介:
龙申资金分布1
公式需要L2支持才可以显示
STICKLINE((VOL > 0),VOL,0,2.6,1),COLOR666666;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买2:=ABS(QJ0*(JJ-MIN(CLOSE,OPEN)));
STICKLINE(主买2,0,主买2,2.5,0),COLORCBC0FF;
主卖2:=ABS(QJ0*(MIN(OPEN,CLOSE)-LOW));
STICKLINE(主卖2,0,-主卖2,2.5,0),COLORFF9900;
散买2:=ABS(QJ0*(HIGH-MAX(OPEN,CLOSE)));
STICKLINE(散买2,主买2,主买2+散买2,2.5,0),COLOR888888;
散卖2:=ABS(QJ0*(MAX(CLOSE,OPEN)-JJ));
STICKLINE(散卖2,-主卖2,-主卖2-散卖2,2.5,0),COLOR888888;
资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(资金异动>100 ,0,主买2+散买2,0.01,0),COLORYELLOW,NODRAW;
VAR1:=VOL/((H-L)*2-ABS(C-O));
主买1:=IF(C>O,VAR1*(H-L),IF(C<O,VAR1*((H-O)+(C-L)),VOL/2)),COLORRED,NODRAW;
主卖1:=IF(C>O,0-VAR1*((H-C)+(O-L)),IF(C<O,0-VAR1*(H-L),0+V/2)),COLOR00FF00,NODRAW;
AA1:=VOL<REF(LLV(VOL,20),1);
STICKLINE(AA1,(-主卖2-散卖2),(主买2+散买2),1.1,1),COLORYELLOW,NODRAW;
AA2:=VOL<REF(LLV(VOL,60),1);
STICKLINE(AA2,(-主卖2-散卖2),(主买2+散买2),1.1,1),COLORCD0000,NODRAW;
AA3:=VOL<REF(LLV(VOL,100),1);
STICKLINE(AA3,(-主卖2-散卖2),(主买2+散买2),1.0,1),COLORGREEN,NODRAW;
买卖差:=(主买1+主卖1);
STICKLINE((买卖差<0),0,买卖差,2.5,0),COLORGREEN,LINETHICK1;
STICKLINE((买卖差>0),0,买卖差,2.5,0),COLORRED,LINETHICK1;
FJ:0,COLORRED,NODRAW;
DDXA:=主买1+主卖1;
DX:=MA(DDXA,5)*5;
DDX1:SMA(DX,2,1),COLORGREEN,LINETHICK1;
B:=DDX1 <REF(DDX1,1);
IF( B -1, DDX1 ,DRAWNULL)COLORRED,LINETHICK2;
DDX2:SMA(DX,3,1),COLORYELLOW,LINETHICK1;
超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;
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
近2净入:=SUM(净流入,2);
近2超:=SUM(超大单,2);
近2大:=SUM(大单,2);
近2中:=SUM(中单,2),;
近2小:=SUM(小单,2);
近3净入:=SUM(净流入,3);
近3超:=SUM(超大单,3);
近3大:=SUM(大单,3);
近3中:=SUM(中单,3),;
近3小:=SUM(小单,3);
流入:=ABS(超B+大B+中B+小B)*1000/VOL;
流出:=ABS(超S+大S+中S+小S)*1000/VOL;
近2流入:=ABS(SUM(超B,2)+SUM(大B,2)+SUM(中B,2)+SUM(小B,2))*1000/VOL;
近2流出:=ABS(SUM(超S,2)+SUM(大S,2)+SUM(中S,2)+SUM(小S,2))*1000/VOL;
近3流入:=ABS(SUM(超B,3)+SUM(大B,3)+SUM(中B,3)+SUM(小B,3))*1000/VOL;
近3流出:=ABS(SUM(超S,3)+SUM(大S,3)+SUM(中S,3)+SUM(小S,3))*1000/VOL;
净流买比:=流入*100/(流入+流出);
净流买比2:=近2流入*100/(近2流入+近2流出);
净流买比3:=近3流入*100/(近3流入+近3流出);
AAS:=CONST(MAX(ABS(流入),ABS(流出)))*4,NODRAW;
{ 当日 }
DRAWRECTREL(0,0,175,999.2,IF(120,RGB(10,0,0),0));
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0,0.001,0,'单位(万元)'),COLORDDDDDD;}
DRAWRECTREL(5,ABS(CONST(880-(ABS(净流入)*450/DAZHI))),26,880,IF(CONST(净流入)>0,RGB(170,0,170),RGB(0,155,0)));
DRAWRECTREL(35,ABS(CONST(880-(ABS(超大单)*450/DAZHI))),60,880,IF(CONST(超大单)>0,RGB(240,130,140),RGB(23,125,255)));
DRAWRECTREL(70,ABS(CONST(880-(ABS(大单)*450/DAZHI))),95,880,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(105,ABS(CONST(880-(ABS(中单)*450/DAZHI))),130,880,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(140,ABS(CONST(880-(ABS(小单)*450/DAZHI))),165,880,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(10,205,160,125,RGB(0,140,0));
DRAWRECTREL(10,195,160,135,RGB(0,160,0));
DRAWRECTREL(10,185,160,145,RGB(0,180,0));
DRAWRECTREL(10,175,160,155,RGB(0,210,0));
DRAWRECTREL(10,205,10+CONST(净流买比*160/100),125,RGB(140,0,0));
DRAWRECTREL(10,195,10+CONST(净流买比*160/100),135,RGB(160,0,0));
DRAWRECTREL(10,185,10+CONST(净流买比*160/100),145,RGB(180,0,0));
DRAWRECTREL(10,175,10+CONST(净流买比*160/100),155,RGB(210,0,0));
DRAWTEXT_FIX(1,0.05,0.01,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.002,0.001,0,'当日'),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.005,1,0,'净流'),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.039,1,0,'超大'),COLOR00FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,1,0,'大单'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.108,1,0,'中单'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.143,1,0,'小单'),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.005,0.79,0,CEILING(净流入)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.037,0.71,0,CEILING(超大单)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.073,0.63,0,CEILING(大单)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.107,0.55,0,CEILING(中单)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.142,0.47,0,CEILING(小单)),COLORYELLOW;
{2日 }
DRAWRECTREL(175,0,360,999.2,IF(120,RGB(10,0,0),0));
DRAWRECTREL(185,ABS(CONST(880-(ABS(近2净入)*50/DAZHI))),210,880,IF(CONST(近2净入)>0,RGB(180,0,180),RGB(000,155,000)));
DRAWRECTREL(220,ABS(CONST(880-(ABS(近2超)*50/DAZHI))),245,880,IF(CONST(近2超)>0,RGB(240,130,140),RGB(23,125,255)));
DRAWRECTREL(255,ABS(CONST(880-(ABS(近2大)*50/DAZHI))),280,880,IF(CONST(近2大)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(290,ABS(CONST(880-(ABS(近2中)*50/DAZHI))),315,880,IF(CONST(近2中)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(325,ABS(CONST(880-(ABS(近2小)*50/DAZHI))),350,880,IF(CONST(近2小)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(205,205,340,145,RGB(0,155,0));
DRAWRECTREL(185,205,180+CONST(净流买比2*160/100),145,RGB(160,0,0));
DRAWTEXT_FIX(1,0.24,0.01,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比2,2)),'%')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.189,0.001,0,'2日'),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.189,1,0,'净流'),COLORFFFFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.224,1,0,'超大'),COLOR00FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.259,1,0,'大单'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.294,1,0,'中单'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.329,1,0,'小单'),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.187,0.790,0,CEILING(近2净入)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.223,0.710,0,CEILING(近2超)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.258,0.630,0,CEILING(近2大)),COLORYELLOW;
DRAW
[url=http://www.70822.com/soft/sort013/sort05/down-154749.html]龙申资金分布1(通达信公式 副图 源码 测试图)[/url]
[url=http://www.70822.com/soft/sort013/sort05/down-154749.html]龙申资金分布1(通达信公式 副图 源码 测试图)[/url]