Module barter::statistic

source ·
Expand description

Defines various iterative statistical methods that can be used to calculate trading performance metrics in one-pass. A trading performance summary implementation has been provided containing several key metrics such as Sharpe Ratio, Calmar Ratio, and Max Drawdown.

Modules

Functions

Deserialize a number representing seconds into a Duration
Serialize a Duration into a u64 representing the associated seconds.