Created
September 4, 2019 12:14
-
-
Save mementum/23721e4b865a023e551bdc2b2535ac15 to your computer and use it in GitHub Desktop.
Ported Pinescript-Backtrader Wrong
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
def __init__(self): | |
self.donchian = DonchianChannels() | |
def next(self): | |
if self.data[0] > self.donchian.dch[-1]: | |
self.sell() | |
elif self.data[0] < self.donchian.dcl[-1]: | |
self.buy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment