get_total_returns_nb
| Name | Type | Default | Description |
|---|---|---|---|
close | tp.Array2d | -- | Array of close prices. |
sim_out | SimulationOutputT | -- | Simulation output containing order records. |
| Type | Description |
|---|---|
float | Total returns. |
get_expectancy_nb
| Name | Type | Default | Description |
|---|---|---|---|
close | tp.Array2d | -- | Array of close prices. |
sim_out | SimulationOutputT | -- | Simulation output containing order records. |
| Type | Description |
|---|---|
float | Expectancy. |
get_sharpe_nb
Note on
ddof:- Use
ddof=0for population variance, where you have data for the entire population. - Use
ddof=1for sample variance, to correct for bias when estimating the variance of a population from a sample.
| Name | Type | Default | Description |
|---|---|---|---|
close | tp.Array2d | -- | Array of close prices. |
sim_out | tp.NamedTuple | -- | Simulation output containing returns. |
ann_factor | int | -- | Annualization factor. |
| Type | Description |
|---|---|
float | Sharpe ratio. |

