資源描述:
《分時(shí)背離指標(biāo).doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、通達(dá)信KDJ,MACD,RSI頂?shù)妆畴x分時(shí)指標(biāo)公式來源:Internet,編輯:股旁網(wǎng),2016-09-19DRAWGBK(C>0,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
2、,POINTDOT;V11:=3*SMA((C-LLV(L,55))/(HHV(H,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);趨勢(shì)線:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趨勢(shì)線-REF(趨勢(shì)線,1))/REF(趨勢(shì)線,1)*100;準(zhǔn)備買入:STICKLINE(趨勢(shì)線<11,趨勢(shì)線,11,5,0),COLORYELLOW;AA:=(
3、趨勢(shì)線<11)ANDFILTER((趨勢(shì)線<=11),15)ANDC<中線;BB0:=REF(趨勢(shì)線,1)<11ANDCROSS(趨勢(shì)線,11)ANDC<中線;BB1:=REF(趨勢(shì)線,1)<11ANDREF(趨勢(shì)線,1)>6ANDCROSS(趨勢(shì)線,11);BB2:=REF(趨勢(shì)線,1)<6ANDREF(趨勢(shì)線,1)>3ANDCROSS(趨勢(shì)線,6);BB3:=REF(趨勢(shì)線,1)<3ANDREF(趨勢(shì)線,1)>1ANDCROSS(趨勢(shì)線,3);BB4:=REF(趨勢(shì)線,1)<1ANDREF(趨勢(shì)線,1
4、)>0ANDCROSS(趨勢(shì)線,1);BB5:=REF(趨勢(shì)線,1)<0ANDCROSS(趨勢(shì)線,0);BB:=BB1=1ORBB2=1ORBB3=1ORBB4=1ORBB5=1;下單買入:STICKLINE(BB=1ANDC<中線,11,50,5,0),COLORRED;DRAWICON(BB=1ANDC<中線,55,1);DRAWTEXT(BB0,60,'★買'),COLORRED;DRAWTEXT(AA,16,'準(zhǔn)備買入'),COLORYELLOW;準(zhǔn)備賣出:STICKLINE(趨勢(shì)線>89,趨勢(shì)線
5、,89,5,0),COLORWHITE;CC:=(趨勢(shì)線>89)ANDFILTER((趨勢(shì)線>89),15)ANDC>中線;DD0:=REF(趨勢(shì)線,1)>89ANDCROSS(89,趨勢(shì)線)ANDC>中線;DD1:=REF(趨勢(shì)線,1)>89ANDREF(趨勢(shì)線,1)<94ANDCROSS(89,趨勢(shì)線);DD2:=REF(趨勢(shì)線,1)>94ANDREF(趨勢(shì)線,1)<97ANDCROSS(94,趨勢(shì)線);DD3:=REF(趨勢(shì)線,1)>97ANDREF(趨勢(shì)線,1)>99ANDCROSS(97,趨勢(shì)線
6、);DD4:=REF(趨勢(shì)線,1)>99ANDREF(趨勢(shì)線,1)<100ANDCROSS(99,趨勢(shì)線);DD5:=REF(趨勢(shì)線,1)>100ANDCROSS(100,趨勢(shì)線);DD:=DD1=1ORDD2=1ORDD3=1ORDD4=1ORDD5=1;下單賣出:STICKLINE(DD=1ANDC>中線,89,50,5,0),COLORGREEN;DRAWICON(DD=1ANDC>中線,45,2);DRAWTEXT(DD0,40,'★賣'),COLORGREEN;DRAWTEXT(CC,84,'準(zhǔn)
7、備賣出'),COLORWHITE;頂:89,COLORGREEN;底:11,COLORRED;中:50,POINTDOT,COLORWHITE;?DRAWTEXT(ISLASTBAR,頂,'頂'),COLORGREEN;DRAWTEXT(ISLASTBAR,底,'底'),COLORRED;DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;{上出下買+三背}A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));?B:=MA(CLO
8、SE,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,DRAWNU