輸入格式:(35天的資料,所附文字檔data1.txt)
最高價
80.3 80.7 81.5 79.8 80.5 81.9 81.2 81.4 80.9 81.2 80.0 81.4 80.1 79.9 77.0 73.2 71.3 70.4 71.8 72.5 71.1 71.1 71.8 71.1 73.0 73.7 72.8 73.3 73.3 77.5 73.8 71.0 70.3 68.0 65.3
收盤價
79.7 80.1 79.3 78.6 80.4 80.6 80.4 80.7 80.8 78.7 79.5 80.2 79.8 77.0 69.3 70.7 69.2 68.5 71.7 71.7 70.0 70.2 70.7 70.2 72.2 71.4 71.7 72.3 73.3 73.5 70.0 70.2 67.0 64.8 60.5
最低價
78.3 78.7 79.3 78.1 78.8 80.6 80.1 80.2 79.7 78.7 78.8 79.3 79.0 76.5 69.3 67.0 68.2 68.1 69.4 70.7 68.4 70.1 69.8 66.5 68.9 71.4 70.9 71.2 72.1 73.5 69.3 69.5 65.1 63.9 59.0
輸出格式:(從第21天開始輸出15天的預測結果)
ADX: 51.63 57.45 63.91 69.51 66.11 58.39 51.16 43.15 38.12 33.87 27.72 20.22 16.06 10.88 13.03
預測: 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1
操作範例1:輸入格式:(35天的資料,所附文字檔data2.txt)
最高價
19.2 19.1 17.9 17.6 16.5 16.6 16.4 16.5 16.6 16.6 16.5 16.6 17.2 17.3 17.3 17.3 17.3 17.2 17.2 16.5 15.4 14.7 14.9 14.7 14.6 14.8 15.0 14.6 14.7 14.6 14.4 14.7 14.9 14.8 14.9
收盤價
19.1 18.5 17.9 16.9 16.4 16.0 16.0 16.5 16.3 16.4 16.2 16.5 17.0 17.2 17.0 17.3 16.9 17.1 16.9 16.0 14.5 14.1 14.9 14.4 14.2 14.7 14.8 14.3 14.3 14.3 14.2 14.6 14.8 14.7 14.5
最低價
19.1 18.2 17.4 16.9 16.1 16.0 15.9 16.1 16.3 16.3 16.1 16.2 16.6 17.1 16.9 16.9 16.9 16.9 16.9 15.9 14.5 14.0 15.2 14.3 14.2 14.5 14.5 14.2 14.3 14.2 14.0 14.1 14.4 14.6 14.5
輸出格式:(從第21天開始輸出15天的預測結果)
ADX: 37.21 35.75 41.18 49.75 55.44 60.25 63.30 66.95 70.76 74.53 74.24 70.23 64.30 57.02 50.50
預測: 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0
操作範例2:輸入格式:(35天的資料,所附文字檔data3.txt)
最高價
39.7 39.1 37.6 37.9 37.7 37.5 38.4 38.5 38.7 38.7 39.2 38.9 38.4 39.4 38.8 39.0 39.4 40.0 40.2 38.8 37.2 34.6 33.5 31.9 32.4 32.1 31.9 32.3 32.2 32.1 32.7 34.2 33.7 36.2 35.5
收盤價
38.8 37.9 36.9 37.2 37.5 36.8 38.3 38.0 38.0 38.5 38.4 37.8 38.2 38.5 38.3 39.0 39.3 39.8 38.5 37.6 34.0 32.8 32.1 31.2 31.8 31.1 31.9 31.7 31.7 31.7 32.7 33.8 33.5 35.1 35.4
最低價
38.8 37.7 36.6 37.2 37.1 36.8 36.9 37.9 38.0 37.9 38.2 37.7 37.9 38.4 38.0 38.2 38.7 39.4 38.5 37.1 33.9 31.5 32.1 30.8 31.5 31.0 31.1 31.5 31.7 31.4 31.9 32.8 33.0 34.7 34.4
輸出格式:(從第21天開始輸出15天的預測結果)
ADX: 33.00 38.57 41.05 44.23 47.61 50.06 53.90 57.33 63.74 70.80 70.92 66.87 62.83 62.51 62.02
預測: 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0
執行結果