請問小編我下列語法是哪裡有問題
if barfreq <> "Min" or Barinterval <> 2 then RaiseRuntimeError("請設定頻率為2分鐘");
variable:high_count(0);
if date <> date[1] then if high[4] = GetField("最高價", "D") and high[3] < high[4] and high[2] < high[4] and
high[1] < high[4] then high_count = 1;
if high_count >= 3 then ret = 1;
上述腳本我希望能找到當日有三個高點 然後用變數去記錄每一個高點
high[4]如果是等於最高價 然後接下來的三根都沒有大於high[4]
就記錄起來為一個高點這樣
然後只要high_count >= 3請電腦通知我 可是好像不行 不知道是哪裡出問題了 再麻煩小編了
7 評論