《分时背离指标(共7页).doc》由会员分享,可在线阅读,更多相关《分时背离指标(共7页).doc(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上通达信KDJ,MACD,RSI顶底背离分时指标公式来源:Internet,编辑:股旁网,2016-09-19DRAWGBK(C0, RGB(50,60,250),RGB(17,21,89),0,11,0);H1:=MAX(DYNAINFO(3),DYNAINFO(5);L1:=MIN(DYNAINFO(3),DYNAINFO(6);P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;:=L1+P1*0.5/8,COLORRED;:=(支撑+阻力)/2,COLORWHITE,POINTDOT;V11:=3*SMA(C-LLV(L,55)/(HHV(H,
2、55)-LLV(L,55)*100,5,1)-2*SMA(SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1),3,1);线:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趋势线-REF(趋势线,1)/REF(趋势线,1)*100;准备:STICKLINE(趋势线11,趋势线,11,5,0),COLORYELLOW;AA:=(趋势线11) AND FILTER(趋势线=11),15) AND C中线;BB0:=REF(趋势线,1)11 AND CROSS(趋势线,11) AND C中线;BB1:=REF(趋势线,1)
3、6 AND CROSS(趋势线,11);BB2:=REF(趋势线,1)3 AND CROSS(趋势线,6);BB3:=REF(趋势线,1)1 AND CROSS(趋势线,3);BB4:=REF(趋势线,1)0 AND CROSS(趋势线,1);BB5:=REF(趋势线,1)0 AND CROSS(趋势线,0);BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;下单买入:STICKLINE(BB=1 AND C中线,11,50,5,0),COLORRED;DRAWICON(BB=1 AND C89,趋势线,89,5,0),COLORWHITE;CC:=(
4、趋势线89) AND FILTER(趋势线89),15) AND C中线;DD0:=REF(趋势线,1)89 AND CROSS(89,趋势线) AND C中线;DD1:=REF(趋势线,1)89 AND REF(趋势线,1)94 AND REF(趋势线,1)97 AND REF(趋势线,1)99 AND CROSS(97,趋势线);DD4:=REF(趋势线,1)99 AND REF(趋势线,1)100 AND CROSS(100,趋势线);DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;下单卖出:STICKLINE(DD=1 AND C中线,89,
5、50,5,0),COLORGREEN;DRAWICON(DD=1 AND C中线,45,2);DRAWTEXT(DD0,40,卖),COLORGREEN;DRAWTEXT (CC,84,准备卖出),COLORWHITE;顶:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶,顶),COLORGREEN;DRAWTEXT(ISLASTBAR,底,底),COLORRED;DRAWTEXT(ISLASTBAR,中,中),COLORWHITE;上出下买+三背A:=MA(CLOSE,17)+ABS(MA(CL
6、OSE,17)-REF(MA(CLOSE,17),1);B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:IF(MA(CLOSE,17) REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;IF(PM 操作线);DD11:=分水岭 C AND REF(MACD.DIF,A1+1) 0,L-0.02,MACD底),COLOR00FFFF;MACD底背离A2:=BARSLAST(REF(CROSS(.K,KDJ.D),1);B2:=REF(C,A2+1)
7、C AND REF(KDJ.K,A2+1) C AND REF(RSI.RSI1,A3+1) 0,L-0.18,RSI底背离),COLOR0000FF;RSI底背离C1:=BARSLAST(REF(CROSS(MACD.DEA,MACD.DIF),1);D1:=REF(C,C1+1) MACD.DIF AND CROSS(MACD.DEA,MACD.DIF);DRAWTEXT(D1 0,H+0.16,MACD顶背离),COLOR00FF00;MACD顶背离C2:=BARSLAST(REF(CROSS(KDJ.D,KDJ.K),1);D2:=REF(C,C2+1) KDJ.K AND CROSS(KDJ.D,KDJ.K);DRAWTEXT(D2 0,H+0.08,KDJ顶背离),COLORFFFFCC;KDJ顶背离C3:=BARSLAST(REF(CROSS(RSI.RSI2,RSI.RSI1),1);D3:=REF(C,C3+1) RSI.RSI1 AND CROSS(RSI.RSI2,RSI.RSI1);DRAWTEXT(D3 0,H+0.04,RSI顶背离),COLORFF9900;RSI顶背离;专心-专注-专业