Set the future trailing stop-loss as some multiple (`n_atr`) average true bar ranges away from the current price.
(self, n_atr: float = 6)
| 474 | self.__atr = atr |
| 475 | |
| 476 | def set_trailing_sl(self, n_atr: float = 6): |
| 477 | """ |
| 478 | Set the future trailing stop-loss as some multiple (`n_atr`) |
| 479 | average true bar ranges away from the current price. |
| 480 | """ |
| 481 | self.__n_atr = n_atr |
| 482 | |
| 483 | def set_trailing_pct(self, pct: float = .05): |
| 484 | """ |
no outgoing calls