下面程式是從範例中複製而來的
condition1=false;
condition2=false;
condition3=false;
if average(close,5)>average(close,22)
then condition1=true;//週線在月線之上
if estvolume>average(volume,20)
then condition2=true;//預估量高於20日均量
value3=q_UpLimitSecs;//漲停家數
value4=q_UpSecurities;//上漲家數
if value3>15 or value4>250
then condition3=true;//漲停夠多或上漲的夠多
if condition1 and condition2 and condition3
then ret=1;
但程式經過編譯後卻發生錯誤,
錯誤訊息為: 未知的關鍵字 "estvolume",請檢查是否有宣告此變數或是拼字是否有誤。
請問這預估量"estvolume",要如何改?改成直接改volume嗎?
2 評論