I need some help with the below.
My main system frequency is 15-minutes and I need to simulate placing of Stop Loss orders for any opened position to have a validity of DAY using Paper broker. I tried the below two ways which did not work:
1. Set positionSettings.OpenOrder.GoodTillCanceled = false
when opening the position for which this Stop Loss order is set.
2. Try to cancel the open Stop Loss order for the Open Position on the next day Market Opening in the first tick itself, through Symbol NewTick
event. In this case, if the Price breaks through, the Stop Loss order gets triggered even before it is cancelled. So, this too did not work.
Any suggestions on how to make this work will be highly appreciated.