編譯時這是哪裡出錯
syntax error, 'If' condition must be followed by a logical expressionline 7, column 0
----------------------------------------------------------------------------------
input:len1(40),len2(3);
vars:VH(0);
value1=BollingerBand(close,len1,len2);
value2=Average(close,len1);
value3=BollingerBand(close,len1,-len2);
if data<>data then begin VH=99999;
end;
If time>0900 and time<1300 and EntriesToday(data)<=0 then begin;
If L<value2 then VH=H;
IF value2-value3>10 and value2-value3<50 and value2-value2<0 then buy next bar next bar at VH+1 stop;
end;
這行
If time>0900 and time<1300 and EntriesToday(data)<=0 then begin;
begin 後面不應該有分號 flashbibby 發表於 17-7-17 09:20
這行
If time>0900 and time
感謝大大>"<
flashbibby 發表於 17-7-17 09:20
這行
If time>0900 and time
刪了還是依樣ORZ.............{:4_161:}
是不是 "date"?
日期<>前一天日期嗎? 你要的是Date吧~打成Data了~
這樣不知道是不是你要的~
錯的地方不少~多多練習吧~加油~
==========
inputs:
len1(40),
len2(3);
vars:
VH(0);
value1 = BollingerBand(close,len1,len2);
value2 = Average(close,len1);
value3 = BollingerBand(close,len1,-len2);
if (date<>date) then begin
VH=99999;
end;
If (time > 0900 and time < 1300 and EntriesToday(date) <= 0) then begin
If (L < value2) then VH=H;
IF (value2 - value3 > 10 and value2 - value3 < 50 and value2 - value2 < 0) then buy next bar at (VH+1) stop;
end; apollochung 發表於 17-7-19 18:05
你要的是Date吧~打成Data了~
這樣不知道是不是你要的~
錯的地方不少~多多練習吧~加油~
感謝大大>"< {:4_82:}
頁:
[1]