參考下列文章:
https://xstrader.net/%e7%9c%8b%e7%9b%a4%e7%94%a8%e7%9a%84%e8%85%b3%e6%9c%ac/
按照範例,發現編譯有錯,裡面的estvolume有錯。我改成下列(用q_EstimatedTotalVolume置換estvolume),請問是否正確呢? 謝謝。
condition1=false;
condition2=false;
condition3=false;
if average(close,5)>average(close,22)
then condition1=true;//週線在月線之上
if q_EstimatedTotalVolume>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;
3 評論