股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索

[大智慧L2]大智慧L2神獒四户副图源码公式


   
楼主
2020-1-2 04:08:20
大智慧L2神獒四户副图源码公式:
input:P1(5,1,60);
DRAWTEXTABS(2,0,'当日席位多空分布图');
a1:=(BIGORDER(1,2)) - (BIGORDER(2,2));
a2:=(BIGORDER(1,1)) - (BIGORDER(2,1));
a3:=(BIGORDER(1,3)) - (BIGORDER(2,3));
a4:=a1 * VOL;
a5:=a2 * VOL;
a6:=a3 * VOL;
a7:=(BIGORDER(1,3)) * VOL;
a8:=(BIGORDER(2,3)) * VOL;
a9:=((BIGORDER(1,2)) - (BIGORDER(1,3))) * VOL;
a10:=((BIGORDER(2,2)) - (BIGORDER(2,3))) * VOL;
a11:=((BIGORDER(1,1)) - (BIGORDER(1,2))) * VOL;
a12:=((BIGORDER(2,1)) - (BIGORDER(2,2))) * VOL;
a13:=VOL * (1 - (BIGORDER(1,1)));
a14:=VOL * (1 - (BIGORDER(2,1)));
a15:=((((((a7 + a8) + a9) + a10) + a11) + a12) + a13) + a14;
a16:=(100 * a7) / a15;
a17:=(100 * a8) / a15;
a18:=(100 * a9) / a15;
a19:=(100 * a10) / a15;
a20:=(100 * a11) / a15;
a21:=(100 * a12) / a15;
a22:=(100 * a13) / a15;
a23:=(100 * a14) / a15;
a24:=(100 * a4) / a15;
a25:=a16 - a17;
a26:=a18 - a19;
a27:=a20 - a21;
a28:=a22 - a23;
主力席位:(((a4 * 3) + a5) + (a6 * 2)) / 6,linethick0,colorRed;
机构席位:(a6),linethick0,colorYellow;
主力席位流入:STICKLINE((主力席位 > 0),0,主力席位,7,0),colorRed;
主力席位流出:STICKLINE((主力席位 < 0),0,主力席位,7,0),ColorFFF000;
机构席位流入:STICKLINE((机构席位 > 0),0,机构席位,2,0),colorYellow;
机构席位流出:STICKLINE((机构席位 < 0),0,机构席位,2,0),ColorFF0000;
MA5:MA(主力席位,P1),colorWhite;
a29:=(a7);
a30:=(a8);
a31:=(a9);
a32:=(a10);
a33:=(a11);
a34:=(a12);
a35:=(a13);
a36:=(a14);
a37:=600 / (MAX(a29,a30,a31,a32,a33,a34,a35,a36));
a38:=999 - (a29 * a37);
a39:=999 - (a30 * a37);
a40:=999 - (a31 * a37);
a41:=999 - (a32 * a37);
a42:=999 - (a33 * a37);
a43:=999 - (a34 * a37);
a44:=999 - (a35 * a37);
a45:=999 - (a36 * a37);
DRAWRECTREL(0,100,400,1000,6566450),colorRed;
DRAWTEXTREL(6,900,'机构'),ColorDDFFFF;
DRAWTEXTREL(88,900,'大户'),ColorDDFFFF;
DRAWTEXTREL(168,900,'中户'),ColorDDFFFF;
DRAWTEXTREL(248,900,'散户'),ColorDDFFFF;
DRAWRECTREL(40,a38,60,1000,250),colorYellow;
DRAWRECTREL(60,a39,80,1000,9213440),colorYellow;
DRAWRECTREL(120,a40,140,1000,250),colorYellow;
DRAWRECTREL(140,a41,160,1000,9213440),colorYellow;
DRAWRECTREL(200,a42,220,1000,250),colorYellow;
DRAWRECTREL(220,a43,240,1000,9213440),colorYellow;
DRAWRECTREL(280,a44,300,1000,250),colorYellow;
DRAWRECTREL(300,a45,320,1000,9213440),colorYellow;
DRAWTEXTREL(2,120,'机构买:'+NUMTOSTR(a16)+'%'+' 大户买:'+NUMTOSTR(a18)+'%'+' 中户买:'+NUMTOSTR(a20)+'%'+' 散户买:'+NUMTOSTR(a22)+'%'),colorRed;
DRAWTEXTREL(2,200,'机构卖:'+NUMTOSTR(a17)+'%'+' 大户卖:'+NUMTOSTR(a19)+'%'+' 中户卖:'+NUMTOSTR(a21)+'%'+' 散户卖:'+NUMTOSTR(a23)+'%'),colorGreen;
DRAWTEXTREL(2,280,'机构差:'+NUMTOSTR(a25)+'%'+' 大户差:'+NUMTOSTR(a26)+'%'+' 中户差:'+NUMTOSTR(a27)+'%'+' 散户差:'+NUMTOSTR(a28)+'%'),colorWhite;
DRAWTEXTREL(2,360,'主力差:'+NUMTOSTR(a24)+'%'),colorWhite;
DRAWTEXTREL(10,800,'㊣十二星座*神獒赢富㊣'),linethick1,COLOR00EEff;
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));


回复

举报