Hi there, I'm pretty new to coding so forgive me if this is a stupid question. I'm trying to issue a sell order a set amount of time after the security has been purchased but I can't seem to figure out how to make this happen. I tried the 'Scheduled Events' route but I don't think its what I'm looking for since my buy orders are set based on specific criteria which might not be periodic. And when I backtested my algo the holding periods weren't as expected, often considerably less than the timespan of the event schedule.

Any help would be greatly appreciated.

Thanks  in advance,

Dan