Sub ORDER_OrderStatusEx2(OrderID, Status, Filled, Remaining, Price, Code, Market, OrderType, Aspect, Kaiping, Account, AccountType)
dim acfl1
acfl1="800007"'跟踪帐户
if Status="Tradeing" and filled>0 and Account=acfl1 and code="if09" then
if aspect=0 then
call Document.SetExtData("ACFL1_thold_if",document.GetExtData("ACFL1_thold_if")+filled)
end if
if aspect=1 then
call Document.SetExtData("ACFL1_thold_if",document.GetExtData("ACFL1_thold_if")-filled)
end if
end if
End Sub
=====================
买入N手外生全局变量就加上N手
卖出N手外生全局变量就减去N手~
但是无论我怎么操作那个ACFL1_thold_if还是等于0...
[此贴子已经被作者于2012-9-3 13:21:17编辑过]