Skip to content

Performance


Drawdown

This indicator traces the peak-to-trough decline over a specific period. Commonly quoted as the percentage between the peak and the subsequent trough.

Sources

Parameters:

Name Type Description Default
close Series

close Series.

required
offset int

Post shift. Default: 0

None

Other Parameters:

Name Type Description
fillna value

pd.DataFrame.fillna(value)

Returns:

Type Description
DataFrame

3 columns




Log Return

Calculates the logarithmic return.

Sources

Parameters:

Name Type Description Default
close Series

close Series

required
length int

The period. Default: 20

None
cumulative bool

If True, returns the cumulative returns. Default: False

None
offset int

Post shift. Default: 0

None

Other Parameters:

Name Type Description
fillna value

pd.DataFrame.fillna(value)

Returns:

Type Description
Series

1 column




Percent Return

Calculates the percent return.

Sources

Parameters:

Name Type Description Default
close Series

close Series

required
length int

The period. Default: 1

None
cumulative bool

If True, returns the cumulative returns. Default: False

None
offset int

Post shift. Default: 0

None

Other Parameters:

Name Type Description
fillna value

pd.DataFrame.fillna(value)

Returns:

Type Description
Series

1 column


NOTICE

Thanks to all those that have sponsored and dontated to the library in the past! Your support has been greatly appreciated! 🙏

However, future releases are on definite hold until 100+ donations of $150+ have been received via Buy Me a Coffee.

Help keep this library and application the best in it's class!


"Buy Me A Coffee"

ko-fi