Description Usage Arguments Details Value See Also Examples
View source: R/protective_stops.R
This average true range trailing stop was developed by Sylvain Vervoort.
1 |
x |
an xts object that contains OHLC data |
n |
Number of lookback periods for the ATR Stop. Default is 5 |
coef |
ATR coefficient. Default is 3.5 |
Based on this question on stackoverflow and this article by Sylvain Vervoort.
Returns an average true range trailing stop which can be used as a stop loss in a trend following system.
Other protective stops:
chandelier()
,
safezone()
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.