Stockalyze

STOCKALYZE => Feature & Enhancement Requests => Topic started by: Nortom on October 28, 2019, 05:32:09 PM

Title: Close position after X number of days
Post by: Nortom on October 28, 2019, 05:32:09 PM
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
Title: Re: Close position after X number of days
Post by: Sacha on October 30, 2019, 03:26:40 AM
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.
Title: Re: Close position after X number of days
Post by: Sacha on November 13, 2019, 07:19:30 PM
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.