if barfreq <> "Min" or Barinterval <>1 then
RaiseRuntimeError("請設定頻率為1分鐘");
variable:BarNumberOfToday(0);
if Date <> Date[1] then BarNumberOfToday=1
else BarNumberOfToday+=1;{記錄今天的Bar數}
variable:tt(0);
假設 close >= high[1] then
tt = BarNumberOfToday;
那當close >= high[1]的時候
tt是不是就會記錄到當時k棒是開盤以來的第幾根的數值呢?
感謝!!
5 評論