Last active
June 20, 2025 13:12
-
-
Save quantra-go-algo/ad4aff10b2000765dbdee78784e6a688 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Initialization of strategy | |
def __init__(self): | |
self.ma = bt.indicators.SimpleMovingAverage(self.data.close, period=100) # 100-day moving average | |
self.order = None # Used to track pending orders |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment