decimal palces

Created at 06 Mar 2013, 02:31
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!
RC

rcc25

Joined 04.01.2013

decimal palces
06 Mar 2013, 02:31


Hi

how can i set up fractional TP or SL   for example  2.3  is it possible?

 


@rcc25
Replies

cAlgo_Fanatic
06 Mar 2013, 12:57

It is not possible to do this right now by creating an order manually but you may do so in a Robot:

        protected override void OnStart()
        {
        	Request request = new MarketOrderRequest(TradeType.Buy, 1000);
        	Trade.Send(request);            

        }
        protected override void  OnPositionOpened(Position openedPosition)
        {
            double? stopLoss = Symbol.Ask - 2.3*Symbol.PipSize;
            Trade.ModifyPosition(openedPosition, stopLoss, null);
        }

 

Please see some examples for Robot development:
stoploss
requests
Trade
Create Orders

as well as the Sample Robots that are included in cAlgo.

 


@cAlgo_Fanatic