79544709

Date: 2025-03-30 14:19:04
Score: 1
Natty:
Report link

I find a more appropriate way to write rolling volatility, mainly utilizing the sliding window mstd function to achieve it.

select ts_code,trade_date,mstd(pct_change/100,21) as mvol 
from t 
context by ts_code
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Wale