I need some help with a technique that lets me sell exactly after 2 years of holding it. But I didn't find any simple way to do this. I am buying different stocks at different dates. I can sell any of the buys when a conditions are met before the 2 years. Then I need to buy a new one to fill the empty seat. So each stocks will have different buy dates. I need some neat way to store the buy date for each different securities so that if certain conditions never met, I can still sell it after 2 years.
I know I got to add something around code line 191 and after...
Thank you