先建立引用公式,再建立主公式 板块个股分析(引用) {GGZJ} CC:=C; HH:=H; LL:=L; a1:=AMOUNT/(100*vol); a:=(CC-a1)/(H-L); AA:=sum(a*V,1); 一日:aa/CAPITAL*10000; AA1:=REF(AA,1); 昨日:aa1/CAPITAL*10000; AA2:=REF(AA,2);; 前天:aa2/CAPITAL*10000; AA3:=sum(a*V,5); 一周:aa3/CAPITAL*10000; VV:V/CAPITAL*100; VV1:1/2*V/CAPITAL*100; DD:DATE; 日涨幅:(c/REF(c,1)-1)*100; 周涨幅:(c/REF(c,5)-1)*100; {板块个股分析2} DRAWGBK((CLOSE > 0),COLORRGB(0,0,0),COLORRGB(0,0,0),1); RQ:=DATE;//取日期 A:=BLKNAME; HY:=STRLEFT(A,STRFIND(A,',',1)-1); HYs:=STKCOUNT(HY); 板块个股数:HYs,LINETHICK0; DYZB:=IF(c>0,'GGZJ.一日',IF(c<0,'GGZJ.VV','GGZJ.VV1')); DAS:=DATACOUNT; D0:=RQ[DAS];//取最后日期 variable:DM[HYs]='',vcp[HYs]=0,vci[HYs]=0,TP=0; for k=1 to HYs do begin DDD:=STKFROMBLK(HY,k); DM[k]:=DDD; TMP:=STKINDI(DDD,DYZB,0,6); TMPD:=STKINDI(DDD,'GGZJ.DD',0,6); vcp[k]:=TMP[DAS]; vci[k]:=IF(TMPD[DAS]=D0,TMP[DAS],-1000);//去除当天停牌股 TP:=TP+IF(vci[k]=-1000,1,0); end; PX1:=SORTPOS(vci,1,1,HYs); DRAWTEXTEX(islastbar,1,115,50,'[当日攻击资金前十名]'),Color1080FA; DRAWTEXTEX(islastbar,1,10,250,'1: '+STKNAMEEX(DM[vci[1]])+':'+numtostr(vcp[vci[1]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,10,400,'2: '+STKNAMEEX(DM[vci[2]])+':'+numtostr(vcp[vci[2]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,10,550,'3: '+STKNAMEEX(DM[vci[3]])+':'+numtostr(vcp[vci[3]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,10,700,'4: '+STKNAMEEX(DM[vci[4]])+':'+numtostr(vcp[vci[4]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,10,850,'5: '+STKNAMEEX(DM[vci[5]])+':'+numtostr(vcp[vci[5]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,275,250,'6: '+STKNAMEEX(DM[vci[6]])+':'+numtostr(vcp[vci[6]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,275,400,'7: '+STKNAMEEX(DM[vci[7]])+':'+numtostr(vcp[vci[7]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,275,550,'8: '+STKNAMEEX(DM[vci[8]])+':'+numtostr(vcp[vci[8]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,275,700,'9: '+STKNAMEEX(DM[vci[9]])+':'+numtostr(vcp[vci[9]],2)),Color0000FF; DRAWTEXTEX(islastbar,1,275,850,'10: '+STKNAMEEX(DM[vci[10]])+':'+numtostr(vcp[vci[10]],2)),Color0000FF; DYZB:=IF(c>0,'GGZJ.一日',IF(c<0,'GGZJ.VV','GGZJ.VV1')); DAS:=DATACOUNT; D0:=RQ[DAS];//取最后日期 variable:DM[HYs]='',vcp[HYs]=0,vci[HYs]=0,TP=0; for k=1 to HYs do begin DDD:=STKFROMBLK(HY,k); DM[k]:=DDD; TMP:=STKINDI(DDD,DYZB,0,6); TMPD:=STKINDI(DDD,'GGZJ.DD',0,6); vcp[k]:=TMP[DAS]; vci[k]:=IF(TMPD[DAS]=D0,TMP[DAS],-1000);//去除当天停牌股 TP:=TP+IF(vci[k]=-1000,1,0); end; PX1:=SORTPOS(vci,0,1,HYs); DRAWTEXTEX(islastbar,1,650,50,'[当日攻击资金后十名]'),Color00FF33; DRAWTEXTEX(islastbar,1,545,250,'1: '+STKNAMEEX(DM[vci[1]])+':'+numtostr(vcp[vci[1]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,545,400,'2: '+STKNAMEEX(DM[vci[2]])+':'+numtostr(vcp[vci[2]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,545,550,'3: '+STKNAMEEX(DM[vci[3]])+':'+numtostr(vcp[vci[3]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,545,700,'4: '+STKNAMEEX(DM[vci[4]])+':'+numtostr(vcp[vci[4]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,545,850,'5: '+STKNAMEEX(DM[vci[5]])+':'+numtostr(vcp[vci[5]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,815,250,'6: '+STKNAMEEX(DM[vci[6]])+':'+numtostr(vcp[vci[6]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,815,400,'7: '+STKNAMEEX(DM[vci[7]])+':'+numtostr(vcp[vci[7]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,815,550,'8: '+STKNAMEEX(DM[vci[8]])+':'+numtostr(vcp[vci[8]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,815,700,'9: '+STKNAMEEX(DM[vci[9]])+':'+numtostr(vcp[vci[9]],2)),Color00FF33; DRAWTEXTEX(islastbar,1,815,850,'10: '+STKNAMEEX(DM[vci[10]])+':'+numtostr(vcp[vci[10]],2)),Color00FF33; DYZB4:=IF(c>0,'GGZJ.日涨幅',IF(c<0,'GGZJ.VV','GGZJ.VV1')); DAS:=DATACOUNT; D0:=RQ[DAS];//取最后日期 variable:DM[HYs]='',vcp[HYs]=0,vci[HYs]=0,TP=0; for k=1 to HYs do begin DDD:=STKFROMBLK(HY,k); DM[k]:=DDD; TMP:=STKINDI(DDD,DYZB4,0,6); TMPD:=STKINDI(DDD,'GGZJ.DD',0,6); vcp[k]:=TMP[DAS]; vci[k]:=IF(TMPD[DAS]=D0,TMP[DAS],-1000);//去除当天停牌股 TP:=TP+IF(vci[k]=-1000,1,0); end; PX1:=SORTPOS(vci,1,1,HYs); //PX2:=SORTPOS(vcp,1,1,HYs); KHYS:=HYS-TP,LINETHICK; IF KHYS<2 THEN EXIT; EXPLAIN(ISLASTBAR,'[日涨跌幅领先前十五名]'),Color00FFFF; EXPLAIN(ISLASTBAR,' 1: '+STKNAMEEX(DM[vci[1]])+' '+numtostr(vcp[vci[1]],2)+'%'),Color0000F9; EXPLAIN(ISLASTBAR and KHYS>1,' 2: '+STKNAMEEX(DM[vci[2]])+' '+numtostr(vcp[vci[2]],2)+'%'),Color0000F9; IF KHYS<3 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>2,' 3: '+STKNAMEEX(DM[vci[3]])+' '+numtostr(vcp[vci[3]],2)+'%'),Color0000F9; IF KHYS<4 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>3,' 4: '+STKNAMEEX(DM[vci[4]])+' '+numtostr(vcp[vci[4]],2)+'%'),Color0000F9; IF KHYS<5 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>4,' 5: '+STKNAMEEX(DM[vci[5]])+' '+numtostr(vcp[vci[5]],2)+'%'),Color0000F9; IF KHYS<6 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>5,' 6: '+STKNAMEEX(DM[vci[6]])+' '+numtostr(vcp[vci[6]],2)+'%'),Color0000F9; IF KHYS<7 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>6,' 7: '+STKNAMEEX(DM[vci[7]])+' '+numtostr(vcp[vci[7]],2)+'%'),Color0000F9; IF KHYS<8 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>7,' 8: '+STKNAMEEX(DM[vci[8]])+' '+numtostr(vcp[vci[8]],2)+'%'),Color0000F9; IF KHYS<9 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>8,' 9: '+STKNAMEEX(DM[vci[9]])+' '+numtostr(vcp[vci[9]],2)+'%'),Color0000F9; IF KHYS<10 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>9,' 10: '+STKNAMEEX(DM[vci[10]])+' '+numtostr(vcp[vci[10]],2)+'%'),Color0000F9; IF KHYS<11 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>10,' 11: '+STKNAMEEX(DM[vci[11]])+' '+numtostr(vcp[vci[11]],2)+'%'),Color0000F9; IF KHYS<12 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>11,' 12: '+STKNAMEEX(DM[vci[12]])+' '+numtostr(vcp[vci[12]],2)+'%'),Color0000F9; IF KHYS<13 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>12,' 13: '+STKNAMEEX(DM[vci[13]])+' '+numtostr(vcp[vci[13]],2)+'%'),Color0000F9; IF KHYS<14 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>13,' 14: '+STKNAMEEX(DM[vci[14]])+' '+numtostr(vcp[vci[14]],2)+'%'),Color0000F9; IF KHYS<15 THEN EXIT; EXPLAIN(ISLASTBAR and KHYS>14,' 15: '+STKNAMEEX(DM[vci[15]])+' '+numtostr(vcp[vci[15]],2)+'%'),Color0000F9; IF KHYS<16 THEN EXIT; EXPLAIN(ISLASTBAR,'\n[日涨跌幅滞后前十名]'),Color00CCFF; EXPLAIN(ISLASTBAR,' 1: '+STKNAMEEX(DM[vci[KHYs]])+' '+numtostr(vcp[vci[KHYs]],2)+'%'+' \n 2: '+STKNAMEEX(DM[vci[KHYs-1]])+' '+numtostr(vcp[vci[KHYs-1]],2)+'%'+' \n 3: '+ STKNAMEEX(DM[vci[KHYs-2]])+' '+numtostr(vcp[vci[KHYs-2]],2)+'%'+' \n 4: '+STKNAMEEX(DM[vci[KHYs-3]])+' '+numtostr(vcp[vci[KHYs-3]],2)+'%'+ ' \n 5: '+STKNAMEEX(DM[vci[KHYs-4]])+' '+numtostr(vcp[vci[KHYs-4]],2)+'%'+' \n 6: '+STKNAMEEX(DM[vci[KHYs-5]])+' '+numtostr(vcp[vci[KHYs-5]],2)+'%'+' \n 7: '+ STKNAMEEX(DM[vci[KHYs-6]])+' '+numtostr(vcp[vci[KHYs-6]],2)+'%'+' \n 8: '+STKNAMEEX(DM[vci[KHYs-7]])+' '+numtostr(vcp[vci[KHYs-7]],2)+'%'+ |
- 软件大小:4.00 KB
- 推荐星级:
- 更新时间:2009-07-16 06:23:05
- 软件类别: 国产软件 / 大智慧L2公式
- 软件语言:简体中文
- 授权方式: 解密版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win9X/Win2000/WinXP/Win2003/
- 相关Tags:指标公式 股票软件,公式源码
-
(18)44%(23)56%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!