Created
February 16, 2021 10:54
-
-
Save dharma6872/40cab8f7edf95a3573aa0403b9e8b7d2 to your computer and use it in GitHub Desktop.
[백테스터 템플릿] #퀀트
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import backtrader as bt | |
class MyStrategy(bt.Strategy): | |
def next(self): | |
pass #Do something | |
#Instantiate Cerebro engine | |
cerebro = bt.Cerebro() | |
#Add strategy to Cerebro | |
cerebro.addstrategy(MyStrategy) | |
#Run Cerebro Engine | |
cerebro.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment