However, we should pay attention to the issue of fund dividends. If dividend reinvestment is set, this algorithm is also correct, and there is no need to consider the dividend fund share; If cash dividends are set, it depends on how much dividends are left in your account during this period, that is, the extra cash balance. With this money, you can wash back some losses.