I use the following definition, with default parameters: Stop = Close - ATR(40) * multiple
1 | atr_stoploss(data, ticker, n_days = 40, atr_multiple = 1.5)
|
data |
List of price data xts objects |
ticker |
Ticker |
n_days |
Number of periods for the moving average |
atr_multiple |
times I multiply the ATR to substract it from the current close price |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.