在程序中,如果指定该品种成交量增长比例最大合约,并下单。
例:白糖 或所有品种
计算 V1:=(VOL-REF(VOL,1))/REF(VOL,1);
V2:=白糖合约里,V1值最大的合约月份.
交易该合约品种.
请问,V2怎么编程!
谢谢!
有实例没?
'新建一个白糖板块,将品种放进去,然后用下面例子遍历
Sub test1_CommandButton1_Click()
dim str
str=""
set b=CreateObject("Stock.Block")
if b.Open("白糖板块",1)=1 then
for i=0 to b.Count-1
str=str & b.GetStockMarket(i) & b.GetStockCode(i) & vbcrlf
next
end if
msgbox str
End Sub
下单请参考
http://www.weistock.com/bbs/dispbbs.asp?boardid=5&Id=1299