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;
STICKLINE(XG1,0,10,2.7,0),COLOR000777;
STICKLINE(XG1,0,10,1.5,0),COLOR000BBB;
STICKLINE(XG1,0,10,0.9,0),COLOR000DDD;
STICKLINE(XG1,0,10,0.3,0),COLOR000FFF;
中枢:45,COLORRED,LINETHICK2;
25,COLORGREEN,LINETHICK2;
30,COLORLIRED;
12;