如何確定上漲趨勢已然成立 ?

By | 2015-05-01

每次踫到一檔股票從盤整中奮起時,我們經常會想要去追高,但卻經常性的愛到最高點,隔天就消風收黑,於是,我們開始透過一些方式,來過濾那些只是一日行情的股票,我們常用的過濾器有移動平均線黃金交叉,有成交量是否暴增,有前幾日有無籌碼被收集等等方法。
今天要跟大家介紹一個比較另類的方法,那就是檢視目前股價是不是保持在六個月以來的前25%中。
這個概念如下圖一,我們把近六個月來的股價分成三塊,中間五成算是盤整,上面四分之一是強勢區間,下面四分之一是弱勢區間,如果現在股價是在前四分之一,我們就認為股價現在處於上昇趨勢中,在下面四分之一,則是在下跌趨勢中,中間的五成就算是在盤整中。
根據這樣的分類,我們可以把個股的股價畫分成多頭,空頭及盤整區間。
然後我們把這樣的區間定義寫成一個腳本,跟主圖搭著一起看
腳本如下:

input:CountMonth(6); setinputname(1,"計算月數");
variable:pHigh(0),pLow(100000);
if CurrentDate < DateAdd(Date,"M",CountMonth) then
begin
pHigh = maxlist(h,pHigh);
pLow = minlist(l,pLow);
end
else
begin
pHigh =C;
pLow=C;
end;
array:PlotX[100](0);
variable:i(0);
for i = 0 to 99
begin
PlotX[i] = pHigh-(pHigh-pLow)*i/100;
end;
plot1(plotx[ 0]);
plot2(plotx[ 1]);
plot3(plotx[ 2]);
plot4(plotx[ 3]);
plot5(plotx[ 4]);
plot6(plotx[ 5]);
plot7(plotx[ 6]);
plot8(plotx[ 7]);
plot9(plotx[ 8]);
plot10(plotx[ 9]);
plot11(plotx[ 10]);
plot12(plotx[ 11]);
plot13(plotx[ 12]);
plot14(plotx[ 13]);
plot15(plotx[ 14]);
plot16(plotx[ 15]);
plot17(plotx[ 16]);
plot18(plotx[ 17]);
plot19(plotx[ 18]);
plot20(plotx[ 19]);
plot21(plotx[ 20]);
plot22(plotx[ 21]);
plot23(plotx[ 22]);
plot24(plotx[ 23]);
plot25(plotx[ 24]);
plot75(plotx[ 74]);
plot76(plotx[ 75]);
plot77(plotx[ 76]);
plot78(plotx[ 77]);
plot79(plotx[ 78]);
plot80(plotx[ 79]);
plot81(plotx[ 80]);
plot82(plotx[ 81]);
plot83(plotx[ 82]);
plot84(plotx[ 83]);
plot85(plotx[ 84]);
plot86(plotx[ 85]);
plot87(plotx[ 86]);
plot88(plotx[ 87]);
plot89(plotx[ 88]);
plot90(plotx[ 89]);
plot91(plotx[ 90]);
plot92(plotx[ 91]);
plot93(plotx[ 92]);
plot94(plotx[ 93]);
plot95(plotx[ 94]);
plot96(plotx[ 95]);
plot97(plotx[ 96]);
plot98(plotx[ 97]);
plot99(plotx[ 98]);
plot100(plotx[ 99]);

我們在主圖加入上面這個寫出來的指標時,會出現第附圖二這樣的圖形
我們從這個圖形可以看得出來,如果根據我們的定義,大盤從今年一月初到現在,都在我們定義的上昇趨勢中。
我用這個指標寫了一個交易策略
1.當盤整轉上昇趨勢時作多
2.當上昇趨勢轉盤整時多單平倉
3.當盤整轉空頭趨勢時作空
4.當空頭趨勢時轉盤整時空單平倉
然後挑貝他值大於一且可以平盤下放空的股票去跑
我發現其結果很有趣
1.如果股價後來大漲或大跌,基本上可以從頭抱到尾
2.交易頻率很高,交易量很大,且常小停損出場
3.長期結算下來,賠的次數多,賺的次數少,但賠都是小賠,賺都賺一大段。
結論是這種機械式的作法還蠻適合一籃子多空交易,但交易成本要壓的很低,不然很常作白功。
不過如果是那種想要衝業績,又希望可以有穩定獲利的操作者,這是一個可以思考的方向。

e1

e2