滿足條件然后記錄下當時的一個time時間,然后判斷當前時間大于那個時間就可以了。
看下document下面有記錄全局變量的函數的,方法和后臺那個延遲交易的其實一樣的
if 開倉條件 then
call Document.SetExtData("ti",time)
end if
if time>dateAdd("s",15,Document.GetExtData("ti")) then
報單
end if
或者看下這里延遲的一個函數http://www.weistock.com/bbs/dispbbs.asp?BoardID=5&ID=81498&skin=0