《【股票指标公式下载】-【大智慧】黑马成交(成交量、收盘价、开盘价)》由会员分享,可在线阅读,更多相关《【股票指标公式下载】-【大智慧】黑马成交(成交量、收盘价、开盘价)(5页珍藏版)》请在金锄头文库上搜索。
1、【大智慧】黑马成交(成交量、收盘价、开盘价)-指标公式源码VOL,VOLSTICK;M1,5,1,10,1;M2,10,5,30,1;M3,20,10,60,1;VOL,VOLSTICK;M1:=5;M2:=10;M3:=20; 成交量:VOL,LINETHICK0;五日均量:MA(VOL,M1);十日均量:MA(VOL,M2);廿日均量:MA(VOL,M3);预估今日成交量:IF(DYNAINFO(7)=CLOSE), DYNAINFO(38)*DYNAINFO(17),成交量),Color0000FF,LINETHICK0;如果最新价=收盘价,选五日均量*量比,否则就选成交量FILLRGN
2、(五日均量,十日均量,五日均量=十日均量,RGB(255,0,0),五日均量=十日均量时为红色飘带,反之为绿色飘带AAA:=VOL/(HIGH-LOW)*2-ABS(CLOSE-OPEN);系数=成交量/(最高价-最低价)*2-绝对值(收盘价-开盘价)主买:=IF(CLOSEOPEN,AAA*(HIGH-LOW),IF(CLOSEOPEN,0-AAA*(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE=主卖,成交量,0,7.5,0),Color0E96A9;黄色柱表示主力的净买量STICKLINE(主买=主卖,成交量,0,7,0),Color10A7BC;黄色框 2STICKLI
3、NE(主买=主卖,成交量,0,6,0),Color11B5CC;黄色框 3STICKLINE(主买=主卖,成交量,0,5,0),Color13C6DF;黄色框 4STICKLINE(主买=主卖,成交量,0,4,0),Color1CD2EC;黄色框 5STICKLINE(主买=主卖,成交量,0,2,0),Color39D8EE;黄色框 6STICKLINE(主买=主卖,成交量,0,0.5,0),ColorFFFFFF;黄色框 7STICKLINE(主买0,0,主买,7.5,0),ColorA200A2;玫红柱 1STICKLINE(10,0,主买,7,0),ColorB700B7;玫红柱 2ST
4、ICKLINE(10,0,主买,6,0),ColorCE00CE;玫红柱 3STICKLINE(10,0,主买,5,0),ColorE800E8;玫红柱 4STICKLINE(10,0,主买,4,0),ColorFF00FF;玫红柱 5STICKLINE(10,0,主买,2,0),ColorFF60FF;玫红柱 6STICKLINE(10,0,主买,0.5,0),ColorFFD2FF;玫红柱 7BBB:=LONGCROSS(成交量,五日均量,4);全红柱表示今天的成交量超过五日均量STICKLINE(BBB,0,成交量,7.5,0),color070084;全红柱 1STICKLINE(BB
5、B,0,成交量,7,0),color0000A3;全红柱 2STICKLINE(BBB,0,成交量,6,0),color0000B7;全红柱 3STICKLINE(BBB,0,成交量,5,0),color0000CD;全红柱 4STICKLINE(BBB,0,成交量,4,0),color0000E9;全红柱 5STICKLINE(BBB,0,成交量,2,0),color0754E9;全红柱 6STICKLINE(BBB,0,成交量,0.5,0),Color68B8FF;全红柱 7DL:=FILTER(成交量=LLV(成交量,20),5);全绿柱表示今天是最近 5 天的成交量中是 20 日均量的
6、最低量STICKLINE(DL,0,成交量,7.5,0),Color006400;全绿柱 1STICKLINE(DL,0,成交量,7,0),Color007500;全绿柱 2STICKLINE(DL,0,成交量,6,0),Color008400;全绿柱 3STICKLINE(DL,0,成交量,5,0),Color009900;全绿柱 4STICKLINE(DL,0,成交量,4,0),Color00AE00;全绿柱 5STICKLINE(DL,0,成交量,2,0),Color00BD00;全绿柱 6STICKLINE(DL,0,成交量,0.5,0),Color8EFF8E;全绿柱 7DRAWTE
7、XTREL(0,0,成交量),COLORYELLOW;DRAWTEXTREL(600,900,证券代码: +STKLABEL+ 证券名称: +STKNAME+),ColorFFAA00; DRAWTEXTABS(35,0,夏卫东-自编),COLOR0000FF;预计今天成交量今天成交额:=AMOUNT/10000;昨天成交额:=REF(今天成交额,1);交易分钟数:=if(CURRENTTIME93000 and CURRENTTIME130000,(TIMETOT0(CURRENTTIME)-39600)/60,120),240); 预测今天:=今天成交额/交易分钟数*240;交易分时:=F
8、RACPART( 交易分钟数/60);剩余分时:=交易分时*60;剩余秒:=FRACPART( 剩余分时);剩余秒时:=剩余秒*60;交易小时:=交易分钟数/60 ;显示文字DRAWTEXTABS(125,0,昨天金额:+NUMTOSTRN(昨天成交额/10000,2)+亿),ColorF5FF00,LINETHICK1; DRAWTEXTABS(125,13,预计今天:+NUMTOSTRN(预测今天/10000,2)+亿),COLOR00FFFF,LINETHICK1; DRAWTEXTABS(450,2,交易时间:+INTPART(交易小时)+小时+NUMTOSTRN(剩余分时,0)+分+
9、NUMTOSTRN(剩余秒时,0)+秒+ 已成交金额+:+NUMTOSTRN(今天成交额/10000,2)+亿元),ColorF5FF00,LINETHICK2,PRECIS2; 柱图图长度像素:=230*0.5;昨天图长度:=230+图长度像素;预测今天图:=(预测今天/昨天成交额)*图长度像素+230;目前成交图:=(今天成交额/昨天成交额)*图长度像素+230;DRAWRECTABS(230,1,昨天图长度,9 ,RGB(0,255,150);DRAWRECTABS(230,13,目前成交图, 23 ,RGB(255,73,20);DRAWRECTABS(230,16,预测今天图,20
10、,RGB(255,255,0);立柱说明DRAWRECTREL( 0,140,115,860,RGB(20,20,20);DRAWRECTREL( 0,140,15,280,RGB(255,255,0); DRAWTEXTREL(20,140,主力的净买量),COLORYELLOW;DRAWRECTREL( 0,280,15,420,RGB(0,255,255);DRAWTEXTREL(20,280,主力的净卖量),COLORFFFF00;DRAWRECTREL( 0,420,15,560,RGB(255,25,0); DRAWTEXTREL(20,420,超过五日均量),COLOR0025FF;DRAWRECTREL( 0,560,15,700,RGB(0,255,0); DRAWTEXTREL(20,560,低于廿日均量),COLOR00FF00; DRAWRECTREL( 0,700,15,840,RGB(200,0,200); DRAWTEXTREL(20,700,主力外成交量),COLORFF00FF;【大智慧】黑马成交(成交量、收盘价、开盘价)-指标公式效果图( (文档来源:若水财经社区文档来源:若水财经社区) )