Inconsistency between New Market Order Requests and Stop Order Requests

Created at 01 Mar 2013, 17:50
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!
lec0456's avatar

lec0456

Joined 14.11.2012

Inconsistency between New Market Order Requests and Stop Order Requests
01 Mar 2013, 17:50


I noticed that with Market orders you use Stoplosspips and Takeprofitpips, but for Stop/Limit Order you use TakeProfit and StopLoss prices. 

MarketOrderRequest(sell, 10000)

           {TakeProfitPips = 10};

Trade.Send(request);

LimitOrderRequest(sell, 10000, price)

                  {TakeProfit = price-20*Symbol.PipSize};

Trade.Send(request);

Why not be consistent use prices or pips not mix and match!

 


@lec0456
Replies

cAlgo_Development
01 Mar 2013, 18:25

Thank you for suggestion. We plan to implement this ability soon.


@cAlgo_Development

cAlgo_Development
26 Jun 2013, 12:42

The properties are implemented and released in the latest version:

var request = new StopOrderRequest(TradeType.Buy, Volume, TargetPrice)
{
   Label = "6781",
   StopLossPips = 20,
   TakeProfitPips = 10,
};
Trade.Send(request);




@cAlgo_Development