I have some plugins (I wrote by myself) if you are with IB.
those plugins can let you set up your position size or capital per trade, and the trade number limit per session. thus you can not cross the line or break your rule, after your setup, those rules can not changed until next trading session, if you do not do anything next trading session will keep the same rules for you.
the mimum rule enformancement time is 24hrs, i.e., after you setup, in the current session you have no way to change it . you can change the enforement time to 48hrs, or whtever greater than 24hrs (increased in days, not hrs)
just if you are willing to pay a premium