您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

猎取主升狼(通达信公式 主图指标公式 公式、源码 测试图)[通达信公式]

相关标签:

 

cxh1:=(C+H+O+L)/4;卖出:=XMA(cxh1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK3;买入:=XMA(cxh1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK3;幅度:=100*(卖出-买入)/买入,NODRAW;菩提:=买入+(卖出-买入)*2/3;般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);全绿K:=LONGCROSS(若,般,3) AND H>菩提;RSVL:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100; KL:=SMA(RSVL,3,1); DL:=SMA(KL,3,1); KKL:=SMA(RSVL,3,1); DD:=SMA(KL,3,1); NL:=KKL+DD; 买入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED; 卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN; 卖出K:=CROSS(160,NL); TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34),COLORBLUE,LINETHICK2;MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);cxh1A1H:=(REF(CLOSE,1)-REF(ATR,1));买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);{STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;}STICKLINE(买入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出K AND 买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0));中线:=(卖出+买入)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{ 原为55或65 }长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) AND EMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90)AND EMA(CLOSE,90)>EMA(CLOSE,120) AND EMA(CLOSE,120)>EMA(CLOSE,250);A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14);B1:=IF(A1,1,2);cxh1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));cxh2MZ:=((REF(cxh1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh3MZ:=((REF(cxh2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh4MZ:=((REF(cxh3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh5MZ:=((REF(cxh4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh6MZ:=((REF(cxh5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh7MZ:=((REF(cxh6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh8MZ:=((REF(cxh7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh9MZ:=((REF(cxh8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxhAMZ:=((REF(cxh9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxhBMZ:=((REF(cxhAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxhCMZ:=((REF(cxhBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));{红K}STICKLINE((((((((((((cxh1MZ OR cxh2MZ) OR cxh3MZ) OR cxh4MZ) OR cxh5MZ) OR cxh6MZ) OR cxh7MZ) OR cxh8MZ) OR cxh9MZ) OR cxhAMZ) OR cxhBMZ) OR cxhCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((cxh1MZ OR cxh2MZ) OR cxh3MZ) OR cxh4MZ) OR cxh5MZ) OR cxh6MZ) OR cxh7MZ) OR cxh8MZ) OR cxh9MZ) OR cxhAMZ) OR cxhBMZ) OR cxhCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((cxh1MZ OR cxh2MZ) OR cxh3MZ) OR cxh4MZ) OR cxh5MZ) OR cxh6MZ) OR cxh7MZ) OR cxh8MZ) OR cxh9MZ) OR cxhAMZ) OR cxhBMZ) OR cxhCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((cxh1MZ OR cxh2MZ) OR cxh3MZ) OR cxh4MZ) OR cxh5MZ) OR cxh6MZ) OR cxh7MZ) OR cxh8MZ) OR cxh9MZ) OR cxhAMZ) OR cxhBMZ) OR cxhCMZ),C,REF(C,1),1,0),COLOR0000DD;cxhDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));cxhEMZ:=((REF(cxhDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxhFMZ:=((REF(cxhEMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh10MZ:=((REF(cxhFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh11MZ:=((REF(cxh10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh12MZ:=((REF(cxh11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh13MZ:=((REF(cxh12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh14MZ:=((REF(cxh13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh15MZ:=((REF(cxh14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh16MZ:=((REF(cxh15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));cxh17MZ:=((REF(cxh16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));cxh18MZ:=((REF(cxh17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));{绿K}STICKLINE((((((((((((cxhDMZ OR cxhEMZ) OR cxhFMZ) OR cxh10MZ) OR cxh11MZ) OR cxh12MZ) OR cxh13MZ) OR cxh14MZ) OR cxh15MZ) OR cxh16MZ) OR cxh17MZ) OR cxh18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00;STICKLINE((((((((((((cxhDMZ OR cxhEMZ) OR cxhFMZ) OR cxh10MZ) OR cxh11MZ) OR cxh12MZ) OR cxh13MZ) OR cxh14MZ) OR cxh15MZ) OR cxh16MZ) OR cxh17MZ) OR cxh18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00;STICKLINE((((((((((((cxhDMZ OR cxhEMZ) OR cxhFMZ) OR cxh10MZ) OR cxh11MZ) OR cxh12MZ) OR cxh13MZ) OR cxh14MZ) OR cxh15MZ) OR cxh16MZ) OR cxh17MZ) OR cxh18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((cxhDMZ OR cxhEMZ) OR cxhFMZ) OR cxh10MZ) OR cxh11MZ) OR cxh12MZ) OR cxh13MZ) OR cxh14MZ) OR cxh15MZ) OR cxh16MZ) OR cxh17MZ) OR cxh18MZ),H,L,0,0 ),COLOR00DD00;cxh19MZ:=(REF((((((((((((cxhDMZ OR cxhEMZ) OR cxhFMZ) OR cxh10MZ) OR cxh11MZ) OR cxh12MZ) OR cxh13MZ) OR cxh14MZ) OR cxh15MZ) OR cxh16MZ) OR cxh17MZ) OR cxh18MZ),1) AND cxh1MZ);cxh1AMZ:=(REF((((((((((((cxh1MZ OR cxh2MZ) OR cxh3MZ) OR cxh4M

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容