昨天跟大家介紹在盤中透過權值股的股價變化來預測期指的走向,當時我有提到可以透過調整成份股,調整計數標準及調整權重等三個方法來打造期指的領先指標,今天來跟大家介紹的是透過調整計數標準的方法。對於以當沖期指為操作方法的朋友,我真的非常建議各位學會這些方法,以權值股的股價表現來預測期指未來走向,是我個人覺得非常值得研究及開發程式的領域,因為從實戰上來看,這在有行情的時候,真的是一個不錯的參考依據。
上一篇是來計算有多少檔權值股站在10分鐘均線之上,這一篇則是介紹改成計算有多少檔分鐘線是上漲的,然後把這個數字算出十期的移動平均,這樣可以看出權值股上漲下跌的主流趨勢。
這個腳本如下
array:T50[50](0); t50[1]=GetSymbolField("5876.tw","close"); t50[2]=GetSymbolField("2317.tw","close"); t50[3]=GetSymbolField("2412.tw","close"); t50[4]=GetSymbolField("1301.tw","close"); t50[5]=GetSymbolField("1303.tw","close"); t50[6]=GetSymbolField("2454.tw","close"); t50[7]=GetSymbolField("1326.tw","close"); t50[8]=GetSymbolField("2308.tw","close"); t50[9]=GetSymbolField("2882.tw","close"); t50[10]=GetSymbolField("2881.tw","close"); t50[11]=GetSymbolField("2891.tw","close"); t50[12]=GetSymbolField("2002.tw","close"); t50[13]=GetSymbolField("1216.tw","close"); t50[14]=GetSymbolField("3008.tw","close"); t50[15]=GetSymbolField("2886.tw","close"); t50[16]=GetSymbolField("3711.tw","close"); t50[17]=GetSymbolField("2357.tw","close"); t50[18]=GetSymbolField("2474.tw","close"); t50[19]=GetSymbolField("3045.tw","close"); t50[20]=GetSymbolField("6505.tw","close"); t50[21]=GetSymbolField("2303.tw","close"); t50[22]=GetSymbolField("2382.tw","close"); t50[23]=GetSymbolField("2207.tw","close"); t50[24]=GetSymbolField("2892.tw","close"); t50[25]=GetSymbolField("4938.tw","close"); t50[26]=GetSymbolField("2884.tw","close"); t50[27]=GetSymbolField("2912.tw","close"); t50[28]=GetSymbolField("2885.tw","close"); t50[29]=GetSymbolField("2883.tw","close"); t50[30]=GetSymbolField("2105.tw","close"); t50[31]=GetSymbolField("2880.tw","close"); t50[32]=GetSymbolField("2330.tw","close"); t50[33]=GetSymbolField("4904.tw","close"); t50[34]=GetSymbolField("5880.tw","close"); t50[35]=GetSymbolField("2823.tw","close"); t50[36]=GetSymbolField("9904.tw","close"); t50[37]=GetSymbolField("1402.tw","close"); t50[38]=GetSymbolField("1101.tw","close"); t50[39]=GetSymbolField("2887.tw","close"); t50[40]=GetSymbolField("2890.tw","close"); t50[41]=GetSymbolField("2801.tw","close"); t50[42]=GetSymbolField("2633.tw","close"); t50[43]=GetSymbolField("5871.tw","close"); t50[44]=GetSymbolField("2301.tw","close"); t50[45]=GetSymbolField("2395.tw","close"); t50[46]=GetSymbolField("2354.tw","close"); t50[47]=GetSymbolField("9904.tw","close"); t50[48]=GetSymbolField("1102.tw","close"); t50[49]=GetSymbolField("2408.tw","close"); t50[50]=GetSymbolField("2227.tw","close"); variable:count(0),i(0); count=0; for i=1 to 50 begin if t50[i]> t50[i][1] then count=count+1; end; value1=average(count,10); plot1(value1);
用這個指標跟加權指數的對照圖如下
各位可以發現,指數小跌,而下跌的權值股愈來愈多時,後市下跌的機率就變大,相反的,指數不大動,但上漲的權值股家數愈來愈多,後市看漲的機率就變大。
再跟大家嘮叨一次,人的肉眼無法一次盯住50檔或更多的個股,但期指的表現是由成份股的股價表現所組合而成的,我們可以讓電腦一次幫我們盯住所有成份股的表現,然後形成一個總合性的數據,把這個數據變成一個指標,盯住幾個指標,絕對是我們用肉眼可以做的到的,如果你有志於把期指盤中操作當成一種謀生方式,這個方法絕對值得您學起來。