Oh I just added that to show you how you could use Debug/Logs in a Risk Model. You can actually pass any string as argument, i.e.:
algorithm.Log(f'Risk model triggered for {kvp.Key.Value} with unrealized PnL {pnl*100:.2f}%.')
to more clearly see what's happening. For more info, see this.
With that modification, the logs show:
2020-07-14 00:00:00 Launching analysis for 20cc2eb2730d07c53c9d45784873b379 with LEAN Engine v2.4.0.0.8789
2020-07-14 09:33:52 Risk model triggered for VXRT at unrealized PnL 10%. Liquidating...
2020-07-14 09:38:15 Risk model triggered for VXRT at unrealized PnL 11%. Liquidating...
2020-07-16 00:00:00 Algorithm Id:(20cc2eb2730d07c53c9d45784873b379) completed in 161.49 seconds at 58k data points per second. Processing total of 9,368,323 data points.
so it seems that the risk model is working as intended. If the algorithm's behavior isn't what you expected, keep in mind that any active insights even after liquidation can cause re-orders, see this recent discussion here.
Not quite sure I fully understand the strategy's logic, but if you can describe the specific behavior you are expecting from the risk model I can take a look later.