2020-01-25 18:29:53 中:=(3*收盤價(jià)+最低價(jià)+開盤價(jià)+最高價(jià))/6; {牛線} CG:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF (中,5)+14*參考(中,6)+13*參考(中,7)+12*參考(中,8)+11*參考(中,9)+10*參考(中,10) +9*REF(中,11)+8*REF(中,12)+7*REF(中,13)+6*REF(中,14)+5*REF(中,15)+4*REF(中,16)+3*參考(中,17)+2*參考(中,18)+參考(中,20))/210; FL:HHV(CG,5); FS:CG-(FL-CG); EMA55:=EMA(收盤,55); 機(jī)構(gòu)成本:=EMA55,LINETHICK3,COLORFF00FF; MA55:=MA(收盤價(jià),55); DRAWTEXT(CROSS(EMA55,MA55) AND EMA55>REF(EMA55,1) AND CG=FL,MA55,'走強(qiáng)'); DRAWTEXT( EMA(C,55)>REF(EMA(C,55),1) AND FL>EMA(C,55) AND FS>EMA(C,55) AND FL=FS AND REF(FL,1)> REF(FS,1) ,FS,'買入' ),COLORYELLOW; {漲停K線} C2:=REF(C,1); 漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1, STICKLINE(漲停,OPEN,CLOSE,-1,1),COLORRED; STICKLINE(漲停,H,O,0.5,0),COLORYELLOW; {九轉(zhuǎn)} A1:=C>REF(C,4); NT:=BARSLASTCOUNT(A1); TJ11:=NT=9; TJ13:=ISLASTBAR 和 BETWEEN(NT,5,8); AY:=(后退(TJ11>0,9)或后退(TJ13>0,NT))*NT; DRAWTEXT(AY>0,H*1.02,VAR2STR(AY,0)),COLORFF00FF; DRAWTEXT(NT=9,H*1.02,'9'),COLORGREEN; DRAWTEXT(NT=13,H*1.02,'13'),COLORGREEN; DRAWTEXT(NT=18,H*1.02,'18'),COLORGREEN; B1:=C<REF(C,4); NT0:=BARSLASTCOUNT(B1); TJ21:=NT0=9 ; TJ23:=ISLASTBAR 和 BETWEEN(NT0,5,8); AY1:=(后退(TJ21>0,9)或后退(TJ23>0,NT0))*NT0; DRAWTEXT(AY1>0,L*0.98,VAR2STR(AY1,0)),COLORFF00FF; DRAWTEXT(NT0=9,L*0.98,'9'),COLORGREEN; DRAWTEXT(NT0=13,L*0.98,'13'),COLORGREEN; DRAWTEXT(NT0=18,L*0.98,'18'),COLORGREEN; ZF:=(C-REF(C,1))/REF(C,1)*100; 假陽線:=C>O AND ZF<0 AND O<REF(L,1); STICKLINE(假陽線,O,C,0.5,0),COLORMAGENTA; {籌碼成本} X_1:=COSTEX(ISLASTBAR+540,ISLASTBAR); 牛熊界限:MA(X_1,13),COLORGREEN; IF(牛熊界限>REF(牛熊界限,1),牛熊,DRAWNULL),COLORRED; AL:=SUMBARS(V,CAPITAL*1);{累計(jì)換手=100%的周期} AL1:=SUM(COST(10),AL)/AL;{在一個(gè)周期里剩余10%的平均價(jià)} AL2:=SUM(COST(20),AL)/AL;{在一個(gè)周期里盈利20%的平均價(jià)} AL3:=SUM(COST(30),AL)/AL;{在一個(gè)周期里盈利30%的平均價(jià)} AL4:=SUM(COST(40),AL)/AL;{在一個(gè)周期里盈利40%的平均價(jià)} AL5:=SUM(COST(50),AL)/AL;{在一個(gè)周期內(nèi)盈利 50% 的平均價(jià)格} 主力成本:(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,POINTDOT,COLOR00FF00;{求出莊家成本}; 估值:=(2*CLOSE+LOW+HIGH)/ 4 ; 風(fēng)險(xiǎn)區(qū):EMA(估值,40)*1.15,POINTDOT,COLORFF33FF; 機(jī)構(gòu)參與度:EXTERNALVALUE(0,1),COLORRED,NODRAW;{引用數(shù)據(jù)};
|