{均线} MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA30:MA(CLOSE,30),LINETHICK2; MA60:MA(CLOSE,60); MA144:=MA(CLOSE,144); MA250:=MA(CLOSE,250); {布林轨道} CV:=CLOSE; B:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,DOTLINE; U:B+M*STD(B,N),COLORRED,DOTLINE; DY:B-M*STD(B,N),COLORYELLOW,DOTLINE; {XT箱体} XU:PEAK(C,IF(PERIOD<5,5,10),1)*0.999,COLORGRAY; XD:TROUGH(C,IF(PERIOD<5,5,10),1)*0.998,COLORBROWN; XH:(XU-XD)/XD*100,NODRAW,COLORYELLOW; XM:(XU+XD)/2,COLORMAGENTA,POINTDOT; XDU:=IF(EMA(EMA(EMA(C,2),2),2)>REF(EMA(EMA(EMA(C,2),2),2),1),XD,XU); XR:(C-XDU)/XDU*100,COLORRED,NODRAW; XTB:=XD!=REF(XD,2) && XD=REF(XD,1); XTS:=XU!=REF(XU,2) && XU=REF(XU,1); DRAWICON(XTB,MIN(XD,L)*0.96,1); DRAWTEXT(XTB,MIN(XD,L)*0.96,'波段低吸'),COLORYELLOW; DRAWICON(XTS,MAX(XU,H)*1.03,2); XTBL:=DRAWLINE(XTB,MIN(LLV(L,1),XD),XTS,MAX(HHV(H,1),XU),0); XTSL:=DRAWLINE(XTS,MAX(HHV(H,1),XU),XTB,MIN(LLV(L,1),XD),0); DRAWBAND(XTBL,RGB(150,30,25),XTBL,RGB(150,30,25)); DRAWBAND(XTSL,RGB(0,150,0),XTSL,RGB(0,150,0)); {支撑压力} HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H);{顶部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=CONST(DINGBUTS); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 高压:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORFF00FF,LINETHICK1; {DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT; DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;} AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=CONST(DDTS1); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=CONST(DDTS2); 低支:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORFF00FF,LINETHICK1; ZGSTAR:=(高压+低支)/2; ZGEND:=CONST((高压+低支)/2); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2); 中轨:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF00FF,LINETHICK1; {DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; {涨停标注} STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW; {财务数据} DRAWTEXT_FIX(ISLASTBAR,0.18,0.01,1,'上市日期:'),COLOR00FF00; DRAWNUMBER_FIX(ISLASTBAR,0.18,0.01,0,FINANCE(42)),COLOR00FF00; DRAWTEXT_FIX(1,0.01,0.09,0,EXTERNSTR(0,1)),COLORRED; DRAWTEXT_FIX(1,0.26,0.01,0,EXTERNSTR(0,2)),COLORDD00DD; DRAWTEXT_FIX(1,0.01,0.05,0,EXTERNSTR(0,3)),COLOR00DD00; DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW; {涨停秘籍} DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); A1:=BARSLAST(REF(CROSS(DEA,DIFF),1)); A2:=BARSLAST(REF(CROSS(DIFF,DEA),1)); VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; HONGJU:=IF(VAR1>0,VAR1,0); GAOPAO:=CROSS(DIFF,DEA) AND HONGJU>=40; {DRAWICON(GAOPAO,HIGH*1.01,6); DRAWTEXT(GAOPAO,HIGH*1.02,'顶背'),COLORGREEN;} LLVV:=LLV(LOW,5); DIXI:=CROSS(DEA,DIFF) AND REF(DEA,A1+1)>0 AND DEA<0; {DRAWICON(DIXI,LOW*0.90,38); DRAWTEXT(DIXI,LOW*0.90,'波段低吸'),COLORYELLOW;} 工作线:=EMA(CLOSE,17),COLORYELLOW; 生命线:=MA(CLOSE,56),COLORRED; M0:=MA(CLOSE,5); M10:=MA(CLOSE,12); M1:=MA(CLOSE,20); M30:=MA(CLOSE,30); M2:=MA(CLOSE,60); M3:=MA(CLOSE,240); M4:=MA(CLOSE,120); M41:=MA(CLOSE,41); TJ2:=MA(CLOSE,3)<M2; VAR2:=(CLOSE*2+HIGH+LOW)/4; SK:=EMA(VAR2,13)-EMA(VAR2,73); SD:=EMA(SK,2); 短线:=CROSS(SK,SD) AND SK<0.05 AND (VOL/MA(VOL,5)>2 OR CLOSE/REF(CLOSE,1)>0.035 AND CLOSE>EMA(CLOSE,17)); {STICKLINE(短线,HIGH,LOW,0.5,0),COLORFFFF00; STICKLINE(短线,OPEN,CLOSE,10,1),LINETHICK2,COLORFFFF00;} CY:=BARSLAST(短线); MACD双底:=REF(LOW,A2+1)<CLOSE AND CROSS(DIFF,DEA); 介入:=COUNT(短线,4)=1 AND COUNT(MACD双底,1)=1 AND CLOSE/MA(CLOSE,56)*1000>980 AND CLOSE>OPEN AND VOL>=MA(VOL,5) AND DIFF>=-0.1; DRAWTEXT(介入,LOW*0.98,'起涨点'),COLORRED; DRAWICON(介入,LOW*0.98,1); 反向顶背:=REF(CLOSE,A2+1)>CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); 逃顶:=CROSS(SD,SK) AND SK>0.2 AND VOL/MA(VOL,5)<2; 逃顶成立:=COUNT(逃顶,4)=1 AND COUNT(反向顶背,1)=1; DRAWICON(逃顶成立,HIGH*1.05,15); DRAWTEXT(逃顶成立,HIGH*1.05,'逃顶'),COLORGREEN; N1G:=CLOSE/REF(CLOSE,1)>=1.097 AND HIGH=CLOSE AND NOT(OPEN=HIGH); A1G:=BARSLAST(N1G); A2G:=LLV(LOW,A1G-1)>REF(LOW,A1G) AND CLOSE/REF(OPEN,A1G)>1 AND CLOSE/REF(OPEN,A1G)<=1.04; XGGG:=FILTER(A2G,3) AND A1G>=4 AND A1G<=20; DRAWICON(XGGG,LOW*0.96,41); DRAWTEXT(XGGG,LOW*0.96,'涨停秘笈'),COLORYELLOW; XPP1:=CROSS(DEA,DIFF) AND CLOSE>MA20 AND MA20>REF(MA20,1) AND DIFF>REF(DIFF,A2+1); DRAWICON(XPP1,LOW*0.96,3); DRAWTEXT(XPP1,LOW*0.96,'强势洗盘'),COLORWHITE; XPP2:=XPP1 AND A1G>=4 AND A1G<=20; DRAWICON(XPP2,LOW*0.98,17); {单阳不破} 阳涨幅:=3.5; 阳倍量:=1.9; 单阳收:=C; 单阳开:=O; 单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量; DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF; 高不破价:=REF(C,BARSLAST(单阳)); 低不破价:=REF(L,BARSLAST(单阳)); 单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价); DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN; {黄金柱} 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3); 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3)); 三日价涨A:=C>=REF(C,1); 三日价涨B:=C<REF(C,1); 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3); TIM:=IF(DATE<1140214,1,0); 缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C>REF(C,1)*1.04 AND (VOL>= |
- 软件大小:4.00 KB
- 推荐星级:
- 更新时间:2011-07-09 00:16:06
- 软件类别: 国产软件 / 通达信公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win2000/WinXP/Win2003/WinVista
- 相关Tags:指标公式 股票软件,公式源码
-
(1)50%(1)50%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!