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?
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?
Rename
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?
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?
QUOTE:.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.
Do I need to add any special logic in my C# coded BrokerAdapter?
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.
Your Response
Post
Edit Post
Login is required