About weight reallocation frequency

During the backtesting, how often does the reallocation which is based on the weight we provide happen. Does the portfolio reallocate everyday, every week or some other frequency?

I think the reallocation frequency is dependent purely on the output of your payout function. The output of the payout should be a dataframe or xts with all the stocks as columns, and dates as rows. If your output has 2 dates with weights associated to corresponding stocks, it will reallocate 2 times.

Surya is correct here, the output of your payout function defines the rebalancing frequency. You get full flexibility to do whatever frequency you want.

Thanks a lot Surya and Herve!