Request to add overloaded function for ExecuteMarketOrder(…) to API
Request to add overloaded function for ExecuteMarketOrder(…) to API
28 Feb 2025, 16:10
Hi,
Is it possible for cTrader to add another overloaded function for ExecuteMarketOrder(…).
Currently I have to use this function and calculating the pips is a pain and requires more lines of code (and aren't pips a forex only term).
For example EURUSD has a pip size of 0.0001 and a tick size of 0.00001.
I think most systems run on ticks so in addition to having just this function:
double stopPips = 100.00;
double limitPips = 100.00;
ExecuteMarketOrder(type, symbol, volume, “buy eurusd”, stopPips, limitPips);
It would be very convenient to also have this function added to the API:
double stopTicks = 0.0100;
double limitTicks = 0.0100;
ExecuteMarketOrder(type, symbol, volume, “buy eurusd”, stopTicks, limitTicks);
Thanks