Moving Average Displaced Envelope Strategy Moving Average Displaced Envelope. These envelopes are calculated
by multiplying percentage factors with their displaced expotential
moving average (EMA) core.
How To Trade Using:
Adjust the envelopes percentage factors to control the quantity and
quality of the signals. If a previous high goes above the envelope
a sell signal is generated. Conversely, if the previous low goes below
the envelope a buy signal is given.
WARNING:
- For purpose educate only
- This script to change bars colors.
Envelope (ENV)
Moving Average Displaced Envelope Moving Average Displaced Envelope. These envelopes are calculated
by multiplying percentage factors with their displaced expotential
moving average (EMA) core.
How To Trade Using:
Adjust the envelopes percentage factors to control the quantity and
quality of the signals. If a previous high goes above the envelope
a sell signal is generated. Conversely, if the previous low goes below
the envelope a buy signal is given.
Channel ATR1 - What is the Channel ATR indicator
This is an envelope indicator (like the Bollinger bands indicator) used to evaluate how much the price diverge from it's moving average.
This indicator can be used as a system on it's own. I recommend to use it when the market goes side way, although, you can also use it when the market is trending.
What makes this indicator so relevant and reliable ? The use of the ATR to build the envelope. Read below if you wan to know more.
2 - How is the Channel ATR computed
The main component is an EMA. The envelope is made of 3 layers, each is the Average True Range, plot at a multiple distance from the EMA (1*EMA, 2*EMA, 3*EMA) . If you don't know what is the ATR, it's basically a measure of the volatility (you can read more about it here ).
Each layer of the envelope is a multiple of the measure of the volatility. Let's see how to use it.
3 - How to use the Channel ATR indicator
You can use this indicator in different strategies :
- Return to the mean: When the price goes out of the envelope, it's an excess of the market. You can take advantage of this by betting to a return to the EMA value.
- Trend following : If the market is tending, you can buy/sell when the price touch the EMA and place a target at another level in the envelope.
- Stop loss: Since each envelope layer is built from the ATR (i.e. the volatility), you can use it to place your stop at least at 1 ATR from your entry, to not be hit by the market noise.
- Find your own way : The Channel ATR is a very rich and powerful indicator, you can try to built your own trading system on the top of it.
[HM] VWAP Envelope dinamic intraday v1- VWAP, volume weighted average price;
- Plus Envelope bands:
1) Dinamic, adjusted by volatility:
- - - daily ATR or
- - - daily Standard Deviation
2) or simple fixed % increments bands, defined by user.
# Intraday timeframe only.
# If volume data is absent, the indicator will not work at all.
Hope this could help the community.
Bitcoin Margin Call Envelopes [saraphig & alexgrover]Bitcoin is the most well known digital currency, and allow two parties to make a transaction without the need of a central entity, this is why cryptocurrencies are said to be decentralized, there is no central unit in the transaction network, this can be achieved thanks to cryptography. Bitcoin is also the most traded cryptocurrency and has the largest market capitalization, this make it one of the most liquid cryptocurrency.
There has been tons of academic research studying the profitability of Bitcoin as well as its role as a safe heaven asset, with all giving mixed conclusions, some says that Bitcoin is to risky to be considered as an hedging instrument while others highlight similarities between Bitcoin and gold thus showing evidence on the usefulness of Bitcoin acting as an hedging instrument. Yet Bitcoin seems to attract more short term speculative investors rather than other ones that would use Bitcoin as an hedging instrument.
Once introduced, cryptocurrencies where of course heavily analyzed by technical analyst, and technical indicators where used by retail as well as institutional investors in order to forecast the future trends of bitcoin. I never really liked the idea of designing indicators that specifically worked for only one type of market and ever less on only one symbol. Yet the user @saraphig posted in Feb 20 an indicator called " Margin Call MovingAverage " who calculate liquidation price by using a volume weighted moving average. It took my attention and we decided to work together on a relatively more complete version that would include resistances levels.
I believe the proposed indicator might result useful to some users, the code also show a way to restrict the use of an indicator to only one symbol (line 9 to 16).
The Indicator
The indicator only work on BTCUSD, if you use another symbol you should see the following message:
The indicator plot 6 extremities, with 3 upper (resistance) extremities and 3 lower (support) extremities, each one based on the isolated margin mode liquidation price formula:
UPlp = MA/Leverage × (Leverage+1-(Leverage*0.005))
for upper extremities and:
DNlp = MA × Leverage/(Leverage+1-(Leverage*0.005))
for lower extremities.
Length control the period of the moving averages, with higher values of length increasing the probability of the price crossing an extremity. The Leverage's settings control how far away their associated extremities are from the price, with lower values of Leverage making the extremity farther away from the price, Leverage 3 control Up3 and Dn3, Leverage 2 control Up2 and Dn2, Leverage 1 control Up1 and Dn1, @saraphig recommend values for Leverage of either : 25, 20, 15, 10 ,5.
You can select 3 different types of moving average, the default moving average is the volume weighted moving average (VWMA), you can also choose a simple moving average (SMA) and the Kaufman adaptive moving average (KAMA).
Based on my understanding (which could be wrong) the original indicator aim to highlight points where margin calls might have occurred, hence the name of the indicator.
If you want a more "DSP" like description then i would say that each extremity represent a low-pass filter with a passband greater than 1 for upper extremities and lower than 1 for lower extremities, unlike bands indicators made by adding/subtracting a volatility indicator from another moving average this allow to conserve the original shape of the moving average, the downside of it being the inability to show properly on different scales.
here length = 200, on a 1h tf, each extremities are able to detect short-terms tops and bottoms. The extremity become wider when using lower time-frames.
You would then need to increase the Leverages settings, i recommend a time frame of 1h.
Conclusion
I'am not comfortable enough to make a conclusion, as i don't know the indicator that well, however i liked the original indicator posted by @saraphig and was curious about the idea behind it, studying the effect of margin calls on market liquidity as well as making indicators based on it might result a source of inspiration for other traders.
A big thanks to @saraphig who shared a lot of information about the original indicator and allowed me to post this one. I don't exclude working with him/her in the future, i invite you to follow him/her:
www.tradingview.com
Thx for reading and have a nice weekend! :3
Envelop - Multi TypeEnvelop - Multi Type displays an upper envelope above a basis line and a lower envelope below the basis line. The basis line is a type of moving average, The envelopes are set a percentage away from the basis line.
A. Basis Line's Type
1. Gaussian Filter script by Alex Orekhov (everget)
2. SMA
3. EMA
4. TEMA
5. WMA
6. VWMA
7. DONCHIAN
8. Hull MA
9. ALMA
B. Default Percent of Envelop
1. Resolution (Time frame) <= 5: percent = 0.382
2. Resolution (Time frame) <= 15: percent = 0.5
3. Resolution (Time frame) <= 30: percent = 0.618
4. Resolution (Time frame) <= 60 (1H): percent = 0.786
5. Resolution (Time frame) <= 240 (4H): percent = 1.0
6. Resolution (Time frame) <= 1440 (1D): percent = 1.618
7. Resolution (Time frame) >1D: percent = 2.618
C. Custom Percent of Envelop
Default Percent of Envelop auto disable when Custom Percent of Envelop > 0 and the envelopes are set by user defined percentage.
(11) Master Moving Average VS-168Moving Averages have been a staple of technical traders for a lot longer than computers have been available to accomplish the calculations. Luckily today we are able to easily produce very sophisticated, reactive moving averages using multiple algorithms designed by individuals with different backgrounds, talents and skill sets. The Master Moving Average Envelope calculates 9 distinct moving averages and then utilizes a knockout scoring system to produce a single combined score between -10 and +10. When we refer to a knockout scoring system, it simply means that if one of these indicators is positive and one is negative they cancel each other out. The majority of the survivors wins and that calculated total produces the MMAE dot's score and determines the dots location on the MMAE indicator chart.
The envelope refers to the area produced by multiple moving averages of different lengths. When you have a short time frame and a long time frame the two lines will contain between them, the majority of the candles. The area between these two lines is the, "envelope" and it allows us to stay in a trade during a pre-determined amount of volatility. This keeps us in trades when the stock might be experiencing short term counter trend trading action. As these two lines converge as the stocks price changes direction the envelope become smaller and smaller until it disappears briefly as the stock price changes direction. The center line of this indicator indicates a turning point in the price action where the envelope has become very small or nonexistence. Moving average are not reliable indicators as the envelop disappears and a crossover point nears. This indicator is most reliable when the stock price is not near the center demarcation line.
Access this Genie indicator for your Tradingview account, through our web site. (Links Below) This will provide you with additional educational information and reference articles, videos, input and setting options and trading strategies this indicator excels in.
Double EnvelopeDouble Envelope is an indicator that is created using two pairs of moving averages that determine the upper and lower levels of the price range. Envelopes are commonly used to help traders and investors identify extreme overbought and oversold conditions as well as trading ranges.
We advise you to use the indicator on the daily timeframe, it is there that the resolutions that are set by default work best.
Extended Recursive Bands - Maximum Efficiency With Extra OptionsIntroducing A New Calculation For Efficient Bands Calculation !
Here it is ! The Recursive Bands Indicator, an indicator specially created to be extremely efficient, i think you already know that calculation time is extra important in algorithmic trading, and this is the principal motivation for the creation of the proposed indicator. Originally described in my paper "Pierrefeu, Alex (2019): Recursive Bands - A New Indicator For Technical Analysis" , the indicator framework has been widely used in my previous uploaded indicators, however it would have been a shame to not upload it, however user experience being a major concern for me, i decided to add extra options, which explain the term "extended".
On The Indicator Calculation
You can skip this part if it doesn't interest you. The calculation of the indicator is based on recursion, but i want to explain the mathematical formula described in the paper.
I've seen some users trying to remake it from the calculations, however there was always something weird, and i understand, mathematical notations are always a bit weird, even myself don't always write them correctly/understand them, however this one is relatively simple to understand.
First lets explain each elements of the calculation :
α = smoothing constant, or 2/(length+1)
max/min = maximum and minimum function, max return the greatest input value while min return the lowest one, for example :
max(4,2) = 4 while min(4,2) = 2
the "||" notation mean taking the absolute value, for example : |-1| = abs(-1) = 1
The calculation after the max/min function is called the correction factor, and is the core of the indicator. The last two variables are just here to provide an initial value for upper and lower, basically when we start our calculations we will assign the value of the closing price for upper and lower.
The motivation behind using a smoothing constant in range of (0,1) was to tell the reader that the indicator is easily made adaptive, this is what i did on my adaptive trailing stop indicator by using the efficiency ratio as smoothing variable, the user can use 1/length instead of the provided calculation for alpha.
If you interested on the indicator main logic, it is actually really simple, by using upper = max(price,upper) and lower = min(price,lower) we would get the maximum/minimum price value at time t , therefore upper can only be greater or equal than its precedent value, while lower can only be lower or equal than its precedent value, in order to fix that we subtract/sum upper/lower with a value, this allow the upper band to be lower than its precedent value and lower to be greater than its precedent value, this is the role of the correction factor.
The Indicator
The indicator display one upper and one lower band, every common usages applied to bands indicators such as support/resistance, breakout, trailing stop...etc, can also be applied to this one. length control how reactive the bands are, higher values of length will make the bands cross the price less often.
In order to provide more flexibility for the user i added the option to use various methods for the calculation of the indicator, therefore the indicator can use the average true range, standard deviation, average high-low range, and one totally exclusive method specially designed for this indicator.
Classic Method
This option make the indicator use its classical calculation, this is the most efficient method of all.
Atr Method (atr)
This method use the average true range as correction factor, notice that lower values of length can still produce wide band.
Standard Deviation Method (stdev)
This method use a biased estimate of the standard deviation as correction factor.
The method produce smoother bands that converge more slowly toward the price in comparison with the classic correction factor.
Average High-Low Range Method (ahlr)
This method use the average of the high-low range as correction factor, extremely similar to the average true range.
Rising Falling Volatility (rfv) Method
A new method created for this indicator, this correction factor use the absolute prices changes when price value is greater/lower than any length past values of the price, this allow to have more boxy shaped bands, work best with greater values of length.
The bands can be in contact with this method, a possible fix in the future.
Conclusion
The recursive band indicator is one of my greatest indicators in my opinion (i would love to have yours), as you can see the idea behind it is extremely simple and allow for a super efficient band indicator, which was the original motivation behind it, in order to provide more fun for the users i also added more option for the correction factor, this allow the user to be creative and not get stuck with the original calculation.
Like the trend step indicator family we have almost ended our series on the recursive band framework, 1 more trailing stop will be added in the future, and then we'll have more "boring" stuff until i find something cool again, it shouldn't be long ;)
Thanks for reading !
Smart Envelope - Running Away From The TrendIntroduction
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 !
Dynamic Weekly Price Envelope
This is a indicator that I have been developing and personally using for over a year. The basic concept is a dynamic range that is derived from the previous weeks range. The main philosophy followed when designing this indicator was that it should be applicable to all asset classes, and it should provide objective price levels of support and resistance that do not change when price approaches them. This indicator is most useful in range bound price action, but gives a lot of useful information on any market condition at a glance. The indicator also generates a custom vwap that reflects the volume weighted price since the price broke significant levels.
Indicator Description
The indicators most important price levels are the top 3 lines and the bottom 3 lines. These lines are distinguished by their wider line thickness with default settings. These levels act as support and resistance, and the price entering these regions indicates that the asset is overbought or oversold. A setting is available to highlight in red or green when price is overbought or oversold. Here is an example:
This example also demonstrates one of my personal favorite signals, which is when the price reenters the central channel, then retests the overbought/oversold region, as it does in the example, shown by the second set of red arrows.
Timeframes
This indicator reacts dynamically, so the levels will look different on different timeframes. The hourly chart works best from my experience in forex and crypto with default settings, but in general lower timeframes will give a more accurate picture during extreme price action. Note: assets that have shorter sessions generally should use a smaller timeframe. I like to use 15min on stocks, this is similar to the hour chart in crypto or forex. Take this GBPUSD chart for example:
As you can see the price has a very extreme impulse, and all resistances are passed. You can see that the lines still act as support when price falls back into the range, but the indicator is not very useful when price exits the range. The solution for this is to drop down to a lower timeframe that will adjust faster to the extreme price movement.
Here you can see that the range shifts with the price movement, indicating support levels throughout the entire price impulse.
I will also drop down to lower timeframes if I want to utilize the price levels within the channel as support and resistance levels for intraday trading. Here is an example with price level interactions indicated by red and green arrows.
THe most significant levels are still the centerline and the top and bottom three levels, but the inner lines also are nice for intraday support and resistance.
Larger time frames like the daily chart also are useful. Let's take the daily Bitcoin chart as an example:
On larger timeframes,
If price is below the central red line price is trending down, and if price is above central red line, the trend is up
The asset trading outside of the entire range indicates that the trend is very strong, reentry into the channel indicates that price is likely to consolidate.
The outer lines still serve as significant support and resistance.
Settings
I have configured the default settings to perform well for most assets, but I allow the user to change settings as they desire.
Line Color - this setting changes the color of the lines.
Fill Color - this setting changes the fill color used for the indicator
Line Transparency - The transparency of the lines, set to 100 to completely hide all lines
Base Fill Transparency - This setting changes the base transparency for the channel, this transparency will be used for the outermost bands
Transparency Gradient Step - each band will become this amount more transparent as they come closer to the centerline
Adjustment Lag - this adjusts how quickly the channel adjusts when the top and bottom levels are breached. I have always used 100, but using much higher or lower values gives interesting results.
Show Signals - This enables basic swing signals to be shown by red and green triangles. Note that this is only one signal, and the system actually has many signals outside of these triangles. They only indicate optimal entries for a swing trading technique based on the indicator.
Show Oversold/Overbought Price - ticking this box results in the fill color changing to green when price is oversold, and red when the price is overbought.
That about covers all the basics for using this indicator, please reach out with comments or messages if you would like to know anything more. Thanks for reading, and I hope you can use this tool to help your analysis. A monthly version and a refined strategy are in the works and will be published soon.
ENVELOPE BOLLINGER KELTN IMPULSE EMA SMA SAFEZONE SAR CHANDELIERALL THIS ALL IN ONE!
there are many options to check or uncheck to show only the tool that you need at that particular moment.
ENJOY!
ENVELOPE BOLLINGER KELTNER IMPULSE EMA SMA SAFEZONE SAR CHANDELIER
DepthHouse Trading System [Gods Envelope] Backtest StrategyCreated for Bitcoin!
*All testing has been done on the 1 Day time frame of BTC USD pairs.
Use at your own risk.
DepthHouse Trading System Basics
The Cloud:
The cloud is used in a very similar manner as the ichimoku cloud. A complete cross above or below the represents a macro trend change. The cloud then could be used as dynamic support and resistance zones.
By default there is no smoothing to the full cloud. If you wish to add smoothing, you can change the ‘Trend Base On’ option to ‘Modded Cloud Average’ to add price action and smoothing into the cloud’s calculations. The Modded Cloud can then be used in the same manner as the Full Cloud. Generally, the Full Cloud is more forgiving and has less Macro Trend changes. By default, this option is turned off. The support or resistance zone created will be shown on the info panel on the right.
Horizontal Levels:
A Horizonal zone is generated each time there is a micro level trend change. For example, as soon as a positive micro trend change occurs a green horizontal level will be plotted.
These levels then can be used as temporary support and resistance zones. The Horizontal Break Trading Strategy is entirely based on these levels. These levels are also shown on the info panel on the right.
The Envelope Itself: (by default this is off)
By selecting the Overbought and Oversold Ranges option, a cloud envelope will appear around the price action. This envelope represents the overbought and oversold ranges. If the price action should go into these zones, the info panel on the right will show ‘CAUTION’ beside the God Values as this signals that the pair is either overbought or oversold.
The God Values:
The God values are listed on the info panel on the right. These are the values created by the Godmode indicator. Generally, below 20 or above 80 it signals for caution as the price action has overextended itself.
The Back-Test Strategy Options:
⇅ - Child Fomo Positioning:
Child Fomo Positioning strategy is entirely based on the macro trend change with the center cloud. As soon as there is a complete candle close above or below the cloud and a trend change takes place. The back-test places a market order as soon as the next candle opens. By default, it then will not close this position until the price action fully crosses the cloud once again.
⇅ - Horizontal Break Trading:
Horizontal Break Trading Strategy is entirely based on the horizontal levels generated and the macro trend direction. For example, say the Macro Trend is up, and a green, positive horizontal level is formed. As soon as a complete candle closes above the upper level of the positive zone, a limit order is placed in hope that the price action comes back down and retests, filling the order. This long will not close then until a negative level is formed. As soon as a negative level is formed a stop/loss order is placed on the lower level of the horizontal support zone. It will then do the opposite in a bearish trend, and margin trading is turned on.
⇅ - Parent Positions :
Parent Positioning Strategy is based on the overall trend and the center cloud levels. This strategy has limit orders waiting on the level of the cloud that is closest to the price action. Therefore, using this strategy alone, the back-test system waits for the trend to be confirmed, and then follows the price action with limit orders waiting on the cloud to be retested. By default this order does not close until a Marco trend change occurs.
⇅ - Take 50% Partial Profits:
This options allows the back-test to take 50% profit or loss when one of the two options occur.
Horizontal Break: This would close 50% of the position in the same manner it would close a trade using the horizontal break trading system.
God Values: Once the price action enters the oversold or overbought clouds, it would then place a close order as soon as the price action exits the cloud.
⟲ - Backtest Year Start Date :
Start year of the back-testing. If set to ex. 2017, the back-test will not calculate any trades that took place before Jan. 1 of 2017.
⚖ - Margin Trading :
By default, margin trading is turned off. Simply switch this option to on the enable ‘Short Trading’ into the strategy back-test.
Notes: If you are back testing multiple strategies at the same time, you must increase the pyramiding to correspond to the number or strategies.
My Favorite Settings:
Margin = Off
Pyramiding = 2 [Settings → Properties → Pyramiding → 2 orders
Child Fomo Positioning = On
Horizontal Break Trading = On
Everything else off 😊
DISCLAIMER: Past performance does not guarantee future results.
Use at your own risk.
Bands-Trailing Stop UtilityIntroduction
Bands and trailing stops are important indicators in technical analysis, while we could think that both are different they can be in fact closely related, at least in the way they are made. Bands and trailing stops can be made from a simple central tendency estimator, like a moving average, and from a volatility estimator like standard deviation, atr...etc.
This is why i propose this utility that allow you to make bands and trailing stops from any indicator in the price chart.
How To Use
All you have to do is select the indicator you want to make bands from in the settings, so just open the Bands-Trailing Stop Utility indicator settings and select your indicator in "Source". Make sure your source indicator is not in "hide" mode.
For example here i'am using a moving average as source for the indicator. Mult control how spread the bands are from each others, by default mult = 1, if we use mult = 2 we get :
Mult can be non-integer as well as lower than 1 (when lower than 1 the bands would be closer to each others)
Error/Volatility Estimators
You can choose from a wide variety of volatility estimators, select the estimator from the "Method" scrolling parameter in settings, by default the indicator will use the running mean absolute error (MAE) which don't use length. Other estimators use length, making length = to the period of the source indicator can help get better results.
The root moving averaged squared error (RMASE) is just the square root of the simple moving average of the squared difference between the closing price and the source indicator. length control the period of the moving average of RMASE.
You can also use the average true range with period length. It might work better with low lagging moving averages.
The range is simply the difference between the highest and lowest over length periods of the source indicator.
Stdev is simply the price running standard deviation.
Trailing Stop
When the trailing stop mode is checked the bands will be replaced by a trailing stop, the trailing stop will still depend on every settings of the indicator like mult/volatility estimator...etc.
Conclusion
You might find an use to this tool if you want to make bands/trailing stops from pretty much everything. The indicator used as source for the examples is a smooth exponential averager that i could share if i see interest from peoples.
Thanks for reading !
VWAP BandsThis indicator plots distant VWAP lines that serve as support and resistance. You can add more lines from the script.
Good trades!
Envelope MTFthis is a multi time frame envelop indicator.
You can use it on multiple time frames to show the trend from a different time frame perspective
Volume Adaptive BandsIntroduction
I have been asked by @Coppermine and @Verbena to make bands that use volume to provide adaptive results. My first approach was to use exponential averaging, in order to do so i needed to quantify volume movement using rescaling with the objective to make the bands go away from each others when there is low volume, this approach is efficient and can work on any time frame, however i decided at the end to use another method which rely on recursive weighting, cleaner but more parametric. Those bands aim to highlight great breakouts point to go with the trend.
The Indicator
length control the period of the moving averages used in the script, however low length's don't necessarily provide indications for shorter terms breakouts as shown here :
As i said the bands are close to each others when there is high volume and away when there is low volumes.
Low volume period, bands will avoid to cross price
High volume, bands will be close to generate signals.
Correction Factor
Higher time frames will lower the distance between each band, this is because volume is higher during higher time frames, remember that the indicator bands are close to each others when volume is high.
1h chart eurusd.
This is why i added a correction factor, this factor can help you control the distance between each bands, when the correction factor is greater than 1 the bands will be closer to each others, this is useful for low time frames where the average volume is lower. When the time frame is high, use values between 0 and 1 to increase distance between each bands.
Correction factor = 0.2
Conclusion
I presented a new adaptive band indicator that adapt to trading volume by using recursive weighting, volume can be replaced by other indicators but you can have results going nuts, at the end its about experimentation. I hope you will find an use to it, thanks to @Coppermine and @Verbena for the request :)
Thanks for reading !
Envelope Breakout Alerts (Heikin Ashi)This is an experimental strategy designed to identify breakouts on 4h to 3d timeframes.
Use at your own risk, it's still only a proof of concept based off the built-in Envelope indicator. Heikin Ashi smoothing is built in.