Skip to content

What is the format of dict in pybacktest.Backtest #25

Description

@fightthepower

Hey thank you for this simple backtester I want to do a backtest for a multiple indicator strategy

Eg:
Buy: Short_ SMA > Long_SMA & RSI < 20 & Short_EMA > Long_EMA
Sell: Short_ SMA < Long_SMA & RSI > 80 & Short_EMA < Long_EMA

I have gone through the example code and I have a confusion in here bt = pybacktest.Backtest(locals(), 'ma_cross'). Instead of using locals() I want to use my own custom dict. What format as well as values should I use in this dict?

Thank you for your help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions