Replies: 1 comment 1 reply
-
Your One of the examples features tr = data.High - data.Low
one_atr_in_pct = (tr / data.Close).mean()
def to_atr(pct):
assert 0 < pct < 1, pct
return pct / one_atr_in_pct
# >>> to_atr(.20)
# 12.214876329014 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry for being daft but Im not tracking this in the documentation.
How do I set a trailing 80% stop loss when I initiate a trade? See the bold italics line below.
Really appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions