您現(xiàn)在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文內(nèi)容

分時(shí)分筆(公式、源碼)[大智慧公式]

相關(guān)標(biāo)簽: 通達(dá)信每筆均量指標(biāo) 、 通達(dá)信l2超級(jí)大單公式 、 超準(zhǔn)主力資金進(jìn)場(chǎng)指標(biāo) 、 通達(dá)信競(jìng)價(jià)強(qiáng)度排序 、 獵莊主力凈買(mǎi)額指標(biāo) 、

?

分時(shí)分筆 大智慧新一代L2(免費(fèi)版)都可用的公式

{a1、101 400a2、201400a3、501400}
現(xiàn)價(jià):=c;
Var2:=REF(ASKPRICE(1),1);
Var3:=REF(BIDPRICE(1),1);
var5:=buyvol;
var6:=sellvol;
x1:=a1*10000;
x2:=a2*10000;
x3:=a3*10000;
tdb:=IF(AMOUNT>=x3,Var5,0);
特大買(mǎi)量:=sum(tdb,0);
tds:=IF(AMOUNT>=x3,Var6,0);
特大賣(mài)量:=sum(tds,0);
db:=IF(AMOUNT>=x1 and amount<x2,Var5,0);
ds:=IF(AMOUNT>=x1 and amount<x2,Var6,0);
中買(mǎi)量:=SUM(db,0);
中賣(mài)量:=SUM(ds,0);
db1:=IF(AMOUNT>=x2 and amount<x3,Var5,0);
ds1:=IF(AMOUNT>=x2 and amount<x3,Var6,0);
大買(mǎi)量:=SUM(db1,0);
大賣(mài)量:=SUM(ds1,0);

小買(mǎi)量:=SUM(IF(AMOUNT<x1,Var5,0),0);
小賣(mài)量:=SUM(IF(AMOUNT<x1,Var6,0),0);

小量差:=小買(mǎi)量-小賣(mài)量;
中量差:中買(mǎi)量-中賣(mài)量,LINETHICK0;{http://www.tumamayizhan.com}
大量差:大買(mǎi)量-大賣(mài)量,LINETHICK0;{http://www.tumamayizhan.com}
特大量差:特大買(mǎi)量-特大賣(mài)量,LINETHICK0;{http://www.tumamayizhan.com}
主力量差:大量差+特大量差,LINETHICK0;{http://www.tumamayizhan.com}
FILLRGN(主力量差,0,主力量差>0,rgb(120,60,30),主力量差<0,rgb(100,100,100));
中上差:中量差+主力量差,COLORYELLOW;{http://cxh99.com}
小差:小量差,colorgray;



小量差,linethick0,COLORGREEN;{http://www.tumamayizhan.com}
大量差,linethick0,colorwhite;
特大量差,linethick0,COLORYELLOW;{http://cxh99.com}
主力差額:主力量差*c/100,PRECIS0,LINETHICK0;{http://www.tumamayizhan.com}
主力增倉(cāng):主力量差/capital*100,LINETHICK0;{http://www.tumamayizhan.com}

總量:=sum(vol,0);

sb1:=小買(mǎi)量/總量*100;
ss1:=小賣(mài)量/總量*100;

sb:=中買(mǎi)量/總量*100;
ss:=中賣(mài)量/總量*100;
bb:=大買(mǎi)量/總量*100;
bs:=大賣(mài)量/總量*100;
lb:=特大買(mǎi)量/總量*100;
ls:=特大賣(mài)量/總量*100;
DRAWTEXTABS(10 ,10 ,'主力量差 :'+主力量差),COLORMAGENTA,linethick3;
DRAWTEXTABS(10 ,30 ,'主力增倉(cāng) :'+主力增倉(cāng)+'%'),COLORMAGENTA,linethick3;

DRAWTEXTABS(10 ,120 ,'小買(mǎi)% '+sb1),colorred;
DRAWTEXTABS(10 ,135 ,'小賣(mài)% '+ss1),COLORGREEN;{http://www.tumamayizhan.com}
DRAWTEXTABS(90 ,120 ,'中買(mǎi)% '+sb),colorred;
DRAWTEXTABS(90 ,135 ,'中賣(mài)% '+ss),COLORGREEN;{http://www.tumamayizhan.com}
DRAWTEXTABS(170 ,120 ,'大買(mǎi)% '+bb),colorred;
DRAWTEXTABS(170 ,135 ,'大賣(mài)% '+bs),COLORGREEN;{http://www.tumamayizhan.com}
DRAWTEXTABS(250 ,120 ,'特買(mǎi)% '+lb),colorred;
DRAWTEXTABS(250 ,135 ,'特賣(mài)% '+ls),COLORGREEN;{http://www.tumamayizhan.com}

DRAWRECTABS(40 ,118-sb1 , 52 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(58 ,118-ss1, 70 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(120 ,118-sb , 132 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(138 ,118-ss, 150 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(190 ,118-bb , 202 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(208 ,118-bs , 220 ,118 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(270 ,118-lb , 282 ,118 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(288 ,118-ls , 300 ,118 ,RGB(0,255,0)),colorblack;

{-------------看各價(jià)位上的成交累計(jì)------------}
DRAWTEXTABS(250+100 ,122 ,'-10-9-8-7-6-5-4-3-2-10+1+2+3+4+5+6+7+8+9+10'),COLORwhite,linethick1;

昨收:=DYNAINFO(3);
漲幅:=(c/昨收-1)*100;
n9:=sum(if(漲幅<=-9,vol,0),0)/總量;
n8:=sum(if(漲幅<=-8 and 漲幅>-9,vol,0),0)/總量;
n7:=sum(if(漲幅<=-7 and 漲幅>-8,vol,0),0)/總量;
n6:=sum(if(漲幅<=-6 and 漲幅>-7,vol,0),0)/總量;
n5:=sum(if(漲幅<=-5 and 漲幅>-6,vol,0),0)/總量;
n4:=sum(if(漲幅<=-4 and 漲幅>-5,vol,0),0)/總量;
n3:=sum(if(漲幅<=-3 and 漲幅>-4,vol,0),0)/總量;
n2:=sum(if(漲幅<=-2 and 漲幅>-3,vol,0),0)/總量;
n1:=sum(if(漲幅<=-1 and 漲幅>-2,vol,0),0)/總量;
b0:=sum(if(漲幅<=0 and 漲幅>-1,vol,0),0)/總量;
p1:=sum(if(漲幅<=1 and 漲幅>0,vol,0),0)/總量;
p2:=sum(if(漲幅<=2 and 漲幅>1,vol,0),0)/總量;
p3:=sum(if(漲幅<=3 and 漲幅>2,vol,0),0)/總量;
p4:=sum(if(漲幅<=4 and 漲幅>3,vol,0),0)/總量;
p5:=sum(if(漲幅<=5 and 漲幅>4,vol,0),0)/總量;
p6:=sum(if(漲幅<=6 and 漲幅>5,vol,0),0)/總量;
p7:=sum(if(漲幅<=7 and 漲幅>6,vol,0),0)/總量;
p8:=sum(if(漲幅<=8 and 漲幅>7,vol,0),0)/總量;
p9:=sum(if(漲幅<=9 and 漲幅>8,vol,0),0)/總量;
p10:=sum(if(漲幅>9,vol,0),0)/總量;


DRAWRECTABS(265+100 ,120-n9*250, 275+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(277+100 ,120-n8*250, 287+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(290+100 ,120-n7*250, 300+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(302+100 ,120-n6*250, 312+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(315+100 ,120-n5*250, 325+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(327+100 ,120-n4*250, 337+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(340+100 ,120-n3*250, 350+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(352+100 ,120-n2*250, 362+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(365+100 ,120-n1*250, 375+100 ,120 ,RGB(0,0,255)),colorblack;
DRAWRECTABS(377+100 ,120-b0*250, 387+100 ,120 ,RGB(0,0,255)),colorblack;

DRAWRECTABS(390+100 ,120-p1*250, 400+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(402+100 ,120-p2*250, 412+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(415+100 ,120-p3*250, 425+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(427+100 ,120-p4*250, 437+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(440+100 ,120-p5*250, 450+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(452+100 ,120-p6*250, 462+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(465+100 ,120-p7*250, 475+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(477+100 ,120-p8*250, 487+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(490+100 ,120-p9*250, 500+100 ,120 ,RGB(180,120,60)),colorblack;
DRAWRECTABS(502+100 ,120-p10*250, 512+100 ,120 ,RGB(180,120,60)),colorblack;

{主力大單分布}

zn9b:=sum(if(漲幅<=-9 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn9s:=sum(if(漲幅<=-9 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn8b:=sum(if(漲幅<=-8 and 漲幅>-9 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn8s:=sum(if(漲幅<=-8 and 漲幅>-9 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn7b:=sum(if(漲幅<=-7 and 漲幅>-8 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn7s:=sum(if(漲幅<=-7 and 漲幅>-8 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn6b:=sum(if(漲幅<=-6 and 漲幅>-7 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn6s:=sum(if(漲幅<=-6 and 漲幅>-7 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn5b:=sum(if(漲幅<=-5 and 漲幅>-6 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn5s:=sum(if(漲幅<=-5 and 漲幅>-6 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn4b:=sum(if(漲幅<=-4 and 漲幅>-5 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn4s:=sum(if(漲幅<=-4 and 漲幅>-5 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn3b:=sum(if(漲幅<=-3 and 漲幅>-4 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn3s:=sum(if(漲幅<=-3 and 漲幅>-4 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn2b:=sum(if(漲幅<=-2 and 漲幅>-3 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn2s:=sum(if(漲幅<=-2 and 漲幅>-3 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn1b:=sum(if(漲幅<=-1 and 漲幅>-2 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn1s:=sum(if(漲幅<=-1 and 漲幅>-2 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zn0b:=sum(if(漲幅<=0 and 漲幅>-1 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zn0s:=sum(if(漲幅<=0 and 漲幅>-1 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp1b:=sum(if(漲幅<=1 and 漲幅>0 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp1s:=sum(if(漲幅<=1 and 漲幅>0 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp2b:=sum(if(漲幅<=2 and 漲幅>1 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp2s:=sum(if(漲幅<=2 and 漲幅>1 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp3b:=sum(if(漲幅<=3 and 漲幅>2 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp3s:=sum(if(漲幅<=3 and 漲幅>2 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp4b:=sum(if(漲幅<=4 and 漲幅>3 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp4s:=sum(if(漲幅<=4 and 漲幅>3 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp5b:=sum(if(漲幅<=5 and 漲幅>4 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp5s:=sum(if(漲幅<=5 and 漲幅>4 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp6b:=sum(if(漲幅<=6 and 漲幅>5 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp6s:=sum(if(漲幅<=6 and 漲幅>5 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp7b:=sum(if(漲幅<=7 and 漲幅>6 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp7s:=sum(if(漲幅<=7 and 漲幅>6 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp8b:=sum(if(漲幅<=8 and 漲幅>7 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp8s:=sum(if(漲幅<=8 and 漲幅>7 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp9b:=sum(if(漲幅<=9 and 漲幅>8 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp9s:=sum(if(漲幅<=9 and 漲幅>8 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

zp10b:=sum(if(漲幅>9 and (tdb>0 or db1>0),tdb+db1,0),0)/總量;
zp10s:=sum(if(漲幅>9 and (tds>0 or ds1>0),tds+ds1,0),0)/總量;

DRAWRECTABS(265+100 ,120-zn9b*250, 275+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(265+100 ,134+zn9s*250, 275+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(277+100 ,120-zn8b*250, 287+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(277+100 ,134+zn8s*250, 287+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(290+100 ,120-zn7b*250, 300+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(290+100 ,134+zn7s*250, 300+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(302+100 ,120-zn6b*250, 312+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(302+100 ,134+zn6s*250, 312+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(315+100 ,120-zn5b*250, 325+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(315+100 ,134+zn5s*250, 325+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(327+100 ,120-zn4b*250, 337+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(327+100 ,134+zn4s*250, 337+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(340+100 ,120-zn3b*250, 350+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(340+100 ,134+zn3s*250, 350+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(352+100 ,120-zn2b*250, 362+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(352+100 ,134+zn2s*250, 362+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(365+100 ,120-zn1b*250, 375+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(365+100 ,134+zn1s*250, 375+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(377+100 ,120-zn0b*250, 387+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(377+100 ,134+zn0s*250, 387+100 ,134 ,RGB(0,255,0)),colorblack;

DRAWRECTABS(390+100 ,120-zp1b*250, 400+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(402+100 ,120-zp2b*250, 412+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(415+100 ,120-zp3b*250, 425+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(427+100 ,120-zp4b*250, 437+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(440+100 ,120-zp5b*250, 450+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(452+100 ,120-zp6b*250, 462+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(465+100 ,120-zp7b*250, 475+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(477+100 ,120-zp8b*250, 487+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(490+100 ,120-zp9b*250, 500+100 ,120 ,RGB(255,0,0)),colorblack;
DRAWRECTABS(502+100 ,120-zp10b*250, 512+100 ,120 ,RGB(255,0,0)),colorblack;

DRAWRECTABS(390+100 ,134+zp1s*250, 400+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(402+100 ,134+zp2s*250, 412+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(415+100 ,134+zp3s*250, 425+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(427+100 ,134+zp4s*250, 437+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(440+100 ,134+zp5s*250, 450+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(452+100 ,134+zp6s*250, 462+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(465+100 ,134+zp7s*250, 475+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(477+100 ,134+zp8s*250, 487+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(490+100 ,134+zp9s*250, 500+100 ,134 ,RGB(0,255,0)),colorblack;
DRAWRECTABS(502+100 ,134+zp10s*250, 512+100 ,134 ,RGB(0,255,0)),colorblack;

?

公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程

?

 

有思路,想編寫(xiě)各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友

可聯(lián)系技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫(xiě)!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)

怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊查閱!

(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)

 


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
  主站蜘蛛池模板: 粉嫩小仙女扒开双腿自慰| 私人影院在线观看| 日本强伦姧人妻一区二区| 亚洲美女aⅴ久久久91| 蜜柚免费视频下载| 国产精品美女流白浆视频| 免费在线黄网站| 99精品众筹模特私拍在线| 天天天操天天天干| 久久99蜜桃精品久久久久小说| 欧美日韩亚洲一区二区精品| 农村妇女色又黄一级毛片不卡| 高清日本无a区| 国产精品美女久久久久| 一本一本久久a久久精品综合麻豆| 日韩午夜激情视频| 亚洲欧洲精品成人久久曰影片 | 西西人体免费视频| 奶大灬舒服灬太大了一进一出| 久久人人爽人人爽人人片AV东京热| 欧美日韩国产人成在线观看| 免费看大黄高清网站视频在线| 边吃奶边摸下我好爽免费视频| 国产精品亚洲成在人线| av无码免费永久在线观看| 成全影视免费观看大全二| 久久精品中文字幕一区| 欧美成人精品第一区二区三区| 免费人成在线观看网站品爱网日本| 色老头在线一区二区三区| 国产最新凸凹视频免费| 538精品视频在线观看mp4| 夫妇交换4中文字幕| 中文在线三级中文字幕| 日本老妇人乱xxy| 亚洲VA中文字幕| 欧美日韩第一页| 人人妻人人玩人人澡人人爽 | 这里只有精品网| 国产欧美视频在线观看| 37大但人文艺术a级|