Hi there, I am not very sure what you are achieving here, but the correct usage of 'msum' function is that the 'window' parameter can only take either a positive integer or a type of 'duration': https://www.dolphindb.com/help/FunctionsandCommands/FunctionReferences/d/duration.html
You can also resort to the link below for more examples of 'msum' function.
https://www.dolphindb.com/help/FunctionsandCommands/FunctionReferences/m/msum.html
Let me know if that helps.