Skip to content

Documentation of crossover #386

Closed
Closed
@prRZ5F4LXZ

Description

@prRZ5F4LXZ

This is about the documentation of crossover.

https://kernc.github.io/backtesting.py/doc/backtesting/lib.html#backtesting.lib.crossover

It just says Return True if series1 just crossed over series2. Does it mean series1 crosses series2 from below or from above?

https://www.investopedia.com/terms/c/crossover.asp

Investopedia says the following.

The crossover is a point on the trading chart in which a security's price and a technical indicator line intersect, or when two indicators themselves cross.

It does not mention whether it is crossing from above or from below. So I'd assume crossover means from below and above.

https://github.com/kernc/backtesting.py

But the example on the README seems to mean crossover is from below. If this is the case, should the function crossover() be renamed to crossoverfrombelow()?

Expected Behavior

NA

Actual Behavior

NA

Steps to Reproduce

NA

Additional info

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a bug, but a FAQ entry

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions