大智慧金融终端版:
A:=DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1);
成本:=(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4;
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA62:MA(C,62),COLORFF1CAE ;
K:=(C+H+L)/3;
D:=MA(K,4);
阻力:=HHV(D,55);
顶部:=HHV(H*0.98,55);
DRAWTEXT(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98, 'D'),COLORYELLOW;
{均线}
TYP:= (HIGH + LOW +2* C)/4;
均线:=EMA(TYP,3);
均线上轨:=HHV(均线,14);
均线下轨:=LLV(均线,14);
角度:=ATAN((均线/REF(均线,1)-1)*100)*180/3.1416;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
CB:=EMA(X,13);
买:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),LineThick0;
DRAWICON(FILTER(买=1,5),L*0.97,7),align1;
{K线优化}
STICKLINE(角度>0,O ,C ,0.5,0 ),COLORRED;
STICKLINE(角度<0,O ,C,0.5 ,0 ),COLORCYAN;
STICKLINE(角度<0,O,C,8,0),COLORFF6600;{蓝K线持币}
STICKLINE(角度<0,O,C,4,0),COLORFF9900;
STICKLINE(角度<0,O,C,2,0),COLORFFCC00;
STICKLINE(角度<0,O,C,1,0),COLORCYAN;
STICKLINE(角度>0,O,C,8,0),COLOR000099;
STICKLINE(角度>0,O,C,4,0),COLOR0000CC;{红K线持股}
STICKLINE(角度>0,O,C,2,0),COLOR0000FF;
STICKLINE(角度>0,O,C,1,0),COLORCC66FF; |