OPEN-SOURCE SCRIPT

K's Envelopes

Trading is all about finding reactionary levels from where we assume prices will take a certain direction. And from that assumption, we initiate either a long (Buy) position or a short (Sell) position. Many techniques can be used to find support and resistance levels such as pivot points, Fibonacci retracements, and graphical levels. However, these techniques are all static in time, i.e. they do not move with real time data. In contrast, moving averages are dynamic and do a great job at finding support and resistance levels.

The idea of K's Envelopes is to form support and resistance zones so that we find good entry points. It is a combination of two 800-period moving averages where one is applied to the highs and the other applied to the lows, thus forming a moving zone used to support or place a ceiling on the market price.
Bearish PatternsBullish PatternsExponential Moving Average (EMA)Support and ResistanceTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer