上圖為今日我針對1分線所作的程式績效,證明了在某種狀態下,形態學還是有非常大的參考價值
上圖的策略的概念是用連續三線攻擊的策略,當來到當日最低點或最高點時,出現了連續三根的
攻擊,意思是說低檔時連續三根紅k則買進,高檔時連續三根黑k則放空,再加上使用乖離作為濾網
連續三根紅k程式碼
If CNDL_TrendDown[2] and
CNDL_WhiteLine[2] and
CNDL_WhiteLine[1] and
CNDL_WhiteLine and
Open[1] >= Min(Open[2], Close[2]) and
Open[1] <= Max(Open[2], Close[2]) and
Open >= Min(Open[1], Close[1]) and
Open <= Max(Open[1], Close[1]) and
Close[1] >= Close[2] and
Close >= Close[1] Then
End If
連續三根黑k程式碼
Parameter: Length(10)
If CNDL_TrendDown[3] and
CNDL_BlackLine[3] and
CNDL_BlackLine[2] and
CNDL_BlackLine[1] and
Open[1] < Open[2] and
Open[2] < Open[3] and
Close[1] < Close[2] and
Close[2] < Close[3] and
Low[1] < Low[2] and
Low[2] < Low[3] and
Open[2] > Close[3] and
Open[1] > Close[2] and
CNDL_LongBody(Length) and
CNDL_WhiteLine and
Open < Low[1] and
Close > High[3] Then
End If
沒有留言:
張貼留言