Difference between ExecuteMarketOrder and ExecuteMarketOrder
Difference between ExecuteMarketOrder and ExecuteMarketOrder
20 Jun 2019, 15:10
Hi Support,
With new cTrader 3.5, I found that there are 2 commands to execute market order. They are
- ExecuteMarketOrder
- ExecuteMarketRangeOrder
Both of them have no sample and clear meaningful description. May I ask
1. Clarififcation of both commands and how differnt from each order
2. Sample of both commands
3. How compatiblity from these 3.5 and 3.3?
Thanks in advance
Noppanon
Replies
noppanon
20 Jun 2019, 15:30
Hi Panagiotis,
Thanks for quickly reply. Please see my questions below
1. On 3.5 ExecuteMarketOrder, if market is very volatile and price move very quickly, what is expected behavior of new command if no market range to bound the entry price?
2. On 3.5 ExecuteMarketRangeOrder parameters,
- what is the relationship between price base and marketRangePips?
- how should we define value of pricebase? The 3.3 does not need to submit any price.
Thanks in advance
Noppanon
@noppanon
PanagiotisCharalampous
20 Jun 2019, 15:50
Hi noppapon,
1. The order will be filled on VWAP. On high volatility slippage should be expected.
2. Price base is used to calculate the market range limit i.e. limit price = basePrice +- marketRangePips. Until v3.3 bid and ask prices where automatically considered for basePrice. Now you are flexible to set it yourself. You can use Symbol.Bid and Symbol.Ask if you want it to behave as in v3.3.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
20 Jun 2019, 15:20
Hi noppanon,
Up to v3.3, market range was passed as a parameter to the ExecuteMarketOrder(). Now there is a separate function for a market order with a market range. The parameters are self explanatory for each of the functions so it would be better to let us know if you have any queries about any of them.
The new functions are only compatible with v3.5
Best Regards,
Panagiotis
@PanagiotisCharalampous