Created
June 26, 2020 08:54
-
-
Save saleh-old/dee6f2e583f2fa6090e35881cca0271b 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
# get the ATR indicator value for current candle | |
atr = ta.atr(self.candles) | |
# enter at current price with a market order | |
entry = self.price | |
stop = entry - (atr * 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment