Skip to content

Commit

Permalink
added blank line to fix lint issue kernc#223
Browse files Browse the repository at this point in the history
  • Loading branch information
zlpatel authored Jun 13, 2021
1 parent 3ef557a commit 898969c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backtesting/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ def next(self):
trade.sl = min(trade.sl or np.inf,
self.data.Close[index] + self.__atr[index] * self.__n_atr)


class PercentageTrailingStrategy(Strategy):
"""
A strategy with automatic trailing stop-loss, trailing the current
Expand Down

0 comments on commit 898969c

Please sign in to comment.