☰
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
11.9K
All Categories
85
Node JS client
30
Go client
685
.Net API client
330
Kite Publisher
523
.Net / VBA / Excel (3rd party)
393
Algorithms and Strategies
891
Java client
902
API clients
383
PHP client
3.3K
Python client
310
Mobile and Desktop apps
1.2K
Market data (WebSockets)
2.9K
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.