peacerider
peacerider
Is this discussion helpful? https://github.com/kernc/backtesting.py/discussions/255
Hello, here is one of example. (I am beginner of backtesting.py.) ``` from backtesting import Backtest, Strategy from backtesting.lib import crossover from backtesting.test import SMA, GOOG class SmaCross(Strategy): n1 =...
Example you can change "condition" as you like. "condition" is needed to be sequence (Series etc). ``` from backtesting import Backtest, Strategy from backtesting.lib import crossover from backtesting.test import SMA,...