Author Topic: Close position after X number of days  (Read 409 times)

Nortom

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Close position after X number of days
« on: October 28, 2019, 09: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

Sacha

  • Administrator
  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Stockalyze: Analyze Stocks freely and affordably.
Re: Close position after X number of days
« Reply #1 on: October 30, 2019, 07: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.
Stockalyze Support
Let's be friends

Sacha

  • Administrator
  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Stockalyze: Analyze Stocks freely and affordably.
Re: Close position after X number of days
« Reply #2 on: November 14, 2019, 12:19:30 AM »
In new beta update 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.
Stockalyze Support
Let's be friends