當我們應用個股儀表板找出個股是否出現買進訊號時,要如何提高預測的精準度呢? 在看過大量的個股儀表板圖形後,我發現,如果股價是長期相對弱勢,但在個股儀表板出現不只一個買進訊號之前,股價就開始抗跌或比大盤強,那麼買進訊號的正確度會提高不少。今天就是來跟大家討論這樣的觀察。
請大家先看這張圖,在這張圖裡我們可以發現,當個股儀表板密集出現買進訊號之前,如果個股雖然在盤整,但其實表現的比大盤強,搭配起來就是一個更精準的買進訊號。
首先,先複習一下個股儀表板的腳本
1condition1=false; 2condition2=false; 3condition3=false; 4condition4=false; 5condition5=false; 6condition6=false; 7condition7=false; 8condition8=false; 9condition9=false; 10condition10=false; 11switch(close) 12begin 13case >150: value5=low*0.9; 14case <50 : value5=low*0.98; 15default: value5=low*0.95; 16end; 17//==========日KD黃金交叉================ 18 19input: Length_D(9, "日KD期間"); 20input: Length_M(5, "周KD期間"); 21variable:rsv_d(0),kk_d(0),dd_d(0),c5(0); 22 23stochastic(Length_D, 3, 3, rsv_d, kk_d, dd_d); 24 25c5=barslast(kk_d crosses over dd_d); 26if c5=0 and c5[1]>20 27then condition1=true; 28if condition1 29then plot1(value5,"月KD高檔鈍化且日KD黃金交叉"); 30//============內外盤量比差==================== 31variable:c3(0); 32value6=GetField("內盤量");//單位:元 33value7=GetField("外盤量");//單位:元 34if volume<>0 then begin 35value8=value7/volume*100;//外盤量比 36value9=value6/volume*100;//內盤量比 37end; 38value10=average(value8,5); 39value11=average(value9,5); 40value7=value10-value11+5; 41c3=barslast(value7 crosses over 0); 42if c3=0 and c3[1]>20 43then condition2=true; 44if condition2 45then 46plot2(value5*0.99,"內外盤量比差"); 47 48//===========淨力指標============== 49variable:c4(0); 50input:period2(10,"長期參數"); 51 52value12=summation(high-close,period2);//上檔賣壓 53value13=summation(close-open,period2); //多空實績 54value14=summation(close-low,period2);//下檔支撐 55value15=summation(open-close[1],period2);//隔夜力道 56if close<>0 57then 58value16=(value13+value14+value15-value12)/close*100; 59 60c4=barslast( value16 crosses over -4); 61if c4=0 and c4[1]>20 62then condition3=true; 63if condition3 64then 65plot3(value5*0.98,"淨力指標"); 66 67//===========多頭起漲前的籌碼收集================ 68variable:c2(0); 69value1=GetField("分公司買進家數"); 70value2=GetField("分公司賣出家數"); 71value3=value2-value1; 72value4=countif(value3>20,10); 73c2=barslast(value4>6 ); 74if c2=0 and c2[1]>20 75then condition4=true; 76if condition4=true 77then 78plot4(value5*0.97,"籌碼收集"); 79 80//===========法人同步買超==================== 81variable: v1(0),v2(0),v3(0),c1(0); 82v1=Getfield("外資買賣超"); 83v2=Getfield("投信買賣超"); 84v3=Getfield("自營商買賣超"); 85 86c1= barslast(maxlist2(v1,v2,v3)>100); 87if c1=0 and c1[1]>20 88then condition5=true; 89if condition5=true 90then plot5(value5*0.96,"法人同步買超"); 91 92//========DIF-MACD翻正============= 93input: FastLength(12), SlowLength(26), MACDLength(9); 94variable: difValue(0), macdValue(0), oscValue(0); 95MACD(weightedclose(), FastLength, SlowLength, MACDLength, difValue, macdValue, oscValue); 96variable:c6(0); 97c6=barslast(oscValue Crosses Above 0); 98if c6=0 and c6[1]>20 99then condition6=true; 100if condition6 101then plot6(value5*0.95,"DIF-MACD翻正"); 102//========資金流向====================== 103 104variable: m1(0),ma1(0),c7(0); 105m1=GetField("資金流向"); 106ma1=average(m1,20)*1.5; 107c7=barslast(m1 crosses over ma1 and close>close[1]); 108if c7=0 and c7[1]>20 109then condition7=true; 110if condition7 111then plot7(value5*0.94,"資金流向"); 112//=========總成交次數================ 113variable: t1(0),mat1(0),c8(0); 114t1=GetField("總成交次數","D"); 115mat1=average(t1,20)*1.5; 116c8=barslast(t1 crosses over mat1 and close>close[1]); 117if c8=0 and c8[1]>20 118then condition8=true; 119if condition8 120then plot8(value5*0.93,"成交次數"); 121//=========強弱指標================== 122variable:s1(0),c9(0); 123s1=GetField("強弱指標","D"); 124 125c9=barslast(trueall(s1>0,3)); 126if c9=0 and c9[1]>20 127then condition9=true; 128if condition9 129then plot9(value5*0.92,"強弱指標"); 130//============開盤委買================ 131variable:b1(0),mab1(0),c10(0); 132b1=GetField("主力買張"); 133mab1=average(b1,10); 134c10=barslast(b1 crosses over mab1); 135if c10=0 and c10[1]>10 136then condition10=true; 137if condition10 138then plot10(value5*0.91,"主力買張");
從這腳本我們可以了解,個股儀表板的目的,在於透過不同的資料欄位,標示出個股可能值得買進的訊號,但這些訊號如果是在多頭末昇段時,也可能會出現,這時候我們可以搭配轉強天數指標來一起看,如果轉強天數指標是從低檔穩定在上昇,就更值得留意。
我自己的轉強天數指標是這麼寫的
1input:period(20); 2value1=GetField("強弱指標","D"); 3//個股漲跌幅減加權指數漲跌幅 4value2=GetField("資金流向"); 5value3=countif(value1>0 and value2>value2[1],period); 6plot1(value3);
想法是計算過去一段時間比大盤強且佔大盤成交量比重也比前一天高的天數。
這兩個指標一起搭起來看,可以找到那些埋伏一段時間後開始要發動攻勢的股票
以下是最近很強的股票過去在起漲點時,這兩個指標的搭配情況
以上是我在用個股儀表板時偶然發現的現象 ,野人獻曝一下