文华财经指标公式期货软件指标公式缠论、顶底背离、金叉死叉,买卖提示指标3
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
缠论、顶底背离、金叉死叉,买卖提示指标3:
DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :EMA(DIFF,9);
MACD :2*(DIFF-DEA);
ZERO :0;
落差:=DIFF-REF(DIFF,1);
斜率:=落差/REF(落差,1);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,8,0),COLOR0000FF; STICKLINE(MACD>0 AND MACD=REF(MACD,1),0,MACD,8,0),COLORFF00FF; STICKLINE(MACD<0 AND MACD GJ:=MAX(C,O); L4:=LLV(GJ,4); GT:=DEA>REF(DEA,1) AND REF(DEA,1) A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),COLOR00FF00; DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2; DRAWTEXT(底背离,DEA*1.09,'底背离'),COLOR6600FF; STICKLINE(底背离,DEA*1.09,DEA*0.86,8,0),COLORYELLOW; H4:=HHV(GJ,4); GT2:=DEAREF(DEA,2); A2:=BARSLAST(REF(GT2,1)); 顶背离:= REF(H4,A2+1) DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,GT2),0),COLORGREEN,LINETHICK2; DRAWTEXT(顶背离,REF(DEA,GT2)*1.07,'顶背离'),COLORGREEN; 低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1; STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),COLORYELLOW; DRAWTEXT(低位金叉,DEA*0.86,' 低位金叉'),COLORYELLOW; 突破零轴:=CROSS(DIFF,0) AND DEA STICKLINE(突破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORYELLOW; DRAWTEXT(突破零轴,DEA*0.86,' 突破零轴'),COLORWHITE; 跌破零轴:=CROSS(0,DIFF) AND DEA >DIFF; STICKLINE(跌破零轴,DIFF*0.86,DIFF*0.66,6,0),COLORRED; DRAWTEXT(跌破零轴,DEA*2.86,' 跌破零轴'),COLORRED;