GSPT1:=MA(HHV(HIGH,500),21);
GSPT2:=MA(HHV(HIGH,250),21);
GSPT3:=MA(HHV(HIGH,90),21);
GSPT4:=MA(LLV(LOW,500),21);
GSPT5:=MA(LLV(LOW,250),21);
GSPT6:=MA(LLV(LOW,90),21);
GSPT7:=MA((GSPT4*0.96+GSPT5*0.96+GSPT6*0.96+GSPT1*0.558+GSPT2*0.558+GSPT3*0.558)/6,21);
GSPT8:=MA((GSPT4*1.25+GSPT5*1.23+GSPT6*1.2+GSPT1*0.55+GSPT2*0.55+GSPT3*0.65)/6,21);
GSPT9:=MA((GSPT4*1.3+GSPT5*1.3+GSPT6*1.3+GSPT1*0.68+GSPT2*0.68+GSPT3*0.68)/6,21);
RA:=MA((GSPT7*3+GSPT8*2+GSPT9)/6*1.738,21);
RB:=REF(LOW,1);
RC:=SMA(ABS(LOW-RB),3,1)/SMA(MAX(LOW-RB,0),3,1)*100;
RD:=MA(IF(CLOSE*1.35<=RA,RC*10,RC/10),3);
RE:=LLV(LOW,30);
RF:=HHV(RD,30);
GSPT10:=IF(MA(CLOSE,58),1,0);
红柱建仓区:MA(IF(LOW<=RE,(RD+RF*2)/2,0),3)/618*GSPT10,COLORSTICK;
STICKLINE(红柱建仓区,红柱建仓区,0,2,0),COLORRED;