Sub ORDER_OrderStatusEx2(OrderID, Status, Filled, Remaining, Price, Code, Market, OrderType, Aspect, Kaiping, Account, AccountType)
if Status="Tradeing" and filled>0 and Account="00545" then
SETREGVAL('semi','enterprice',Price);
...
就是实现以上的语句~
该帐户成交一笔~然后把成交价写进注册表供后台调用~
如何实现?
就是写注册表那句我 不会
升级到3.63版本,自带这类函数了,请置顶贴看升级说明
if Status="Tradeing" and filled>0 and Account="00545" then
Set registry = CreateObject("stock.registry")
Call registry.Open("software\weisoft\金字塔\settings")
Call registry.WriteInt("enterprice",price)
end if