Profile Picture

How to simulate Stop Loss orders to have validity as DAY with Paper broker for an opened Position?

Posted By Ishwar Last Year

How to simulate Stop Loss orders to have validity as DAY with Paper...

Message
Posted Thursday December 01 2016
Hi,
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.
Thank you,
Ishwar.




Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems