嗨 小編!!
今天盤中有測試,如果單單使用條件2測試okay,單單使用條件3測試okay,但是同時把條件2與3執行,卻跑不出選股,附上封包請小編幫忙確認
條件1:預估量>於昨日1.8倍(測試okay)
條件2: 收盤價大於昨日收盤價2%
條件3:收盤價小於做日收盤價6%
另外,條件4、5在執行雷達時候直接出現錯誤,但在編輯沒有問題,是否能一併幫忙確認
條件4: 預估量要大於5日均量1.8倍
條件5: 預估量要大於60日均量1.8倍
value1 = GetField("估計量");
input:Leng1(50);
input: rate(2.0,"9:30的漲幅");
input: rate1(6.0,"9:30的漲幅");
variable: ema1(0);
SetInputName(1,"短均線");
settotalbar(maxlist(Leng1) + 250);
ema1 = ema(close, Leng1);
condition1 = close > (getfield("Close", "D")[1] * (1+0.01*rate));
condition2 = close < (getfield("Close", "D")[1] * (1+0.01*rate1));
condition3 = value1 > (GetField("Volume", "D")[1] * 1.8);
Condition4 = value1 > (average(GetField("Volume", "D")[1], 5))*1.8;
Condition5 = value1 > (average(GetField("Volume", "D")[1], 60))*1.8;
if condition2 and condition1 and condition3 and condition4 and condition5 then ret = 1;
7 評論