這是我數年前所使用的一個買賣點型態函數 ,現在讓大家玩玩看 !
此函數名為 W_Dragon
W_Dragon =1 買進訊號
W_Dragon =0 放空訊號
純粹參考使用,不要直接拿去當買賣使用喔 ! 此範例為函數型態,所以須新增於函數內後再使用.
沒有出場機制,要自行加入喔 !
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] and time>85500 Then
condition1=true
End If
If CNDL_TrendDown and
CNDL_LongBody(10) and
CNDL_BlackLine and
CNDL_UpShadow < CNDL_Height * 0.1 and
CNDL_DownShadow < CNDL_Height * 0.1 Then
condition1=false
End If
If CNDL_TrendUp[1] and
CNDL_WhiteLine[1] and
CNDL_BlackLine and
CNDL_LongBody(10) and
CNDL_Engulfing Then
condition1=false
End If
If CNDL_TrendUp[2] and
CNDL_LongBody(10)[2] and
CNDL_WhiteLine[2] and
CNDL_ShortBody(10)[1] and
!CNDL_Doji[1] and
Min(Close[1], Open[1]) > Max (Close[2], Open[2]) and
CNDL_BlackLine and
Close < Close[2] Then
condition1=false
End If
if close[2]<open[2] and close[1]<open[1] and close<open then
condition1=false
end if
if condition1=true then
W_Dragon =1
else
W_Dragon =0
end if
沒有留言:
張貼留言