短趋价:=MA(C,10) ;
趋界:=100*(LOW/MA(C,10))-100 ;
LL趋界:=100*(L/短趋价)-100 ;
CC趋界:=100*(C/短趋价)-100 ;
M1R:=AMOUNT/VOL/100 ;
M10R:=SUM(AMOUNT,10)/SUM(VOL,10)/100 ;
LL抄底:=(L-M10R)/M10R*100 ;
CC抄底:=(C-M10R)/M10R*100 ;
抄底2:=(M1R-M10R)/M10R*100 ;
价幅:=(M1R-短趋价)/短趋价*100 ;
幅差:=(价幅-HHV(价幅,10))/2 ;
LLBBB:=(L-MA(L,10))/MA(L,10)*100 ;
LLHHH:=(LLBBB+MA(LLBBB,10)) ;
LL短线:=LLHHH ;
CCBBB:=(C-MA(C,10))/MA(C,10)*100 ;
CCHHH:=(CCBBB+MA(CCBBB,10)) ;
CC短线:=CCHHH ;
L抄底:=(LOW-DMA((3*HIGH+LOW+OPEN+2*LOW)/7,VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7)))/DMA((3*HIGH+LOW+OPEN+2*LOW)/7,VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7))*100;
H抄底:=(H-DMA(((3*HIGH+LOW+OPEN+2*H)/7),VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7)))/DMA(((3*HIGH+LOW+OPEN+2*H)/7),VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7))*100;
C抄底:=(CLOSE-DMA(((3*HIGH+LOW+OPEN+2*CLOSE)/7),VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7)))/DMA(((3*HIGH+LOW+OPEN+2*CLOSE)/7),VOL/(SUM(AMOUNT,10)/(AMOUNT/VOL/7)/7))*100;
抄底:=(L抄底+H抄底+C抄底)/3 ;
L短线:=IF(((MA(((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10)),2)*3+((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10))*13)/16)>13,MA(((MA(((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10)),2)*3+((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10))*13)/16),2),((MA(((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10)),2)*3+((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100)-LLV((SMA(MAX(L-REF(L,1),0),5,1)/SMA(ABS(L-REF(L,1)),5,1)*100),10))*13)/16));
H短线:=IF(((MA(((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10)),2)*3+((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10))*13)/16)>13,MA(((MA(((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10)),2)*3+((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10))*13)/16),2),((MA(((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10)),2)*3+((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100)-LLV((SMA(MAX(H-REF(H,1),0),5,1)/SMA(ABS(H-REF(H,1)),5,1)*100),10))*13)/16));
C短线:=IF(((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16)>13,MA(((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16),2),((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16));
短线:=(L短线+H短线+C短线)/3 ;
短买:=(L-REF(C,10))-MA((L-REF(C,10)),5) ;
J:= 3*SMA(((C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1)-2*SMA(SMA(((C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1),3,1) ;
LJ:=3*SMA(((L-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1)-2*SMA(SMA(((L-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1),3,1) ;
D3:=(100*(L-LLV(L,3))/(HHV(L,3)-LLV(L,3))+100*(H-LLV(H,3))/(HHV(H,3)-LLV(H,3))+100*(C-LLV(L,3))/(HHV(C,3)-LLV(L,3)))/3 ;
D5:=(100*(L-LLV(L,5))/(HHV(L,5)-LLV(L,5))+100*(H-LLV(H,5))/(HHV(H,5)-LLV(H,5))+100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)))/3 ;
D10:=(100*(L-LLV(L,10))/(HHV(L,10)-LLV(L,10))+100*(H-LLV(H,10))/(HHV(H,10)-LLV(H,10))+100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)))/3 ;
D20:=(100*(L-LLV(L,20))/(HHV(L,20)-LLV(L,20))+100*(H-LLV(H,20))/(HHV(H,20)-LLV(H,20))+100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)))/3 ;
D30:=(100*(L-LLV(L,30))/(HHV(L,30)-LLV(L,30))+100*(H-LLV(H,30))/(HHV(H,30)-LLV(H,30))+100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)))/3 ;
D60:=(100*(L-LLV(L,60))/(HHV(L,60)-LLV(L,60))+100*(H-LLV(H,60))/(HHV(H,60)-LLV(H,60))+100*(C-LLV(L,60))/(HHV(C,60)-LLV(L,60)))/3 ;
D120:=(100*(L-LLV(L,120))/(HHV(L,120)-LLV(L,120))+100*(H-LLV(H,120))/(HHV(H,120)-LLV(H,120))+100*(C-LLV(L,120))/(HHV(C,120)-LLV(L,120)))/3 ;
D250:=(100*(L-LLV(L,250))/(HHV(L,250)-LLV(L,250))+100*(H-LLV(H,250))/(HHV(H,250)-LLV(H,250))+100*(C-LLV(L,250))/(HHV(C,250)-LLV(L,250)))/3 ;
CD:=短买<0 AND 抄底<=-2 AND LJ<2 AND ((L短线=0 AND L抄底<=-2 ) AND (H短线<0.5 AND H抄底<=-1)) AND (100*(L-LLV(L,3))/(HHV(L,3)-LLV(L,3))=0 AND 100*(L-LLV(L,5))/(HHV(L,5)-LLV(L,5))=0 );
DD:=短线<4.2 AND (L短线<1 OR H短线<1 OR C短线<1) AND L短线<2 AND 抄底<-0.9 AND L抄底<-1.99 AND H抄底<7.2 AND 趋界<-1.5 AND J<45;
DD1:=((D5+ D10+ D20+D30+D3+D60+D120+D250)/8<8 ) AND 短线<0.2 AND (L短线=0) AND (H短线=0) AND (D3<20 AND D5<20 AND D10<20 AND D20<20 AND D30<20 AND D60<20 AND D120<20 AND D250<20) ;
DD0:=(100*(L-LLV(L,3))/(HHV(L,3)-LLV(L,3))<0.2 OR 100*(H-LLV(H,3))/(HHV(H,3)-LLV(H,3))<0.2 OR 100*(C-LLV(L,3))/(HHV(C,3)-LLV(L,3))<0.2) AND D3>0 AND (H短线=0 AND L短线=0 )AND (H抄底<-8 OR L抄底<-8 OR L抄底<-8) ;
DD3:=(D3=0 AND D5>0) AND 短线<2.5 AND J<20 AND H短线<4 AND L短线<1 AND L抄底<-2 AND C短线<7 AND ((趋界-抄底)<1.5 AND (趋界<-18 OR 趋界>-4));
DD5:=(D3=0 AND D5=0 AND D10>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+1.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5 AND ((趋界-抄底)<1.5 AND (趋界<-18 OR 趋界>-4));
DD10:=(D3=0 AND D5=0 AND D10=0 AND D20>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+1.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5 AND ((趋界-抄底)<1.5 AND (趋界<-18 OR 趋界>-4));
DD20:=(D3=0 AND D5=0 AND D10=0 AND D20=0 AND D30>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+1.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5 AND ((趋界-抄底)<1.5 AND (趋界<-18 OR 趋界>-5));
DD30:=(D3=0 AND D5=0 AND D10=0 AND D20=0 AND D30=0 AND D60>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+1.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5 AND ((趋界-抄底)<1.5 OR 趋界<-18);
DD60:=(D3=0 AND D5=0 AND D10=0 AND D20=0 AND D30=0 AND D60=0 AND D120>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+1.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5 AND ((趋界-抄底)<2 OR 趋界<-18);
DD120:=(D3=0 AND D5=0 AND D10=0 AND D20=0 AND D30=0 AND D60=0 AND D120=0 AND D250>0) AND 短线<2 AND ((H短线-0.3)<=C短线 AND (L短线+0.2)>=C短线 AND (H短线-0.3)<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5;
DD250:=(D3=0 AND D5=0 AND D10=0 AND D20=0 AND D30=0 AND D60=0 AND D120=0 AND D250=0) AND 短线<2 AND ((H短线-0.2)<=C短线 AND (L短线+0.2)>=C短线 AND H短线<=L短线) AND J<20 AND H短线<3 AND L短线<5.5 AND C短线<5.5;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE, |