【解禁、资金】让你免去踩地雷的风险!by一发千钧{DZHL2、飞狐版}
转发一发千钧兄的大小非【解禁、资金】,以下为自定义数据设置和指标源码(所有图示及说明均来自理想论坛一发千钧专贴):
引用:
连续几天看到会员们对大小非解禁十分敏感,要求编制一个把大小非解禁的各种信息,在一个指标中一目了然、这样的心情越来越迫切。
千钧经过几天的努力,试图从F10中把这些信息调用到指标中,可F10中提供的信息十分有限,不能满足有高要求朋友们的需求。
昨日偶尔在创.幻看到了【蓝鼠】版主发的“大小非解禁表”,这个表格给千钧提供了一个做出这样指标的基础。于是【解禁。资金】由然而生。
指标中借用了【王照华】老师的“资金”源码、千钧略微做了一下“优化”使之能更快的体现交易资金动向。
压缩包内的自定义数据是根据【蓝鼠】版主的“大小非解禁表”制作而成,解压后,按照图一的提示导入就OK了。
源码:
流通:FINANCE2(37)/10000,LINETHICK0;
DRAWTEXTREL(800,960,STKLABEL+' '+STKNAME+''),Color03A8FF;
J0:=(C+H+L)/3;J1:=IF(C>ref(J0,1),AMOUNT,0);J2:=IF(C<ref(J0,1),AMOUNT,0);
JJ:=J1-J2;XL0:=SUM(JJ,5)/10000000;
XL1:=(XL0-LLV(XL0,21))/(HHV(XL0,21)-LLV(XL0,21))*100;
XL2:=LLV(XL0,3)+SMA(XL1,3,1)/100*(HHV(XL0,3)-LLV(XL0,3));
资金:XL0,LINETHICK0,ColorFFA9FF;
分界:EMA(XL0,14),LINETHICK0,Color00BBAB;
离场:STICKLINE(XL0<REF(XL0,1) OR (AMOUNT/REF(AMOUNT,1)<0.97),XL0,REF(XL0,1),7,0),LINETHICK2,COLORWHITE;
进场:STICKLINE(XL0>=REF(XL0,1),XL0,REF(XL0,1),7,0),LINETHICK2,COLORRED;
空仓:STICKLINE(XL0<分界,XL0,REF(XL0,1),7,0),LINETHICK2,ColorFFA900;
XL3:EMA(XL2,5),ColorFF33FF;XL4:EMA(XL3,5),Color33FF33;
DRAWTEXTREL(20,0,'首批:'+NUMTOSTRN(SELFDATA('时间1'),0)),COLOR00EEFF;
DRAWTEXTREL(200,0,'解禁:'+NUMTOSTRn(SELFDATA('解禁1'),0)+'万股'),COLOR00EEFF;
DRAWTEXTREL(400,0,'占现流通:'+NUMTOSTRn(SELFDATA('解禁1')/FINANCE2(37),2)+'%'),COLOR00EEFF;
DRAWTEXTREL(20,120,'首二:'+NUMTOSTRn(SELFDATA('补时间1'),0)),COLOR00EEFF;
DRAWTEXTREL(200,120,'解禁:'+NUMTOSTRn(SELFDATA('补解禁1'),0)+'万股'),COLOR00EEFF;
DRAWTEXTREL(400,120,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁1')/FINANCE2(37),2)+'%'),COLOR00EEFF;
DRAWTEXTREL(20,240,'首三:'+NUMTOSTRn(SELFDATA('补时间1-'),0)),COLOR00EEFF;
DRAWTEXTREL(200,240,'解禁:'+NUMTOSTRn(SELFDATA('补解禁1-'),0)+'万股'),COLOR00EEFF;
DRAWTEXTREL(400,240,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁1-')/FINANCE2(37),2)+'%'),COLOR00EEFF;
DRAWTEXTREL(20,360,'二批:'+NUMTOSTRn(SELFDATA('时间2'),0)),COLOR00EE00;
DRAWTEXTREL(200,360,'解禁:'+NUMTOSTRn(SELFDATA('解禁2'),0)+'万股'),COLOR00EE00;
DRAWTEXTREL(400,360,'占现流通:'+NUMTOSTRn(SELFDATA('解禁2')/FINANCE2(37),2)+'%'),COLOR00EE00;
DRAWTEXTREL(20,480,'二补:'+NUMTOSTRn(SELFDATA('补时间2'),0)),COLOR00EE00;
DRAWTEXTREL(200,480,'解禁:'+NUMTOSTRn(SELFDATA('补解禁2'),0)+'万股'),COLOR00EE00;
DRAWTEXTREL(400,480,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁2')/FINANCE2(37),2)+'%'),COLOR00EE00;
DRAWTEXTREL(20,600,'二三:'+NUMTOSTRn(SELFDATA('补时间2-'),0)),COLOR00EE00;
DRAWTEXTREL(200,600,'解禁:'+NUMTOSTRn(SELFDATA('补解禁2-'),0)+'万股'),COLOR00EE00;
DRAWTEXTREL(400,600,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁2-')/FINANCE2(37),2)+'%'),COLOR00EE00;
DRAWTEXTREL(20,720,'三批:'+NUMTOSTRn(SELFDATA('时间3'),0)),COLORFFEE00;
DRAWTEXTREL(200,720,'解禁:'+NUMTOSTRn(SELFDATA('解禁3'),0)+'万股'),COLORFFEE00;
DRAWTEXTREL(400,720,'占现流通:'+NUMTOSTRn(SELFDATA('解禁3')/FINANCE2(37),2)+'%'),COLORFFEE00;
DRAWTEXTREL(20,840,'三补:'+NUMTOSTRn(SELFDATA('补时间3'),0)),COLORFFEE00;
DRAWTEXTREL(200,840,'解禁:'+NUMTOSTRn(SELFDATA('补解禁3'),0)+'万股'),COLORFFEE00;
DRAWTEXTREL(400,840,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁3')/FINANCE2(37),2)+'%'),COLORFFEE00;
DRAWTEXTREL(20,960,'三三:'+NUMTOSTRn(SELFDATA('补时间3-'),0)),COLORFFEE00;
DRAWTEXTREL(200,960,'解禁:'+NUMTOSTRn(SELFDATA('补解禁3-'),0)+'万股'),COLORFFEE00;
DRAWTEXTREL(400,960,'占现流通:'+NUMTOSTRn(SELFDATA('补解禁3-')/FINANCE2(37),2)+'%'),COLORFFEE00;
|