2013年12月25日 星期三

遭遇線




{
[檔名:] 多頭遭遇 [資料夾:] 酒田戰法 [適用方向]
[說明:] 前期收黑K棒 當期開低走高紅棒嘗試反攻昨收

[資料讀取] 10
[最大引用] 5
}
{判斷狀況}
condition1= (open[1] - close[1] ) >(high[1] -low[1]) * 0.75 ;//狀況1: 前期出黑K棒
condition2= close[1] < close[2] ;//狀況2: 前期收跌
condition3= ( close - open ) >(high -low) * 0.75 ;//狀況3: 當期收紅K棒
condition4= open  < close[1] and close < close[1] ;//狀況4: 開低且收跌
condition5= low <  low[1] ;//狀況5: 破前期低點
{結果判斷}
IF
condition1
and condition2
and condition3
and condition4
and condition5
THEN RET=1;


{
[檔名:] 空頭遭遇 [資料夾:] 酒田戰法 [適用方向]
[說明:] 紅棒後 開高走低守平盤

[資料讀取] 10
[最大引用] 5
}
{判斷狀況}
condition1= ( close[1] - open[1] ) > (high[1] -low[1]) * 0.5 ;//狀況1: 前期實體紅棒
condition2= ( open - close ) > (high -low) * 0.5 ;//狀況2: 當期實體黑棒
condition3= open > high[1] and close > close[1] ;//狀況3: 開過昨高收守平盤
{結果判斷}
IF
condition1
and condition2
and condition3
THEN RET=1;

沒有留言:

張貼留言