N:=5;
DIFF : EMA(CLOSE,12)*100 - EMA(CLOSE,26)*100,COLORRED,LINETHICK0;
DEA : EMA(DIFF,9),COLORBLUE,LINETHICK0;
MACD1 := 2*(DIFF-DEA)*100,0, COLORSTICK;
STICKLINE(MACD1>0,-10,-6,8,0),COLORRED;
STICKLINE(MACD1<0,-10,-6,8,0),COLORGREEN;
VAR1: 4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW;
VAR2: 8,COLORGREEN,LINETHICK0;
建仓: IF(CROSS(VAR1,VAR2),80,0),STICK,COLORRED,LINETHICK2;
压住庄家:= IF(VAR1<=8,25,0),STICK,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(VAR1,VAR2),80,'+'),COLORRED;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区: IF((VARO7<10),80,100) ,COLORBROWN,LINETHICK1;
0,LINETHICK2 ,COLORGREEN;
DRAWTEXT(VAR1<8,VAR1,'*');
减仓1 := MACD1 AND DIFF > DEA AND VAR1 > 105;
减仓2 := VAR1 > 90;
DRAWTEXT(减仓1 OR 减仓2,VAR1,'-');