短:=12,; 長(zhǎng):=26; M:=9; 最大虧損:=5000; DIF:=EMA(收盤(pán),做空) - EMA(收盤(pán),做多); DEA:=EMA(DIF,M); MACD:=2*(DIF-DEA),STICK; 多空分界:MA(C,50),LINETHICK1,COLORGREEN,POINTDOT; TOZ:=MA(C,50),顏色藍(lán)色,,點(diǎn)線; TMACD:=24,; HD0:=CROSS(DIF,DEA); 金收:=REF(L,BARSLAST(HD0)),COLORBLUE,DOTLINE; DRAWNUMBER(ISLASTBAR,金收,金收),COLORGREEN; LD0:=CROSS(DEA,DIF); 死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE; JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1)),; DD:=(MACD/2+(DEA*(M-1)/(M+1) )))/(1-2/(M+1)); DIF拐點(diǎn)價(jià)格:(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1) *EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORBLUE,LINETHICK1; 柱變向價(jià):=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1 )*EMA(C,長(zhǎng)))/(2*((長(zhǎng)+1)-(短+1))),彩色,線厚1; DRAWBAND(DIF拐頭價(jià),RGB(250,250,0),DIF拐頭價(jià),RGB(0,0,0)){XG51}; DRAWBAND(IF(柱變向價(jià)>DIF拐頭價(jià),柱變向價(jià),DRAWNULL),RGB(250,0,0),柱變向價(jià),RGB(0,0,0));黃銖消失 見(jiàn)頂:=IF(柱變向價(jià)>=DIF拐頭價(jià),DIF拐頭價(jià),DRAWNULL),COLORBLUE,CIRCLEDOT,LINETHICK1; 金叉:=IF(柱變向價(jià)>=DIF拐頭價(jià),多空分界,DRAWNULL),COLORBLUE,CIRCLEDOT,LINETHICK1; 金死叉價(jià):(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+( SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORGREEN,NODRAW,; MACD走平時(shí)股價(jià):=(((M +1)*(2*REF(DEA,1)*(M-1)+REF(MACD,1)*(M+1)))/(2*(M +1)*(M-1)) +(REF(EMA(C,26),1)*(26-1)/(26+1))-(REF(EMA(C,12),1)* (12-1)/(12+1 )))*(12+1)*(26+1)/(2*(26-12)),; ES:=REF(EMA(C,26),1); EP:=REF(EMA(C,12),1); DI:=REF(DIF,1); DIF穿零價(jià):((12+1)*(26-1)*ES-(26+1)*(12-1)*EP)/(2*(26+1)-2*(12+1) ) )),無(wú)畫(huà),,彩色,; DRAVETEXT_FIX(1,0.7,0.01,0,STRCAT('金死叉價(jià):',CON2STR(金死叉價(jià),2))),COLORGREEN; ZJ:=DIF>DEA; HY:=DIF<DEA; XG1:=ZJ AND C>死收 AND C>多空分界; 粘線(XG1,L,H,0,0),COLOR0000AA; 粘線(XG1,關(guān)閉,打開(kāi),3,0),COLOR000055; 粘線(XG1,關(guān)閉,打開(kāi),2.8,0),COLOR000066; 粘線(XG1,關(guān)閉,打開(kāi),2.5,0),COLOR000077; 粘線(XG1,關(guān)閉,打開(kāi),2.2,0),COLOR000088; 粘線(XG1 ,關(guān)閉,打開(kāi),1.7,0),COLOR000099; 粘線(XG1,關(guān)閉,打開(kāi),1.2,0),COLOR0000AA; 粘線(XG1,關(guān)閉,打開(kāi),0.7,0),COLOR0000CC; 線(XG1,關(guān)閉,打開(kāi),0.2,0),COLOR0000FF; W1:= C<死收 AND ZJ; 粘線(W1,H,L,0,1),顏色FF55FF; 粘線(W1,C,O,3.2,0),COLOR880088; 粘線(W1,C, O,2.6,0),COLORAA00AA; 粘線(W1,C,O,1.9,0),COLORCC00CC; 粘線(W1,C,O,1.1,0),COLOREE00EE; 粘線(W1,C,O,0.3,0),COLORFF44FF; W2:= C<多空分界 AND ZJ; 粘線(W2,H,L,0,1),顏色FF55FF; 粘線(W2,C,O,3.2,0),COLOR880088; 粘線(W2,C ,O,2.6,0),COLORAA00AA; 粘線(W2,C,O,1.9,0),COLORCC00CC; 粘線(W2,C,O,1.1,0),COLOREE00EE; 粘線(W2,C,O ,0.3,0),COLORFF44FF; XG2:=C<DIF拐點(diǎn)價(jià)AND HY; 粘線(XG2,H,L,0,0),COLOR00FF00; 粘線(XG2,C,O,3,0),COLOR009900; 粘線(XG2,C, O,2,0),COLOR00BB00; 粘線(XG2,C,O,1,0),COLOR00DD00; 粘線(XG2,C,O,0.3,0),COLOR00FF00; XG3:=C>DIF拐點(diǎn)價(jià)AND HY; 粘線(XG3,H,L,0,0),COLOR00FF00; 粘線(XG3,C,O,3,0),COLOR009900; 粘線(XG3,C, O,2,0),顏色00BB00; 粘線(XG3,C,O,1,0),COLOR00DD00; 粘線(XG3,C,O,0.3,0),COLOR00FF00; RSV:=(收盤(pán)-LLV(低,9))/(HHV(高,9)-LLV(低,9))*100; K:SMA(RSV,3,1),彩色,LINETHICK1,NODRAW; D:SMA(K,3,1),顏色藍(lán)色,LINETHICK1,NODRAW; LC:=REF(收盤(pán),1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; IF(COUNT(RSI1>80,3)=3,H,DRAWNULL),POINTDOT,COLORCYAN,LINETHICK8; IF(COUNT(RSI1<20,3)=3,L,DRAWNULL),POINTDOT,COLORBLUE,LINETHICK8; IF(COUNT(K>80,3)=3,H,DRAWNULL),POINTDOT,COLORCYAN,LINETHICK5; IF(COUNT(K<20,3)=3,L,DRAWNULL),POINTDOT,COLORFF33FF,LINETHICK5; 今日空間:=C-REF(金死叉價(jià),1)COLORCYAN,NODRAW; 尾盤(pán)空間:C-金死叉價(jià),NODRAW; DRAWTEXT_FIX(1,0.6,0.09,0,STRCAT('尾盤(pán)5分鐘差值:',CON2STR(尾盤(pán)空間,2))),COLORGREEN; A0:=最大虧損; 今日開(kāi)倉(cāng):=A0/今日空間,NODRAW; 尾盤(pán)開(kāi)倉(cāng):A0/尾盤(pán)空間,NODRAW; DRAWTEXT_FIX(ISLASBAR,0.0,0.09,0.0,'資金管理:合理控制倉(cāng)位,,好點(diǎn)位都是補(bǔ)出來(lái)的')COLORWHITE; DRAWTEXT_FIX(1,0.7,0.09,0,STRCAT('尾盤(pán)最大開(kāi)倉(cāng)股數(shù):',CON2STR(尾盤(pán)開(kāi)倉(cāng),2))),COLORLIMAGENTA;
|
|