{看長做短} N:=10; N1:=5;N2:=10;N3:=600; VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); MA5:=EMA(C,5); MA13:=EMA(C,13); 0,COLORGRAY,LINETHICK1; UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),0),COLOR0000FF; DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00; BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1); DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2; DEA:EMA(DIFF,8),COLOR1474FF,LINETHICK3; DRAWTEXT(CURRBARSCOUNT=129,5,'【金盾股票園 WWW.XU5188.COM】'),COLOR889999; TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3; 買:=CROSS(TJ1,DEA); 賣:=CROSS(DEA,TJ1); DRAWICON(賣,DEA-2.6,1); DRAWICON(買,DEA+1.1,2); STICKLINE(DEA>TJ1 , DEA,TJ1 ,2.5,0),COLORRED,LINETHICK2; STICKLINE(TJ1>DEA,DEA,TJ1,2.5,0),COLORGREEN,LINETHICK2; 買點:=CROSS(DEA,TJ1) AND DEA>TJ1; DRAWTEXT(買點,DEA*1.18,'加倉'),COLORYELLOW; 賣點:=CROSS(TJ1,DEA) AND TJ1>DEA; DRAWTEXT(賣點,TJ1*1.23,'減倉'),COLORYELLOW; |
|