alexgrover

Smart Envelope - Running Away From The Trend

Introduction

Envelopes indicators consist in displaying one upper and one lower extremity on the price chart. They are most of the time built by adding/subtracting a volatility estimator (rolling stdev, atr, range...etc) to a central tendency estimator ( SMA , EMA , LSMA ...etc). Their interpretation is often subject to debate amongst technical analyst, some will use a support and resistance methodology, where price will start a downtrend once it cross the upper extremity, and a down trend once it cross the lower one. Others will prefer a breakout methodology, where price will reach higher highs once it cross the upper extremity, and lower lows when it cross the lower one. Because of price non stationarity its hard to select the best methodology, the support and resistance one will mostly work on ranging markets, while the breakout methodology mostly work on trending ones.

Therefore new methods where proposed, instead of using moving averages with a high lag, faster filters where used, such as the least squares moving average or zero lag exponential moving average , other band indicators where also created using adaptive filters, but improvements remain relatively low. The most difficult task would be to make extremities with the ability to return accurate support and resistances levels, and today i want to provide a new way to construct such extremities by using the recursive bands framework that allow extremely creative and efficient indicators.

The Main Idea

With classical bands indicators, the upper and lower extremity will still be correlated with the main trend, the problem behind such method is that we can't use a support and resistance methodology with trending markets, the fact that reversals exist tells us that our extremities will always be crossed by the main trend, here is an example :


Here the support is correlated with the main trend, in order for it to be accurate we must assume the trend will go on for ever, and will only detect higher lows, this is what we expect with the orange line, but we can see that a severe down trend totally destroy our plan.

In short we need to give some headroom to our extremities, and thus one extremity can't be correlated with the main trend.

The proposed Indicator


We want to minimize the correlation between the extremities, so if the upper extremity rise, the lower one must fall. This allow to give some headroom and allow the user to anticipate larger movements, this is how bands seeking to give support and resistances points should work.

The indicator has a length setting that control the wideness of the extremities, unlike other indicators low values such as 14 can still create really wide bands, take that into account.


length = 5. Lower length values allow for more motion from the extremities, but does not necessarily involve detecting shorter terms support and resistances levels. The factor setting is not that important, but it allow to return extremities with more motion when high, and really wide bands when below 1 and greater than 0.

Central Tendency Estimator

Something fun with the recursive band framework is that the bands are no longer based on the central tendency estimator but its the central tendency estimator who is based on the bands. The central tendency estimator can also provide support and resistances points with the price, like classical moving averages, altho its lack of motion is this time a downside.


Conclusion

Altho the extremities are more accurate than other band indicators, the problem remain the same, larger trend will always break the extremities and continue creating higher/lower highs/lows, at this point our stop loss would certainly be triggered. This is a huge downsides of contrarian strategy, we sure might anticipate reversals earlier, but we are exposed to larger price movements, therefore the risk is extreme.

But the proposed methodology might still prove useful to develop more robust support and resistances levels based on envelopes indicators.

Thanks for reading !



Remover dos scripts favoritos Adicionar aos scripts favoritos
You can check my indicator papers here : https://figshare.com/authors/Alex_Pierrefeu/7339466
As usual, I truly enjoy your envelope work and find it helpful, thanks.

As noted previously, I think you are one of the very few people who could develop a superior atr stop.
Something to consider in your "spare" time ;-)

Again thanks for all you have done.
+2 Resposta
@Old_tom, I'll indeed consider it, thanks a lot for your comment and support :)
Resposta
Really liking this envelope series you've been releasing. thanks bro!
+1 Resposta
@wroclai, Thx mate, well more envelopes are coming up, next one will be the famous recursive band indicator, with a full explanation about its construction and possible uses cases, i couldn't possibly leave the envelope series without mentioning it :)
Resposta
Hi Alex,

Thanks for sharing another Masterpiece!!!!!!!! It is amazing!!!!!!
+1 Resposta
alexgrover sudhir.mehta
@sudhir.mehta, And thank you a lot of your continuous support :D
Resposta
how do you do so much with so little code! Great work again!
+2 Resposta
alexgrover Junglistt
@Junglistt, Thx for your support, interesting results often involve simple pieces of code, imagination is the only thing necessary :)
Resposta
thanks for your work
+2 Resposta
alexgrover whoostyle
@whoostyle, And thank you for your support :)
Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de criptomoedas Calendário econômico Shows Como Funciona Recursos gráficos Preços Regras da Casa Moderadores Soluções para sites e corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Central de Ajuda Indique um amigo Solicitação de recurso Blog & Notícias FAQ Wiki Twitter
Perfil Configurações de perfil Conta e cobrança Indique um amigo Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar