open market order with SL TP and MarketRange parameter

Created at 13 Feb 2013, 08:54
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!
SO

softmare

Joined 12.02.2013

open market order with SL TP and MarketRange parameter
13 Feb 2013, 08:54


I cannot find in API documentation way to open position by the market price place witch stop loss, take profit and MarketRange (allow slippage range). Stop loss and take profit is possible only witch CreateSellLimitOrder and CreateBuyLimitOrder and not witch market type trade. Can someone explain ?


@softmare
Replies

admin
13 Feb 2013, 11:39

Hello,

The ability to add the stop loss and take profit as well as slippage for market orders will be available in the next release. You may look at the description for the time being on how you can implement it here:

/forum/whats-new/labels-and-a-new-method-to-create-orders


@admin

softmare
14 Feb 2013, 11:30

Hello,

With this solution above I have:

the type or namespace "MarketOrderRequest" could not be found....

I need to add using some namespace and add reference .dll or ?


@softmare

admin
14 Feb 2013, 11:53

This will be included in the next release. 

The namespace is cAlgo.API.Requests


@admin