請教小幫手,
選股中心 中的選股條件 "收盤價的20週趨勢是上升的"
具體的意義及語法是甚麼?
今天自己寫了下面這個語法, 但是回測跟選股中心選的回測結果有些不同, 用下面的語法交易次數多了一些
setbarfreq("AW");
input: Period(20); SetInputName(1, "期別");
settotalbar(3);
Condition1 = rateofchange(close, period) >= Period;
Condition2 = close > close[Period/2];
Condition3 = close > average(close, period);
ret = condition1 and condition2 and condition3;
3 評論