过滤盘整震荡指标源码文华期货指标MACD顶底背离金叉死叉.doc

过滤盘整震荡指标源码文华期货指标MACD顶底背离金叉死叉.doc

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
/* 短线高点--副图 {VAR1:=REF(LOW,1);? VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;? VAR3:=EMA(VAR2,13); VAR4:=LLV(LOW,34); VAR5:=EMA(IF(LOW=VAR4,VAR3,0),3); VAR5REF(VAR5,1);} Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;? Q3:=SMA(Q2, 9, 1);? Q4:=SMA(Q3, 3, 1);? 长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK2;? 趋势线:EMA(Q3, 3),COLORRED,LINETHICK2;? DRAWTEXT(CROSS(趋势线,?长趋势) AND REF(长趋势,1)80, REF(长趋势,3), 顶),COLORRED,LINETHICK5; 逢低买: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND?趋势线1.3*长趋势,长趋势,逢低 买),LINETHICK1; 买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND?长趋势1.3*趋势线,趋势 线,买),COLORRED,LINETHICK1;? VAR3:=PEAKBARS(3,15,1)10; VAR5:=IF(VAR3=1,2,0); 顶:= IF(VAR5=2,2,0); 顶A:IF(顶REF(顶,1),50,0),COLORGREEN; DRAWTEXT(顶A=50,45,快逃),COLOR00FF00; 金叉: CROSS(长趋势,趋势线); DRAWTEXT(金叉,趋势线,★),COLORRED; ? ? */ DIFF:EMA(CLOSE,10)-EMA(CLOSE,30); DEA:EMA(DIFF,5); MACD:=2*(DIFF-DEA); ZERO:0; GJ:=MAX(C,O); STICKLINE(MACD0 AND MACD=REF(MACD,1),0,MACD,2,0),COLOR0000FF; STICKLINE(MACD0 AND MACDREF(MACD,1),0,MACD,2,0),COLORFFFF00; STICKLINE(MACD0 AND MACD=REF(MACD,1),0,MACD,2,0),COLORFF00FF; STICKLINE(MACD0 AND MACDREF(MACD,1),0,MACD,2,0),COLOR00FF00; L4:=LLV(GJ,4); JL:=(HHV(DIFF,55)-LLV(DIFF,55))/5; GT:=DEAREF(DEA,1) AND REF(DEA,1)REF(DEA,2); A1:=BARSLAST(REF(GT,1)); 底背离:=REF(L4,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND GT; DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),COLORRED,LINETHICK2; DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),COLORRED,LINETHICK2; DRAWTEXT(底背离,REF(DEA,A1)*0.96,底背离),COLORFF00FF; H4:=HHV(GJ,4); GT2:=DEAREF(DEA,1) AND REF(DEA,1)REF(DEA,2); A2:=BARSLAST(REF(GT2,1)); 顶背离:= REF(H4,A2+1)H4 AND DIFFREF(DIFF,A2+1) AND GT2; DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),COLORGREEN,LINETHICK2; DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),COLORGREEN,LINETHICK2; DRAWTEXT(顶背离,REF(DEA,A2)*0.96,顶背离),COLORGREEN; A0:=DIFF0 AND DEA0; A11:=A0REF(A0,1); A3:=BARSLAST(A11); A4:=COUNT(DEA0 AND DIFF0,A3)=0; A5:=CROSS(DIFF,DEA); A6:=BARSLAST(A5); A7:=REF(A6,A6+1)+A6; A8:=(DIFF+DEA)/2; A9:=(HIGH+LOW)/2; A10:=A5 AND A7A3 AND A4 AND A8REF(A8,A7) AND A9REF

文档评论(0)

yifangtianzun + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档