RedK Bar Strength Inspector / Bar Strength Index (BSI)Summary
=========
The Bar Strength Inspector / Bar Strength Index (BSI) is an indicator that evaluates each price bar against a user-selectable set of "strength categories" - BSI then calculates a combined score from these categories and provides an index - plotted as a centered oscillator - roughly similar to the way Relative Strength Index (RSI) works, which can be used to evaluate the strength of price move and the possibilities of trend continuation or reversal.
Background
=============
BSI is like a Swiss-army knife with many components - so apologies upfront if this guide gets long - and i know i will still miss few pieces that needs explaining. please alert me if something is not clear.
BSI is an advanced / re-built version of my Ultimate Trader Oscillator (UTO)
I continue to believe that one of the best trading tools that i can use, is a tool that can automate the visual inspection of the price chart - a tool that simulates (and quantifies in numbers/score) the way we visually look at a certain price bar, and make a judgement that "this is a strong bar, so I expect the trend down to possibly reverse" - BSI is a an attempt to achieve that. An attempt to answer a simple question (in a quantifiable manner):
how strong / weak is this price bar - how does it compare to previous bars ? what is the average of that strength (or weakness) for the last few bars ?(based on the trader's preferred timeframe)
How does BSI work
====================
* BSI will inspect and evaluate each bar against various (selectable) strength categories.
* BSI will give a -100/+100 score against each "strength category", then combine these scores into an index and create an average of that index
* the average index (also called BSI) will be calculated for both a short and long lengths
* the short length represents "local / short-term" strength - plotted as a blue/orange line (with an additional signal line to make easier to "read")
* the long-term reflects the broader bias (sentiment) - plotted as green/red area (or mountain)
How is BSI different from UTO
=============================
- I wrote BSI from the ground up to validate each scoring calculation and the resulting outcomes - so i would consider BSI to be more accurate than UTO
- i wrote BSI in a way to make it a lot more flexible. BSI allows me to choose which category to include in the "inspection"
- the strength categories are streamlined to reflect single bar strength, strength from bar-to-bar, and relative strength (range and volume) - they have also been chosen in a way that map to commonly used Technical Analysis concepts, to increase the value of BSI and the ability to compare with other common indicators (for example, BoP, Stochastic, Relative Volume and RSI)
- added the table view - which i use mainly to track the action within the current bar - and to learn more about how to evaluate strength vs weakness with various chart patterns
- UTO still represents the foundation of this work - but i will not update UTO any longer so all changes will be applied to the BSI- i have been using both UTO and BSI to guide my trading for the past few months.
- couple of other features in BSI:
- support for instruments with no volume data (even if the user chooses volume) - number of inspection categories will show as "7" in that case
- ability to plot the individual category scores, and the total weighted score (for the selected categories) - these plots are hidden by default
- ability to see the total score for all 8 (or 7 in case no volume data) categories regardless of how many are active - but only in the table view
- ability to be used as both a lower (independent) and a top indicator (on the price chart) -- see below examples.
Structure of the BSI Strength Categories
=====================================
The first 3 inspected strength categories focus on "single bar strength", they evaluate how the bar closes compared to the low, the Balance of Power (BoP) and the relative BoP
The next 3 categories focus on evaluating the bar-to-bar strength: how the bar closes compared to the low of the 2-bar range, how the bar closes compared to prior close - and the relative "shift"
The last 2 "strength" categories evaluate the relative range of bar compared to recent average range and the relative volume.
Understanding the bar inspection & scoring approach
==================================
During inspection for each category, a score is calculated with a value between 0 to 100, then it will be made "directional" - which means that +100 represents highest possible strength score and a value of -100 is the highest possible "weakness" score
Note that a 0 score doesn't mean "weak" - but rather "neutral" - this can be a bit confusing until we get used to the way BSI scoring works.
Example: in relative volume, a bar associated with the lowest volume observed during the lookback length, will have a 0 relative volume score -- while a bar associated with the highest volume observed will have either a +100 or a -100 score (depending on whether it's an up or down bar) - same thing for relative range.. and so on
Here are the 8 strength categories evaluated by the BSI
1 Bar closing score
2 Body : Spread (BoP) ratio
3 Relative BoP
4 2-bar Closing Score
5 2-bar Shift Ratio (Shift : 2R)
6 Relative Shift
7 Relative Range
8 Relative Volume
Specific meaning of keywords / concepts (within BSI context):
======================================================
Relative : compared to recently observed values (= within Lookback # bars)
Shift : the change in closing value vs prior bar
Bar Spread : high - low
Range : True Range ..... as in the tr() Pine function, so not to be confused with "spread"
More detailed notes about scoring and calculations for each strength category are included within the code
BSI Settings:
=============
Here is a chart showing the main sections in the BSI Settings box and how to configure it to your preference
Using the BSI:
================
- I use BSI for 2 main scenarios
(1) Guiding my Day-to-day trading: the usage here is roughly similar to a volume-weighted dual-period RSI .. with a lot more options - picking and choosing between the 8 strength categories in BSI allows for 255 variations of "strength evaluations" - a trader can choose to focus only on "single bar strength" score categories, so only picks the top 3 in the settings - another trader wants to track only the strength reflected by the relative range and relative volume, so picks the lower 2 categories. another trader wants to use BSI as a volume weighted Balance of Power.. and so on. Many combinations are possible.
i have added couple of charts that explain some of the "signals" we can expect from BSI (below chart) - note that i use the "Green/Red mountain plot" as the "prevailing sentiment" - as it confirms the longer term strength (or weakness). the BSI line plot reflects the short term strength and not necessarily tied directly to how the price is moving (see example in the chart - and also compare to how RSI works)
- 2 important points here if you plan to use BSI in trading: set BSI up on a 1-min or 5-min chart and watch how it works to learn how it evaluates each bar - and always use BSI in combination with other indicators that you are familiar with to validate and confirm any signals
(Important note: do not react to the values in the table as they change in real time - i found that to be very tempting - rather look at the broader context and the flow of the BSI / sentiment) - you can also test BSI with Paper Trading in TV - it's like a new car that you need some time to get used to :)
(2) Use BSI to help learn chart / pattern analysis - watch BSI print scores against the various categories in real time to hone your chart (pattern) reading skills and how to evaluate strength of various bar shapes - for example, a bar that closes at the high but does not reach the mid point of the prior bar - strong or weak ? how about a doji or a hammer ? ...etc
Chart showing main usage scenarios
Example BSI in real time:
======================
I hope this work helps few fellow traders hone their trading skills, or help inspire other ideas - please let me know if you have feedback or suggestions.
Strength
Burgerized MTF BB + Reverse Engineering RSI (RERSI) + Hidden S&RThis is a mod of a script by informanerd that has helped me immensely with my trading setup.
HUGE HUGE HUGE credit to him! Check him out! He gave me permission to publish this and so here I am, sharing it with you. I hope you all like it!
This version is functionally essentially the same - the difference is in visualization choices and automation.
Instead of selecting different timeframes, and thus having to change not one but 4 timeframes manually every time you look at a different time frame on the main chart, I found (with help from the kind community in the Pine Script chat right here on Tradingview!) a method to choose multiples so that you can have consistent results no matter what timeframe you are looking at.
Default is set to multiples of 2, 4 and 8 which is the system I found works best for myself personally.
I also changed visualization - crossovers are now highlighted in the background of the respective bands. By default I have chosen different transparency levels for crossovers then sitting inside the bands. This destroyed the ability to modify colors the old school way in Style tab, but I have added inputs for all the relative settings so you can modify the visual aspect to your hearts content, as I know my colors make most people barf (something I did when I was younger maybe?).
Hope the nice barfs of color help you quickly see trends and reversals - I know they help me! Happy trading, no matter your timeframe! xD
Relative Strength 3D Indicator [CC]This is a custom indicator of mine loosely based on the work by James Garofallou (Stocks and Commodities Sep 2020 pg 14) and this is meant for medium to long term trend confirmations. The idea behind this indicator is to capture 3 different dimensions of trend strength. The first dimension captures the overall strength of the underlying stock vs the market (in this case the S&P 500). The second dimension captures the overall trend strength by assigning a scoring system so when all faster moving averages are stronger than slower moving averages then it gets the max points. The final dimension is the strength of the overall strength of everything so far. Buy when the indicator line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
Support and Resistance by CainKellyeCheck out my automatic support and resistance indicator that uses the EMA of price change * relative volume as the bases of pivot search.
It also tells the strength of the support and resistance lines calculated using a 4 times quicker EMA and using its distance from the slower one.
The strongest plotted line has the maximum opacity and the weakest has the minimum opacity inside the given range.
This calculation results in an organic detection of the support and resistance prices.
You can set the distance range in percentage you want to have lines calculated around the current price.
You can set the lines gravity distance inside which they are snapped together: the stronger line pulls the weaker to it by using strength weighted average for the new price value.
You can increase the minimum opacity value in case you only see few lines (but the maximum is 15)
You can change the used price for the lines to Close or High/Low but recommended is to use the average of those two (default)
The distances multiplier helps to get a birds eye view easily when using 4H (or higher) chart and a separate one to use on Daily / Weekly / Monthly for even broader view.
Lines and labels are drawn near the candles so you are still able to zoom in.
Labels are not drawn when their line is barely visible (transparency >= 80)
This indicator has been refined on the 15 minute and 1 hour charts of BTC and other cryptos but it works well in smaller volatility markets as well if the distances are adjusted accordingly.
Ultimate RSIsThis RSI script includes everything you could want on an RSI. There are multiple timeframes which will give context to market movement, as well as a highlight feature to make it easier to visualize overbought and oversold stocks.
Tip: Uncheck the 4 plots with no color in them to remove the extra headers on the indicator.
RSI medianA RSI implementation tailored for a specific use case.
Instead of using RSI with oversold and overbought values, I use it as a median value.
If the RSI is above 50, the trend is bullish.
If the RSI is below 50, the trend is bearish.
This indicator is customized to help you easily identify market strength/weakness based on which side of the median value the RSI is.
[JRL] Multi-Symbol Strength TrackerI created this script to compare cryptocurrencies that tend to be correlated, but it could also be used for forex or any other market. It is a fairly simple concept and compares price of each symbol to the specified period ema. This is helpful for tracking highly correlated symbols and visualizing moments when they are out of sync, perhaps signaling good times for buying or selling.
RedK_Momentum-based Step MA (MoStep_MA)Summary
==========
This script plots a "momentum based" stepping Moving Average of various types - the idea is to visualize price moves in levels (or steps) to reduce "chart noise" - avoid getting caught in sideway moves - and enable better trade entry and exit decision.
How does the MoStep_MA Work:
=============================
- we first choose a "base MA" of our preferred type: WMA, EMA, SMA and Hull MA are available - this base MA will be visible in light gray on the chart and can be completely hidden (although it is useful - see chart below)
- The steps are then created when a "momentum change" - expressed by a "relatively significant price move" - has been detected - either up or down
A "Significant price move" is defined as a price move that is relatively large compared to the "recent" average (absolute) price moves within a certain period
The "strength average" period can be adjusted - in terms of how the average is calculated (WMA, EMA, SMA), the number of bars (length) taken into consideration, as well as to include a "significance factor" of the price move relative to that average
using a significance factor of 1.5 is like saying: i want a new step only when the price move is 1.5 times the average price moves within the last (x) bars
the move has to be in the direction of the underlying MA trend - this is an additional condition i added, when i found that some moves will be significant but in the opposite direction and will cause a new step to be created - adding unnecessary "noise"
Default settings and other tweaks
===============================
By default, we use WMA for both the base MA and for calculating the average price change - other moving average types are available -
the significance factor is set to 1 by default.
feel free to experiment with other values and settings.
here's a chart with some additional notes - the significance factor here is set to 1.5 times the average price move.
- code is commented with further notes
- this indicator should not be used in isolation - as usual, it should be supported by other trend and momentum indicators to get proper confirmation of signals
FAJ Dogepack Combines EMA + RSI indicator
Dieses Script ist eine einfache Kombination aus RSI und EMA.
Es erlaubt euch zu erkennen in welche Richtung der Trend in dem aktuellen
TimeFrame geht und wie stark dieser aktuell ist.
Außerdem zeigt es euch ob gerade eher die Bullen oder die Bären den Markt
dominieren. Mit Hilfe des Indikators lassen sich Top und Bottom des aktuellen
Time Frames erkennen.
Ich Empfehle nur eine Nutzung bei BTC um Wellen besser zu erkennen.
Erinnert euch daran, das ist nur eine Beta und gibt immer noch viele Fehlsignale aus, also testet es für euch selber in verschiedenen TimeFrames.
This script is a simple combination of RSI and EMA.
It allows you to see in which direction the trend is going in the current
time frame and how strong it is currently. It also shows you whether the
bulls or the bears are dominating the market. With the help of the indicator,
the top and bottom of the current time frame can be recognized.
recommended only use in BTC to better detect waves.
remember that it is in beta and still sends many false signals so you have to test it well in several time periods.
Alpha & BetaHow to use Alpha(α)?
If Alpha is positive the stock outperforms, if the value is negative means the stock underperforms.
α < 0: The investment has earned too little for its risk (or, was too risky for the return)
α = 0: The investment has earned a return adequate for the risk taken
α > 0: The investment has a return in excess of the reward for the assumed risk
How to use Beta(β)?
β = 1: Exactly as volatile as the index
β > 1: More volatile than the index
β < 1 > 0: Less volatile than the index
β = 0: Uncorrelated to the index
β < 0: Negatively correlated to the index
β > 2: Trending stock
Higher the β higher risk/reward
Example: If the beta is 1.1, the share price is like to move by 10% more than the index
Trading Tip
Choose a stock with Alpha greater than 0 and Beta greater than 1.9 for intraday in 5min timeframe for long positions
Remember that such stocks will have high risk and high reward
Shortlist stocks with Beta greater than 1.9 for next day in 5min timeframe
Inverse BandsThis was the result of quite some time spent examining how much information could be gleamed by studying the interactions between Keltner Channels, STARC Bands and Bollinger Bands. I was surprised by the results.
First of all, there are four fills that are black. Set the transparency of those to 0 and you'll see this indicator the way that it's meant to be seen. Those fills belong to unused sections of the Bollinger Bands.
There are two clouds which represent STARC Bands and the Keltner Channel. There is some delay when they flip from bullish (green) to bearish (red), but they are indicative of the trend. The space between them is black and the narrower that space is, the greater volatility is. Because of this, we don't need the exterior Bollinger Bands.
The Bollinger Bands remain visible as the yellow interior clouds on the top cloud and the blue interior clouds on the bottom cloud. Often, the thicker the yellow or blue cloud is, the less severe a throwback from a given trend reversal will be. Often the thinner that yellow or blue cloud is, the more severe the trend reversal will be. If price is rising into a thin interior yellow cloud, the following dip will be substantial. If price action dips towards a thicker interior blue cloud, often the pump following that dump will be less enthusiastic.
We preserve the Keltner Channel and STARC bands as our cloud because the way that they interact with the three basis lines yields a lot of information.
The yellow Bollinger basis line tells us about trend strength. The closer the BB basis line is to the top of the top cloud or the bottom of the bottom cloud, the stronger the trend is. When it enters the cloud very close to the bottom of the bottom cloud, you know you're looking at a strong pump, and vice versa when it's close to the top of the top cloud.
The purple Keltner Channel basis line and orange STARC Band basis line can forecast short term trend changes one candlestick in advance by contacting any line in either cloud. The moment either basis line touches or crosses any boundary of the clouds, you know that the next candle will change directions. In an uptrend, a touch or cross means the next candle will have a lower high point. In a downtrend, a cross or touch means the next candle will have a higher high point. This is most useful in scalping.
It'd be pretty easy to slap some crossover alerts on to this and useful considering that they come a candle in advance. Feel free to further explore and develop this.
PERP comparisonCompare the strength of the assets:
ALTPERP
MIDPERP
SHITPERP
ETH
BTC
on the FTX echange.
If the timeframe is < 1hr the indicator resets every funding round (8 hrs)
If the timeframe is > 1hr the indicator resets every week
TSI Strength Meter vs USD with divergenceThis indicator consists of two lines. One is a gray line (USD) and the asset indicator is green or red.
The basis of this indicator is the true strength indicator (TSI) with parameters 5,15. Both line sets are based on a TSI (5,15).
The lookback period is for new highs / new lows. Default value is 200 periods.
GREEN/RED LINE
The first that is green and red is whatever you choose to display ( BTC in this case).
The green and red lines indicate going up or going down.
GRAY LINE
The gray line is the US Dollar . So everything is relative to that by default.
ZERO LINE CROSSES
These are momentum shifts. If you see a crossover of both around the zero line, its a good indication there is a change in momentum and a reversal of trend.
NEW HIGHS NEW LOWS
There are 4 new colors added to this indicator. For the asset you are viewing, a lime color means new highs within the lookback period. A new low is indicated by a yellow line color.
The new lows for the USD are white for new lows within the lookback period and blue line for the new highs.
DIVERGENCE
You can also spot divergences easily. For example, if a lime color is seen on the indicator line, that means "new high" but if it occurs below the last "new high" it means the asset is going up to new highs but the indicator is showing us that the readings are below the previous new highs, indicating a negative divergence.
The same goes for the yellow colored lines. higher yellows mean positive divergence.
And with the US Dollar , blue lines dropping means a negative divergence in the US Dollar , while white lines moving up means a positive dollar divergence.
INTERPRETATION
Examples:
If you see a green and sometimes red line of the asset indicator and a gray line that drops below the zero line; it may mean the asset is rising and the trend is up.
If you see a green and red line below the zero line and with a gray line above the zero line , it indicates there is a negative trend. If you suddenly see blue lines on the USD, this means its hitting new lows. If these blue lines then start to slowly move downwards; then we have a positive divergence. If that were to be followed by the green line crossing the zero line, its a pretty good be that the trend is changing and its a very good buying oportunity.
RedK Strength of MovementThis is a quick indicator i wrote to inspect the strength of price movement and show when what i consider to be "a quality trend" has been established. the code is open and commented - the "math concept" is really simple and i'm not sure if this has already been coded before :) - my apologies if it was.
my main goal was to identify opportunities to establish "simple, straight" long call or put positions for the stocks i follow
- what i noticed thru the years is that some opportunities will present themselves to take these basic option positions but they are "rare", maybe once or twice a year -- for example, in 2020, TSLA presented 2 such opportunities around the split and the index inclusion - so i needed an indicator that exposes these setups. if you can time yourself with these setups, they are incredibly rewarding.
these setups will happen when the SoM reaches 100% (in either directions) while it's in agreement with the prevailing trend (hence the need to use the SoM with a MACD or something like the Ribbon) - if the SoM hits the 100% in one direction and the trend is not in the same direction, that signal is invalid. see the chart for some examples.
a quick useful observation, is that the SoM will sometimes also act as a leading indicator for an imminent change in trend direction, which makes sense .. given that the SoM relies on exposing the "relative" movement or change of price (close for example) - thru the use of the stoch() function - and that this "change value" will usually expand in the direction of a strong trend and starts to contract ahead of a reversal.
Please fee free to use this code, leverage the indicator, or give feedback
i may come back later and update this with some features (like making this volume-weighted)
best of luck!
True Strength Index (TSI)User request. A tuned version of the built-in True Strength Index (TSI) indicator with the following options included:
TSI - Signal Histogram
TSI/Signal Crossovers
TSI/Signal Ribbon
Bands breakouts highlighting
Zero line crossovers background
RMI + Triple HMRSI + Double EVWRSI + TERSI + CMO StrategyThis is a strange experimental strategy WIP that I decided to upload an early version to share some of what I am working on. Just one script of a few.
It combines Chande Momentum with RMI and some weird ones I am experimenting with - Triple Hull MA RSI, Double Exponential + Volume Weighted RSI, Triple Exponential RSI. And to top it off, a final oscillator that combines the THMRSI with the RMI.
The main intention here, currently, is to test the usefulness of each on different timeframes and values. Currently it is considered to buy when all are below their threshold and sell when all are above, with the chande momentum crossing its line as the final confirmation.
For now there is no individual for each of the unique elements included. I am going to likely use this is a working house project to test other experimental indicators in the future.
It may be some of these are better suited for long term but I do think they have valid uses in checking short and long term momentum at the very least.
I copied the RMI from Everget.
RSI PlusRSI Plus:
☑️ Show the divergences.
☑️ Shows the approximate price of an RSI level (by default it is level 55 but it can be changed for any other level).
☑️ Shows the bulls and bears zones, in green when crossing level 50 up and red when crossing down.
☑️ Circle the highest and lowest levels as possible purchases and sales.
☑️ Includes a smoothed RSI.
RSI Plus:
☑️ Muestra las divergencias.
☑️ Muestra el precio aproximado de un nivel del RSI (por defecto viene el nivel 55 pero se lo puede cambiar por cualquier otro nivel).
☑️ Muestra la zonas de toros y osos, en verde cuando cruza hacia arriba el nivel 50 y rojo cuando cruza hacia abajo.
☑️ Marca con un circulo los niveles mas alto y mas bajos como posibles compras y ventas.
☑️ Incluye un RSI suavizado.
Composite Any Currency Strength IndexThis is a flexible currency strength indicator and you can adjust it to any currency you wish 'to measure'. By default, it is set to measure USD major pairs. Indicator calculates every pair you list, and plots one composite chart in the form of Heikin Ashi candles. Basically, you will get USD index in this case. Similarly, you can get AUD, EUR, CAD, JPY, CHF, etc indexes by specifying corresponding symbols. Remember about base and quote currencies and location of each for correct calculations. Simple adjustments in the script needed if you want to value USD by using USD in both base and quote (counter) currencies.
For example, when calculating USD strength by looking into USDJPY (not into JPYUSD) symbols, you will need to add minus "-" before corresponding security in the script itself, not in the Settings Inputs.
Default study script (with JPYUSD):
// Inputs
...
string sec3 = input(defval="JPYUSD", type=input.symbol, title="Symbol")
...
h_sec3 = security(heikinashi(sec3), timeframe.period, high)
l_sec3 = security(heikinashi(sec3), timeframe.period, low)
o_sec3 = security(heikinashi(sec3), timeframe.period, open)
c_sec3 = security(heikinashi(sec3), timeframe.period, close)
Adjusted study script with USDJPY:
// Inputs
...
string sec3 = input(defval="USDJPY", type=input.symbol, title="Symbol")
...
h_sec3 = -security(heikinashi(sec3), timeframe.period, high)
l_sec3 = -security(heikinashi(sec3), timeframe.period, low)
o_sec3 = -security(heikinashi(sec3), timeframe.period, open)
c_sec3 = -security(heikinashi(sec3), timeframe.period, close)
Unfortunately, I am not a coder specialist and perhaps someone here could improve this indicator for easier and more friendly adjustments. But thanks to variety of symbols on TradingView , you can ignore any changes in the script, and just use symbols with corresponding counter currency offered by this great platform.
Bollinger Bands, 2 x RMA, 4 x SMA/EMA were added for deeper analysing of the index. Other indicators with ability to select data sources (like CCI, StochRSI, Momentum etc) can be separately added to a current chart, but use Composite Any Currency Strength Index data as the source for analysing displayed pair, i.e. by selecting source - Composite Any Currency Strength Index: SMA Close or EMA HLC.
Thank you and good luck everyone!
Exponential Regression Slope Annualized with R-squared HistogramMy other indicator shows the linear regression slope of the source. This one finds the exponential regression slope and optionally multiplies it by R-squared and optionally annualizes it. Multiplying by R-squared makes sure that the price movement was significant in order to avoid volatile movements that can throw off the slope value. Annualizing the exponential slope will let you see how much percentage you will make in a year if the price continues at its current pace.
The annualized number is the number of trading days in a year. This and the length might need adjusting for the extra bars that might be in futures or other markets. The number does not have to be a year. For example, it can be a month if you set the number to 20 or so trading days to find how much you would make in a month if price continues at its current pace, etc. This can also be used as an alternative to relative strength or rate of change.
Waters-Williams A/D OscillatorThis is the A/D oscillator, design by Jim Waters and Larry Williams. As any other oscillator, it measures the strength of the buy and sell pressure.
If a candle opens at the low, and closes at it's high, the signal given by the oscillator is 100. If it opens at high and closes at low, the signal will be 0. Since it completely disregard other values, it is common to use a smoothed version of it, which is the average of the last n values, just like the stochastic oscillator.
Tho it doesn't have much use for positioners or swing traders, day traders and scalpers can use it in confluence with volume to enter in a counter trend trade.
72s: Adaptive Hull Moving Average+One challenging issue for beginner traders is to differentiate market conditions, whether or not the current market is giving best possibility to stack profits, as earliest, in shortest time possible, or not.
On intraday, we've seen some big actions by big banks are somewhat can be defined --or circling around-- by HMA 200 . I've been thinking on to make the visuals more conform to price dynamics (separating major movement and minor noise) to get clearer signs of when it starts to happen. So it will be easier to see in a glance when the strength starts really taken place, with less cluttered chart.
This Adaptive HMA is using the new Pine Script's feature which now support Dynamic Length arguments for several Pine functions. ( read: www.tradingview.com). It hasn't support the built-in HMA() directly, but thankfully we can use its wma() formula to construct. (Note: I tweaked a bit HMA formula already popular here by using plain int() instead of round() on its wma's length, since I find it precisely match tradingview's built-in HMA).
You can choose which aspect the Adaptive HMA period will adapt to.
In this study I present it with two options: Volume and Volatility . It will "moves" faster or slower depends on which situation the aspect is currently into. ie: When volume is generally low or volatile readings is not there, price won't move very much, so the adapting MA will slow down by dynamically lengthen the lookback period, and vice versa, and so on.
Colour-markings in the Adaptive resembles which situation explained above. In addition, I also combine it with slope calculation of the MA to help measuring trend-strength or sideway/choppy conditions.
This way when we use it as dynamic support/resistance it will be more visually-reliable.
Secondly, and more important, it might help us traders with better probability info of whether or not a trade should even worth to be made . ie: If in the mean time market won't give much movement, any profit would also only as much. In most cases, we might better save our dime for later or place it somewhere else.
HOW TO USE:
Aside from better dynamic support/resistance and clearer breakout confirmation, MA is coloured as follow:
YELLOW:
Market is in consolidation or flat. Be it sideways, choppy, or in relatively small movements. If it shows up in a trending market, it may be an earlier sign that current trend might about to change its direction, or confirming a price broke-out to another side.
LIGHT GREEN or LIGHT RED:
Tells if a trend is forming but still relatively weak (or getting weaker), as it doesn't have volume or volatility to support.
DARKER GREEN ot DARKER RED:
This is where we can expect some good and strong price movement to ride. If it's strong enough, many times it marks a start of new long-lasting major trend.
SETTINGS:
Charger:
Choose which aspect your HMA should plug itself into, thus it will adapt to it.
Minimum Period, Maximum Period:
172 - 233 is just my own setting to outmatch the static HMA 200 for intraday. I find it --in my style of trading-- best in 15m tf in almost any pair, and 15m to 1H for some stocks. It also works nicely with conventional EMA 200, sometimes as if they somewhat work hand-in-hand in defining where the price should go. But you can, ofcourse, experiment with other ranges, broader or narrower. Especially if you already have an established strategy to follow to. As you might do with:
Consolidation area threshold:
This has to do with slope calculation. The bigger the number means your MA needs bigger degree to define the market is out of flat (yellow) area. This can be useful if needed to lighten up the filter or vice-versa.
Background colouring:
Just another colouring to help highlighting the difference in market conditions.
ALERTS:
There are two alerts:
Volume Break: when volume is breaking up above average, and
Volatility Meter: when the market more likely is about to have its moment of the big wiggling brush.
USAGE:
Very very nice BUY entry to catch big up-movement if:
1. Price is above MA. (It is best when price is also not to far distance from the MA, or you can also use distance oscillator to help out too)
2. HMA's color is in darker green. Means it's on the charging plug with your chosen aspect.
3. RSI is above 50. This is to help as additional confirmation.
Clear SELL entry signal is same as above, just the opposite.
-------------------------------------------------------
Note:
Lower timeframe of course means more noise to be filtered. Depends on the instrument, you might need to tweak the settings a bit till it conform nicely and shows lots of good trades in history. Here's another example on GBPUSD 5m timeframe:
For exit/take-profit point, you can use a second faster period static HMA. Or you can also use RSI. Here's an example:
Don't get me wrong, on few occasions I found it's still best using static MA to spot fakeouts, breakouts, etc, especially ones that's been already use widely. If that's the case or price actions seems suspicious, simply put the same value for minimum and maximum period settings, and there you have the original HMA with extra features.
For developer, check in the code if you need to customise your own charger.
-------------------------------------------------------
That's it. Hopefully this Adaptive HMA+ could at least be a good sidekick to your own strategy, as it does mine. ;)
Relative StrengthA relative strength overlay, similar to that of IBD shown on Marketsmith.
The value is not from 0-100, it is compared with the Nasdaq x2 ETF, QLD. Therefore, if greater than zero it will give you a good indication that the stock has a very good relative strength.
Feel free to change the comparison ETF to one of your choosing.