1{ 2[檔名:] 多頭遭遇 [資料夾:] 酒田戰法 [適用方向] 多 3[說明:] 前期收黑K棒 當期開低走高紅棒嘗試反攻昨收 4 5[資料讀取] 10 6[最大引用] 5 7} 8{判斷狀況} 9condition1= (open[1] - close[1] ) >(high[1] -low[1]) * 0.75 ;//狀況1: 前期出黑K棒 10condition2= close[1] < close[2] ;//狀況2: 前期收跌 11condition3= ( close - open ) >(high -low) * 0.75 ;//狀況3: 當期收紅K棒 12condition4= open < close[1] and close < close[1] ;//狀況4: 開低且收跌 13condition5= low < low[1] ;//狀況5: 破前期低點 14{結果判斷} 15IF 16condition1 17and condition2 18and condition3 19and condition4 20and condition5 21THEN RET=1;