Skip to content

SQN calculation not using expectancy? #558

Open
@souresia

Description

@souresia

Hi,

It's good to see the stats include SQN. According to https://evilspeculator.com/tools-section/concepts/:

SQN = root(n) * expectancy / stdev(R)

but I suspect it's not correctly calculated:

s.loc['SQN'] = np.sqrt(n_trades) * pl.mean() / (pl.std() or np.nan)

as it's not using the result of expectancy:

s.loc['Expectancy [%]'] = returns.mean() * 100

Unless I am missing something?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions