Hi.
I would like to buid a backtest system that closes the operation after 5 days, independently of the closing value. Is it possible? If yes, them can you share with me an example or the function ?
Best regards
As of now it is not possible. You can define conditions based on relation between 2 data-series.
But, there were similar query asked by other users as well.
I will think about it and will let you know if I make changes related to it.
Thanks for letting me know your requirement.
In new beta update (https://stockalyze.com/download/beta.html) you can now also close positions when either target is achieved, or after fixed amount of time, apart from already existing stop loss and stop drawdown. I have attached image of new backtest dialog. Please give it a try.