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

資金明細(xì)圖指標(biāo) 公式 源碼[大智慧公式]

指標(biāo)公式源碼分析及使用說明:

?

這些變量和函數(shù)涉及到對交易量和主力資金流入的統(tǒng)計(jì)和分類。讓我為你總結(jié)一下編程思路及操作建議:
?
?
?總體編程思路總結(jié)
?
1. 數(shù)據(jù)獲取和預(yù)處理:
? ?- 使用REF函數(shù)獲取歷史交易日的成交額,并將其轉(zhuǎn)換為億的單位。
? ?- 使用BIGORDER函數(shù)計(jì)算不同檔位的大單占比,并結(jié)合當(dāng)前交易日的成交額進(jìn)行計(jì)算。
?
2. 指標(biāo)計(jì)算和邏輯設(shè)置:
? ?- 定義和計(jì)算每個變量,確保理解和正確使用函數(shù)(如REF、BIGORDER)。
? ?- 根據(jù)具體需求對成交額和大單占比進(jìn)行分類和統(tǒng)計(jì)。
?
3. 結(jié)果展示和應(yīng)用:
? ?- 結(jié)果如主力流入凈量等可以用于生成圖表或者作為交易決策的依據(jù)。
? ?- 使用DRAWTEXTABS函數(shù)來標(biāo)示統(tǒng)計(jì)分類的標(biāo)題和相關(guān)信息。
?
?操作建議
?
- 參數(shù)優(yōu)化和回測:
? - 在實(shí)際應(yīng)用前,建議優(yōu)化和回測參數(shù),例如調(diào)整REF和BIGORDER函數(shù)中的檔位參數(shù),以優(yōu)化指標(biāo)的效果和準(zhǔn)確性。
?
- 數(shù)據(jù)源和周期選擇:
? - 確保使用正確的數(shù)據(jù)源(如日線、分鐘線等)和合適的周期來計(jì)算指標(biāo),以適應(yīng)你的交易頻率和策略需求。
?
- 技術(shù)實(shí)現(xiàn):
? - 使用適當(dāng)?shù)木幊陶Z言或平臺實(shí)現(xiàn)你的交易策略,并確保計(jì)算的準(zhǔn)確性和實(shí)時性。
?
- 風(fēng)險(xiǎn)管理:
? - 在應(yīng)用指標(biāo)時,考慮風(fēng)險(xiǎn)管理策略,例如設(shè)置止損和止盈點(diǎn),以控制潛在的損失并最大化盈利潛力。
?
綜上所述,這些步驟和建議可以幫助你理解和實(shí)現(xiàn)給定的指標(biāo)公式,從而應(yīng)用于實(shí)際的金融市場分析和交易決策中。

?

源碼:

?

