12點以後跌破今天多次觸及但一直未跌破的低檔區
if barfreq <> "Min" or
barinterval <> 1 then RaiseRuntimeError("請設定頻率為1分鐘");
variable:KBarOfDay(0); if Date<>
Date[1] then KBarOfDay = 1 else KBarOfDay+=1;
variable:TouchLowCounter(0),HLRatio12(0),tLow(0);
if Time > 93000 and Low =
lowest(Low,KBarOfDay-1) then TouchLowCounter+=1;
{9:30以後觸低次數}
if Time < 120000 then
begin
HLRatio12 = ((q_DailyHigh-q_DailyLow)/q_RefPrice-1)*100;
{12:00以前高低點波幅}
tLow = q_DailyLow;
{記下低點}
end;
if date=currentdate and Time > 120000 and Low > 3 and {今日 12:00有後多次觸及低點}
HLRatio12 <2 and tLow >
q_RefPrice *0.98 and {波幅在2%內且12:00前還沒跌超過2%}
Low = q_DailyLow {來到今日低點時觸發}//最好帶量跌破才觸發
then ret=1;
沒有留言:
張貼留言