Settting a Sell Signal after x days if preferred signal not triggerd

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

What have you tried?

See Apply Stop.

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.