PlaceOrder function

Questions about MCFX and MCFX Data Feed.
kevin kolodzy
Posts: 64
Joined: 25 Jan 2008

PlaceOrder function

Postby kevin kolodzy » 01 Feb 2008

Can you tell me if the PlaceOrder function is supported, and if so, are there any differences between the MCFX and TS implementations? Sample use:

PO_Rslt = PlaceOrder(
"Market", // OrderName
"Once", //Frequency
sAccountNumber, //Account
"Buy", //Action
"Forex", //SymbolCategory
GetSymbolName, //MySymbol
AdjustNumContracts, //Quantity SetDurationTo, // Duration
" ", // GTDDate
"Intelligent", // Route
"False", // AllOrNone
"False", // BuyMinusSellPlus
0, // Discretionary
"False", // ECNSweep
0, // IfTouched
0, // LimitPrice
"False", // NonDisplay
"False", // Peg
0, // ShowOnly
0, // StopPrice
0, // TrailingAmount
" " ) ; // TrailingType


To use it correctly, I believe the following must also be available to test for conditions in which it can or should be applied:

GetAppInfo(aiRealTimeCalc)
GetAppInfo(aiStrategyAuto)
GetAppInfo(aiStrategyAutoConf)
GetAppInfo(aiMacroEnabled)
GetAppInfo(aiMacroConf)
GetAppInfo(aiIntrabarOrder)

Thanks.

kevin kolodzy
Posts: 64
Joined: 25 Jan 2008

Postby kevin kolodzy » 08 Feb 2008

I've since discovered that the macro-related status items are not supported:

GetAppInfo(aiMacroEnabled)
GetAppInfo(aiMacroConf)

Can I assume that PlaceOrder is not supported? This is difficult to test without setting up an account and forcing certain conditions to occur - it is easier to ask if it is supported or not, and not waste time on it if not. Thanks.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 08 Feb 2008

The two functions above are indeed not supported. However, we haven't been able to find GetAppInfo(aiMacroConf) in the PlaceOrder code.
Thus the only unsupported function in the code is GetAppInfo(aiMacroEnabled). This function doesn't seem to be crucial for the correct work of PlaceOrder.

The only thing is that switch is not yet supported in MCFX. But switch can be replaced by the if...then constructions.

Regards.

kevin kolodzy
Posts: 64
Joined: 25 Jan 2008

Postby kevin kolodzy » 08 Feb 2008

Okay, if I understand you correctly, PlaceOrder IS supported, but some of the GetAppInfo function's status parameters such as aiMacroEnabled and aiMacroConf are not. I can work with that, if PlaceOrder is supported.


Return to “MCFX”