Single-value moving average utilities.
McGinley Dynamic (single step or full-window last value semantics per Rust implementation).
Latest price.
Previous McGinley (0.0 if none).
Period length (> 0).
McGinley value.
If period == 0.
Moving Average over the full window with the selected type.
Prices.
Moving average type (Simple, Smoothed, Exponential).
Average value.
If prices is empty.
Single-value moving average utilities.