VAR2N:=1;
V1:=(ma(((100 * (CLOSE- LLV(CLOSE,34))) / (HHV(HIGH,34)- LLV(LOW,34))),5)- 20);
V2:=(2 * Abs(V1));
空方:=((0 - (IF((V1 < 0),V2,0) * VAR2N)))+30;{低吸高抛:强买}
VAR1:=REF(CLOSE,2);
趋势线:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,LINETHICK2,COLORLIBLUE;
长期线:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,COLOR9900FF,LINETHICK3;
MA多:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2;
多方:=EMA(MA多,5),COLORYELLOW,LINETHICK2;
XG1:=趋势线<12 AND 长期线<12 AND 多方<25 AND 空方<0;
大底天下:XG1;