decimal palces
06 Mar 2013, 02:31
Hi
how can i set up fractional TP or SL for example 2.3 is it possible?
decimal palces
06 Mar 2013, 02:31
Hi
how can i set up fractional TP or SL for example 2.3 is it possible?
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