cxh0:=REF(AMOUNT,3)/10000/10000;
cxh1:=REF(AMOUNT,4)/10000/10000;
cxh2:=REF(AMOUNT,2)/10000/10000;
cxh3:=REF(AMOUNT,1)/10000/10000;
cxh4:=AMOUNT/10000/10000;
DRAWTEXTABS(16,8,'統(tǒng)計(jì)分類'),COLORWHITE;
cxh5:=AMOUNT * BIGORDER(1,3);
cxh6:=AMOUNT * (BIGORDER(1,2) - BIGORDER(1,3));
cxh7:=AMOUNT * (BIGORDER(1,1) - BIGORDER(1,2));
cxh8:=AMOUNT * (1 - BIGORDER(1,1));
cxh9:=cxh5 + cxh6 + cxh7 + cxh8;
cxh10:=AMOUNT * BIGORDER(2,3);
cxh11:=AMOUNT * (BIGORDER(2,2) - BIGORDER(2,3));
cxh12:=AMOUNT * (BIGORDER(2,1) - BIGORDER(2,2));
cxh13:=AMOUNT * (1 - BIGORDER(2,1));
cxh14:=(BIGORDER(1,2) - BIGORDER(2,2)) * VOL/CAPITAL * 100;
cxh15:=BIGORDER(1,2) * AMOUNT/10000;
cxh16:=BIGORDER(2,2) * AMOUNT/10000;
主力流入凈量:cxh15 - cxh16,LINETHICK0,COLOR00AAFF;
cxh17:=REF(cxh15,0);
cxh18:=REF(cxh15,1);
cxh19:=REF(cxh15,2);
cxh20:=REF(cxh15,3);
cxh21:=REF(cxh15,5);
cxh22:=REF(cxh16,0);
cxh23:=REF(cxh16,1);
cxh24:=REF(cxh16,2);
cxh25:=REF(cxh16,3);
cxh26:=REF(cxh16,4);
DRAWTEXTABS(8,35,'主 力 賬 戶'),COLORWHITE;
DRAWTEXTABS(8,60,'超 大 賬 戶'),COLORWHITE;
DRAWTEXTABS(8,85,'大 戶 賬 戶'),COLORWHITE;
DRAWTEXTABS(8,110,'中 戶 賬 戶'),COLORWHITE;
DRAWTEXTABS(8,135,'散 戶 賬 戶'),COLORWHITE;
DRAWTEXTABS(5,165,'股價(jià)漲幅(%)'),COLORWHITE;
DRAWTEXTABS(16,190,'' + STKNAME + ''),COLORWHITE;
DRAWTEXTABS(78,190,'' + STKLABEL + ''),COLORRED;
cxh27:=BKNAME;
cxh28:=' 板塊類別: ' + cxh27;
DRAWTEXTABS(140,190,cxh28),COLORWHITE;
DRAWTEXTABS(515,60,'' + SUM(REF(cxh5 - cxh10,0)/10000,2) + ''),COLORWHITE;
DRAWTEXTABS(625,60,'' + SUM(REF(cxh5 - cxh10,0)/10000,3) + ''),COLORWHITE;
DRAWTEXTABS(735,60,'' + SUM(REF(cxh5 - cxh10,0)/10000,4) + ''),COLORWHITE;
DRAWTEXTABS(845,60,'' + SUM(REF(cxh5 - cxh10,0)/10000,5) + ''),COLORWHITE;
DRAWTEXTABS(515,85,'' + SUM(REF(cxh6 - cxh11,0)/10000,2) + ''),COLORWHITE;
DRAWTEXTABS(625,85,'' + SUM(REF(cxh6 - cxh11,0)/10000,3) + ''),COLORWHITE;
DRAWTEXTABS(735,85,'' + SUM(REF(cxh6 - cxh11,0)/10000,4) + ''),COLORWHITE;
DRAWTEXTABS(845,85,'' + SUM(REF(cxh6 - cxh11,0)/10000,5) + ''),COLORWHITE;
DRAWTEXTABS(515,110,'' + SUM(REF(cxh7 - cxh12,0)/10000,2) + ''),COLORWHITE;
DRAWTEXTABS(625,110,'' + SUM(REF(cxh7 - cxh12,0)/10000,3) + ''),COLORWHITE;
DRAWTEXTABS(735,110,'' + SUM(REF(cxh7 - cxh12,0)/10000,4) + ''),COLORWHITE;
DRAWTEXTABS(845,110,'' + SUM(REF(cxh7 - cxh12,0)/10000,5) + ''),COLORWHITE;
DRAWTEXTABS(515,135,'' + SUM(REF(cxh8 - cxh13,0)/10000,2) + ''),COLORWHITE;
DRAWTEXTABS(625,135,'' + SUM(REF(cxh8 - cxh13,0)/10000,3) + ''),COLORWHITE;
DRAWTEXTABS(735,135,'' + SUM(REF(cxh8 - cxh13,0)/10000,4) + ''),COLORWHITE;
DRAWTEXTABS(845,135,'' + SUM(REF(cxh8 - cxh13,0)/10000,5) + ''),COLORWHITE;
DRAWTEXTABS(515,35,'' + SUM(REF(cxh17 - cxh22,0),2) + ''),COLORWHITE;
DRAWTEXTABS(625,35,'' + SUM(REF(cxh17 - cxh22,0),3) + ''),COLORWHITE;
DRAWTEXTABS(735,35,'' + SUM(REF(cxh17 - cxh22,0),4) + ''),COLORWHITE;
DRAWTEXTABS(845,35,'' + SUM(REF(cxh17 - cxh22,0),5) + ''),COLORWHITE;
DRAWTEXTABS(485,8,'連續(xù)2日總計(jì)(萬元)'),COLOR088FFF;
DRAWTEXTABS(705,8,'連續(xù)4日總計(jì)(萬元)'),COLOR088FFF;
DRAWTEXTABS(595,8,'連續(xù)3日總計(jì)(萬元)'),COLOR088FFF;
DRAWTEXTABS(815,8,'連續(xù)5日總計(jì)(萬元)'),COLOR088FFF;
DRAWTEXTABS(502,163,'2日:' + SUM((CLOSE - REF(CLOSE,1))/REF(CLOSE,1) * 100,2) + '%'),COLORWHITE;
DRAWTEXTABS(612,163,'3日:' + SUM((CLOSE - REF(CLOSE,1))/REF(CLOSE,1) * 100,3) + '%'),COLORWHITE;
DRAWTEXTABS(722,163,'4日:' + SUM((CLOSE - REF(CLOSE,1))/REF(CLOSE,1) * 100,4) + '%'),COLORWHITE;
DRAWTEXTABS(832,163,'5日:' + SUM((CLOSE - REF(CLOSE,1))/REF(CLOSE,1) * 100,5) + '%'),COLORWHITE;
DRAWTEXTABS(385,60,'超大:' + NUMTOSTRN(REF(cxh5 - cxh10,0)/10000,0)),COLORWHITE;
DRAWTEXTABS(320,60,NUMTOSTRN(REF(cxh5 - cxh10,1)/10000,0)),COLORWHITE;
DRAWTEXTABS(220,60,NUMTOSTRN(REF(cxh5 - cxh10,2)/10000,0)),COLORWHITE;
DRAWTEXTABS(120,60,NUMTOSTRN(REF(cxh5 - cxh10,3)/10000,0)),COLORWHITE;
DRAWTEXTABS(385,85,'大戶:' + NUMTOSTRN(REF(cxh6 - cxh11,0)/10000,0)),COLORWHITE;
DRAWTEXTABS(320,85,NUMTOSTRN(REF(cxh6 - cxh11,1)/10000,0)),COLORWHITE;
DRAWTEXTABS(220,85,NUMTOSTRN(REF(cxh6 - cxh11,2)/10000,0)),COLORWHITE;
DRAWTEXTABS(120,85,NUMTOSTRN(REF(cxh6 - cxh11,3)/10000,0)),COLORWHITE;
DRAWTEXTABS(385,110,'中戶:' + NUMTOSTRN(REF(cxh7 - cxh12,0)/10000,0)),COLORWHITE;
DRAWTEXTABS(320,110,NUMTOSTRN(REF(cxh7 - cxh12,1)/10000,0)),COLORWHITE;
DRAWTEXTABS(220,110,NUMTOSTRN(REF(cxh7 - cxh12,2)/10000,0)),COLORWHITE;
DRAWTEXTABS(120,110,NUMTOSTRN(REF(cxh7 - cxh12,3)/10000,0)),COLORWHITE;
DRAWTEXTABS(385,135,'小股民:' + NUMTOSTRN(REF(cxh8 - cxh13,0)/10000,0)),COLORWHITE;
DRAWTEXTABS(320,135,NUMTOSTRN(REF(cxh8 - cxh13,1)/10000,0)),COLORWHITE;
DRAWTEXTABS(220,135,NUMTOSTRN(REF(cxh8 - cxh13,2)/10000,0)),COLORWHITE;
DRAWTEXTABS(120,135,NUMTOSTRN(REF(cxh8 - cxh13,3)/10000,0)),COLORWHITE;
DRAWTEXTABS(385,35,'主力:' + NUMTOSTRN(cxh17 - cxh22,0)),COLORWHITE;
DRAWTEXTABS(320,35,NUMTOSTRN(cxh18 - cxh23,0)),COLORWHITE;
DRAWTEXTABS(220,35,NUMTOSTRN(cxh19 - cxh24,0)),COLORWHITE;
DRAWTEXTABS(120,35,NUMTOSTRN(cxh20 - cxh25,0)),COLORWHITE;
DRAWTEXTABS(385,163,'漲幅:' + NUMTOSTRN((CLOSE - REF(CLOSE,1))/REF(CLOSE,1) * 100,2) + '%'),COLORWHITE;
DRAWTEXTABS(315,163,NUMTOSTRN((REF(CLOSE,1) - REF(CLOSE,2))/REF(CLOSE,2) * 100,2) + '%'),COLORWHITE;
DRAWTEXTABS(215,163,NUMTOSTRN((REF(CLOSE,2) - REF(CLOSE,3))/REF(CLOSE,3) * 100,2) + '%'),COLORWHITE;
DRAWTEXTABS(115,163,NUMTOSTRN((REF(CLOSE,3) - REF(CLOSE,4))/REF(CLOSE,4) * 100,2) + '%'),COLORWHITE;
DRAWTEXTABS(83,8,'四日前凈買(萬元)'),COLOR088FFF;
DRAWTEXTABS(188,8,'前日凈買(萬元)'),COLOR088FFF;
DRAWTEXTABS(289,8,'昨日凈買(萬元)'),COLOR088FFF;
DRAWTEXTABS(389,8,'今日凈買(萬元)'),COLOR088FFF;
DRAWGBKLAST(1,STRIP(RGB(0,0,0),RGB(30,40,55),0));
DRAWRECTABS(0,0,920,210,0),COLOR777777;
DRAWRECTABS(79,155,920,185,2301560),COLOR777777;
DRAWRECTABS(0,25,920,156,3614750),COLOR777777;
DRAWRECTABS(0,79,920,105,3939930),COLOR777777;
DRAWRECTABS(379,25,480,156,10330),COLOR777777;
DRAWRECTABS(0,25,80,185,2626650),COLOR777777;
DRAWRECTABS(0,184,920,210,3614750),COLOR777777;
DRAWRECTABS(0,0,80,185,0),COLOR777777;
DRAWRECTABS(0,0,180,185,0),COLOR777777;
DRAWRECTABS(0,0,280,185,0),COLOR777777;
DRAWRECTABS(0,0,380,185,0),COLOR777777;
DRAWRECTABS(0,0,480,185,0),COLOR777777;
DRAWRECTABS(0,0,590,185,0),COLOR777777;
DRAWRECTABS(0,0,700,185,0),COLOR777777;
DRAWRECTABS(0,0,810,185,0),COLOR777777;

