☰
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
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
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.