@sauce
as i said before i would make the check before opening a position and if you have reached the limit dont open it and send a message mail alert whatever, so you can enter the trade if you want manually or just stay away.
would look like this
once a day / at a specific time = store balance/equity to variable
calc stop level and store it to a variable
before opening a new trade check if current balance/equity is higher than or euqal stop level if yes open trade if no alert,message, or simply nothing
