您现在的位置:程序化交易>> 股票公式>> 大智慧>> 大智慧公式>>正文内容

龙虎看盘[大智慧公式]

相关标签:

 

{龙虎看盘}{雨阳自适应数据龙虎看盘}{指标的建立:在top窗口点 选 /点新建指标/在公式编辑器点饼图/在编辑窗贴进源码/名称些英文/注释窗写中文 龙虎看盘 名称你自己随便写}{只是整理了一下,}TODAY:=DYNAINFO(7)=CLOSE and DYNAINFO(10)=AMOUNT AND TIME0<55800;
Ddmr:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(2,2)),(bigorder(1,2)-bigorder(2,2)))*vol/capital*100;
Ddmrs:=sum(Ddmr,0);
小单买:=IF(TODAY,(1-"DDEDATA@BIGORDER"(1,1)),(1-bigorder(1,1)))*AMOUNT;
小单卖:=IF(TODAY,(1-"DDEDATA@BIGORDER"(2,1)),(1-bigorder(2,1)))*AMOUNT;
中单买:=IF(TODAY,("DDEDATA@BIGORDER"(1,1)-"DDEDATA@BIGORDER"(1,2)),(bigorder(1,1)-bigordera(1,2)))*AMOUNT;
中单卖:=IF(TODAY,("DDEDATA@BIGORDER"(2,1)-"DDEDATA@BIGORDER"(2,2)),(bigorder(2,1)-bigorder(2,2)))*AMOUNT;
大单买:=IF(TODAY,("DDEDATA@BIGORDER"(1,2)-"DDEDATA@BIGORDER"(1,3)),(bigorder(1,2)-bigorder(1,3)))*AMOUNT;
大单卖:=IF(TODAY,("DDEDATA@BIGORDER"(2,2)-"DDEDATA@BIGORDER"(2,3)),(bigorder(2,2)-bigorder(2,3)))*AMOUNT;
特大单买:=IF(TODAY,"DDEDATA@BIGORDER"(1,3),bigorder(1,3))*AMOUNT;
特大单卖:=IF(TODAY,"DDEDATA@BIGORDER"(2,3),bigorder(2,3))*AMOUNT;
主力额:=(特大单买-特大单卖)+(大单买-大单卖);
总买入:=小单买+中单买+大单买+特大单买;
总卖出:=小单卖+中单卖+大单卖+特大单卖;
特买:=特大单买/总买入;
特卖:=特大单卖/总卖出;
大买:=大单买/总买入;
大卖:=大单卖/总卖出;
中买:=中单买/总买入;
中卖:=中单卖/总卖出;
小买:=小单买/总买入;
小卖:=小单卖/总卖出;
DRAWTEXTABS( 3, 0, ' 时间: '+YEAR+'/'+MONTH+'/'+DAY),Color0000D9;
DRAWTEXTABS( 15, 0, ' '+STKNAME),COLORC0C0C0;
tdb:=特买;
tds:=特卖;
ddb:=大买;
dds:=大卖;
zdb:=中买;
zds:=中卖;
xdb:=小买;
xds:=小卖;
tds,COLORFFFF54;
dds,COLORBFBF3F;
zds,COLOR7F7F2A;
xds,COLOR3F3F15;
xdb,COLOR15153F;
zdb,COLOR2A2A7F;
ddb,COLOR3F3FBF;
tdb,COLOR5454FF;
DRAWTEXTREL(2,10.5,'────────────────'),COLORBROWN;
DRAWTEXTREL(2,15.5,'────────────────'),COLORBROWN;
DRAWTEXTREL(2,10,'总额:'+NUMTOSTRN(总买入/10000,0)+'万元'),COLORC0C0C0;
DRAWTEXTREL(35,10,'资金流向:'),COLORYELLOW;
DRAWTEXTREL(35,10,' '+ifs(主力额/10000>0,'增↑','减↓')+NUMTOSTRN(主力额/10000,0)+'万元'),ColorF3F0F3;
DRAWTEXTREL(6,12,'■'),COLOR5454FF;
DRAWTEXTREL(9,12,'特买'),COLORC0C0C0;
DRAWTEXTREL(20,12,NUMTOSTRN(特大单买/10000,0)),COLOR52FFFF;
DRAWTEXTREL(32,12,'■'),COLORFFFF54;
DRAWTEXTREL(37,12,'卖'),COLORC0C0C0;
DRAWTEXTREL(45,12,NUMTOSTRN(特大单卖/10000,0)),COLOR52FFFF;
DRAWTEXTREL(56,12,ifs(特大单买/10000-特大单卖/10000>0,'增↑','减↓')+NUMTOSTRN(特大单买/10000-特大单卖/10000,0)+'万元'),COLOR52FFFF;
DRAWTEXTREL(6,13,'■'),COLOR3F3FBF;
DRAWTEXTREL(9,13,'大买'),COLORC0C0C0;
DRAWTEXTREL(20,13,NUMTOSTRN(大单买/10000,0)),COLOR52FFFF;
DRAWTEXTREL(32,13,'■'),COLORBFBF3F;
DRAWTEXTREL(37,13,'卖'),COLORC0C0C0;
DRAWTEXTREL(45,13,NUMTOSTRN(大单卖/10000,0)),COLOR52FFFF;
DRAWTEXTREL(56,13,ifs(大单买/10000-大单卖/10000>0,'增↑','减↓')+NUMTOSTRN(大单买/10000-大单卖/10000,0)+'万元'),COLOR52FFFF;
DRAWTEXTREL(6,14,'■'),COLOR2A2A7F;
DRAWTEXTREL(9,14,'中买'),COLORC0C0C0;
DRAWTEXTREL(20,14,NUMTOSTRN(中单买/10000,0)),COLOR52FFFF;
DRAWTEXTREL(32,14,'■'),COLOR7F7F2A;
DRAWTEXTREL(37,14,'卖'),COLORC0C0C0;
DRAWTEXTREL(45,14,NUMTOSTRN(中单卖/10000,0)),COLOR52FFFF;
DRAWTEXTREL(56,14,ifs(中单买/10000-中单卖/10000>0,'增↑','减↓')+NUMTOSTRN(中单买/10000-中单卖/10000,0)+'万元'),COLOR52FFFF;
DRAWTEXTREL(6,15,'■'),COLOR15153F;
DRAWTEXTREL(9,15,'小买'),COLORC0C0C0;
DRAWTEXTREL(20,15,NUMTOSTRN(小单买/10000,0)),COLOR52FFFF;
DRAWTEXTREL(32,15,'■'),COLOR3F3F15;
DRAWTEXTREL(37,15,'卖'),COLORC0C0C0;
DRAWTEXTREL(45,15,NUMTOSTRN(小单卖/10000,0)),COLOR52FFFF;
DRAWTEXTREL(56,15,ifs(小单买/10000-小单卖/10000>0,'增↑','减↓')+NUMTOSTRN(小单买/10000-小单卖/10000,0)+'万元'),COLOR52FFFF;
{DDX能量}
d1:=ema(abs("ddx.ddx"),60);
d2:=max("ddx.ddx"/d1+7.5,7.5);
能量级:=min("ddx.ddx"/d1,10);
周变:=能量级-ref(能量级,5);
十变:=能量级-ref(能量级,10);
DRAWTEXTREL(0,16,'■'),COLOR3F3FBF;
DRAWTEXTREL(3,16,'DDX强度'+NUMTOSTRN(能量级,2)+'周变'+ifs(周变>0,'增↑','减↓')+NUMTOSTRN(周变,2) +''+'十变' +ifs(十变>0,'增↑','减↓')+NUMTOSTRN(十变,2) +''),COLORC0C0C0;
DRAWTEXTREL(0,10,'│'),COLORBROWN;
DRAWTEXTREL(0,10.5,'│'),COLORBROWN;
DRAWTEXTREL(0,11,'│'),COLORBROWN;
DRAWTEXTREL(0,11.5,'│'),COLORBROWN;
DRAWTEXTREL(0,12,'│'),COLORBROWN;
DRAWTEXTREL(0,12.5,'│'),COLORBROWN;
DRAWTEXTREL(0,13,'│'),COLORBROWN;
DRAWTEXTREL(0,13.5,'│'),COLORBROWN;
DRAWTEXTREL(0,14,'│'),COLORBROWN;
DRAWTEXTREL(0,14.5,'│'),COLORBROWN;
DRAWTEXTREL(0,15,'│'),COLORBROWN;DRAWTEXTREL(4,11,'│'),COLORBROWN;
DRAWTEXTREL(4,11.5,'│'),COLORBROWN;
DRAWTEXTREL(4,12,'│'),COLORBROWN;
DRAWTEXTREL(4,12.5,'│'),COLORBROWN;
DRAWTEXTREL(4,13,'│'),COLORBROWN;
DRAWTEXTREL(4,13.5,'│'),COLORBROWN;
DRAWTEXTREL(4,14,'│'),COLORBROWN;
DRAWTEXTREL(4,14.5,'│'),COLORBROWN;
DRAWTEXTREL(4,15,'│'),COLORBROWN;DRAWTEXTREL(2,12,'买'),COLORC0C0C0;
DRAWTEXTREL(2,13,'卖'),COLORC0C0C0;
DRAWTEXTREL(2,14,'单'),COLORC0C0C0;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容