pybacktest icon indicating copy to clipboard operation
pybacktest copied to clipboard

What is the format of dict in pybacktest.Backtest

Open fightthepower opened this issue 6 years ago • 0 comments

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

fightthepower avatar Oct 02 '19 06:10 fightthepower