1、宝塔TOWER B1:=CLOSE[1];B2:=CLOSE[2]; SS:=IF(CLOSE>CLOSE[1] AND CLOSE[1]>=CLOSE[2],1,IF(CLOSE<CLOSE[1] AND CLOSE[1]<=CLOSE[2],-1,IF(CLOSE>CLOSE[2] AND CLOSE[2] >CLOSE[1],2,IF(CLOSE<CLOSE[2] AND CLOSE[2]<CLOSE[1],-2,0)))); SM:=IF(CLOSE[SS]<>0,CLOSE[SS],IF(CLOSE[SS-1]<>0,CLOSE[SS-1],IF(CLOSE[SS-2]<>0,CLOSE[SS-2],IF(CLOSE[SS-3]<>0,CLOSE[SS-3],IF (CLOSE[SS-4]<>0,CLOSE[SS-4],IF(CLOSE[SS-5]<>0,CLOSE[SS-4],0)))))); TOW1:=IF(CLOSE>CLOSE[1], CLOSE,CLOSE[1]),POINTDOT,colorwhite; tow2:=IF((SS=-1 OR SS=-2) AND SM>0, B2,TOW1),POINTDOT,colorwhite; TOWER:IF(tow1>tow2, tow1,TOW2),POINTDOT,colorgray; STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),9,1),colorred; STICKLINE(CLOSE<REF(C,1),CLOSE,REF(C,1),9,0),colorgreen; STICKLINE(REF(C,1)>=REF(C,2) AND CLOSE<REF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),9,1),colorred; STICKLINE(REF(C,1)<REF(C,2) AND CLOSE>=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),9,0),colorgreen; 2、超短买就完事 VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=3*VAR2-2*VAR3; VAR5:=LLV(LOW,5); VAR6:=HHV(HIGH,5); VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2; VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2); VAR9:=3*VAR7-2*VAR8; VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5); VARB:=POW(MA(LOW,5),2)+MA(LOW,5); VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5); VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10; VARE:=SMA(VARD,3,1)*1.5-100; VARF:=SMA(VARE,3,1); VAR10:=3*VARE-2*VARF; VAR11:=(HIGH+LOW+CLOSE*2)/4; VAR12:=EMA(VAR11,13); VAR13:=STD(VAR11,13); VAR14:=(VAR11-VAR12)*100/VAR13; VAR15:=EMA(VAR14,5); VAR17:=EMA(VAR15,13)+200-100; VAR18:=EMA(VAR17,10); VAR19:=3*VAR17-2*VAR18; VAR1A:=VAR2+VAR7+VARE+VAR17; VAR1B:=VAR3+VAR8+VARF+VAR18; VAR1C:=VAR4+VAR9+VAR10+VAR19; VAR1D:=(HIGH+LOW+CLOSE)/3; VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34)); ............. 3、短线拐头( 顶尖财经 股票学院: http://58188.com ) JJ:=(CLOSE+HIGH+LOW)/3; A:=EMA(JJ,5); B:=REF(A,1); 持股:=STICKLINE(A>B,A,B,6,0),COLOR00FFFF; STICKLINE(A>B,A,B,6,0),COLOR00FFFF; 弃股:=STICKLINE(A<=B,A,B,6,0),COLORA00000; STICKLINE(A<=B,A,B,6,0),colorblue; JDA:=(3*CLOSE+OPEN+LOW+HIGH)/6; JDB:(20*JDA+19*REF(JDA,1)+18*REF(JDA,2)+17*REF(JDA,3)+16*REF(JDA,4)+15*REF(JDA,5)+14*REF(JDA,6) +13*REF(JDA,7)+12*REF(JDA,8)+11*REF(JDA,9)+10*REF(JDA,10)+9*REF(JDA,11)+8*REF(JDA,12) +7*REF(JDA,13)+6*REF(JDA,14)+5*REF(JDA,15)+4*REF(JDA,16)+3*REF(JDA,17)+2*REF(JDA,18)+ REF(JDA,20))/210,coloryellow; JDC:MA(JDB,5),colorred; 偏离:=(C-JDB)/JDB*100, colorgreen; 涨幅: =(C-REF(C,1))/REF(C,1)*100; 时间: =DATE; 收盘:=C; DRAWICON(CROSS(JDB,JDC),MIN(C,O),1),coloryellow; DRAWICON (CROSS(JDC,JDB), MAX(C,O),2),colorgreen; DRAWTEXT (JDB>REF(JDB,1) AND REF(JDB,1)<REF(JDB,2),MIN(C,O),'拐头'),coloryellow; STICKLINE (涨幅>7,0.33*C+0.67*O,0.67*C+0.33*O,12,0),colorred; Z:=MA(C,120); VAR1:=(MA(H,5)-Z)/Z; VAR2:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3); D1:=DRAWTEXT(CROSS(95,VAR2) AND VAR1>0.3,1.01*HIGH ,'★S'),colorred; DRAWTEXT(CROSS(95,VAR2) AND VAR1>0.3,1.01*HIGH ,'★S'),colorred; D2:=DRAWTEXT( CROSS(93,VAR2) AND HHV(H,30)/LLV(L,30)>1.1 AND REF(Z,1)/Z>0.997 ,1.01*HIGH ,'★S'),colorgreen; DRAWTEXT( CROSS(93,VAR2) AND HHV(H,30)/LLV(L,30)>1.1 AND REF(Z,1)/Z>0.997 ,1.01*HIGH ,'★S'),colorgreen; D3:=DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR2,1)>90 AND VAR2<REF(VAR2,1) AND REF(VAR2,1)>REF(VAR2,2) ,1.01*HIGH,'★S'),colorblue; DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR2,1)>90 AND VAR2<REF(VAR2,1) AND REF(VAR2,1)>REF(VAR2,2) ,1.01*HIGH,'★S'),colorblue; VAR3:=(MA(C,5)-Z)/Z; VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3); D4:=DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*LOW ,'★B'),colorred; DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*LOW ,'★B'),colorred; D5:=DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*LOW ,'★B'),colorgreen; DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*LOW ,'★B'),colorgreen; D6:=DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*LOW ,'★B'),colorblue; DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*LOW ,'★B'),colorblue; |