Request to add overloaded function for ExecuteMarketOrder(…) to API

Created at 28 Feb 2025, 16:10
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
RI

rick2010

Joined 08.08.2024

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


cTrader
@rick2010