請教各位先進
以下選股策略 只要加入跟成交均量的函數 就選不出股票,用系統預設的選股條件加入也會變成選不出股票
想好久不知問題在哪?
input:ratio(5,"較前月營收增加%");
value1=getFieldDate("月營收年增率", "M");
value2=getField("月營收", "M");
Value3=value2[1];
value4=(value2-value2[1])/value2[1]*100;
value7=getField("月營收年增率", "M");
condition1=False;
condition2=False;
if value7>0 then condition1=true;
//判斷是否可以當沖 : GetSymbolInfo(“買賣現沖”) ;
// GetSymbolInfo(“買賣現沖”) = true
if SymbolType=2 then condition2 = GetSymbolInfo("買賣現沖");
begin
if value4>ratio
and condition2=true
and condition1=true
and value1=20220901
and value1<>value1[1]
and value2<>value2[1]
then ret=1;
end;
2 評論