if barfreq <> "Tick" then
RaiseRuntimeError("請設定頻率為TICK");
variable:BarNumberOfToday(0); if Date
<> Date[1] then BarNumberOfToday=1
else BarNumberOfToday+=1;{記錄今天的Bar數}
variable: Ref(q_RefPrice);
if q_DailyOpen > q_RefPrice *1.02 and {開高2%}
(q_DailyHigh-q_DailyLow)/q_RefPrice > 0.05 and {振幅大於5%}
q_DailyLow
< q_RefPrice and{曾跌破平盤}
TrueAll(Close
> Ref ,5 ) {連續5筆都在盤上}
then ret=1;
沒有留言:
張貼留言