Page 1 of 1

How to specify an exit when takeover happens

Posted: Tue Jul 10, 2018 8:21 pm
by blinkybill
I am having trouble with this situation....

For backtesting purposes, how do I code for the situation when a holding is taken over and the data for that stock just ends before the test end date?

I think I am missing something obvious..but at present the system just stays stuck in the position.

Thanks

Re: How to specify an exit when takeover happens

Posted: Wed Jul 11, 2018 4:51 pm
by blinkybill
actually to be more specific, I am using the order generation and trading forward based on the system....however one of the stocks was taken over and the data ends...….I can get the system to generate an exit order, but the system does not actually execute the exit order I presume because there is no data on the day it actually exits (being the day after the data ends). Is there a workaround for this issue or am I missing something simple? I am not using broker positions option...……..

Re: How to specify an exit when takeover happens

Posted: Thu Jul 12, 2018 11:53 am
by Tim Arnold
In the current version of Trading Blox, if you set the stock to Inactive in the stock dictionary, it will exit on the last bar of data and not show up on the order report.

Re: How to specify an exit when takeover happens

Posted: Thu Jul 12, 2018 3:32 pm
by blinkybill
brilliant!
now why didn't I think of that.....

thank you Tim

Re: How to specify an exit when takeover happens

Posted: Thu Jul 12, 2018 7:50 pm
by Roger Rines
Tim Arnold wrote: Thu Jul 12, 2018 11:53 am In the current version of Trading Blox, if you set the stock to Inactive in the stock dictionary, it will exit on the last bar of data and not show up on the order report.
I wasn't aware of this ability. Can you add some detail to: "and not show up on the order report." Does this mean the "F7" Position and Orders Report will not show the "position being terminated" in the order section of the report?

If so, is there any other effect to its involvement in the test?