牛不牛你可以用一下,指标全部取自于论坛里的老师,前辈。虽然有点乱,但自己用着还可以,用到了哪位大师的源码,在此也表示感谢! {n:1 100 20 m:1 100 40} DRAWGBK(C>0, RGB(0,10,10),RGB(48,0,0),0,'11',0); VAR1:=((CLOSE - LLV(LOW,50))/(HHV(HIGH,50) - LLV(LOW,50)))*(100); VAR2:=REVERSE(VAR1); VAR3:=SMA(VAR1,6,1); K:=SMA(VAR3,4,1); D:=SMA(K,4,1); STICKLINE((K >= D),K,D,6,0),COLOR0000A8; STICKLINE((K >= D),K,D,5,0),COLOR0000C0; STICKLINE((K >= D),K,D,4,0),COLOR0000E0; STICKLINE((K >= D),K,D,3,0),COLOR0000F0; STICKLINE((K >= D),K,D,2,0),COLOR0000D0; STICKLINE((K >= D),K,D,1,0),COLOR8080FF; STICKLINE((K <= D),K,D,6,0),COLOR008800; STICKLINE((K <= D),K,D,5,0),COLOR009900; STICKLINE((K <= D),K,D,4,0),COLOR00AA00; STICKLINE((K <= D),K,D,3,0),COLOR00BB00; STICKLINE((K <= D),K,D,2,0),COLOR00CC00; STICKLINE((K <= D),K,D,1,0),COLOR00DD00; 顶:90; 底:10; 敢死队:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK; 主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK2,COLORMAGENTA; 散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK2,COLORGREEN; DRAWICON(CROSS(EXPMA(敢死队,120)-0.0004,EXPMA(敢死队,200)),45,11); DRAWTEXT(CROSS(EXPMA(敢死队,120)-0.0004,EXPMA(敢死队,200)),40,'敢死队'),COLORRED; A11:=(DVOL/CLOSE)/2; A21:=SUM(IF(A11>100 AND CLOSE>REF(CLOSE,1),A11,0),0); A31:=SUM(IF(A11>100 AND CLOSE<REF(CLOSE,1),A11,0),0); A41:=SUM(IF(A11<100 AND CLOSE>REF(CLOSE,1),A11,0),0); A51:=SUM(IF(A11<100 AND CLOSE<REF(CLOSE,1),A11,0),0); A61:=A21+A31+A41+A51; 机买:=(A21/A61)*100,LINETHICK2,COLORRED; 机卖:=(A31/A61)*100,LINETHICK2,COLORGREEN; 机买红:A21/100000,LINETHICK1, COLORRED; 机卖绿:A31/100000,LINETHICK1,COLORGREEN; 机净买粉:机买红-机卖绿; 散户买:=A41/10000,COLORMAGENTA; 散户卖:=A51/10000,COLORWHITE; 散净买:=散户买-散户卖; DRAWTEXT(ISLASTBAR=1,机买红*0.9,''),LINETHICK2,COLORFF55FF; DRAWTEXT(ISLASTBAR=1,机卖绿,''),LINETHICK2,COLORFFFF55; DRAWTEXT(ISLASTBAR=1,散户买,''),LINETHICK2,COLOR5555FF; DRAWTEXT(ISLASTBAR=1,散户卖,''),LINETHICK2,COLOR55FF55; 中线白:0.00,COLORWHITE; DRAWICON(CROSS(机买,机卖),70,24); DRAWTEXT(CROSS(机买,机卖),75,'机转多'),COLORRED; 机构买盘:=A21,LINETHICK3, COLORRED; 机构卖盘:=A31,LINETHICK3,COLORGREEN; TH:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),N); TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N); TQ:=SUM(IF(CLOSE=REF(CLOSE,1),VOL,0),N); VR:=100*(TH*2+TQ)/(TL*2+TQ); MAVR:=MA(VR,M); B:=VR/MAVR; XG:(机买/机卖>1.2 AND 散户买/散户卖<0.9)*50,LINETHICK2; DRAWICON(XG=50,60,34); BB:=机构买盘/机构卖盘; BBB:=BB/REF(BB,1); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,10,25); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,20,26); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,30,27); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,40,28); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,50,29); DRAWICON(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,60,1); DRAWTEXT(BB/REF(BB,1)>1.05 AND BB>7 AND BBB/REF(BBB,1)>4,70,'买')COLORYELLOW; DRAWTEXT(BB>120 AND BBB/REF(BBB,1)>4,80+BB,'全买')COLORYELLOW; STICKLINE(BB>120 AND BBB/REF(BBB,1)>4,0,55,1,0)COLORRED; A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0); 成交额:=V*C/100,NODRAW;{万元} A2:=SUM((IF(((成交额/8>18) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0); A3:=SUM((IF(((成交额/8>18) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0); A4:=SUM((IF(((成交额/8<18) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0); A5:=SUM((IF(((成交额/8<18) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0); A6:=((A2+A3)+A4)+A5; RATE:=A2/A6*100,COLORWHITE,LINETHICK1; {换手限制} VOLA:=SUM(VOL,4)/CAPITAL*100>0.22; {开盘量限制} HH1:=IF(CAPITAL>5000000 AND REF(V,3)/CAPITAL*100>0.45,0,1); HH2:=IF(CAPITAL<5000000 AND CAPITAL>3000000 AND REF(V,3)/CAPITAL*100>0.6,0,1); HH3:=IF(CAPITAL<3000000 AND CAPITAL>1000000 AND REF(V,3)/CAPITAL*100>0.75,0,1); HH4:=IF(CAPITAL<1000000 AND REF(V,3)/CAPITAL*100>0.9,0,1); SUMVOL:=HH1 AND HH2 AND HH3 AND HH4; {开盘量幅限制} MM3:=IF(REF(VOL,3)/REF(VOL,2)>3.5 OR (REF(VOL,3)/REF(VOL,2)>2.8 OR REF(V,3)/CAPITAL*100>0.09 AND REF(C,3)<DYNAINFO(4)),0,1); MM4:=IF(REF(VOL,4)/REF(VOL,3)>3.5 OR (REF(VOL,4)/REF(VOL,3)>2.8 AND REF(C,4)<DYNAINFO(4)),0,1); MM5:=IF(REF(VOL,5)/REF(VOL,4)>3.5 OR (REF(VOL,5)/REF(VOL,4)>2.8 AND REF(C,5)<DYNAINFO(4)),0,1); NN3:=COUNT(RATE=100,3)=3 AND BARSCOUNT(FROMOPEN)=3 AND MM3; NN4:=COUNT(RATE=100,3)=3 AND BARSCOUNT(FROMOPEN)=4 AND MM4; NN5:=COUNT(RATE=100,3)=3 AND BARSCOUNT(FROMOPEN)=5 AND MM5; {量形异常过滤} 量形限制:=IF(VOL/REF(HHV(VOL,3),1)>1.56 OR VOL/REF(VOL,1)>1.6 OR VOL/REF(VOL,1)<0.5 OR REF(VOL,1)/REF(VOL,2)>1.8,0,1); {综合限制} NN:=(NN3 OR NN4 OR NN5) AND VOLA AND SUMVOL AND 量形限制; DRAWICON(NN,90,1); DRAWICON(NN,74,25); DRAWICON(NN,58,26); DRAWICON(NN,43,28); DRAWICON(NN,27,29); DRAWICON(NN,12,30); 100,LINETHICK0; STICKLINE(BARSCOUNT(FROMOPEN)=0,100,0,1,1),COLORLIMAGENTA; {STICKLINE(BARSCOUNT(FROMOPEN)=8,100,0,1,1),COLORLIMAGENTA;} 0,COLORYELLOW; {DRAWTEXT_FIX(1,0.033,0.79,0,' 【伏击】'),COLORCYAN;} {DRAWTEXT_FIX(1,0.033,0.65,0,' 【指数在EXPMA(7)上面可大胆狙击】'),COLORYELLOW;}; 涨幅%:=DYNAINFO(14)*100,NODRAW; SHOU:=IF(DATE<=1150520,1,0); SHI:=BETWEEN((DCLOSE*SHOU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*SHOU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*SHOU)))),1.05,0.95); TOU:=IF(SHI=0,MA((DCLOSE*SHOU),BARSCOUNT((DCLOSE*SHOU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*SHOU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*SHOU))))); 动力线:=EXPMA((DCLOSE/TOU),13),COLORFFFF00,LINETHICK1; 趋势线:=EXPMA((DCLOSE/TOU),88),COLOR0080FF,LINETHICK2; NOTEXT1:=1.003,COLORLIGREEN,LINETHICK2; NOTEXT2:=1.03,COLORLIRED,LINETHICK2; IF(动力线>1.003,动力线,DRAWNULL),COLORMAGENTA; IF(动力线>1.03,动力线,DRAWNULL),COLORRED; DRAWICON(CROSS(动力线,1.03),15,13); DRAWTEXT(CROSS(动力线,1.03),20,'板动力'),COLORYELLOW; VAR18:=EMA(EMA(CLOSE,13),13); 控盘:=(VAR18-REF(VAR18,1))/REF(VAR18,1)*1000; STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00; STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF; 无庄控盘:=控盘<0; STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF; 有庄控盘:=控盘>REF(控盘,1) AND 控盘>0; VAR288:=100*WINNER(CLOSE*0.95); STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00; 主力出货:=控盘<REF(控盘,1) AND 控盘>0; STICKLINE(VAR288>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF; 高度控盘: VAR288>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2; A10:=CROSS(控盘,0); 控盘B:FILTER(IF(A10,1,0),5)*0.5; JJ:=DYNAINFO(11); P:=55;S:=8;M1:=3; 财:(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK1; 神:EMA(财,M1),COLORGREEN,LINETHICK1; DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50)); {股价与均线偏离买卖条件} BTJ1:=(C-JJ)/JJ<-0.03; BTJ11:=(C-JJ)/JJ<-0.03; BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005; STJ1:=(C-JJ)/JJ>0.005; {控盘买卖条件} STJ01:=控盘<REF(控盘,1) AND 控盘>0.5; STJ02:=控盘>0; BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2; BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ; {波段买卖条件} BTJ3:=CROSS(财,神) AND 财<-0.3; BTJ32:=CROSS(财,神) AND 财<-0.1; STJ31:=CROSS(神,财); STJ32:=CROSS(神,财) AND 财>1.618; {以下为信号}; BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13); BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13); BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13); STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13); STJ82:=FILTER(STJ02 AND STJ32 ,13); STJ83:=STJ81 AND STJ82; DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED; DEA: EMA(DIFF,3),COLORGREEN; 庄:= BTJ11 AND BTJ2 AND BTJ3; |
- 软件大小:12.0 KB
- 推荐星级:
- 更新时间:2014-07-26 01:37:10
- 软件类别: 国产软件 / 通达信公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!