想找出20日均線連續20日上揚的個股,在2024-08-13 14:00時執行,沒有出現"太普高(3284)",所以腳本是有錯的,但想不出錯在哪裡,請前輩指點迷津
-----------------------------------------------------------------------------------
Variable: SumValue(0);
Variable: i(0);
For i = 0 to 3
Begin
if average(close,20)[i] >= average(close,20)[i+1]
then SumValue = SumValue + 1;
End;
if SumValue = 20
then ret = 1;
-----------------------------------------------------------------------------------
符合條件商品
資料日期:2024年 8月 12日
策略, test均線上揚(1)
"序號","代碼","商品","成交","漲幅%",總量
1 ,"2035.TW","唐榮","31.9","-0.31",9
2 ,"2615.TW","萬海","82.5","6.87",45585
3 ,"3045.TW","台灣大","107.5","0",6543
4 ,"4174.TW","浩鼎","73.9","-1.2",4226
5 ,"4530.TW","宏易","8.15","-1.21",15
6 ,"5283.TW","禾聯碩","104.5","-0.48",95
7 ,"5386.TW","青雲","75","-2.47",1434
8 ,"6122.TW","擎邦","60.8","1.67",1350
9 ,"6651.TW","全宇昕","80.6","4.13",557
4 評論