2013年12月25日 星期三

內困三日







{
[檔名:] 內困三日翻紅 [資料夾:] 酒田戰法 [適用方向]
[說明:] 黑K棒後內包前期短紅棒 當期再以紅棒突破黑棒開盤價

[資料讀取] 10
[最大引用] 5
}

{判斷狀況}
condition1= ( open[2] - close[2] ) >(high[2] -low[2]) * 0.75 ;//狀況1: 實體下跌K棒
condition2= ( close[1] - open[1] ) >(high[1] -low[1]) * 0.75 ;//狀況2: 實體上漲K棒
condition3= high[1] < high[2] and low[1] > low[2] ;//狀況3: 前期內包於前前期
condition4= ( close - open )  > 0.75 *(high -low) ;//狀況4: 當期實體上漲K棒
condition5= close > open[2] ;//狀況5: 現價突破前前期開盤價
{結果判斷}
IF
condition1
and condition2
and condition3
and condition4
and condition5
THEN RET=1;


{
[檔名:] 內困三日翻黑 [資料夾:] 酒田戰法 [適用方向]
[說明:] 前兩期為長紅棒後包黑K棒 當期往下跌破紅棒開盤價

[資料讀取] 10
[最大引用] 5
}
{判斷狀況}
condition1= close[2] > open[2] + high[3]-low[3] ;//狀況1: 前前期長紅棒
condition2= high[2] < high[3] and low[2] > low[3] ;//狀況2: 前期內包黑K棒
condition3= open >= close[1] and close < open[2] ;//狀況3: 開平高跌破三日低點
{結果判斷}
IF
condition1
and condition2
and condition3
THEN RET=1;

沒有留言:

張貼留言