請問小幫手在盤後選股時,多一個目前是否執行庫藏股中
例如:庫藏執行中 (yes/no)
方便觀看選出的個股是否庫藏中, 請問要怎寫程式?
請問小幫手在盤後選股時,多一個目前是否執行庫藏股中
例如:庫藏執行中 (yes/no)
方便觀看選出的個股是否庫藏中, 請問要怎寫程式?
Hello 藍靖,
您可以參考 庫藏股實際買回張數 或 庫藏股結束日期 欄位並以此判斷是否庫藏中。
像是 GetField("庫藏股實際買回張數") > 0 或 GetField("庫藏股結束日期") >= date。
舉例來說:
input: t_stock("yes");
condition1 = 條件1...;
condition2 = 條件2...;
condition3 = GetField("庫藏股實際買回張數") > 0;
condition4 = GetField("庫藏股實際買回張數") = 0;
if t_stock = "yes" and condition1 and condition2 and condition3 then ret = 1
else if t_stock = "no" and condition1 and condition2 and condition4 then ret = 1;
請問小幫手,如果帶入條件1跟條件2 是否如下:
但是選股卻選不到任何股票 如圖
input: t_stock("yes");
condition1 = GetField("庫藏股結束日期") >= date;
condition2 = GetField("庫藏股結束日期") >= date;
condition3 = GetField("庫藏股實際買回張數") > 0;
condition4 = GetField("庫藏股實際買回張數") = 0;
if t_stock = "yes" and condition1 and condition2 and condition3 then ret = 1
else if t_stock = "no" and condition1 and condition2 and condition4 then ret = 1;
謝謝小幫手幫我解決問題^^
4 評論