麻煩老師能否改一下丹陽不破的公式:將后幾天的調(diào)整改成不破大陽的收盤價: 單陽A:=EXIST((C-REF(C,1))/REF(C,1)*100>5 AND VOL/REF(MA(VOL,5),1)>1.5,4); 調(diào)整天數(shù)A:=BARSLAST((C-REF(C,1))/REF(C,1)*100>5 AND VOL/REF(MA(VOL,5),1)>1.5); {這2個公式之間僅僅只有首2個賦值不同而已} HHA:=HHV(H,調(diào)整天數(shù)A-1); LLA:=LLV(L,調(diào)整天數(shù)A-1); 振幅A:=(HHA-LLA)/LLA<=0.06; {振幅:=(HH-LL)/LL*100<波幅;} XG1:=(H-L)/L<0.03 AND (H-O)/O<0.02 AND (O-L)/L<0.02 AND VOL/REF(MA(VOL,5),1)<1 AND 單陽A AND 振幅A; 單陽:=EXIST(C>O*1.05 AND VOL>REF(VOL,1)*1.5,4); 調(diào)整天數(shù):=BARSLAST(C>O*1.05 AND VOL/REF(MA(VOL,5),1)>1.5); {這2個公式之間僅僅只有首2個賦值不同而已} HH:=HHV(H,調(diào)整天數(shù)-1); LL:=LLV(L,調(diào)整天數(shù)-1); 振幅:=(HH-LL)/LL<=0.06; {振幅:=(HH-LL)/LL*100<波幅;} XG2:=(H-L)/L<0.03 AND (H-O)/O<0.02 AND (O-L)/L<0.02 AND VOL/REF(MA(VOL,5),1)<1 AND 單陽 AND 振幅; XG:XG1 OR XG2; |
|