以下是通达信强势回调踩点副图楼主测试下(无源码的请下载附件导入)
Z1:=MAX(MA(C,5),MA(C,10));
Z2:=MAX(Z1,MA(C,20));
Z3:=MAX(Z2,MA(C,30));
Z4:=MIN(MA(C,5),MA(C,10));
Z5:=MIN(Z4,MA(C,20));
Z6:=MIN(Z5,MA(C,30));
Z:=ABS(Z3-Z6)/Z6<0.025;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
V0:=MA(C,3)>REF(MA(C,3),1) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,3)
AND MA(C,3)>MA(C,5) ;
角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角度MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
角度MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;
X:=角度MA5>45 AND 角度MA10>60 AND 角度MA20>45 AND MA(C,60)>REF(MA(C,60),1);
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)&&REF(CCB,4)<0.8*REF(B0,4);
A1:=REF(X,25)&&HHV(H,3)<HHV(H,25)&&B;
A2:=REF(X,24)&&HHV(H,3)<HHV(H,25)&&B;
A3:=REF(X,23)&&HHV(H,3)<HHV(H,25)&&B;
A4:=REF(X,22)&&HHV(H,3)<HHV(H,25)&&B;
A5:=REF(X,21)&&HHV(H,3)<HHV(H,25)&&B;
A6:=REF(X,20)&&HHV(H,3)<HHV(H,25)&&B;
A7:=REF(X,19)&&HHV(H,3)<HHV(H,25)&&B;
A8:=REF(X,18)&&HHV(H,3)<HHV(H,25)&&B;
A9:=REF(X,17)&&HHV(H,3)<HHV(H,25)&&B;
A10:=REF(X,16)&&HHV(H,3)<HHV(H,25)&&B;
A11:=REF(X,15)&&HHV(H,3)<HHV(H,25)&&B;
A12:=REF(X,14)&&HHV(H,3)<HHV(H,25)&&B;
A13:=REF(X,13)&&HHV(H,3)<HHV(H,25)&&B;
A14:=REF(X,12)&&HHV(H,3)<HHV(H,25)&&B;
A15:=REF(X,11)&&HHV(H,3)<HHV(H,25)&&B;
A16:=REF(X,10)&&HHV(H,3)<HHV(H,25)&&B;
A17:=REF(X,9)&&HHV(H,3)<HHV(H,25)&&B;
A18:=REF(X,8)&&HHV(H,3)<HHV(H,25)&&B;
A19:=REF(X,7)&&HHV(H,3)<HHV(H,25)&&B;
A20:=REF(X,6)&&HHV(H,3)<HHV(H,25)&&B;
A21:=REF(X,5)&&HHV(H,3)<HHV(H,25)&&B;
A:=A1||A2||A3||A4||A5||A6||A7||A8||A9||A10||A11||A12||A13||A14||A15||A16||A17||
A18||A19||A20||A21;
|