☰
Login
Signup
Home
›
.Net API client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
November 2019
sujith
Update Bracket Order TrailingStoploss
infotrade
November 2019
in
.Net API client
Hi,
How can we update TrailingStoploss for bracket order? We can be setting TrailingStoploss as point in price while placing order but i can't find that attribute while updating Open BO order. It has only TriggerPrice.
I am using this code:
decimal tS = Decimal.Multiply(OrderData.AveragePrice, decimal.Divide(trailingStoplossPercent, 100));
tS = Utility.AdjustDecimal(tS);
writeLog(logFile, "Order Update for: " + childOrder.OrderId + ": " + childOrder.Tradingsymbol + ": " + tP);
kite.ModifyOrder(childOrder.OrderId, childOrder.ParentOrderId, childOrder.Exchange, childOrder.Tradingsymbol, childOrder.TransactionType, childOrder.Quantity.ToString(), childOrder.Price, childOrder.Product, childOrder.OrderType, childOrder.Validity, childOrder.DisclosedQuantity,
tS
, childOrder.Variety);
sujith
November 2019
One can't modify trailing stop-loss for a bracket order.
Sign In
or
Register
to comment.