sqn

qf_lib.common.utils.returns.sqn.sqn(returns: QFSeries)[source]

Calculates the SQN = mean return of trade / std(returns of trades). The returns passed to the function may wither be defined as percentage PnL of trades or as r_multiply = percentage PnL / risk.