?

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

?

 

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

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

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

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

 


【字體: 】【打印文章】【查看評論

相關(guān)文章

    沒有相關(guān)內(nèi)容
  主站蜘蛛池模板: 中文字幕精品视频在线观看| 免费人成网站在线高清| 99re在线这里只有精品| 日本乱理伦片在线观看一级| 亚洲精品国产综合久久一线| 色天使色婷婷在线影院亚洲| 国产综合精品在线| 三人性free欧美多人| 日韩高清免费在线观看| 亚洲精品美女久久久久99| 老汉色av影院| 国产欧美高清在线观看| 99无码精品二区在线视频| 护士系列sdde221取精| 亚洲av无码国产综合专区| 男人边吃奶边做视频免费网站| 国产中文99视频在线观看| xxxxx在线| 好吊色欧美一区二区三区视频| 久久天天躁狠狠躁夜夜躁2020| 欧美金发白嫩在线播放| 日本牲交大片免费观看| 亚洲码欧美码一区二区三区| 美国一级片免费| 国产女人的高潮大叫毛片| 69堂午夜精品视频在线| sao货水真多好浪好紧视频| 欧美性xxxxx极品娇小| 免费高清日本1在线观看| 越南大胆女人体337p欣赏| 国产精品28p| 99re66热这里都是精品| 很黄很污的视频在线观看| 久久久久亚洲Av片无码下载蜜桃| 欧洲美女与动zooz| 亚洲欧美日韩精品久久亚洲区| 精品三级AV无码一区| 国产91免费在线观看| 国产又污又爽又色的网站| 国产精品美女久久久久| 99精品众筹模特私拍在线|