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)); VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4; VAR23:=EMA(VAR22,24); VAR24:=STD(VAR22,24); VAR25:=(VAR22-VAR23)/VAR24*100; VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24)); VAR27:=EMA(VAR25,5); VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4; VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2; VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15; VAR2D:=EMA(VAR2C,7); VAR2E:=(VAR2A+VAR2C)/2/1.1; 超短:EMA(VAR2E,3),COLORWHITE ; A:=超短>=REF(超短,1); B:=超短<REF(超短,1); HG: DRAWICON(A,超短,5); DRAWICON(B,超短,6); 超短上拐:超短>REF(超短,1) AND REF(超短,1)<REF(超短,2),COLORYELLOW,LINETHICK1;
{抄底山峰} VAR1X:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
山峰:SMA(VAR1X,5,1)-8,LINETHICK2,COLORCYAN;
STICKLINE(山峰,0,山峰,1,0),COLORC8FF00;
VAR2X:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR3X:=SMA(VAR2X,5,1)-16;
STICKLINE(VAR3X>山峰,0,-5,4,2),COLORYELLOW;
STICKLINE(VAR3X<山峰,0,-5,4,2),COLOR9800FF;
山谷: STICKLINE(FILTER(CROSS(VAR3X,山峰),5)=1 AND 山峰<15,0,20,13,2),COLORGREEN;
DRAWTEXT(FILTER(CROSS(VAR3X,山峰),5)=1 AND 山峰<15,-12,'山谷'),COLORGREEN;
山頭: STICKLINE(CROSS(山峰,VAR3X) AND VAR3X>=55 AND VAR3X<70,0,75,13,0),COLORYELLOW;
DRAWTEXT(CROSS(山峰,VAR3X) AND VAR3X>=55 AND VAR3X<70,-12,'跑吧'),COLORYELLOW;
山頂:STICKLINE(FILTER(CROSS(山峰,80),20)=1,0,85,25,0),COLORRED;
DRAWTEXT(FILTER(CROSS(山峰,80),20)=1,-12,'山頂'),COLORRED;
大本營(yíng): -20,CIRCLEDOT,COLOR3098FF;
VAR4X:=SMA(VOL,5,1);
VAR5X:=(VAR4X-LLV(VAR4X,10))/(HHV(VAR4X,10)-LLV(VAR4X,10))*100;
VAR6X:=SMA(VAR5X,3,1);
VAR7X:=100-VAR6X;
VAR8X:=REF(VAR7X,1)>REF(VAR7X,2) AND VAR7X<34;
VAR9X:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VAR10X:=FILTER(VAR8X,3);
群山:SMA(VAR9X,3,1),COLORBLUE,LINESTICK;
下山:STICKLINE(VAR10X AND 群山>60,0,75,13,0),COLORMAGENTA;
DRAWTEXT(VAR10X AND 群山>60,-12,'下山'),COLORMAGENTA;
|