GG:=AMOUNT/VOL;
M1:=((GG-REF(GG,1))/REF(GG,1))*((GG-REF(GG,1))/REF(GG,1))*10000;
M2:=((REF(GG,1)-GG)/GG)*((REF(GG,1)-GG)/GG)*10000;
CCB:=SUM(IF(GG>REF(GG,1),(10000*VOL/FINANCE(7))*M1,0),1);
CCS:=SUM(IF(GG<REF(GG,1),(10000*VOL/FINANCE(7))*M2,0),1);
B1:=(CCB+CCS);
B2:=MAX(REF(B1,1),REF(B1,2));
B0:=MAX(B2,REF(B1,3));
B3:=MAX(B0,REF(B1,4));
B4:=MAX(B3,REF(B1,5));
B5:=MAX(B4,REF(B1,6));
B6:=MAX(B5,REF(B1,7));
B7:=MAX(B6,REF(B1,8));
B8:=MAX(B7,REF(B1,9));
B9:=MAX(B8,REF(B1,10));
B10:=MAX(B9,REF(B1,11));
B11:=MAX(B10,REF(B1,12));
B12:=MAX(B11,REF(B1,13));
B13:=MAX(B12,REF(B1,14));
B14:=MAX(B13,REF(B1,15));
B15:=MAX(B14,REF(B1,16));
B16:=MAX(B15,REF(B1,17));
B:=CCB>1.2*B0&&REF(CCB,1)<0.8*REF(B0,1)&&REF(CCB,2)<0.8*REF(B0,2)&&
REF(CCB,3)<0.8*REF(B0,3);
动能上突破值:=CCB/B0;
动能下突破值:=CCS/B0;
上升动能:=CCB;
下降动能:=CCS;
MA5:=MA(GG,5);
MA10:=MA(GG,10);
MA20:=MA(GG,20);
MA30:=MA(GG,30);
MA60:=MA(GG,60);
MA120:=MA(GG,120);
MA250:=MA(GG,250);
下跌:=GG<ref(gg,1);
三线下跌:=COUNT(下跌,3)=3;
四线下跌:=COUNT(下跌,4)=4;
五线下跌:=COUNT(下跌,5)=5;
上升回调1:=(REF(C,4)-REF(C,5))/REF(C,5)>=0.02&&三线下跌
&&MA20>REF(MA20,4)&&MA10>REF(MA10,4)&&REF(H,4)=HHV(H,4);
上升回调2:=(REF(C,5)-REF(C,6))/REF(C,6)>=0.02&&四线下跌
&&MA20>REF(MA20,5)&&MA10>REF(MA10,5)&&REF(H,5)=HHV(H,5);
上升回调3:=(REF(C,6)-REF(C,7))/REF(C,5)>=0.02&&五线下跌
&&MA20>REF(MA20,6)&&MA10>REF(MA10,6)&&REF(H,6)=HHV(H,6);
上升回调:=上升回调1||上升回调2||上升回调3;
回调启动:REF(上升回调,1)&&B;