I searched and searched and figured this would be an easy thing to code. Not so.
I am backtesting a strategy and I am very happy with the results. My buy and sell signals fire appropriately. However, I do see that sometimes it appears I would be holding a trade for up to 25 days. I would like to put in a rule to set a sell signal if X days have passed since the buy signal. I have tried many things and none seem to work.
Thanks in advance