☰
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.8K
All Categories
0
Incidents
152
Node JS client
39
Go client
791
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
992
Java client
1.1K
API clients
402
PHP client
4K
Python client
346
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.