使用選股腳本撰寫周K
- 價破前一根k棒的低
- 量大於前一根的量
- 收紅k
- 站在半年線之上
邏輯如註解,選股程式碼範例腳本如下:
setbarfreq("W"); // 設頻率為周
if close cross under low[1] // 價破前一根k棒的低
and volume > volume[1] // 量大於前一根的量
and close > open // 收紅k
and close >= GetField("收盤價","H") // 站在半年線之上
then ret = 1;
以上,供參考,有任何問題歡迎詢問。