Skip to content
Prev 15183 / 15274 Next

Quantstrat: Multiple instruments, pre-generated signals

Ilya,
So if the strategy involves 1000 stocks quantstrat's object would
get 1000 additional columns?
Does this mean, when there are multiple entry signals at the same
day and time and I like to discard some of them (because of
insufficient cash) that I can not do this on a random basis? The idea
would be to add a Monte Carlo simulation at such points, but I'm not
sure how long such a calculation would take.
What do you mean by this?
I just referred to the time stop rule one paragraph above. The exit
should be like a three-leg logical or-rule:

My trades start at EntryDate, EntryTime and exit (at the latest)
with the close of the last bar of ExitDate. But a trade is closed out
earlier, if a take profit or a stop loss is met.

So if at any day during the trade's lifetime a bar at 3:55 PM EST
(or whenever) mets a take profit or a stop loss, the trade should be
closed - even if the last bar of ExitDate is not yet reached.

Thanks
Mike