if barfreq <> "Min" or barinterval
<> 1 then RaiseRuntimeError("請設定頻率為1分鐘");
variable:KBarOfDay(0); if Date<>
Date[1] then KBarOfDay = 1 else KBarOfDay+=1;
{9. 開高後大幅拉回後橫盤第三次跌破今日低點區(第三次到底而破)}
variable:LowCount(0); if
Date<>Date[1] then LowCount=0;
if q_DailyOpen > q_RefPrice *1.02 and {開高2%以上}
q_DailyHigh > Close *1.02 then {已大幅回檔2%}
condition1 = true else condition1 =false;
if condition1 and Low =
Lowest(Low,KBarOfDay) then LowCount+=1;
if LowCount > 3 and
AbsValue(close/q_DailyOpen-1) < 0.01 and
Low < Lowest(Low[1], KBarOfDay-1) {橫盤觸低3次 再破低}