Params
?? ?Numeric AfStep( 0.02);
?? ?Numeric AfLimit( 0.2 ) ;
? ? Numeric timeExit(0.145000);
? ? Numeric timeInto(0.093500);
? ? Numeric timeMidle1(0.130000);
? ? Numeric timeMidle2(0.130005);?
? ? Numeric timeMidle3(0.140000); ? ?
?
?? ??? ??? ?If(A_BuyPosition == 0 And A_SellPosition == 0)
?? ? ? ??? ?{
?? ??? ??? ? If( Close > Open And? (Time < timeMidle1 And Time >= timeInto || Time < timeMidle3 And Time >= timeMidle2))?? ??? ??? ??? ?
?? ??? ??? ? ?{
?? ??? ??? ??? ? A_SendOrder(Enum_Buy,Enum_Entry,lots,MIN(Close*1.01,Q_AskPrice));
?
拋開其他條件不說,以上明明時間是不允許的,為何在下午14:50分還會開倉?難道時間設置有錯?
?
?來源:CXH99.COM
光看代碼不足以說明問題,你這個時間運算條件是不是正確 ,與 或運算