Skip to content
Prev 10192 / 15274 Next

quanstrat rule to exit same day close (using daily data)

In quantstrat, if your have a signal on bar t, the rule will be executed 
at bar t+1. In your case, this means that the order will be added for 
the next day.

Use the 'prefer'-argument to specify which of next day's rates (open, 
low, high, close) you want to use.
On 12-05-12 23:45, algotr8der wrote: