「順勢者昌」──鏘鏘有聲的交易名句,然而順勢的大智慧其實可以只靠兩條移動平均線簡單地構成。香港財經專欄作家曾淵滄教授就曾經運用2天19天移動平均線組合在香港股市大賺一筆,依其著作所言,2天19天組合乃由其學生作大規模統計而成,現在運用MetaStock,亦可一以窺探這個交易方法。
Metastock 編碼如下:
曾淵滄版本
Buy Order
Cross( Ref(Mov(C ,2 ,E ),-1) ,Ref(Mov(C ,19 ,E ),-1) )
Sell Order
Cross( Ref(Mov(C ,19 ,E ),-1) ,Ref(Mov(C ,2 ,E ),-1) )
編碼意思是指當2天移動平均線由19天移動平均線之下升穿而上,就作買入訊號,相反,當2天移動平均線由19天移動平均線之上跌破而下則作離場訊號,值得一提是,由於曾淵滄教授相信股市就長期而言只有上升,一切向淡訊號一概只平好倉而不做淡。特別說明,這與主流的均線交叉系統有所不同,主流的移動平均線交叉系統是會好淡皆做,在此亦提供雙向交易的Metastock編碼,以作參考。
主流版本
Buy Order
Cross( Ref(Mov(C ,2 ,E ),-1) ,Ref(Mov(C ,19 ,E ),-1) )
Sell Order
Cross( Ref(Mov(C ,19 ,E ),-1) ,Ref(Mov(C ,2 ,E ),-1) )
Sell Short Order
Cross( Ref(Mov(C ,19 ,E ),-1) ,Ref(Mov(C ,2 ,E ),-1) )
Buy to CoverOrder
Cross( Ref(Mov(C ,2 ,E ),-1) ,Ref(Mov(C ,19 ,E ),-1) )
主流版本
Buy Order
Cross( Ref(Mov(C ,2 ,E ),-1) ,Ref(Mov(C ,19 ,E ),-1) )
Sell Order
Cross( Ref(Mov(C ,19 ,E ),-1) ,Ref(Mov(C ,2 ,E ),-1) )
Sell Short Order
Cross( Ref(Mov(C ,19 ,E ),-1) ,Ref(Mov(C ,2 ,E ),-1) )
Buy to CoverOrder
Cross( Ref(Mov(C ,2 ,E ),-1) ,Ref(Mov(C ,19 ,E ),-1) )
關連閱讀:
「黃金交叉」迷你談
0 留言:
發佈留言