Strategy code
Paste a backtesting.py strategy: a class that inherits from Strategy with init() and next(). It runs on the instrument, timeframe and duration chosen on the left. A full script works too; its own bt.run() and bt.plot() calls are skipped.
Ctrl/⌘ + Enter also runs. Your code is saved in this browser.