Your method of adjusting bets based on current performance (+/- PnL) is a dynamic approach that helps manage your risk actively. After a loss, reducing the nominal amount of your next bet (using the remaining bankroll to calculate the 20% bet size) is a sound way to limit further losses.