PlaceOrder function
Posted: 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.
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.