缠论公式集.pdf

上传人:g****s 文档编号:86094373 上传时间:2023-04-13 格式:PDF 页数:15 大小:253.60KB
返回 下载 相关 举报
缠论公式集.pdf_第1页
第1页 / 共15页
缠论公式集.pdf_第2页
第2页 / 共15页
点击查看更多>>
资源描述

《缠论公式集.pdf》由会员分享,可在线阅读,更多相关《缠论公式集.pdf(15页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、缠论公式集 段成选股 var1:=chzhshchkxian;处理 K 线 var2:=chzhshchbi;处理笔关系 var3:=chzhshchduan;处理段关系 var4:=chzhshchduan2;处理更高级别段关系 bi1:=if(c>0,BARSLAST(var2<0),BARSLAST(var2>0);已完成笔向上 bi2:=if(c>0,BARSLAST(var2>0),BARSLAST(var2<0);已完成笔向下 bidi:=ref(l,SUMBARS(bi1=0,1)-1);当前之前(如果在点上算自身 1 次)第 n 个笔低点的值

2、 bigao:=ref(h,SUMBARS(bi2=0,1)-1);当前之前(如果在点上算自身 1 次)第 n 个笔高点的值 duan1:=if(c>0,BARSLAST(var3<0),BARSLAST(var3>0);已完成段向上 duan2:=if(c>0,BARSLAST(var3>0),BARSLAST(var3<0);已完成段向下 duanA:=if(c>0,BARSLAST(var4<0),BARSLAST(var4>0);已完成更高级段向上 duanB:=if(c>0,BARSLAST(var4>0),BARSL

3、AST(var4<0);已完成更高级段向下 未完成笔往下:BARSLAST(var2>0)<BARSLAST(var2<0);未完成段往下:BARSLAST(var3>0)<BARSLAST(var3<0);未完成笔向上:BARSLAST(var2>0)>BARSLAST(var2<0);未完成段向上:BARSLAST(var3<0)>BARSLAST(var3>0);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,18)/(0.015*AVEDEV(TYP,18);DIF:=EMA

4、(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;f30 段上选股:未完成段向上=1 and CCI<-100;F30 段下二买:未完成段往下=1 and dea>0 AND CCI<-100;MACD 底背离选股公式通达信、同花顺 底背离,通达信版、同花顺版 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBAR

5、S(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACD<0 AND MACD>MQDZ AND CLOSE=LLV(CLOSE,QZQ+20)AND MQDZ<0;XG:REF(XG1,1)=1 AND MACD>REF(MACD,1);双底背离,通达信版、同花顺版 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LL

6、VBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0);XG1:=MACD<0 AND MACD>MQDZ AND DIFF<0 AND DIFF>DQDZ AND CLOSE=LLV(CLOSE,QZQ+20)AND MQDZ<0 AND DQDZ<0;XG:REF(XG1,1)=1 AND MACD>REF(MACD,1);注:底双背离是指 MACD(绿柱)和 DIFF(黄白线)

7、都底背离。飞狐 5/10 均线面积主图公式源码 这是在飞狐交易师主图上的 5 日和 10 日均线面积公式,有趋势平均力度,希望对大家有帮助。注意:这是主图技术指标,建公式时一定要把“主图叠加”勾选上!5/10 均线面积 MA5:MA(C,5);MA10:MA(C,10);均线差:=MA5-MA10;JC:=MA10-MA5;绿柱面积:=IF(均线差<0,SUM(均线差*0.1,BARSLAST(JC<0),0);红柱面积:=IF(均线差>0,SUM(均线差*0.1,BARSLAST(JC>0),0);均线面积:IF(均线差>0,红柱面积,绿

8、柱面积),color0000ff,LINETHICK0;A1:=IF(均线差>0,1,-1);A2:=REF(A1,1);A3:=A1*A2;A4:=BARSLAST(A3<0);A5:=A4+1;趋势平均力度:(SUM(均线差,0)-REF(SUM(均线差,0),A5)/A5,colorFF00FF,LINETHICK0;drawnumber(ref(均线差,1)>0 and 均线差<=0,HHV(H,8),ref(红柱面积,1),3),ALIGN2,pxup20,colorred;drawnumber(ref(均线差,1)>0 and 均线差<=0,HH

9、V(H,8),ref(趋势平均力度,1),3),ALIGN2,pxup45,colorff00ff;drawnumber(ref(均线差,1)<0 and 均线差>=0,LLV(L,8),ref(abs(绿柱面积),1),3),ALIGN2,pxdn5,Color004A00;drawnumber(ref(均线差,1)<0 and 均线差>=0,LLV(L,8),ref(abs(趋势平均力度),1),3),ALIGN2,pxdn30,colorff00ff;drawnumber(islastbar and 均线差<0,LLV(L,5),abs(绿柱面积),3),a

10、lign2,pxdn5,Color004A00;drawnumber(islastbar and 均线差<0,LLV(L,5),abs(趋势平均力度),3),align2,pxdn30,Colorff00ff;drawnumber(islastbar and 均线差>0,HHV(H,5),abs(红柱面积),3),align2,pxup20,colorred;drawnumber(islastbar and 均线差>0,HHV(H,5),abs(趋势平均力度),3),align2,pxup45,colorff00ff;MACD 底背离选股公式飞狐、大智慧 L2 底背离,飞狐版

11、、大智慧 L2 版、大智慧经典(免费)版 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);XG1:=MACD<0 AND MACD>MQDZ AND CLOSE=LLV(CLOSE,QZQ+20)AND MQDZ<0;XG:REF(XG1,1)<>0 AND MAC

12、D>REF(MACD,1);双底背离,飞狐版、大智慧 L2 版 DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0);XG1:=MACD<0 AND MACD>MQ

13、DZ AND DIFF<0 AND DIFF>DQDZ AND CLOSE=LLV(CLOSE,QZQ+20)AND MQDZ<0 AND DQDZ<0;XG:REF(XG1,1)<>0 AND MACD>REF(MACD,1);注:底双背离是指 MACD(绿柱)和 DIFF(黄白线)都底背离。红绿柱面积公式飞狐和大智慧 L2 版 MACD 红绿柱面积(飞狐版副图)参数默认值:p=26;s=12;m=9 DIFF1:=EMA(CLOSE,s)-EMA(CLOSE,p);DEA1:=EMA(DIFF1,m);MACD:2*(DIFF1-DEA1),COL

14、ORSTICK,LINETHICK0;MACDhs:=IF(MACD>0 AND MACD>=REF(MACD,1),MACD,0);MACDhx:=IF(MACD>0 AND MACD<=REF(MACD,1),MACD,0);MACDlx:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);MACDls:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);STICKLINE(MACDhs>0,0,MACD,9,0),Color0000BB;STICKLINE(MACDhs>0

15、,0,MACD,8,0),Color0000CC;STICKLINE(MACDhs>0,0,MACD,7,0),Color0011CC;STICKLINE(MACDhs>0,0,MACD,6,0),Color1122DD;STICKLINE(MACDhs>0,0,MACD,5,0),Color2233DD;STICKLINE(MACDhs>0,0,MACD,4,0),Color3344EE;STICKLINE(MACDhs>0,0,MACD,3,0),Color4455EE;STICKLINE(MACDhs>0,0,MACD,2,0),Color5566FF

16、;STICKLINE(MACDhs>0,0,MACD,1,0),Color6677FF;STICKLINE(MACDhx>0,0,MACD,9,0),Color0077BB;STICKLINE(MACDhx>0,0,MACD,8,0),Color0088CC;STICKLINE(MACDhx>0,0,MACD,7,0),Color0099CC;STICKLINE(MACDhx>0,0,MACD,6,0),Color00AADD;STICKLINE(MACDhx>0,0,MACD,5,0),Color00BBDD;STICKLINE(MACDhx>0,0

17、,MACD,4,0),Color00CCEE;STICKLINE(MACDhx>0,0,MACD,3,0),Color00DDEE;STICKLINE(MACDhx>0,0,MACD,2,0),Color00EEFF;STICKLINE(MACDhx>0,0,MACD,1,0),Color00FFFF;STICKLINE(MACDlx<0,MACD,0,9,0),Color770000;STICKLINE(MACDlx<0,MACD,0,8,0),Color881100;STICKLINE(MACDlx<0,MACD,0,7,0),Color992200;S

18、TICKLINE(MACDlx<0,MACD,0,6,0),ColorAA3300;STICKLINE(MACDlx<0,MACD,0,5,0),ColorBB4400;STICKLINE(MACDlx<0,MACD,0,4,0),ColorCC5500;STICKLINE(MACDlx<0,MACD,0,3,0),ColorDD6600;STICKLINE(MACDlx<0,MACD,0,2,0),ColorEE7700;STICKLINE(MACDlx<0,MACD,0,1,0),ColorFF8800;STICKLINE(MACDls<0,MAC

19、D,0,9,0),Color005500;STICKLINE(MACDls<0,MACD,0,8,0),Color007700;STICKLINE(MACDls<0,MACD,0,7,0),Color009900;STICKLINE(MACDls<0,MACD,0,6,0),Color00AA00;STICKLINE(MACDls<0,MACD,0,5,0),Color00BB00;STICKLINE(MACDls<0,MACD,0,4,0),Color00CC00;STICKLINE(MACDls<0,MACD,0,3,0),Color00DD00;STI

20、CKLINE(MACDls<0,MACD,0,2,0),Color00EE00;STICKLINE(MACDls<0,MACD,0,1,0),Color00FF00;DIFF:DIFF1,Color0000FF;DEA:DEA1,ColorFF0000;红柱面积:IF(MACD>0,SUM(MACD,BARSLAST(MACD<0),0),LINETHICK0,Color0000FF;绿柱面积:IF(MACD<0,SUM(MACD,BARSLAST(MACD>0),0),LINETHICK0,Color006000;平均面积:IF(MACD>0,10*

21、红柱面积/BARSLAST(MACD<0),10*绿柱面积/BARSLAST(MACD>0),LINETHICK0,ColorFF00FF;DRAWNUMBER(ref(MACD,1)>0 and MACD<=0,HHV(MACD,4),ref(红柱面积,1),2),ALIGN1,pxup10,colorred;DRAWNUMBER(ref(MACD,1)>0 and MACD<=0,HHV(MACD,4),ref(平均面积,1),2),ALIGN1,pxup35,ColorFF00FF;DRAWNUMBER(ref(MACD,1)<0 and MAC

22、D>=0,LLV(MACD,4),ref(abs(绿柱面积),1),2),ALIGN1,pxdn5,Color006000;DRAWNUMBER(ref(MACD,1)<0 and MACD>=0,LLV(MACD,4),ref(abs(平均面积),1),2),ALIGN1,pxdn30,ColorFF00FF;DRAWNUMBER(BARSTATUS=2 AND MACD<0,LLV(MACD,4),abs(绿柱面积),2),align2,pxdn5,Color006000;DRAWNUMBER(BARSTATUS=2 AND MACD<0,LLV(MACD,4

23、),abs(平均面积),2),align2,pxdn30,ColorFF00FF;DRAWNUMBER(BARSTATUS=2 AND MACD>0,HHV(MACD,4),abs(红柱面积),2),align2,pxup10,colorred;DRAWNUMBER(BARSTATUS=2 AND MACD>0,HHV(MACD,4),abs(平均面积),2),align2,pxup35,ColorFF00FF;DRAWNUMBER(MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)AND MACD>=REFX(MACD,1)AND

24、 MACD>=REFX(MACD,2),MACD,MACD,2),align0,pxup20,ColorFF0000;DRAWNUMBER(MACD<0 AND MACD=LLV(MACD,BARSLAST(MACD>0)AND MACD<=REFX(MACD,1)AND MACD<=REFX(MACD,2),MACD,MACD,2),align0,pxup10,ColorFF00FF;0,Color000000;MACD 红绿柱面积(大智慧 L2 版副图)参数默认值:p=26;s=12;m=9 DIFF:EMA(CLOSE,s)-EMA(CLOSE,p);DEA

25、:EMA(DIFF,m);MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK0;MACDhs:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);MACDhx:=IF(MACD>0 AND MACD<REF(MACD,1),MACD,0);MACDlx:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);MACDls:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);STICKLINE(MACDhs>0,0,MACD,9,0),C

26、olor0000BB;STICKLINE(MACDhs>0,0,MACD,8,0),Color0000CC;STICKLINE(MACDhs>0,0,MACD,7,0),Color0000CC;STICKLINE(MACDhs>0,0,MACD,6,0),Color0000DD;STICKLINE(MACDhs>0,0,MACD,5,0),Color0033DD;STICKLINE(MACDhs>0,0,MACD,4,0),Color3355EE;STICKLINE(MACDhs>0,0,MACD,3,0),Color6677EE;STICKLINE(MAC

27、Dhs>0,0,MACD,2,0),Color8888FF;STICKLINE(MACDhs>0,0,MACD,1,0),Color9999FF;STICKLINE(MACDhx>0,0,MACD,9,0),Color0077BB;STICKLINE(MACDhx>0,0,MACD,8,0),Color0088CC;STICKLINE(MACDhx>0,0,MACD,7,0),Color0099CC;STICKLINE(MACDhx>0,0,MACD,6,0),Color00AADD;STICKLINE(MACDhx>0,0,MACD,5,0),Col

28、or11BBDD;STICKLINE(MACDhx>0,0,MACD,4,0),Color22CCEE;STICKLINE(MACDhx>0,0,MACD,3,0),Color33DDEE;STICKLINE(MACDhx>0,0,MACD,2,0),Color44EEFF;STICKLINE(MACDhx>0,0,MACD,1,0),Color55FFFF;STICKLINE(MACDlx<0,MACD,0,9,0),ColorBB0000;STICKLINE(MACDlx<0,MACD,0,8,0),ColorCC0000;STICKLINE(MACDl

29、x<0,MACD,0,7,0),ColorCC2200;STICKLINE(MACDlx<0,MACD,0,6,0),ColorDD4400;STICKLINE(MACDlx<0,MACD,0,5,0),ColorDD6611;STICKLINE(MACDlx<0,MACD,0,4,0),ColorEE8822;STICKLINE(MACDlx<0,MACD,0,3,0),ColorEEAA33;STICKLINE(MACDlx<0,MACD,0,2,0),ColorFFBB44;STICKLINE(MACDlx<0,MACD,0,1,0),Color

30、FFCC55;STICKLINE(MACDls<0,MACD,0,9,0),Color007700;STICKLINE(MACDls<0,MACD,0,8,0),Color009900;STICKLINE(MACDls<0,MACD,0,7,0),Color00AA00;STICKLINE(MACDls<0,MACD,0,6,0),Color00BB00;STICKLINE(MACDls<0,MACD,0,5,0),Color11CC11;STICKLINE(MACDls<0,MACD,0,4,0),Color22DD22;STICKLINE(MACDls&

31、lt;0,MACD,0,3,0),Color33FF33;STICKLINE(MACDls<0,MACD,0,2,0),Color44EF44;STICKLINE(MACDls<0,MACD,0,1,0),Color55FF55;绿柱面积:10*IF(MACD<0,SUM(MACD,BARSLAST(MACD>0),0),LINETHICK0,Color00ff00;红柱面积:10*IF(MACD>0,SUM(MACD,BARSLAST(MACD<0),0),LINETHICK0,colorred;DRAWTEXT(ref(MACD,1)>0 and

32、MACD<=0,HHV(MACD,8),+ref(红柱面积,1),ALIGN1,VALIGN1,colorred;DRAWTEXT(ref(MACD,1)<0 and MACD>=0,LLV(MACD,4),+ref(abs(绿柱面积),1),ALIGN1,Color00ff00;DRAWTEXT(BARSTATUS=2 AND MACD<0,LLV(MACD,8),+abs(绿柱面积),align2,Color004A00;DRAWTEXT(BARSTATUS=2 AND MACD>0,HHV(MACD,4),+abs(红柱面积),align2,VALIGN1,

33、colorred;注:底双背离是指 MACD(绿柱)和 DIFF(黄白线)都底背离。感谢秋叶正红老师!DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QM>QZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20);DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0);XG1:=MACD<0 AND MACD>MQDZ AND DIFF<0 AND DIFF>DQDZ AND CLOSE=LLV(CLOSE,QZQ+20)AND MQDZ<0 AND DQDZ<0;XG:REF(XG1,1)<>0 AND MACD>REF(MACD,1);

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 应用文书 > 文案大全

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