小幫手您好 以下是我腳本
if barfreq <> "Min" or Barinterval <> 2 then RaiseRuntimeError("請設定頻率為2分鐘");
var:ss(0);
value1 = GetQuote("振幅");
if CurrentTime >= 101500 and value1 <= 2.5 and GetField("最高價", "D") <= GetField("收盤價", "D")[1]*0.97 and
GetField("最低價", "D") >= GetField("收盤價", "D")[1]*0.96 and ss <= 1 then ss += 1;
if CurrentTime >= 101500 then begin
if ss >= 1 and close <= close[1]*0.99 and volume >= 100 then ret = 1;end;
請問ss這個變數要怎樣寫 才不會close <= close[1]*0.99這個條件成立了
但是不管ss這個變數只限制他增加一次或是增加多次 都有可能在
close <= close[1]*0.99這個條件成立之前變成不是我要的條件
我希望在close <= close[1]*0.99這個條件成立之前
能夠確認我ss這個變數的條件是成立的這樣
就是close <= close[1]*0.99這根兩分k棒 在條件成立之前
今天開盤到前一根兩分k棒這中間的時間確定是有達到ss這個變數的條件這樣
再麻煩小幫手了!!
 
            
        
        
        
            
5 評論