W1:between(B,9,10) and HHV(H,B+1)<DYNAINFO(53) and 漲幅<9.5
and wb>wa and wb<wa*1.7 linethick0;
<%
WW=ffl.vardata("W1")
if WW=1 then
Set WshShell= CreateObject ("WScript.Shell")
WshShell.exec("c:\XX.exe")
end if
%>
引用:最初由 mangomango8855 發表 W1:between(B,9,10) and HHV(H,B+1)<DYNAINFO(53) and 漲幅<9.5
and wb>wa and wb<wa*1.7 linethick0;
<%
WW=ffl.vardata("W1")
if WW=1 then
Set WshShell= CreateObject ("WScript.Shell")
WshShell.exec("c:\XX.exe")
end if
%>
第一種IF
IF(COND,A,B) 主要是針對數列
這一種是支援數列的,可直接整個數列對整個數列做運算
例如:if(Close>Open, A, B)
其中 Close 和 Open 都是數列,有3000根K棒Close 和 Open 數列中有就有3000個元素
當這一行跑完時,就會得到3000根的結果
第二種IF
if COND then ... 應用在單值判斷
其 COND 之運算結果,必須為單值,不可為數列,範例:
if STKLABEL='2330' then ....
if DYNAINFO(14)*100>6 then ...
若要應用在數列,需搭配迴圈以單一元素存取,例如:
原碼:
CC:Close;
OO:Open;
for i=1 to datacount do begin
if CC[i]>OO[i] then begin
..........符合條件之處理..........
end else begin
..........不符合條件之處理..........
end;
end;