A_sendorder使用問題
作者:開拓者 TB 來源:cxh99.com 發(fā)布時(shí)間:2019年06月13日
-
咨詢內(nèi)容:
在使用buy等做實(shí)時(shí)交易委托單及交易正常,但是使用A_sendorder測(cè)試發(fā)送單子不成功,賬戶管理也沒有相應(yīng)的委托單等信息。測(cè)試代碼如下:
Params
? ? ? ? Numeric Length1(8);
? ? ? ? Numeric Length2(18);
? ? ? ? Numeric Length3(36);
Vars
? ? ? ? Numeric state;
Begin
? ? ? ? If(BarStatus == 2)
? ? ? ? {
? ? ? ? ? ? ? ? If(Close[1]>Open[1])
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? //A_SendOrder(Enum_Buy,Enum_Entry,1,Q_AskPrice+MinMove*PriceScale*ContractUnit);
? ? ? ? ? ? ? ? ? ? ? ? Buy(1,open);
? ? ? ? ? ? ? ? }Else
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? //A_SendOrder(Enum_Sell,Enum_Entry,1,Q_BidPrice-MinMove*PriceScale*ContractUnit);
? ? ? ? ? ? ? ? ? ? ? ? Sell(1,Open);
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? //PlotString("CountIf",A_AccountID);
? ? ? ? }
End
?
?來源:CXH99.COM
-
TB技術(shù)人員:
已解決,A函數(shù)無法做映射