Fair value bands / quantifytools— Overview
Fair value bands, like other band tools, depict dynamic points in price where price behaviour is normal or abnormal, i.e. trading at/around mean (price at fair value) or deviating from mean (price outside fair value). Unlike constantly readjusting standard deviation based bands, fair value bands are designed to be smooth and constant, based on typical historical deviations. The script calculates pivots that take place above/below fair value basis and forms median deviation bands based on this information. These points are then multiplied up to 3, representing more extreme deviations.
By default, the script uses OHLC4 and SMA 20 as basis for the bands. Users can form their preferred fair value basis using following options:
Price source
- Standard OHLC values
- HL2 (High + low / 2)
- OHLC4 (Open + high + low + close / 4)
- HLC3 (High + low + close / 3)
- HLCC4 (High + low + close + close / 4)
Smoothing
- SMA
- EMA
- HMA
- RMA
- WMA
- VWMA
- Median
Once fair value basis is established, some additional customization options can be employed:
Trend mode
Direction based
Cross based
Trend modes affect fair value basis color that indicates trend direction. Direction based trend considers only the direction of the defined fair value basis, i.e. pointing up is considered an uptrend, vice versa for downtrend. Cross based trends activate when selected source (same options as price source) crosses fair value basis. These sources can be set individually for uptrend/downtrend cross conditions. By default, the script uses cross based trend mode with low and high as sources.
Cross based (downtrend not triggered) vs. direction based (downtrend triggered):
Threshold band
Threshold band is calculated using typical deviations when price is trading at fair value basis. In other words, a little bit of "wiggle room" is added around the mean based on expected deviation. This feature is useful for cross based trends, as it allows filtering insignificant crosses that are more likely just noise. By default, threshold band is calculated based on 1x median deviation from mean. Users can increase/decrease threshold band width via input menu for more/less noise filtering, e.g. 2x threshold band width would require price to cross wiggle room that is 2x wider than typical, 0x erases threshold band altogether.
Deviation bands
Width of deviation bands by default is based on 1x median deviations and can be increased/decreased in a similar manner to threshold bands.
Each combination of customization options produces varying behaviour in the bands. To measure the behaviour and finding fairest representation of fair and unfair value, some data is gathered.
— Fair value metrics
Space between each band is considered a lot, named +3, +2, +1, -1, -2, -3. For each lot, time spent and volume relative to volume moving average (SMA 20) is recorded each time price is trading in a given lot:
Depending on the asset, timeframe and chosen fair value basis, shape of the distributions vary. However, practically always time is distributed in a normal bell curve shape, being highest at lots +1 to -1, gradually decreasing the further price is from the mean. This is hardly surprising, but it allows accurately determining dynamic areas of normal and abnormal price behaviour (i.e. low risk area between +1 and -1, high risk area between +-2 to +-3). Volume on the other hand is typically distributed the other way around, being lowest at lots +1 to -1 and highest at +-2 to +-3. When time and volume are distributed like so, we can conclude that 1) price being outside fair value is a rare event and 2) the more price is outside fair value, the more anomaly behaviour in volume we tend to find.
Viewing metric calculations
Metric calculation highlights can be enabled from the input menu, resulting in a lot based coloring and visibility of each lot counter (time, cumulative relative volume and average relative volume) in data window:
— Alerts
Available alerts are the following:
Individual
- High crossing deviation band (bands +1 to +3 )
- Low crossing deviation band (bands -1 to -3 )
- Low at threshold band in an uptrend
- High at threshold band in a downtrend
- New uptrend
- New downtrend
Grouped
- New uptrend or downtrend
- Deviation band cross (+1 or -1)
- Deviation band cross (+2 or -2)
- Deviation band cross (+3 or -3)
— Practical guide
Example #1 : Risk on/risk off trend following
Ideal trend stays inside fair value and provides sufficient cool offs between the moves. When this is the case, fair value bands can be used for sensible entry/exit levels within the trend.
Example #2 : Mean reversions
When price shows exuberance into an extreme deviation, followed by a stall and signs of exhaustion (wicks), an opportunity for mean reversion emerges. The higher the deviation, the more volatility in the move, the more signalling of exhaustion, the better.
Example #3 : Tweaking bands for desired behaviour
The faster the length of fair value basis, the more momentum price needs to hit extreme deviation levels, as bands too are moving faster alongside price. Decreasing fair value basis length typically leads to more quick and aggressive deviations and less steady trends outside fair value.
Volatility
ROC (Rate of Change) Refurbished▮ Introduction
The Rate of Change indicator (ROC) is a momentum oscillator.
It was first introduced in the early 1970s by the American technical analyst Welles Wilder.
It calculates the percentage change in price between periods.
ROC takes the current price and compares it to a price 'n' periods (user defined) ago.
The calculated value is then plotted and fluctuates above and below a Zero Line.
A technical analyst may use ROC for:
- trend identification;
- identifying overbought and oversold conditions.
Even though ROC is an oscillator, it is not bounded to a set range.
The reason for this is that there is no limit to how far a security can advance in price but of course there is a limit to how far it can decline.
If price goes to $0, then it obviously will not decline any further.
Because of this, ROC can sometimes appear to be unbalanced.
(TradingView)
▮ Improvements
The following features were added:
1. Eight moving averages for the indicator;
2. Dynamic Zones;
3. Rules for coloring bars/candles.
▮ Motivation
Averages have been added to improve trend identification.
For finer tuning, you can choose the type of averages.
You can hide them if you don't need them.
The Dynamic Zones has been added to make it easier to identify overbought/oversold regions.
Unlike other oscillators like the RSI for example, the ROC does not have a predetermined range of oscillations.
Therefore, a fixed line that defines an overbought/oversold range becomes unfeasible.
It is in this matter that the Dynamic Zone helps.
It dynamically adjusts as the indicator oscillates.
▮ About Dynamic Zones
'Most indicators use a fixed zone for buy and sell signals.
Here's a concept based on zones that are responsive to the past levels of the indicator.'
The concept of Dynamic Zones was described by Leo Zamansky (Ph.D.) and David Stendahl, in the magazine of Stocks & Commodities V15:7 (306-310).
Basically, a statistical calculation is made to define the extreme levels, delimiting a possible overbought/oversold region.
Given user-defined probabilities, the percentile is calculated using the method of Nearest Rank.
It is calculated by taking the difference between the data point and the number of data points below it, then dividing by the total number of data points in the set.
The result is expressed as a percentage.
This provides a measure of how a particular value compares to other values in a data set, identifying outliers or values that are significantly higher or lower than the rest of the data.
▮ Thanks and Credits
- TradingView: for ROC and Moving Averages
- allanster: for Dynamic Zones
Squeeze Range: Bollinger Bands / Keltner Channels [Whvntr]Presenting Squeeze Range: Bollinger Bands / Keltner Channels
TTMSqueeze method is a volatility and momentum indicator introduced by John Carter of Simpler Trading, which capitalizes on the tendency for price to break out strongly after consolidating in a tight trading range.
How did I make this indicator? The Bollinger Bands & Keltner Channels base scripts are from the standard indicators of their class in the Technicals section... I made this indicator first then noticed there were 3 others with a similar concept, but this differs in it's unique features and application of the TTMSqueeze strategy. This indicator plots the True Range of the Keltner Channel (Customizable in 'Bands Style" in the Inputs Menu) the instances the Bollinger Bands are within the range of the Keltner channel (the market just entered a squeeze).
Featuring: customizable Moving Averages
1. Exponential (Default for both BB & KC)
2. Simple
3. RMA (MA used in RSI )
Keltner channels have a multiplier of 2 & 3 on the Chart (3 being the outer).
How do I use this indicator? Once the teal dots are inside the solid red lines this would indicate that TTMperiod of low market volatility (the market is preparing itself for an explosive move up or down). Do some research and study how to use the TTMSqueeze method by John Carter. Disclaimer: not a guarantee of future favorable results.
DTR/ATR Scanner v1.0This indicator allows you to view DTR vs. ATR % for multiple instruments. When colors are Red the instrument is near 90% of its daily ATR.
MAD - Mean Absolute Deviation purpose :implementation of MAD Mean Absolute Deviation in pinescript
implementation by : patmaba
type : measures of spread
Mean absolute deviation
The mean absolute deviation of a dataset is the average distance between each data point and the mean. It gives us an idea about the variability in a dataset.
Here's how to calculate the median absolute deviation.
Step 1: Calculate the mean.
Step 2: Calculate how far away each data point is from the mean using positive distances. These are called absolute deviations.
Step 3: Add those deviations together.
Step 4: Divide the sum by the number of data points.
Source of MAD:
www.khanacademy.org
Formula :
MAD = ( ∑ |xi−µ| ) / n
where
xi = the value of a data point
|xi − µ| = absolute deviation
µ = mean
n = sample size
Exponential Bollinger Bands (EBB)This script is a variation of the popular Bollinger Bands indicator, which uses exponential moving averages (EMA) instead of simple moving averages (SMA) as its core calculation. The indicator is designed to provide a visual representation of volatility, with the distance between the upper and lower bands being determined by the standard deviation of the underlying data.
The script starts by defining a number of helper functions that are used to calculate the moving averages and standard deviations required for the indicator. The first helper function is sma(), which calculates the simple moving average of the input data over a specified length. This function uses linear interpolation to smooth the data when the length is not an integer. The stdev() function calculates the standard deviation of the input data using the simple moving average calculated by the sma() function.
The bes() function calculates the exponential moving average of the input data over a specified length. The estdev() function calculates the standard deviation of the input data using the exponential moving average calculated by the bes() function.
The estdev function calculates the standard deviation using an exponential moving average method, rather than the traditional simple moving average method used by the stdev function. The exponential moving average method gives more weight to recent data, which can make the estdev more responsive to recent changes in volatility. This can make it more useful in certain types of analysis, such as identifying trends in volatility. Additionally, it also uses the same EMA algorithm to calculate the average value of the data set, which can help to keep the output of the estdev and average functions consistent.
The script also defines two more helper functions, average() and standard_deviation(), which allow the user to switch between using simple moving averages (SMA) and exponential moving averages (EMA) as the basis for the indicator. These functions take three arguments, the input data, the length of the moving average, and a string that specifies whether to use SMA or EMA.
The script then defines the input parameters for the indicator. The user can choose whether to use SMA or EMA as the basis for the indicator using the select parameter. The user can also specify the length of the moving average and the multiplier for the standard deviation using the length and multiplier parameters, respectively.
Finally, the script calculates the average and standard deviation of the input data using the selected method (SMA or EMA), and plots the upper and lower bands of the indicator. The upper band is calculated as the average plus the standard deviation multiplied by the specified multiplier, while the lower band is calculated as the average minus the standard deviation multiplied by the specified multiplier.
Up Down VolatilityThis is just experimental. I wanted the flexibility in looking at volatility and this indicator gives you several ways to do so.
I haven't figured out the best way to use this yet but I suspect that as a form of entry confirmation indicator would be best.
If you find a way this works well for you please drop me a note. It would nice know someone found a way to use it successfully!
The options available are:
* Your source can be price or the ATR.
* It allows you to separate the volatility of the bearish and bullish candles and even allows you to produce differential.
* You can choose to run the result through any one of many smoothers.
With the above options you can look at:
* The normal volatility. That is not split into bearish and bullish components.
* The bearish and bullish volatility and the difference between them.
* The relative bearish and bullish volatility and the difference between them.
The "The relative bearish and bullish" is each one divided into the source before it was split into Up and Down or low/high divided by close which should make the max value roughly around 1.
The code is structured to easily drop into a bigger system so use it as a lone indicator or add the code to some bigger project you are creating. If you do integrate it into something else then send me a note as it would be nice to know it's being well used.
Enjoy and good luck!
Volume Weighted Standard Deviation (VWSD)The Volume Weighted Standard Deviation indicator is a custom technical analysis tool that uses the volume of trading to calculate the standard deviation of a stock's price. This indicator takes the source of data, the length of data, and the deviation as inputs, and calculates the volume weighted standard deviation using the values.
The indicator first calculates the mean price and mean volume by using simple moving average over the given length of data. Then it calculates the squared difference between the mean price and the actual price, multiplied by the volume. This gives a volume-weighted squared difference. The indicator then calculates the square root of the sum of the volume-weighted squared differences divided by the sum of the volumes over the given length of data. This gives the volume weighted standard deviation.
The indicator then plots the standard deviation and deviation as a band around the simple moving average of the source data, providing a clear view of the volatility of the stock.
In summary, the Volume Weighted Standard Deviation indicator is a powerful tool for measuring the volatility of a stock by taking into account the volume of trading. It uses the volume of trading to calculate the standard deviation of a stock's price, giving a more accurate representation of the volatility of the stock. It can be useful for traders to identify entry and exit points and make more informed trading decisions.
MATHR3E RAMP-MA█ OVERVIEW
MATHR3E RAMP-MA (R-MA) is a trend following indicator.
█ CONCEPTS
Disclaimer:
MATHR3E RAMP-MA indicator is intended for advanced traders and may fit your profile, whether you are a day trader or a long-term investor.
It was originally developed by a renowned market analyst and documented in numerous books. Among them is the author Jason Perl.
It is recommended to have read the trading techniques mentioned in the books covering this indicator beforehand.
How to use:
MATHR3E RAMP-MA is useful for determining if a market is trending and when so, to procure entry points to initiate a trade in line with the expected directional move.
It can be applied to markets as a stop-loss, as well as a low-risk entry qualifier in conjunction with other indicators of the same author.
Moving Average (R-MA I):
Only displayed when market is trending
• Bull trend: Green (moving avg Lows/Period)
• Bear trend: Red (moving avg Highs/Period)
Moving Average (R-MA II):
Always displayed
• Bullish outlook on the market: the 3-day moving average must be positioned above the 34-day moving average
• Bearish outlook on the market: the 3-day moving average must be positioned below the 34-day moving average
█ FEATURES & BENEFITS
Versatile:
This indicator is based on relative price action, so you can apply it to any market or time frame without having to change the default settings.
Rate of Change:
The ROC is calculated for the fast and slow periods of the R-MA (II).
R-MA (II) is colored blue when its rate of change is advancing and maroon when it is declining.
Breakout Qualifier:
A close above/below the moving average R-MA (I) that is confirmed by the following price bar's opening price
Materialized on chart with Flags:
• Green when bear trend ends
• Red when bull trend ends
Alerts
Get notified on:
• UpTrend breakout
• DnTrend breakout
• Any breakout Signal
Volatility Weighted Moving AverageVolatility Weighted Moving Average (VAWMA) :
The Volatility Weighted Moving Average is a short and long term trend filter that weightes asset price buy "volatility significance" (percentages of total volatility over specified period) unlike that of the WMA which formulates an average based on the product of asset price and a deceding period significance . The result is a less noisy average which weights price based on its potential significance in trend, VAWMA tends to price when volatility is high and conversaly tends away from price when volatility is low.
Example :
As seen above the VAWMA tends to price more than both the SMA and EMA. The high volatility weightings allow for the VWMA to act as a potential trailing stop.
Dynamics :
- symbol volatility watchlist, change the ticker and corrosponding exchange to watch volatility over other markets.
BBFIB Regular /Intraday Bollinger Bands and Fibonacci Levels Indicator displays Fibonacci levels for Intraday and Regular ( for given number of bars) for Bollinger Bands and for Highest and Lowest levels on Chart .
The indicator facilitates to switch over to following options by checking the relevant Check Boxes like Regular and Fibonacci or Regular and Bollinger Bands or Intraday and Fibonacci or Intraday and Bollinger Band. Default is Regular and Fibonacci for Length of 20 bars .
Regular/Intraday
Regular
Intraday
Fibonacci/Bollinger Bands
Fibonacci
Bollinger Bands
Default multiplier for Bollinger Bands is 2 and Moving Average is SMA 20. Default Length of Bars for General Moving Average is SMA 20.
User is provided with options to Input number of bars under Regular option for Bollinger Bands Moving Average and Fibonacci Levels for highest and lowest levels. For Intraday the script automatically updates the Length base from Day open .Input option is provided for Length of General Moving Average.
User is provided with the following Oscillation input options;
Regular:SMA,EMA,WMA ,VWMA
Intraday:SMA,WMA ,VWMA
General Moving Average:SMA,EMA,WMA, VWMA
The indicator helps the User to monitor level of volatility and the position of Price with relevance to Fibonacci levels for Intraday/Regular bars.
DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment.
BTC Pair Change %This script makes it easier to quickly check how the BTC pair of the current symbol is performing on any pair.
It adds a " change percentage widge t" (of the BTC pair ) to the top right of the chart.
(Refer to the image for an example.)
The change percentage calculation is performed as described here:
www.tradingview.com
To match the "Chg%" that appears on TradingView watchlists, a 24H (1440min) timeframe is used, as described here:
money.stackexchange.com
In short, this script:
Searches for the BTC pair of the current symbol
Calculates the change % using the above described logic (links)
Adds a " change percentage widget " (of the BTC pair) to the top right of the chart
Allows for using 24H timeframe or the current timeframe (enable " Use current timeframe " under the script options)
Multi IND Dashboard [Skiploss]Multi IND Dashboard is dashboard combine with price change, RSI, ATR, Alligator and Supertrend. With a maximum of 10 timeframes, I think it's going to make your life easier. In looking at the momentum of each chart.
How it work??
Change :
It is the distance from the close price of previous candlestick and shows the movement value of the candlestick in that timeframe.
RSI :
Default setting are 14 and source close
Value >= 75 : Fill text color maximum overbought
Value >= 65 : Fill text color medium overbought
Value >= 55 : Fill text color minimum overbought
Value >= 45 : Fill text color minimum overbought
Value >= 35 : Fill text color medium overbought
Value >= 25 : Fill text color maximum overbought
ATR :
Default setting are 14 length and RMA smoothing, It like the average swing of the candlesticks.
Alligator :
Default setting are 13, 8 and 5
Bullish status is value lips > teeth and teeth > jaw
Bearish status is value lips < teeth and teeth < jaw
Neutral status status is value lips > teeth and teeth < jaw or lips < teeth and teeth > jaw
Supertrend :
Default setting are 8 and 3.0
Bullish status is uptrend
Bearish status is downtrend
ATR+This is an indicator which uses the ATR (average true range) to calculate take profit levels, stop loss levels, and position sizing.
It acts an ATR indicator, based on concepts found in the No Nonsense Forex (NNFX) trading system.
ATR works by looking at the past N periods (14 by default) to see on average, how many pips or dollars an asset has moved. It is widely used by itself or as part of another indicator.
This script also implements money/risk management to determine:
Take Profit : 1.00x ATR (default)
Stop Loss : 1.50x ATR (default)
Risk : 2% of account size (default)
Position Sizing : How many lots/shares/units you need to achieve the indicated risk
Trade Value : The total cost of the lots/shares/units
This indicator only displays information in the status line. It does not guarantee a successful trade, and is only intended to be used to calculate take profit and stop loss levels, or as a point of reference when entering trades. Always do your own research.
1st Gray Cross Signals ━ Histogram SQZMOM [whvntr][LazyBear]This is the Histogram Version of one of my other indicators named: SQZ Momentum + 1st Gray Cross Signals (with arrows) Which is a modification of "Squeeze Momentum Indicator" by user: "LazyBear". In that indicator of his he described, and suggested, the use of his gray cross signals to find points of interest for trading based on the direction of momentum when the first gray cross appears... I have programmed these points, and highlighted them, for ease of use. The 1st gray cross strategy, he said , is from John F. Carter's book, Chapter 11, "Mastering the Trade".
Here we have the Histogram version, with background highlights only, and nothing on the chart, in true SQZ Momentum style.
Disclaimer: using this indicator, or any indicator anywhere, involves risk when trading and isn't a guarantee of 100% accurate results.
Average Deviation Bands (ADB)The Average Deviation Bands indicator is a technical analysis tool that plots multiple bands around the average price of an asset. These bands are calculated using the standard deviation of the asset's price over a specified time period, as well as the average price of the asset over the same period. However, it's important to note that the standard deviation is only calculated for the specified time period leading up to the current point in the data set. The indicator then takes the average of all of these standard deviation values to plot the bands. The number and width of the bands can be customized by the user. The bands can be used to identify potential trend changes and to assess the volatility of the asset. The indicator is often used in combination with other technical analysis tools to provide a more complete picture of market conditions.
Trop BandsTrop Bands is a tool that uses an exponential moving average (EMA) as its central trendline and upper and lower bands to identify potential buying and selling opportunities in the market. The bands are calculated based on recent moves away from the EMA, and they are plotted around the central trendline to provide a visual representation of market trends and conditions. When the price moves outside of these bands, it can be seen as a signal that the security is overbought or oversold and may be ready for a reversal, just like Bollinger Bands.
In addition to providing signals when the price moves outside of the bands, the indicator can also show triangles outside/inside the bands. These triangles are based on the Demand Index developed by James Sibbet and are intended to provide additional confirmation of potential trading opportunities. They can be used in conjunction with other technical analysis tools to help identifying potential trading opportunities in the market.
Session Ranges by CeleSimple indicator that shows the various daily sessions and includes a pip counter for every different session.
RedK K-MACD : a MACD with some more musclesMoving Averages are probably the most commonly used analysis tools, and MACD is possibly the first charting indicator a trader gets to learn about.
MACD Basic concept
----------------------------
Without repeating all the tons of documentation about what MACD does, let's quickly re-visit the MACD concept from a 10-mile altitude (note we're keen on simplifying here rather than being technically accurate - so please forgive the use of any "common lingos")
- MACD goal is to represent the distance between 2 Moving Averages (MAs) - one fast and one slow, relatively - as an unrestricted zero-based oscillator.
- The value of the main MACD line is the distance, or the displacement between the 2 MA's
- usually a signal line is used (which is another MA of that distance value) to enable better visualization of the change (and rate of change, since this is all depicted on a time axis) of that displacement - this represents price momentum (price movement in the recent period versus movements for a relatively longer period).
- the difference between the main MACD line and its signal is then represented as a histogram above and below the zero line. in this case, that histogram is really redundant, since it shows a value that is already represented visually by the main line and its signal line.
How K-MACD is different
---------------------------------
K-MACD takes that simple concept of the classic MACD and expands around it - the idea is to use the same simple approach to representing price momentum while bringing in more insight to price moves in the short, medium and long terms, ability to represent more than 2 MA's and to enable better identification of tradeable patterns (like Volatility Contraction and others) - while still keeping things simple and visually clean.
K-MACD is an indicator that allows us to view how price moves against 3 moving averages: a fast / slow pair, and a "market" Filter or Baseline (very long) that will be used as a flag for Bear/Bull market mode. Many traders and trading literature use the 200 day (40 week) SMA as that key filter
so in total, there are 4 MA lines in K-MACD (excluding the "orange" signal line):
* Price Proxy: Which is a very fast moving average that will represent the price itself - let's use a WMA(3) or something close to that here - there will be a signal line to enable better visualization of this similar to a classic MACD - that's the orange line
* Fast & Slow MA's : Use whatever represents the "medium term" momentum for your trading - Some traders use 20 and 50, others use 10 and 20 .. if on your price chart, you keep using a pair of MA's for this, use the same settings in K-MACD - these will be represented by the 3-color Momentum Bars that fluctuate above and below the baseline
* Filter/Baseline MA: Should be your long (Bullish/Bearish Mode) MA. so 100 or 200 or any other value you consider your market to be bearish below and bullish above. on K-MACD this is actually the blue zero line - everything else is "relative" to it
Review the sample chart which explains various elements and the "price chart" setup that K-MACD represents. With K-MACD you can clean up your chart from those various Moving Averages - or use a different set than the ones you already have K-MACD represent - or other indicators (like ATR channels..etc)
Other "muscles" in the K-MACD
---------------------------------------------
- Relative vs Classic Calculation Mode
A key issue with the classic MACD is that the displacement between the 2 moving averages is represented as "absolute or direct" values - as the price of the underlying increases with time, you can't really use these values to make useful comparison between the past and now (see below example) - also you can't use them to compare 2 different instruments.
- The "Relative" calculation option in K-MACD addresses that issue by relating all "distances" to the Baseline MA as percentage (above or below) - you can see this clear when you look at the above chart the far left versus the far right and compare K-MACD with the classic MACD - the Classic option is still available
- More MA "type" options for all MA lines: choose between SMA, EMA, WMA, and RSS_WMA (which i use a lot in my trading and is my default for the Price Proxy)
- More Alerts: a total or 9 alerts (in 3 groups) are available with K-MACD (Momentum above or below baseline, Price Proxy crossing signal line, and Price Proxy crossing baseline)
- New 52 week High / Low markers: These will show as Green/red circles on the zero line in K-MACD. this will only work for 1D timeframe and above, i'm just using a simple approach and would like to keep it that way.
- i know i added some more features not covered above :) -- if you have questions about any of the settings, feel free to ask below
Closing thoughts
-------------------------
K-MACD is a combination of couple of indicators i published in the past (xMACD and Mo_Bars) - so you can go back and read about them if needed - I then added improvements to accommodate ideas from swing trading literature and common practices that i plan to focus on in future. So K-MACD is really part of my own trading setup.
I assume here that most traders are familiar with what a MACD is - so kept this post short - if you thing we should expand more about the concepts covered here let me know in the comments - i can make some separate posts with examples and more details.
I hope many fellow traders find this work useful - and feel free let me know in comments below if you do.
ATR Oscillator - Index (Average True range Oscillator)The purpose of converting the ATR value indicator to an oscillator;
It is known that the ATR value is not between the two specified values. So it is not compressed between 0 and 100 like RSI and %B etc. Therefore, conditions such as "A condition if ATR value is X, B condition if ATR value is Y" cannot be created. In order to create these conditions, the max and min value range of the ATR value must be determined. This indicator converts the ATR values into a percentage number according to the maximum and minimum ATR values in the period you will choose. Max value is 100, min value is 0. The considered ATR value, on the other hand, corresponds to the % of the difference between the max and min value in the selected period.
In this way, conditions such as "If the ATR Oscillator value is greater than 10 or 20 or 30" can now be created, or the value of another indicator can be calculated based on the ATR Oscillator value. For example; Let's say we want the standard deviation of BBand to change according to the value of the ATR Oscillator. If BBand Standard Deviation is 3 if ATRO value is 100, BBand Standard Deviation is 2 if ATRO value is 0, and BBand Standard Deviation is 2.5 when ATRO value is 50;
We can encode it as BBand_Std_Dev=((ATRO*0.01)+2 )
If the ATRO value is between .... and ...., you can make improvements such as plot color X.
Fibonacci Bollinger Bands (FBB)The Fibonacci Moving Average (FMA) is an indicator for financial markets that is calculated using the Fibonacci sequence and the metallic mean. The metallic mean is a type of average that is calculated by adding the source and the square root of the sum of the square of the source and 4, and then dividing the result by 2. The FMA is then calculated by using the metallic mean of the source as the weight for each period in the given length, and summing these weighted values. The standard deviation of the metallic mean of the source is also calculated using the FMA over the given length.
Users can input the source data and the length for the FMA calculation, as well as a series of boolean values to determine which levels of the FMA to plot on the chart. The levels include the standard deviation of the metallic mean of the source, as well as various multiples of the Fibonacci ratios between 0 and 2.618. The resulting FMA and standard deviation values can be plotted on the chart to help traders identify trends and potential entry and exit points in the market.
Double RSI + BBRSI stands for Relative Strength Index.
Bollinger Bands stands for a channel open by standard deviation values plotting upper, lower lines.
Double RSI with Bollinger bands adapted Bollinger bands to RSI not using overlay mode. It tries to filter fake signals while giving more good signals according to volatility even below overbought areas or above oversold areas. This way you can use greater values for RSI, like 25 and 100, increasing smoothness with less market noise.
We added an extra gap spacer to smooth Bollinger bands while widening the channel with a lower multiplier.
I found better results when Fast RSI crosses back into Bollinger bands channel.
You can play with the following settings:
• Source
Close is the most used
• Fast RSI length
Default to 25
• Slow RSI length
Default to 100
• RSI Smoothing
To filter out some graphic noise
• RSI Overbought, Oversold
Regular overbought, oversold lines handled by a single value. For 70/30, set it to 20 although with longer RSI something around 15 is enough.
• Bollinger Spacer
Ads thickness to the channel with lower multiplier
• Bollinger Length
Regular Bollinger length applied to slow RSI
• Bollinger Multiplier
Regular Bollinger multiplier applied to slow RSI
Disclaimer:
For study purposes only, trading without a good risk management can be regrettable, do your own research, always add confirmations, use it as is, at your own risk.
Trendly
╭━━━━╮╱╱╱╱╱╱╱╱╭┳╮
┃╭╮╭╮┃╱╱╱╱╱╱╱╱┃┃┃
╰╯┃┃┣┻┳━━┳━╮╭━╯┃┃╭╮╱╭╮
╱╱┃┃┃╭┫┃━┫╭╮┫╭╮┃┃┃┃╱┃┃
╱╱┃┃┃┃┃┃━┫┃┃┃╰╯┃╰┫╰━╯┃
╱╱╰╯╰╯╰━━┻╯╰┻━━┻━┻━╮╭╯
╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃
╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯
About the script:
This script is an easy-to-use trend indicator, which is based on another popular indicator called "Supertrend" . The basic idea is very simple, i.e. to compute Average True Range(ATR) and use that as the basis for trend detection. The key difference lies in a custom trend detection method, that computes trends across different timeframes and projects them in a table view. The script also tries to improve the behaviour of the existing indicator by highlighting flat regions on the chart, indicating sideways market or potential trend reversals.
How to use it:
You can use it just like any other indicator, add it to your chart and start analysing market trends. Results can be interpreted as follows.
Indicator output is currently made up of two main components:
>> Trend Table:
Appears at the bottom right of your screen
Contains trend indicator for 9 different timeframes
Timeframes can be adjusted using indicator settings panel
Green Up Arrow --> Up Trend
Red Down Arrow --> Down Trend
>> Enhanced Supertrend:
Shows up as a line plot on the chart
Green line indicates up trend
Red line indicates down trend
White regions indicates slow moving markets or a potential trend reversal
Indicator can be used on any timeframe, it provides a view of current and historical market trend
Can be used as an indicator for entering/exiting trades
Can be used to build custom trading strategies