Just have your bot check all your positions 1 per hour, every 4 hours, every 15 minutes, or however often you want for any positions open more than 5 days.
//pseudo codeDateTime currentTime = DateTime.Now;foreach (Position p in Positions){ if (p.EntryTime < (currentTime - (5 days)) ) p.Close(); }
sniper_FTX-News_com
17 Aug 2023, 12:58
RE: Close Position Button
firemyst said:
Big Thxs
@sniper_FTX-News_com