2013年12月26日 星期四

開高急破平盤後又拉上平盤且站穩


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;



沒有留言:

張貼留言