2013年12月26日 星期四

大漲後的股票第一次跌破平盤後站回平盤,接著再跌破一次但站不回平盤時,殺


if barfreq <> "Tick" then RaiseRuntimeError("請設定頻率為TICK");
variable:BarNumberOfToday(0); if Date <> Date[1] then  BarNumberOfToday=1 else  BarNumberOfToday+=1;{記錄今天的Bar}


if date=currentdate and date[10] =Date and  {今日曾經大漲}//這邊說的不是當日大漲,而是先前大漲
   Close > Close[10]*1.015 then condition1=true else condition1=false;

if condition1 and close[1] >= q_RefPrice and close < q_RefPrice then
   condition2 =true else condition2 =false;
   {大漲後曾跌破平盤}
  
if condition2 and close = q_RefPrice then condition3 =true else condition3 =false;
   {跌破後曾回到平盤}
  
if q_Last = q_DailyLow  and condition3 {來到今低且前面各種狀況皆成立}

then ret=1;



沒有留言:

張貼留言