- ago
Does WealthLab support cover and bracket orders?
https://groww.in/p/difference-between-bracket-and-cover-order

If yes, Do I need to add any special logic in my C# coded BrokerAdapter?
0
288
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
Based on what I understood from the documentation

Cover and Bracket orders can be implemented using AutoProfitTargetPrice and AutoStopLossPrice.

Setting AutoStopLossPrice alone will make WL place a new stop loss order as soon as the original Transaction gets filled - which is equivalent to a Cover Order

Setting both AutoProfitTargetPrice and AutoStopLossPrice will make WL create an OCO pair with te target and stop-loss orders simultaneously as soon as the original transaction gets filled - which is equivalent to a bracket order.

Is this correct?
0
Cone8
 ( 6.32% )
- ago
#2
QUOTE:
Do I need to add any special logic in my C# coded BrokerAdapter?
.Yes and no. For a native broker OCO, you need to implement PlaceOcoTradePair() in your broker adapter. The strategy should also assign the same number to Backtester.CancelationCode before calling the exit signals (block strategies do this). If you don't implement PlaceOcoTradePair(), assigning CancelationCode will give you "WealthLab OCO" functionality when one of the orders is filled anyway.

AutoProfitTargetPrice and AutoStopLossPrice are special properties used for same-bar exits, as you described. But you need to follow up with stop and limit signals in your exit logic to keep the orders active.
1
Best Answer

Reply

Bookmark

Sort