Colored VWAP and BarcolorThis indicator plots the Volume Weighted Average Price (VWAP) as well as changes the bar color if the current price is above or below VWAP, for quick visual reference.
Background Information
Straight from TradingView, "Volume Weighted Average Price (VWAP) is a technical analysis tool used to measure the average price weighted by volume. VWAP is typically used with intraday charts as a way to determine the general direction of intraday prices. It's similar to a moving average in that when price is above VWAP, prices are rising and when price is below VWAP, prices are falling. VWAP is primarily used by technical analysts to identify market trend."
About the Indicator
This indicator changes the VWAP line color and bar color based on the current price.
Bar Color
Bullish Up Candle Color = Current price is above VWAP and the close of the candle was greater than the open.
Bullish Down Candle Color = Current price is above VWAP and the close of the candle was less than the open.
Bearish Up Candle Color = Current price is below VWAP and the close of the candle was greater than the open.
Bearish Down Candle Color = Current price is below VWAP and the close of the candle was less than the open.
Volatilty
Volume [Entoryx]
Certainly! Here's a more concise description for the "Entoryx Volume" indicator, with less focus on the specifics of the order block bar detection:
The "Entoryx Volume" is a versatile technical indicator that analyzes the relationship between price ranges and volume over a user-defined number of bars. By calculating a delta between the highest high and lowest low, it offers insights into market momentum and direction.
Key features of this indicator include:
1) Current Value Plotting: A dynamic line plotted on the chart represents the current value, which reflects market trends. The color of the line changes to green for bullish conditions and red for bearish conditions, depending on its relationship with the Exponential Moving Average (EMA) of the close.
2) Color-Coded Regions: The area between the current value plot and a baseline zero line is filled with a corresponding color, providing a visual representation of market sentiment.
3) Boundary Lines: Horizontal lines at +10 and -10 serve as reference points to highlight significant market movements.
4) Order Block Bar Detection (Optional): An optional feature that places visual markers on the chart to signal potential reversals. This can be enabled or disabled by the user, according to preference.
The "Entoryx Volume" indicator is tailored for traders aiming to understand market momentum with a clear and visually intuitive display. It is suitable across various trading strategies and market conditions, with customization options to fit individual needs.
The source code for this indicator is subject to the terms of the Mozilla Public License 2.0.
TradeMaster OscillatorTrading effectively requires a range of techniques, experience, and expertise. From technical analysis to market fundamentals, traders must navigate multiple factors, including market sentiment and economic conditions. However, traders often find themselves overwhelmed by market noise, making it challenging to filter out distractions and make informed decisions. To address this, we present a powerful indicator package designed to assist traders on their journey to success.
The TradeMaster indicator package encompasses a variety of trading strategies, including the SMC (Supply, Demand, and Price Action) approach, along with many other techniques. By leveraging concepts such as price action trading, support and resistance analysis, supply and demand dynamics, these indicators empower traders to analyze entry and exit positions with precision. Unlike other forms of technical analysis that produce values or plots based on historical price data, Price Action brings you the facts straight from the source - the current price movements.
The indicator package consists of three powerful indicators that can be used individually or together to maximize trading effectiveness.
⭐ About the Oscillator Indicator
The Oscillator is an innovative and robust tool that encapsulates the principles of multiple technical analysis methodologies to enrich your trading strategy. By leveraging the combination of our six unique indicators, it can provide a comprehensive and multi-dimensional view of market dynamics.
👉 Usage - the general approach:
Utilize the Oscillator Indicator as a confirmational tool. The Oscillator acts as a tool to validate ideas and strategies. By analyzing the oscillator's readings, you gain additional insights into market momentum, overbought or oversold conditions, and potential trend reversals. This confirmation step helps you avoid false signals and make more informed trading choices.
👉 We are focusing on the default setting of the TradeMaster Oscillator, which incorporates the Global RSI* as main oscillator and Local RSI* as confirmational oscillator. This base configuration can be custom-tailored to your preference, leveraging the additional combination of our six unique indicators.
Understand the difference between Global and Local RSI: The Global RSI represents broad relative strength, while the Local RSI describes the relative strength within wider movements. It's like having both a macro and micro view of relative strength.
Identify extreme values in Local RSI: Look for extremes in the Local RSI (overbought/oversold in Stochastic RSI). These often indicate a turning point in the RSI, which naturally reflects in the price. The Local RSI extremes are shown as dots outside the Global RSI bands in a "heatmap" style.
Smooth your RSI: You have the option to smooth your RSI with your preferred smoothing method (SMA , SMMA, EMA, DEMA, TEMA, LSMA, HMA, VWMA, WMA) and length.
Please bear in mind that high smoothing values can make the standard RSI extremes (>70 or <30) suboptimal or even useless. To address this potential problem, Adaptive levels were introduced.
Adaptive key levels for more relevant extremes: enabling Adaptive levels recalibrates extremes based on the historical RSI turning points (typical median turning points), providing much more relevant reference points for overbought/oversold states in both Global and Local RSI. This function can be used without smoothing but rarely provides significant difference unless you experiment with the length of RSI calculation.
Incorporate multiple indicators: besides Global and Local RSI, you can display six different proprietary indicators in the main oscillator theme. By choosing from these, you can apply the confirming condition as well. These include Sentiment (Fear and greed), Momentum, Trend Strength, Volume, and Volatility. These indicators use our TRMA** method to provide a comprehensive overview of market dynamics.
Choose your Global RSI display style: the Global RSI can be represented in candle, bar, line or ribbon form. Candles and bars can be useful for detecting rejections of relative strength (wicks), similar to OHLC data. Sometimes there are "hidden rejections" visible in relative strength but not in OHLC data, which naturally presents an advantage.
Customize the colors: All colors can be adjusted from the input menu to suit your preferences. This personalization allows you to make the Oscillator clear and intuitive for your individual trading style as possible.
Monitor Real-time Indicator values: In the bottom right corner, you can view real-time color-coded indicator values. This feature gives you the ability to quickly assess the market's current conditions without needing to navigate away from the chart.
Use multiple indicators in conjunction: while each indicator within the Oscillator provides valuable insights, their true power lies in their combination. Identify alignment among indicators to validate potential trades. For instance, when a bullish sentiment indication aligns with a low volatility reading, it may suggest a favorable buying opportunity.
Consider the market context: while the Oscillator provides a robust set of tools, always consider other aspects of the market environment. Use the oscillator in conjunction with other technical, fundamental, or sentiment analysis methods to develop a comprehensive trading strategy.
🛑 Remember, the oscillator should be used as a confirmational tool in your overall trading strategy. Make reasonable use of all its features, and always keep risk management principles in mind.
* By default, these are fine-tuned RSI and Stochastic RSI indicators.
** TRMA (Trend Rainbow Moving Averages) is a complex but customizable moving average matrix calculation that is designed to accurately measure market trend direction, strength and shifting.
⭐ Conclusion
We hold the view that the true path to success is the synergy between the trader and the tool, contrary to the common belief that the tool itself is the sole determinant of profitability. The actual scenario is more nuanced than such an oversimplification. Our aim is to offer useful features that meet the needs of the 21st century and that we actually use.
🛑 Risk Notice:
Everything provided by trademasterindicator – from scripts, tools, and articles to educational materials – is intended solely for educational and informational purposes. Past performance does not assure future returns.
RSI Supreme Multi-Method [MyTradingCoder]Introducing the "RSI Supreme Multi-Method" indicator, a powerful tool that combines the Relative Strength Index (RSI) with selectable manipulation methods to identify overbought and oversold conditions in the market, along with the ability to detect divergences for enhanced trading insights.
The indicator features four distinct manipulation methods for the RSI, each providing valuable insights into market conditions:
1. Standard RSI Method: The indicator uses the traditional RSI calculation to identify overbought and oversold areas.
2. Volatility Weighted RSI Method: This method applies a volatility formula to the RSI calculation, allowing for a more responsive indication of market conditions during periods of heightened volatility. Users can adjust the length of the volatility formula to fine-tune this method.
3. Smoothed RSI Method: The smoothed RSI method utilizes a smoothing algorithm to reduce noise in the RSI values, presenting a clearer representation of overbought and oversold conditions. The length of the smoothing can be adjusted to match your trading preferences.
4. Session Weighted RSI Method: With this innovative method, users can specify multipliers for different time sessions throughout the day to manipulate the base RSI. Each session can be customized with start and end times, enabling or disabling specific sessions, and specifying the multiplier for each session. This feature allows traders to adapt the RSI to different market sessions dynamically.
Additionally, the "RSI Supreme Multi-Method" indicator draws divergences on the oscillator, providing an extra layer of analysis for traders. Divergences occur when the direction of the RSI differs from the direction of the price movement, potentially signaling trend reversals.
Key Settings:
RSI Length: Adjust the length of the base RSI before applying any manipulation.
RSI Source: Determine the data source for the base RSI calculation.
Overbought Value: Set the RSI value at which overbought conditions are indicated.
Oversold Value: Set the RSI value at which oversold conditions are indicated.
RSI Type: Choose from four options: Standard, Smoothed, Volatility Manipulated, or Session Manipulated.
Volatility Manipulated Settings: Adjust the length of the volatility formula (applicable to Volatility Manipulated method).
Smoothed Settings: Adjust the length of the smoothing (applicable to Smoothed method).
Session Manipulated Settings: Customize six different time sessions with start and end times, enable or disable specific sessions, and specify multipliers for each session.
Divergence Color: Adjust the color of the drawn divergences to suit your chart's aesthetics.
Divergence Tuning: Fine-tune the sensitivity of the divergence detection for more accurate signals.
The "RSI Supreme Multi-Method" indicator is a versatile and comprehensive tool that can be used to identify overbought and oversold areas, as well as to spot potential trend reversals through divergences. However, like all technical analysis tools, it should be used in conjunction with other indicators and analysis methods to make well-informed trading decisions.
Enhance your trading insights with the "RSI Supreme Multi-Method" indicator and gain an edge in identifying critical market conditions and divergences with precision.
Buyers & Sellers / RangeBuyers & Sellers / Range
Volatility oscillator that measures the relationship of Buying & Selling Pressure to True Range.
In other words, how much % Buyers and Sellers separately occupy the Bar
BSP is a part of Bar Range. Entire bar metrics will always have bigger value than its composite elements (body and wicks).
Since there will be NO chance of BP or SP being more than ATR, their ratio would serve crucial Volatility details.
Hence, we can relate each of them to the overall range.
As a result we have simultaneous measurements of proportions buyers and sellers to the bar.
Default mode shows BP/ATR and SP/ATR mirrored. When one rises, the other falls to compensate.
Buying Pressure / True Range ⬆️🟢 ⬇️🔵
Selling Pressure / True Range ⬆️🔴 ⬇️🟠
They are being averaged in 2 different ways:
Pre-average first, then relate as ratio
Related first, then Averaged
Enable "Preaveraged" to use already averaged BSP and Ranges in ratio instead of averaging the ratio of BSP to individual bar. For example, we're looking BP/ATR, in calculation of buyers / Range it will use "MA(Buying Pressure) / MA(True Range)" instead of "MA(Buying Pressure / True Range)".
Due such calculation, it is going to be more lagging than in off mode. Nevertheless, it reduces noise from the impact of individual bar change.
Second way of noise reduction is enabling "Body / Range"
BSP Body / Range where Bullish & Bearish Body = Buying & Selling Pressure - Relevant Wick
Buying Body = Buying Pressure - Lower Wick
Selling Body = Selling Pressure - Upper Wick
And only then it is divided to ATR.
Note that Balance line differs because body is less than it used to be with wicks. So change in wicks won't play any role in computing the ratio anymore. Thus, signals of their crossings will be more reliable than in default mode.
MTF Fusion - High Volume Expansion Channel [TradingIndicators]Exceptionally high volume and rapid price expansion are key markers of powerful moves, especially when they occur during a breakout or breakdown. The High Volume Expansion Channel (HVEC) uses our multi-timeframe fusion and price compression/expansion algorithms to look for high volume and rapid expansion from multiple higher timeframes at once. It uses this info to determine a high volume and expansion 'grade', and then encodes this result into a colored channel. This channel coloring varies in intensity based on how exceptionally high volume is and how rapidly price is expanding in either direction.
What is MTF Fusion?
Multi-Timeframe (MTF) Fusion is the process of combining calculations from multiple timeframes higher than the chart's into one 'fused' value or indicator. It is based on the idea that integrating data from higher timeframes can help us to better identify short-term trading opportunities within the context of long-term market trends.
How does it work?
Let's use the context of this indicator, which calculates a 'high volume and expansion grade' (let's call it HVEG), as an example to explain how MTF Fusion works and how you can perform it yourself.
Step 1: Selecting Higher Timeframes
The first step is to determine the appropriate higher timeframes to use for the fusion calculation. These timeframes should typically be chosen based on their ability to provide meaningful data and action which actively affect the price action of the smaller timeframe you're focused on. For example, if you are trading the 5 minute chart, you might select the 15 minute, 30 minute, and hourly timeframe as the higher timeframes you want to fuse in order to give you a more holistic view of the trends and action affecting you on the 5 minute. In this indicator, four higher timeframes are automatically selected depending on the timeframe of the chart it is applied to.
Step 2: Gathering Data and Calculations
Once the higher timeframes are identified, the next step is to calculate the data from these higher timeframes that will be used to calculate your fused values. In this indicator, for example, the HVEG value is calculated by determining the HVEG for all four higher timeframes.
Step 3: Fusing the Values From Higher Timeframes
The next step is to actually combine the values from these higher timeframes to obtain your 'fused' indicator values. The simplest approach to this is to simply average them. If you have calculated the HVEG value from three higher timeframes, you can, for example, calculate your 'multi-timeframe fused HVEG' as (HigherTF_HVEG_1 + HigherTF_HVEG_2 + HigherTF_HVEG_3) / 3.0.
Step 4: Visualization and Interpretation
Once the calculations are complete, the resulting fused indicator values are plotted on the chart. These values reflect the fusion of data from the multiple higher timeframes, giving a broader perspective on the market's behavior and potentially valuable insights without the need to manually consider values from each higher timeframe yourself.
What makes this script unique? Why is it closed source?
While the process described above is fairly unique and sounds simple, the truly important key lies in determining which higher timeframes to fuse together, and how to weight their values when calculating the fused end result in such a way that best leverages their relationship for useful TA.
This MTF Fusion indicator employs a smart, adaptive algorithm which automatically selects appropriate higher timeframes to use in fusion calculations depending on the timeframe of the chart it is applied to. It also uses a dynamic algorithm to adjust and weight the high volume and price expansion grade calculations depending on each higher timeframe's relationship to the chart timeframe. These algorithms are based on extensive testing and are the reason behind this script's closed source status.
Included Features
MTF Fusion high volume and expansion coloring
MTF Fusion ATR-based channel for visual effect
Channel width customization and explanatory labels
Pre-built color stylings
Options
Show Channel Lines: Show/hide the upper and lower lines of the channel
Fill Channel: Fill the channel with coloring depicting the current degree of high volume and rapid price expansion
Channel Width Multiplier: Sets the width of the ATR-based channel
Explanatory Labels: Show/hide explanatory labels describing the visuals
Lookback: Select how you want the degree of high volume expansion to be calculated (longer = long-term high volume and expansion, shorter = short-term high volume and expansion)
Pre-Built Color Styles: Use a pre-built color styling (uncheck to use your own colors)
Manual Color Styles: When pre-built color styles are disabled, use these color inputs to define your own
Developing Market Profile / TPO [Honestcowboy]The Developing Market Profile Indicator aims to broaden the horizon of Market Profile / TPO research and trading. While standard Market Profiles aim is to show where PRICE is in relation to TIME on a previous session (usually a day). Developing Market Profile will change bar by bar and display PRICE in relation to TIME for a user specified number of past bars.
What is a market profile?
"Market Profile is an intra-day charting technique (price vertical, time/activity horizontal) devised by J. Peter Steidlmayer. Steidlmayer was seeking a way to determine and to evaluate market value as it developed in the day time frame. The concept was to display price on a vertical axis against time on the horizontal, and the ensuing graphic generally is a bell shape--fatter at the middle prices, with activity trailing off and volume diminished at the extreme higher and lower prices."
For education on market profiles I recommend you search the net and study some profitable traders who use it.
Key Differences
Does not have a value area but distinguishes each column in relation to the biggest column in percentage terms.
Updates bar by bar
Does not take sessions into account
Shows historical values for each bar
While there is an entire education system build around Market Profiles they usually focus on a daily profile and in some cases how the value area develops during the day (there are indicators showing the developing value area).
The idea of trading based on a developing value area is what inspired me to build the Developing Market Profile.
🟦 CALCULATION
Think of this Developing Market Profile the same way as you would think of a moving average. On each bar it will lookback 200 bars (or as user specified) and calculate a Market Profile from those bars (range).
🔹Market Profile gets calculated using these steps:
Get the highest high and lowest low of the price range.
Separate that range into user specified amount of price zones (all spaced evenly)
Loop through the ranges bars and on each bar check in which price zones price was, then add +1 to the zones price was in (we do this using the OccurenceArray)
After it looped through all bars in the range it will draw columns for each price zone (using boxes) and make them as wide as the OccurenceArray dictates in number of bars
🔹Coloring each column:
The script will find the biggest column in the Profile and use that as a reference for all other columns. It will then decide for each column individually how big it is in % compared to the biggest column. It will use that percentage to decide which color to give it, top 20% will be red, top 40% purple, top 60% blue, top 80% green and all the rest yellow. The user is able to adjust these numbers for further customisation.
The historical display of the profiles uses plotchar() and will not only use the color of the column at that time but the % rating will also decide transparancy for further detail when analysing how the profiles developed over time. Each of those historical profiles is calculated using its own 200 past bars. This makes the script very heavy and that is why it includes optimisation settings, more info below.
🟦 USAGE
My general idea of the markets is that they are ever changing and that in studying that changing behaviour a good trader is able to distinguish new behaviour from old behaviour and adapt his approach before losing traders "weak hands" do.
A Market Profile can visually show a trader what kind of market environment we currently are in. In training this visual feedback helps traders remember past market environments and how the market behaved during these times.
Use the history shown using plotchars in colors to get an idea of how the Market Profile looked at each bar of the chart.
This history will help in studying how price moves at different stages of the Market Profile development.
I'm in no way an expert in trading Market Profiles so take this information with a grain of salt. Below an idea of how I would trade using this indicator:
🟦 SETTINGS
🔹MARKET PROFILING
Lookback: The amount of bars the Market Profile will look in the past to calculate where price has been the most in that range
Resolution: This is the amount of columns the Market Profile will have. These columns are calculated using the highest and lowest point price has been for the lookback period
Resolution is limited to a maximum of 32 because of pinescript plotting limits (64). Each plotchar() because of using variable colors takes up 2 of these slots
🔹VISUAL SETTINGS
Profile Distance From Chart: The amount of bars the market profile will be offset from the current bar
Border width (MP): The line thickness of the Market Profile column borders
Character: This is the character the history will use to show past profiles, default is a square.
Color theme: You can pick 5 colors from biggest column of the Profile to smallest column of the profile.
Numbers: these are for % to decide column color. So on default top 20% will be red, top 40% purple... Always use these in descending order
Show Market Profile: This setting will enable/disable the current Market Profile (columns on right side of current bar)
Show Profile History: This setting will enable/disable the Profile History which are the colored characters you see on each bar
🔹OPTIMISATION AND DEBUGGING
Calculate from here: The Market Profile will only start to calculate bar by bar from this point. Setting is needed to optimise loading time and quite frankly without it the script would probably exceed tradingview loading time limits.
Min Size: This setting is there to avoid visual bugs in the script. Scaling the chart there can be issues where the Market Profile extends all the way to 0. To avoid this use a minimum size bigger than the bugged bottom box
Moving Average - TREND POWER v1.1- (AS)0)NOTE:
This is first version of this indicator. It's way more complicated than it should be. Check out Moving Average-TREND POWER v2.1-(AS), its waaaaay less complicated and might be better.Enjoy...
1)INTRODUCTION/MAIN IDEA:
In simpliest form this script is a trend indicator that rises if Moving average if below price or falling if above and going back to zero if there is a crossover with a price. To use this indicator you will have to adjust settings of MAs and choose conditions for calculation.
While using the indicator we might have to define CROSS types or which MAs to use. List of what cross types are defined in the script and Conditiones to choose from.The list will be below.
2) COMPOSITION:
-MA1 can be defined by user in settings, possible types: SMA, EMA, RMA, HMA, TEMA, DEMA, LSMA, WMA.
-MA2 is always ALMA
3) OVERLAY:
Default is false but if you want to see MA1/2 on chart you can change code to true and then turn on overlay in settings. Most plot settings are avalible only in OV=false.
if OV=true possible plots ->MA1/2, plotshape when choosen cross type
if OV=false -> main indicator,TSHs,Cross counter
4)PRESETS :
Indicator has three modes that can be selected in settings. First two are presets and do not require selecting conditions as they set be default.
-SIMPLE - most basic
-ABSOLUTE - shows only positive values when market is trending or zero when in range
-CUSTOM - main and the most advanced form that will require setting conditions to use in calculating trend
4.1)SIMPLE – this is the most basic form of conditions that uses only First MA. If MA1 is below selected source (High/Low(High for Uptrend and Low for DNtrend or OHLC4) on every bar value rises by 0.02. if it above Low or OHLC4 it falls by 0.02 with every bar. If there is a cross of MA with price value is zero. This preset uses CROSS_1_ULT(list of all cross types below)
4.2) ABSOLUTE – does not show direction of the trend unlike others and uses both MA1 and MA2. Uses CROSS type 123_ULT
4.3) CUSTOM – here we define conditions manually. This mode is defined in parts (5-8 of description)
5)SETTINGS:
SOURCE/OVERLAY(line1) – select source of calculation form MA1/MA2, select for overlay true (look point 3)
TRESHOLDS(line2). – set upper and lower THS, turn TSHs on/off
MA1(line3) – Length/type of MA/Offset(only if MA type is LSM)
MA2(line4) – length/offset/sigma -(remember to set ma in the way that in Uptrend MA2MA1 in DNtrend)
Use faster MA types for short term trends and slower types / bigger periods for longer term trends, defval MA1/2 settings
are pretty much random so using them is not recomended.
CROSSshape(line5) – choose which cross type you want to plot on chart(only in OV=true) or what type you want to use in counting via for loops,
CROSScount(line6) – set lookback for type of cross choosen above
BOOLs in lines 5 and 6 - plotshape if OV=true/plot CROSScount histogram (if OV=false)
Lines 7 and 8 – PRESET we want to use /SRC for calculation of indicator/are conditions described below/which MAs to use/Condition for
reducing value t 0 - (if PRESET is ABSOLUTE or SIMPLE only SRC should be set(Line 8 does not matter if not CUSTOM))
5)SOURCE for CONDS:
Here you can choose between H/L and OHLC. If H/L value grow when MAlow. If OHLC MAOHLC. H/L is set by default and recommended. This can be selected for all presets not only CUSTOM
6)CROSS types LIST:
“1 means MA1, 2 is MA2 and 3 I cross of MA1/MA2. L stands for low and H for high so for example 2H means cross of MA2 and high”
NAME -DEFINITION Number of possible crosses
1L - cross of MA1 and low 1
1H - cross of MA1 and high 1
1HL - cross of MA1 and low or MA1 and high 2 -1L/1H
2L - cross of MA2 and low 1
2H - cross of MA2 and high 1
2HL - cross of MA2 and low or MA1 and high 2 -2L/2H
12L - cross of MA1 and low or MA2 and low 2 -1L/2L
12H - cross of MA1 and high or MA2 and high 2 -1H/2H
12HL - MA1/2 and high/low 4 -1H/1L/2H/2L
3 -cross of MA1 and MA2 1
123HL -crosses from 12HL or 3 5 -12HL/3
1_ULT - cross of MA1 with any of price sources(close,low,high,ohlc4 etc…)
2_ULT - cross of MA2 with any of price sources(close,low,high,ohlc4 etc…)
123_ULT – all crosses possible of MA1/2 (all of the above so a lot)
7)CRS CONDS:
“conditions to reduce value back to zero”
>/< - 0 if indicator shows Uptrend and there’s a cross with high of selected MA or 0 if in DNtrend and cross with low. Better for UP/DN trend detection
ALL – 0 if cross of MA with high or low no matter the trend, better for detecting consolidation
ULT – if any cross of selected MA, most crosses so goes to 0 most often
8)MA selection and CONDS:
-MA1: only MA1 is used,if MA1 below price value grows and the other way around
MA1price =-0.02
-MA2 – only MA2 is used, same conditions as MA1 but using MA2
MA2price =-0.02
-BOTH – MA1 and MA2 used, grows when MA1 if below, grows faster if MA1 and MA2 are below and fastest when MA1 and MA2 are below and MA2price=-0.02
-MA1 and MA2 >price=-0.03
-MA1 and MA2 ?price and MA2>MA1=-0.04
9)CONDITIONS SELECTION SUMMARRY:
So when CUSTOM we choose :
1)SOURCE – H/L or OHLC
2)MAs – MA1/MA2/BOTH
3)CRS CONDS (>/<,ALL,ULT)
So for example...
if we take MA1 and ALL value will go to zero if 1HL
if MA1 and >/< - 0 if 1L or 1H (depending if value is positive or negative).(1L or 1H)
If ALL and BOTH zero when 12HL
If BOTH and ULT value goes back to zero if Theres any cross of MA1/MA2 with price or cross of MA1 and MA2.(123_ULT)
If >/< and BOTH – 0 if 12L in DNtrend or 12H if UPtrend
10) OTHERS
-script was created on EURUSD 5M and wasn't tested on different markets
-default values of MA1/MA2 aren't optimalized so do not
-There might be a logical error in the script so let me know if you find it (most probably in 'BOTH')
-thanks to @AlifeToMake for help
-if you have any ideas to improve let me know
-there are also tooltips to help
VolatilityIndicatorsLibrary "VolatilityIndicators"
This is a library of Volatility Indicators .
It aims to facilitate the grouping of this category of indicators, and also offer the customized supply of
the parameters and sources, not being restricted to just the closing price.
@Thanks and credits:
1. Dynamic Zones: Leo Zamansky, Ph.D., and David Stendahl
2. Deviation: Karl Pearson (code by TradingView)
3. Variance: Ronald Fisher (code by TradingView)
4. Z-score: Veronique Valcu (code by HPotter)
5. Standard deviation: Ronald Fisher (code by TradingView)
6. ATR (Average True Range): J. Welles Wilder (code by TradingView)
7. ATRP (Average True Range Percent): millerrh
8. Historical Volatility: HPotter
9. Min-Max Scale Normalization: gorx1
10. Mean Normalization: gorx1
11. Standardization: gorx1
12. Scaling to unit length: gorx1
13. LS Volatility Index: Alexandre Wolwacz (Stormer), Fabrício Lorenz, Fábio Figueiredo (Vlad) (code by me)
14. Bollinger Bands: John Bollinger (code by TradingView)
15. Bollinger Bands %: John Bollinger (code by TradingView)
16. Bollinger Bands Width: John Bollinger (code by TradingView)
dev(source, length, anotherSource)
Deviation. Measure the difference between a source in relation to another source
Parameters:
source (float)
length (simple int) : (int) Sequential period to calculate the deviation
anotherSource (float) : (float) Source to compare
Returns: (float) Bollinger Bands Width
variance(src, mean, length, biased, degreesOfFreedom)
Variance. A statistical measurement of the spread between numbers in a data set. More specifically,
variance measures how far each number in the set is from the mean (average), and thus from every other number in the set.
Variance is often depicted by this symbol: σ2. It is used by both analysts and traders to determine volatility and market security.
Parameters:
src (float) : (float) Source to calculate variance
mean (float) : (float) Mean (Moving average)
length (simple int) : (int) The sequential period to calcule the variance (number of values in data set)
biased (simple bool) : (bool) Defines the type of standard deviation. If true, uses biased sample variance (n),
degreesOfFreedom (simple int) : (int) Degrees of freedom. The number of values in the final calculation of a statistic that are free to vary.
Default value is n-1, where n here is length. Only applies when biased parameter is defined as true.
Returns: (float) Standard deviation
stDev(src, length, mean, biased, degreesOfFreedom)
Measure the Standard deviation from a source in relation to it's moving average.
In this implementation, you pass the average as a parameter, allowing a more personalized calculation.
Parameters:
src (float) : (float) Source to calculate standard deviation
length (simple int) : (int) The sequential period to calcule the standard deviation
mean (float) : (float) Moving average.
biased (simple bool) : (bool) Defines the type of standard deviation. If true, uses biased sample variance (n),
else uses unbiased sample variance (n-1 or another value, as long as it is in the range between 1 and n-1), where n=length.
degreesOfFreedom (simple int) : (int) Degrees of freedom. The number of values in the final calculation of a statistic that are free to vary.
Default value is n-1, where n here is length.
Returns: (float) Standard deviation
zscore(src, mean, length, biased, degreesOfFreedom)
Z-Score. A z-score is a statistical measurement that indicates how many standard deviations a data point is from
the mean of a data set. It is also known as a standard score. The formula for calculating a z-score is (x - μ) / σ,
where x is the individual data point, μ is the mean of the data set, and σ is the standard deviation of the data set.
Z-scores are useful in identifying outliers or extreme values in a data set. A positive z-score indicates that the
data point is above the mean, while a negative z-score indicates that the data point is below the mean. A z-score of
0 indicates that the data point is equal to the mean.
Z-scores are often used in hypothesis testing and determining confidence intervals. They can also be used to compare
data sets with different units or scales, as the z-score standardizes the data. Overall, z-scores provide a way to
measure the relative position of a data point in a data
Parameters:
src (float) : (float) Source to calculate z-score
mean (float) : (float) Moving average.
length (simple int) : (int) The sequential period to calcule the standard deviation
biased (simple bool) : (bool) Defines the type of standard deviation. If true, uses biased sample variance (n),
else uses unbiased sample variance (n-1 or another value, as long as it is in the range between 1 and n-1), where n=length.
degreesOfFreedom (simple int) : (int) Degrees of freedom. The number of values in the final calculation of a statistic that are free to vary.
Default value is n-1, where n here is length.
Returns: (float) Z-score
atr(source, length)
ATR: Average True Range. Customized version with source parameter.
Parameters:
source (float) : (float) Source
length (simple int) : (int) Length (number of bars back)
Returns: (float) ATR
atrp(length, sourceP)
ATRP (Average True Range Percent)
Parameters:
length (simple int) : (int) Length (number of bars back) for ATR
sourceP (float) : (float) Source for calculating percentage relativity
Returns: (float) ATRP
atrp(source, length, sourceP)
ATRP (Average True Range Percent). Customized version with source parameter.
Parameters:
source (float) : (float) Source for ATR
length (simple int) : (int) Length (number of bars back) for ATR
sourceP (float) : (float) Source for calculating percentage relativity
Returns: (float) ATRP
historicalVolatility(lengthATR, lengthHist)
Historical Volatility
Parameters:
lengthATR (simple int) : (int) Length (number of bars back) for ATR
lengthHist (simple int) : (int) Length (number of bars back) for Historical Volatility
Returns: (float) Historical Volatility
historicalVolatility(source, lengthATR, lengthHist)
Historical Volatility
Parameters:
source (float) : (float) Source for ATR
lengthATR (simple int) : (int) Length (number of bars back) for ATR
lengthHist (simple int) : (int) Length (number of bars back) for Historical Volatility
Returns: (float) Historical Volatility
minMaxNormalization(src, numbars)
Min-Max Scale Normalization. Maximum and minimum values are taken from the sequential range of
numbars bars back, where numbars is a number defined by the user.
Parameters:
src (float) : (float) Source to normalize
numbars (simple int) : (int) Numbers of sequential bars back to seek for lowest and hightest values.
Returns: (float) Normalized value
minMaxNormalization(src, numbars, minimumLimit, maximumLimit)
Min-Max Scale Normalization. Maximum and minimum values are taken from the sequential range of
numbars bars back, where numbars is a number defined by the user.
In this implementation, the user explicitly provides the desired minimum (min) and maximum (max) values for the scale,
rather than using the minimum and maximum values from the data.
Parameters:
src (float) : (float) Source to normalize
numbars (simple int) : (int) Numbers of sequential bars back to seek for lowest and hightest values.
minimumLimit (simple float) : (float) Minimum value to scale
maximumLimit (simple float) : (float) Maximum value to scale
Returns: (float) Normalized value
meanNormalization(src, numbars, mean)
Mean Normalization
Parameters:
src (float) : (float) Source to normalize
numbars (simple int) : (int) Numbers of sequential bars back to seek for lowest and hightest values.
mean (float) : (float) Mean of source
Returns: (float) Normalized value
standardization(src, mean, stDev)
Standardization (Z-score Normalization). How "outside the mean" values relate to the standard deviation (ratio between first and second)
Parameters:
src (float) : (float) Source to normalize
mean (float) : (float) Mean of source
stDev (float) : (float) Standard Deviation
Returns: (float) Normalized value
scalingToUnitLength(src, numbars)
Scaling to unit length
Parameters:
src (float) : (float) Source to normalize
numbars (simple int) : (int) Numbers of sequential bars back to seek for lowest and hightest values.
Returns: (float) Normalized value
lsVolatilityIndex(movingAverage, sourceHvol, lengthATR, lengthHist, lenNormal, lowerLimit, upperLimit)
LS Volatility Index. Measures the volatility of price in relation to an average.
Parameters:
movingAverage (float) : (float) A moving average
sourceHvol (float) : (float) Source for calculating the historical volatility
lengthATR (simple int) : (float) Length for calculating the ATR (Average True Range)
lengthHist (simple int) : (float) Length for calculating the historical volatility
lenNormal (simple int) : (float) Length for normalization
lowerLimit (simple int)
upperLimit (simple int)
Returns: (float) LS Volatility Index
lsVolatilityIndex(sourcePrice, movingAverage, sourceHvol, lengthATR, lengthHist, lenNormal, lowerLimit, upperLimit)
LS Volatility Index. Measures the volatility of price in relation to an average.
Parameters:
sourcePrice (float) : (float) Source for measure the distance
movingAverage (float) : (float) A moving average
sourceHvol (float) : (float) Source for calculating the historical volatility
lengthATR (simple int) : (float) Length for calculating the ATR (Average True Range)
lengthHist (simple int) : (float) Length for calculating the historical volatility
lenNormal (simple int)
lowerLimit (simple int)
upperLimit (simple int)
Returns: (float) LS Volatility Index
bollingerBands(src, length, mult, basis)
Bollinger Bands. A Bollinger Band is a technical analysis tool defined by a set of lines plotted
two standard deviations (positively and negatively) away from a simple moving average (SMA) of the security's price,
but can be adjusted to user preferences. In this version you can pass a customized basis (moving average), not only SMA.
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) The time period to be used in calculating the standard deviation
mult (simple float) : (float) Multiplier used in standard deviation. Basically, the upper/lower bands are standard deviation multiplied by this.
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float) A tuple of Bollinger Bands, where index 1=basis; 2=basis+dev; 3=basis-dev; and dev=multiplier*stdev
bollingerBands(src, length, aMult, basis)
Bollinger Bands. A Bollinger Band is a technical analysis tool defined by a set of lines plotted
two standard deviations (positively and negatively) away from a simple moving average (SMA) of the security's price,
but can be adjusted to user preferences. In this version you can pass a customized basis (moving average), not only SMA.
Also, various multipliers can be passed, thus getting more bands (instead of just 2).
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) The time period to be used in calculating the standard deviation
aMult (float ) : (float ) An array of multiplies used in standard deviation. Basically, the upper/lower bands are standard deviation multiplied by this.
This array of multipliers permit the use of various bands, not only 2.
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float ) An array of Bollinger Bands, where:
index 1=basis; 2=basis+dev1; 3=basis-dev1; 4=basis+dev2, 5=basis-dev2, 6=basis+dev2, 7=basis-dev2, Nup=basis+devN, Nlow=basis-devN
and dev1, dev2, devN are ```multiplier N * stdev```
bollingerBandsB(src, length, mult, basis)
Bollinger Bands %B - or Percent Bandwidth (%B).
Quantify or display where price (or another source) is in relation to the bands.
%B can be useful in identifying trends and trading signals.
Calculation:
%B = (Current Price - Lower Band) / (Upper Band - Lower Band)
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) The time period to be used in calculating the standard deviation
mult (simple float) : (float) Multiplier used in standard deviation
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float) Bollinger Bands %B
bollingerBandsB(src, length, aMult, basis)
Bollinger Bands %B - or Percent Bandwidth (%B).
Quantify or display where price (or another source) is in relation to the bands.
%B can be useful in identifying trends and trading signals.
Calculation
%B = (Current Price - Lower Band) / (Upper Band - Lower Band)
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) The time period to be used in calculating the standard deviation
aMult (float ) : (float ) Array of multiplier used in standard deviation. Basically, the upper/lower bands are standard deviation multiplied by this.
This array of multipliers permit the use of various bands, not only 2.
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float ) An array of Bollinger Bands %B. The number of results in this array is equal the numbers of multipliers passed via parameter.
bollingerBandsW(src, length, mult, basis)
Bollinger Bands Width. Serve as a way to quantitatively measure the width between the Upper and Lower Bands
Calculation:
Bollinger Bands Width = (Upper Band - Lower Band) / Middle Band
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) Sequential period to calculate the standard deviation
mult (simple float) : (float) Multiplier used in standard deviation
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float) Bollinger Bands Width
bollingerBandsW(src, length, aMult, basis)
Bollinger Bands Width. Serve as a way to quantitatively measure the width between the Upper and Lower Bands
Calculation
Bollinger Bands Width = (Upper Band - Lower Band) / Middle Band
Parameters:
src (float) : (float) Source to calculate standard deviation used in Bollinger Bands
length (simple int) : (int) Sequential period to calculate the standard deviation
aMult (float ) : (float ) Array of multiplier used in standard deviation. Basically, the upper/lower bands are standard deviation multiplied by this.
This array of multipliers permit the use of various bands, not only 2.
basis (float) : (float) Basis of Bollinger Bands (a moving average)
Returns: (float ) An array of Bollinger Bands Width. The number of results in this array is equal the numbers of multipliers passed via parameter.
dinamicZone(source, sampleLength, pcntAbove, pcntBelow)
Get Dynamic Zones
Parameters:
source (float) : (float) Source
sampleLength (simple int) : (int) Sample Length
pcntAbove (simple float) : (float) Calculates the top of the dynamic zone, considering that the maximum values are above x% of the sample
pcntBelow (simple float) : (float) Calculates the bottom of the dynamic zone, considering that the minimum values are below x% of the sample
Returns: A tuple with 3 series of values: (1) Upper Line of Dynamic Zone;
(2) Lower Line of Dynamic Zone; (3) Center of Dynamic Zone (x = 50%)
Examples:
Risk ManagementLibrary "RiskManagement"
This library keeps your money in check, and is used for testing and later on webhook-applications too. It has four volatility functions and two of them can be used to calculate a Stop-Loss, like Average True Range. It also can calculate Position Size, and the Risk Reward Ratio. But those calculations don't take leverage into account.
position_size(portfolio, risk, entry, stop_loss, use_leverage, qty_as_integer)
This function calculates the definite amount of contracts/shares/units you should use to buy or sell. This value can used by `strategy.entry(qty)` for example.
Parameters:
portfolio (float) : This is the total amount of the currency you own, and is also used by strategy.initial_capital, for example. The amount is needed to calculate the maximum risk you are willing to take per trade.
risk (float) : This is the percentage of your Portfolio you willing to loose on a single trade. Possible values are between 0.1 and 100%. Same usecase with strategy(default_qty_type=strategy.percent_of_equity,default_qty_value=100), except its calculation the risk only.
entry (float) : This is the limit-/market-price for the investment. In other words: The price per contract/share/unit you willing to buy or sell.
stop_loss (float) : This is the limit-/market-price when to exit the trade, to minimize your losses.
use_leverage (bool) : This value is optional. When not used or when set to false then this function will let you invest your portfolio at max.
qty_as_integer (bool) : This value is optional. When set to true this function will return a value used with integers. The largest integer less than or equal to the given number. Because some Broker/Exchanges let you trade hole contracts/shares/units only.
Returns: float
position_size_currency(portfolio, risk, entry, stop_loss)
This function calculates the definite amount of currency you should use when going long or short.
Parameters:
portfolio (float) : This is the total amount of the currency you own, and is also used by strategy.initial_capital, for example. The amount is needed to calculate the maximum risk you are willing to take per trade.
risk (float) : This is the percentage of your Portfolio you willing to loose on a single trade. For example: 1 is 100% and 0,01 is 1%. Default amount is 0.02 (2%).
entry (float) : This is the limit-/market-price for the current investment. In other words: The price per contract/share/units you willing to buy or sell.
stop_loss (float) : This is the limit-/market-price when to exit the trade, to minimize your losses.
Returns: float
rrr(entry, stop_loss, take_profit)
This function calculates the Risk Reward Ratio. Common values are between 1.5 and 2.0 and you should not go lower except for very few special cases.
Parameters:
entry (float) : This is the limit-/market-price for the investment. In other words: The price per contract/share/unit you willing to buy or sell.
stop_loss (float) : This is the limit-/market-price when to exit the trade, to minimize your losses.
take_profit (float) : This is the limit-/market-price when to take profits.
Returns: float
change_in_price(length)
This function calculates the difference between price now and close price of the candle 'n' bars before that. If prices are very volatile but closed where they began, then this method would show zero volatility. Over many calculations, this method returns a reasonable measure of volatility, but will always be lower than those using the highs and lows.
Parameters:
length (int) : The length is needed to determine how many candles/bars back should take into account.
Returns: float
maximum_price_fluctuation(length)
This function measures volatility over most recent candles, which could be used as an estimate of risk. It may also be effective as the basis for a stop-loss or take-profit, like the ATR but it ignores the frequency of directional changes within the time interval. In other words: The difference between the highest high and lowest low over 'n' bars.
Parameters:
length (int) : The length is needed to determine how many candles/bars back should take into account.
Returns: float
absolute_price_changes(length)
This function measures volatility over most recent close prices. This is excellent for comparing volatility. It includes both frequency and magnitude. In other words: Sum of differences between second to last close price and last close price as absolute value for 'n' bars.
Parameters:
length (int) : The length is needed to determine how many candles/bars back should take into account.
Returns: float
annualized_volatility(length)
This function measures volatility over most recent close prices. Its the standard deviation of close over the past 'n' periods, times the square root of the number of periods in a year.
Parameters:
length (int) : The length is needed to determine how many candles/bars back should take into account.
Returns: float
Smoother Momentum Stops [Loxx]Smoother Momentum Stops (SMS) is a dynamic tool that combines the logic of momentum and moving averages to create an overlay of the market price and generate potential trade signals. The original idea for this indicator comes from the beloved and esteemed trading indicator guru Mladen Rakic.
Understanding the Framework
The SMS incorporates various aspects of technical analysis, including momentum calculation, several types of moving averages, and an intelligent stop-and-reverse system that determines when to enter and exit trades.
The indicator initiates by defining the color scheme for visualization, specifically green for bullish trends and red for bearish trends. It further utilizes the 'smmom' and 'fema' functions to calculate smoothed momentum and fast exponential moving averages, respectively. The values computed by these functions are central to the signal generation process.
Momentum Calculation
The 'smmom' function serves to calculate a smoother momentum by taking a source (such as the closing price) and a period as inputs. This function employs a complex algorithm involving exponential moving averages (EMA), wherein two EMAs are calculated with different smoothing factors, and the difference between the two results is returned as the output. This smooth momentum calculation assists in eliminating unnecessary noise from the market and delivers more reliable momentum readings.
Moving Averages Computation
One key feature of the SMS is the ability to select from five different moving average types: Exponential Moving Average (EMA), Fast Exponential Moving Average (FEMA), Linear Weighted Moving Average (LWMA), Simple Moving Average (SMA), and Smoothed Moving Average (SMMA). The 'variant' function assigns the chosen method to the '_avg' variable, which is then used in the trade signal logic.
Trade Signal Generation
SMS employs a complex yet robust mechanism for generating trade signals. A stop-and-reverse system is established, which works on the principle of momentum. If the smoothed momentum is positive, an upper stop is determined and if the momentum is negative, a lower stop is defined.
The process continues by defining long and short entry conditions. The indicator goes long when an upper stop exists, and the previous bar had a lower stop, signifying a shift in momentum. The short entry condition is the opposite: the indicator goes short when a lower stop exists, and the previous bar had an upper stop. Alerts are generated for each of these conditions, helping traders to take timely action.
Visual Representation and UI Options
In terms of visual representation, the indicator plots upper and lower stops, employing green color for upper and red for lower stops. If the option to color bars is chosen, the entire bar is colored green or red, based on whether an upper or lower stop exists. This feature allows traders to visually comprehend market conditions better. Support and reisstance levels are also provided for visual context.
Conclusion
The Smoother Momentum Stops indicator is a potent tool for traders seeking to optimize their trading strategies. It blends the fundamentals of momentum and moving averages, resulting in a robust system that provides clear, reliable, and timely trading signals. By adjusting the smoothing type and period parameters, traders can customize the indicator to fit various market conditions and asset types, thereby adding a layer of flexibility to their trading strategies.
The use of a stop-and-reverse system adds a layer of risk management by offering precise entry and exit points based on momentum shifts. These stops are not just mere levels of entries or exits, but they reflect the undercurrent of the market's momentum, thus providing a dynamic framework to make informed trading decisions.
Additionally, the SMS indicator offers visual simplicity. The color-coded bars and distinct symbols for long and short positions make it easier for traders to interpret the signals and market direction quickly. Combined with the alert system, it ensures that traders never miss an important trading opportunity.
Finally, the power of the SMS indicator lies in its adaptability and comprehensive approach. By providing a selection of moving averages and an intelligent momentum-based system, it encapsulates various aspects of market behavior. As such, it is a useful tool not just for momentum traders, but for any trader who understands the significance of moving averages and momentum in predicting market movements.
In conclusion, the Smoother Momentum Stops indicator stands as an innovative, adaptable, and powerful tool for the modern trader. Its blend of flexibility, dynamic risk management, and straightforward visualization offer a comprehensive solution for traders looking to navigate the complex world of financial markets. With a detailed understanding of its workings as presented in this essay, traders can harness its full potential to optimize their strategies, manage risk, and achieve their trading objectives.
custom Bollinger bands with filters - indicator (AS)-----------Description-------------
This indicator is basically Bollinger bands with many ways to customize. It uses highest and lowest values of upper and lower band for exits. I think something is wrong with the script but cant find any mistakes – most probably smoothing. The ATR filter is implemented but is working incorrectly. In code you can also turn it into strategy but I do not recommend it for now as it is not ready yet.
So this is my first script and I am looking for any advice, ideas to improve this script, sets of parameters, markets to apply, logical mistakes in code or any ideas that you may have. Indicator was initially designed for EURUSD 5MIN but I would be interested in other ideas.
-----------SETTINGS--------------
---START - In starting settings we can choose
Line 1: what parts to use BB/DC/ATR
Line 2: what parts to plot on chart
Line 3 Whether or not apply smoothing to BB or ATR filter
Line 4 Calculate deviation for BB from price or Moving average
Line 5 Fill colors and plot other parts for debug (overlay=false)
Line 6:( for strategy) – enable Long/Short Trades
---BB and DC – here we modify Bollinger bands and Donchian
Line 1: Length and type of BB middle line and also length of DC from BB
Line 2: Length and type of BB standard deviation and multiplier
Line 3: Length and type of BB smoothing and %width for BB filter
---ATR filter – (not ready fully yet)
Line 1: type and length of ATR
Line 2: threshold and smoothing value of ATR
---DATE and SESSION
Line 1: apply custom date or session?
Line 2: session hours settings
Line 3:Custom starting date
Line 4: Custom Ending date
-----------HOW TO USE--------------
We open Long if BB width is bigger than threshold and close when upper band is no longer highest in the period set. Exact opposite with Short
Fetch ATR + MA StrategyA trend following indicator that allows traders/investors to enter trades for the long term, as it is mainly tested on the daily chart. The indicator fires off buy and sell signals. The sell signals can be turned off as trader can decide to use this indicator for long term buy signals. The buy signals are indicated by the green diamonds, and the red diamonds show the points on then chart where the asset can be sold.
The indicator uses a couple indicators in order to generate the buy signals:
- ADX
- ATR
- Moving Average of ATR
- 50 SMA
- 200 SMA
The buy signal is generated at the cross overs of the 50 and 200 SMA's while the ATR is lower than then Moving Average of the ATR. The buy signal is fired when these conditions are met and if the ADX is lower than 30.
The thought process is as follows:
When the ATR is lower than its moving average, the price should be in a low volatilty environment. An ADX between 25 and 50 signals a Strong trend. Every value below 25 is an absent or weak trend. So entering a trade when the volatilty is still low but increasing, you'll be entering a trade at the start of a new uptrend. This mechanism also filters out lots of false signals of the simple cross overs.
The sell signals are fired every time the 50 SMA drops below the 200 SMA.
Days in rangeThis script is a little widget that I made to do some homework on the VIX.
As you can see in the chart I was analyzing the 2008 market crash and the stats that followed it after until the market started to recover.
You can see that theory in my "Ideas" tab.
This is an interactive set of lines that you can use to count the the bars inside and outside of your chosen range, and the percentage outside that range.
You should initially enter the price range of your product in the menu and set some arbitrary dates that you can easily see on your chart.
Drag and drop the lines around to suit what price and the dates you are analyzing.
The table will display the bar count inside and outside of the range, the total bars, and the percentage outside that range.
I personally used this as a tool to study the overall average of the product, compared with the behavior during major market events.
It is currently my opinion that post 2020 analysis needs to take into account the behavior of any given product prior to 2020 when the
VIX was in its comfort zone. Not to say that a price valuation hasn't been set, but that the movement to that price was outside of "Normal Market Conditions,"
and the time factor to return to that value might be skewed. Other factors would need to be considered at that point pertaining to your specific product or corelating indicator.
I could see this tool being useful to Forex and commodities traders. But that isn't my field so that that for what it is. I do think it would perform best on something that is more
pegged to a price range. I personally would use it on product's, like the VIX, that I use as an indicator product. That is what it was designed for.
But I suppose it could be used for Mean price and time related analysis, maybe with a Vwap, SMA or other breakout style indicators.
Volume analysis might be pretty sporty. Possibly time patterns... the possibilities could be endless. Or... limited.
I am publishing this for my trade group so that it can be tinkered with to find other helpful ways to use it.
If anyone finds something interesting with other indicators, please drop a comment below and I could consider creating a script to integrate with this tool.
Seer's HutThis is a strategy based on Exponential Moving Averages or Volume Weighted Moving Averages against Adaptive fib resistance / support level and profit percentage which can be definetly defined by user and targeting small profits(profits will be raised by leverages).
In this strategy, there are predefined values which are collected one by one with statistical background and backtests. This gives an advantage to see which ratios are working better for each symbol. Also this statistics are re-evaluated monthly and if there is a need they are going to be changed with the help of libraries. Also IT IS RECOMMENDED TO USE IN DAILY INTERVAL GRAPHICS!!!!
When we deep dive to strategy, it is based on profit percentages. it is similar to the MOST system. MOST only changes the way with default value of %2. But this hardcoded strategy is not working well with each Symbol.
So this is the point where DC and ADR Statistics are involved.
For Ex. while BTC is suits well with %2, it does not do wonders for RSR or RUNE which is 4-5% for each.
There is 3 options for setting the statistical usage of this indicator.
1. Auto calculated based on 1000 days of ADR and DC
imgur.com
2. Using Library where statistical values are stored.
imgur.com
3. User-defined values used. Yeah you read it right. Fully on-demand changes are supported. Which gives freedom to users for setup their own Adaptive FIB and Profit Percentages.
imgur.com
Based on this 3 options, TP and SL points are calculated on bar closures. Strategy Orders are also shown / raised with the closures.
Ok, system calculates these values but how to read / use them. what is this strategy based on ?
This strategy is mostly looking for minimizing the LOSS in case of any stop. So because of this, in each TP, system gives order signal to close half of the remaining open position.
There are 7 type of orders
OL : Open Long (Close Short and Open Long if in position)
CL 50 : Close Long - %50 of Open Position
CL 100 : Close Long - Close all position
OS : Open Short (Close Long and Open Short if in position)
CL 50 : Close Short - %50 of Open Position
CL 100 : Close Short - Close all position
TP5 : Highest TP reached. Close all position.
Script checks cross of EMA / VWMA and adFib to decide open a position. In reversal / crosses, adFib line had been set to defined Fib. Percentage (FP) level.
For creating the TP points, Profit Percentage (PP) parameter had been used which I briefly introduce at the beginning with the options.
One important topic about this strategy, it is not stacking / pyramiding the positions. Which means, it always calculate one way position. For example we are in the long position after OL signal.
We reached TP values and take profits. Later on due to FP crossing EMA, OS order signal given. This means you have to close all long position and open short position.
But beware. These calculated points are based on given values or calculated regarding to average ADR / DC ratings. For supporting strategy, several methods also had been included in the options.
imgur.com
These are:
1. MA plotting (Optional 4 EMA, 1WMA) - checking for Golden and Death Cross
2. Bollinger Bands (Length 25 and Multiplier 2.5 set as default. Used in correlation with TEMA)
3. Kama 2 / Kama 5 - Crossing speaks of Trend way
4. TEMA (TEMA 50, VWMA 25 calculations and plotting. Used for TEMA 50 / VWMA 25 / SMA 25 cross checks for weakening or strengthening trend analysis)
5. ATR plotting
6. Chandelier Exit plotting (Widely used for calculating Stop levels in market)
7. PSAR (Widely used for indicating trend reversal)
Also for the ease of use, if the users does not want to plot any values on the graph and just want to see the values there is couple of tables also included.
1. EMA info
2. KAMA info
3. Order info
4. TP/SL info
imgur.com
Some important notes:
1. To minimize the stop just after the order opening candle in volatile grounds, system prevents to raise new order signals if there is a signal already raised in last 4 candle.
2. if system reach and give close order in one of the TP points (For Ex TP1.), then index goes down and goes up again same TP (above TP1 in scenario) after 4 candle, system gives a close order signal again in the same TP.
3. There is a Profit Factor value had been shown at Order Info table. This information shows how profitable is the setup regarding to given FP and PP values.
In general market conditions, A Profit Factor above 1.50 is considered good enough and above 2.0 it is considered ideal. A strategy with profit factor less than 1.20 suggests too bigger a risk taken for making money.
In some cases automatic ADR and DC calculations are not good enough. so if you want to find a good Profit Factor value, you can change the system automatic calculation to manual value entering and you can see the results directly with in this field.
Relative Strength Index w/ STARC Bands and PivotsThis is an old script that I use with some useful RSI strategies from "Technical Analysis for the Trading Professional" 2nd edition by Constance Brown.
The base RSI comes with the option for custom length, and has some pre-configured ranges for looking at exits and entrances. The idea is to be bullish when bounces happen in the red zone during an already bullish trend or when the indicator enters green without a rejection. Be bearish if the indicator falls through the red zone or fails to enter green during an already bearish trend.
I have added the formulas used for creating STARC bands (just think fancier volatility bands) with adjustable tolerances. The idea is to look out for when the RSI touches one of the bands and reverses. This is usually indicative of a strong reversal (though the timing will be up to the trader). Best use this on shorter time frames during a volatile time of a stock's price action.
Although a little messy, there is a small segment of the script which includes pivot points. I like to use these because they make indicating local highs/lows for finding divergences easier.
Finally, I have added a couple of customizable EMAS for the RSI itself. Useful when combined with the other features!
Diddly - Real Volume TrendDiddly Real Volume Trend is an indicator to help traders identify the real trending direction of an asset, it achieves this by using liquidity to assess the overall buying and selling volume sentiment of a market place.
What is Liquidity
Liquidity refers to the ability of an asset to be turned into cash. Cash is the more liquid form of any asset, whereas selling a house would take a little longer to liquidate and convert to cash. Liquidity in financial markets is in essence based on the same principle and refers to how easily an asset can be bought and sold.
Liquidity in simple terms is the volume of participants who are willing to be involved in the market at any given time. Markets are based on auction theory, the more participants who want to buy at a certain price than sell, will dictate that the price goes up. As a result it is important to understand the role that volume has in financial markets, as volume will directly correlate to liquidity and supply and demand.
What does it mean?
Although markets are based on auction theory, sadly we don't have the advantage of a traditional auction, where we are all sitting in a room putting our hands in the air when we are interested in paying x price for a particular item. In this environment it is very clear to see how popular the item for sale is and whether it is possible to pick up a bargain.
Being able to identify the prevailing direction of buying versus selling volume on a chart provides an insight into market sentiment. Also we have to consider that typically most retail traders participate in very liquid markets, where you can get in and out of a position with relative ease.
There are obviously exceptions, extremely low float stocks, but on the whole with liquid assets it takes some big orders to move price, especially with currencies and high float stocks. Understanding these principles helps us as retail traders identify where the big money is seeing a bargain, if buying or overpriced if selling.
However you identify liquidity, I hope you agree that it is an extremely important element to be considering before taking a trade. The last thing any trader wants to be doing if they can avoid it, is getting on the wrong side of the market.
Just as a side note, high and low "Float Stocks" refers to the number of shares in general circulation for buying and selling.
What is "Diddly Real Volume Trend"
This volume trend indicator in simple terms will display the combined accumulated bullish and bearish volume within a window below the main chart. What you will see is a line chart that will be doing one of three things. Either it could be stair stepping in an upwards direction, identifying that we are in a bullish trend or stepping down in a bearish trend. Alternatively it could just be going sideways, which would suggest a ranging market.
This enables traders to make an assessment of the market sentiment using the liquidity direction that it has identified. This can help form an overall daily bias for intra-day traders or help confirm a longer term trend for swing traders.
Although this indicator is not a true oscillator (where the limits of number are fixed between a known upper and lower limit) , it can still be extremely useful in identifying divergence in price and the volume sentiment. As well as assisting in the process of identifying and confirming peak formations and potential reversal points in a market.
How does it Work
The indicator is plotting the volume trend line based on the output of a set of volume calculations, which is confirmed on the close of each candle. The resultant output is either a positive (Bullish sentiment) or negative (Bearish Sentiment), which are all totalled up to show the next point on the graph. As a result the visual effect seen from this process is that the more bullish calculated volume identified than bearish, you will see a rising trend line and the reverse for a bearish market.
The algo calculation which is used on each candle and its related volume is using the following elements.
Volume
Rate of Change
Relative Strength
The indicator is not just looking at the volume total and saying this is a green candle and must provide a positive number. It is looking for the volume and liquidity extremes and filtering out the nothingness of a market that makes no difference to price either way. It is from using these extremes that the indicator is able to plot the activities and direction of the big money in the market.
What is the Indicator Showing me?
Examples:
Here on a stock VKTX, on a 1 minute chart the elements that make up the indicator are annotated on the chart.
There are 6 components highlighted in the above chart, these have been listed below.
Volume Trend Line
This is the indicator driving line and is the result of the calculations described in the previous section.
Fast Moving Average
This is the fast moving average of the "Volume Trend Line". The moving average type and length can be changed in the settings.
(Default = Exponential Moving Average, Length: 60)
Slow Moving Average
This is a slower moving average of the "Volume Trend Line". The moving average type and length can be changed in the settings.
(Default = Hull Moving Average, Length: 3500)
Long Term Moving Average
This is a long term moving average of the "Volume Trend Line". The moving average type and length can be changed in the settings.
(Default = Exponential Moving Average, Length: 400)
Bullish Confirmation
On the "Volume Trend Line", you will see coloured circles dotted along the line, the green circles signifying Bullish Confirmation.
Bearish Confirmation
On the "Volume Trend Line", you will see coloured circles dotted along the line, the red circles signifying Bearish Confirmation.
The Bullish and Bearish confirmation signals are not signals to take trades, they are there to highlight the predominant direction. Seeing one confirmation signal in isolation is not that helpful, but continued prints of confirmation in a single direction would be interesting.
There are a further two signal types that are displayed on the volume trend line, these should be seen infrequently across charts and represent potential extremes of price movement in a single direction. These signals act as a warning that price could stall in this area or potentially make a reversal. As with the other signals within this indicator they are not signals to buy or sell, they are there to provide warning alerts and should be considered with other pieces of information that you are working with.
Bullish Extreme
Plotted on the "Volume Trend Line", you will occasionally see a green coloured downwardly pointing triangle, this represents a Bullish Extreme.
GBPAUD Hourly chart October 2022
Bearish Extreme
Plotted on the "Volume Trend Line", you will occasionally see a red coloured upward pointing triangle, this represents a Bearish Extreme.
GBPAUD Daily chart (February - April) 2023
How Does It Help?
This indicator will compliment any existing strategy and is not intended to be used standalone.
It can be used on any chart from a monthly, one minute to one second, depending on your trading strategy. Using multiple time frame analysis can help traders with a number of decisions that need to be considered before taking entries.
What is my market direction bias?
This can be taken from an hourly for intraday trader or daily for swing traders. What that time frame is depends on your trading plan and objectives from the trades you take.
When do I take my trades?
Again depending on the trading strategy used will dictate many aspect of this decision, although using the volume trend on a lower time frame, can help confirm breakouts, reversals and divergence.
How should I manage my trade?
With any trade you should have a defined risk reward clearly defined, with stops and targets in mind before taking an entry.
The age old saying of "cut your losses quickly and let your winner run", is easier said than mastered. Once in a trade the volume trend can be really helpful to identify trades that could be real runners and allows you to change expectations after entering the trade. Maybe you want to take some profit at the original point and let the remaining run. Maybe there is such strength you want to add to the position. Being able to assess market sentiment once in a trade can help with optimising returns.
The "Volume Trend Line", which is the driving element of this indicator, will be doing one of three things. Either it could be stair stepping in an upwards direction, identifying that we are in a bullish trend, stepping down in a bearish trend or going sideways in a ranging market.
Bullish Volume Trending Market
Here is stock VKTX, on a 1 minute chart. Trend confirmation on price action is determined by Higher Highs and Higher Lows for an uptrend or Lower Lows and Lower Highs on a downtrend. The same principle applies for the volume trend line.
In this example we first see breakout volume on the indicator with the Bullish Break volume, following that the volume trend keeps making higher highs and higher lows, confirming that this asset has short-term upwards potential. (why short-term? this is the 1 minute chart, you would want to consult the daily or hourly for a longer term perspective).
Price also is making higher highs and higher lows, which is in alignment with the indicator and known as "convergence" and is a positive signal for a continued trend.
Bearish Market
So here on Tesla (TSLA) on the 4 hour chart we can see the big sell off that started in April 2022. Where it clearly shows a downward trend, with lots of confirmation for continuation.
Ranging Markets
On this example on the AUDJPY 1 Hour chart, we can see that price is in a ranging market. By drawing trend lines on price and the indicator, it is clear to see that price and the volume trend line are both showing a ranging market. What is more interesting is the structure of the ranges.
The price range at the top of the chart is in an upward direction, whereas the volume trend in the bottom window is showing a downward range. Giving us an early indication of what to expect from this asset.
Diverging Markets
"Divergence" is a very powerful mechanism for identifying potential reversal points in price actions. There is a wealth of published information on this topic which is well worth reviewing, if this is a new principle to you.
Here again on the same AUDJPY 1 Hour chart example, points of interest have been annotated on the chart where the historical range turns into a step down to the next level within the market cycle, as predicted by the divergence in range patterns, price point up and volume pointing down.
In the above example, after identifying the divergence the next most important element is an extremely fast accelerated move down which breaks the lower level of the range, this can be seen on the right side of the bottom window and is labelled "Bearish Breaking Volume".
What is interesting here is that the volume indicator has identified the range breakout when price was still above the lower level of the range. Following that break out volume signal, if we zoom out to a 4 hour chart to see what happened next.
The range breakout was confirmed and price and the volume trend continues to show a downward direction in the market. As for entries and stops that is not the intention of this indicator and will be down to other elements in your trading strategy or in our case other indicators.
Peak Formations
Peak formation refers to the point where an asset is over extended in one direction and there is a potential of change in direction, with a wider pullback or a reversal in the higher time frame trend. These formations are often seen with double bottoms (W patterns) or double tops (M patterns) . Unfortunately these patterns appear all over the chart and trading them in isolation will be challenging.
In this example of EURJPY on the 1 hour chart, we see price and the indicator in the bottom window for the first 3 weeks in March 2022. The pair is trending down which is confirmed by both price and the indicator. There are no signals points plotted on the volume trend line, until one appears on March 4th 2022.
Another one appeared on the next trading day of Monday the 7th and we now have these two signals relatively close to each other. This is interesting information, especially considering that there was no extreme signals for the previous couple of months.
Later that day the volume trend broke the previous volume level, after a W pattern was completed and a green bullish confirmation signal was printed. The following day another bullish confirmation signal is displayed to further confirm that we had made a peak formation reversal.
Please note that using the settings style tab, has enabled the change to the bearish extremes signal, changing the colour and shape to be an orange circle. Which for the purposes of this illustration is easier to see.
Another example of the same pair in August 2022, with a very similar confirmation sequence.
Stock Examples
Here on UBER on a 1 hour chart , is an example of how the indicator can be used in confluence with other trading strategies. If a trader was trading candle patterns, they may see this classic 1 hour bull flag pattern forming.
Without the volume trend analysis this looks like a good buy setup. Adding this analysis to the chart we clearly have a different view point.
Here is what subsequently happened to price and this is in a generally bullish market March 2023.
Scalping Entries
For those traders who work with super fast time frames like the 5 second or even on a 1 second charts, the volume indicator can be used to help time entries as a part of a wider trading strategy of trading a pullback or trading support and resistance levels.
Styling options in the indicator settings enabled this different view of the indicator output, which can be extremely useful for timing entries.
Here on this hot IPO stock, LUNR from February 16th 2023, we have an extremely strong move up from $13.80 to $18.00. One aspect of this move up, is that it is doing this on extremely light volume and the predominant market sentiment on the surface seems very bearish.
This would be a clear indication not to trade this stock at this moment in time, as a trader there would be lots of emotions of FOMO (fear of missing out) , seeing a stock making that kind off move on a new IPO - there is the sense that this stock will go to the moon and your not going to be involved.
As traders we have to consider the risk : reward potential. This stock could drop to $10.00 if someone put in a 50 k market sell order, as it is clear there are not the buyers to support that kind of liquidation.
The following charts are in the 5 second time frame, until otherwise stated
So we need to wait for some confirmation of buying liquidity before we can make any plans for taking an entry, which we get in the form of a couple of strong bullish candles on the chart below. Interestingly the price breaks the previous all time high for this stock, although the volume trend at this stage does not seem strong enough to consider an entry.
At this point we should be on the lookout for further buying liquidity, ideally to break the previous high volume line, which appears in the next chart. This would be the time to take an entry based on other aspects of a trading plan.
Having now taken an entry, we can use the indicator to understand the strength of the buying liquidity and identify areas where we should be looking to take profit or close out the trade. Looking at the volume trend profile shown in the chart below, there is no reason not to hold this stock for a wider move up.
In the next chart we see the first signs of some selling pressure, as the indicator shows signs of red. This would be the area to take some profit and look at a higher time frame perspective, to get the sense of whether to hold the remaining position.
Here on the 5 minute time frame the volume trend is still looking very strong to hold the remaining position. As it turned out it was a good place to take profit as it was just under the high of the day.
Knowing when an asset is going to reverse is not easy and this stock was way too over extended and a top had to finally come. This one minute view of the indicator, shows the point where you would see that the upward liquidity was over and you were now on the backside of the move, with no reason to trade further.
Here on a 15 minute chart you can see the full extent of the move and its reversal back to the original price. It provides a clear illustration that chasing trades through FOMO or holding and hoping is not a profitable approach. Being able to time your entries and exits, where you can clearly manage risk is one of the most important elements to any traders strategy.
This is an extreme example and not something you see every day in any market. It has been included within this narrative with the hope that it clearly illustrates the risk involved in trading and being able to mitigate them, has to be at the forefront of your mind.
Key Settings
Within the indicator settings there are a number of options that are available to users. All aspects of what you can see can either be changed or turned on or off in the "Style" tab as well as changing the colours and their transparency.
The available settings on the "Inputs" tab are for fine tuning the indicator to your style of trading. This fine tuning can be applied to the moving averages that can be displayed and follow the volume trend line as well as the volume filtering process.
The most important ones that are in need of explanation are outline below:
General Settings
"What type of asset is the Algo looking at" : Available Options = "Small Caps", "Large Caps", "Futures", "Currencies" (Default Setting = Currencies)
The indicator will make an assessment of the best settings to use as defaults for the volume filtering, confirmation and extremes signals. The defaults can be changed in the following sections using the override.
"Turn on Turbo Mode" : True or False (Default Settings = True)
This setting will give the indicator volume filtering processes a boost
Signal Settings
Based on the "Asset Type" from the general settings, the indicator will make an assessment of the best settings to use by default. These can be changed by using the settings below.
"Override Default Assessment Thresholds" = True / False
"Percentage Difference to Signify Trend Confirmation" = A percentage value that will tell the indicator how to identify the volume trend line swing points used to identify bullish or bearish confirmation signals. Values from 0.1 to 10 would make the most sense. A too high setting and you will not see any confirmation points plotted. Too low and you may see too many to be useful.
"Percentage Difference to Signify Extremes" = A percentage value that will tell the indicator how to identify the volume trend line swing points used to identify bullish or bearish confirmation signals. Values from 20 to 200 would make the most sense. A low a setting and you will see too many extreme points plotted.
Filter Settings
"Turn On Volume Assessment Filters" = True / False : The volume assessment filters are used to focus the "volume trend line" on higher volume extremes.
Based on the "Asset Type" from the general settings, the indicator will make an assessment of the best settings to use by default. These can be changed by using the settings below.
"Override Default Assessment Filters" = True / False
"Filter Volume using Setting" = The number used in this setting represents a value from 0 to 100. Zero will filter out no volume, whereas 100 would filter it all out. The default setting is 1, as there is a danger of setting this number too high and all you will see in the line chart is big steps up and down, with a plateaus in the middle. Which may be useful, although it would not be so helpful in divergence or volume line breaks.
Fast Moving Average
This is the fast moving average of the "Volume Trend Line".
"Moving Average Type" = The type of moving average calculation to be applied.
Default = "EMA"
Available Options: "SMA","EMA" ,"HMA" ,"SMMA (RMA)" ,"WMA" ,"VWMA"
Moving Average Key
SMA : Simple Moving Average
EMA : Exponential Moving Average
HMA : Hull Moving Average
SMMA (RMA) : Exponentially Weighted Moving Average (alpha = 1 / length.)
WMA : Weighted Moving Average
VWMA : Volume Weighted Moving Average
"Moving Average Length" = The number of candles back into the chart used to calculate the Moving Average. (The higher the number, the slower the moving average becomes)
Default Length = 60
"Apply Double Smoothing" = True or False : This is an option to turn on if an extra smoothing effect to the moving average if required.
Slow Moving Average
This is the slow moving average of the "Volume Trend Line".
"Moving Average Type" = The type of moving average calculation to be applied.
Default = "HMA"
Available Options: "SMA","EMA" ,"HMA" ,"SMMA (RMA)" ,"WMA" ,"VWMA"
(See moving average key)
"Moving Average Length" = The number of candles back into the chart used to calculate the Moving Average. (The higher the number, the slower the moving average becomes)
Default Length = 3500
(By default we have a higher number for the slow length compared to the long term length in the next setting. This is because using the Hull Moving Average, is an accelerated moving average that needs higher values to slow it down. If you were to change this to say an EMA, then you would need to change the length to something like 200, to put this slower moving average in context with the others).
Long Term Moving Average
This is a long term moving average of the "Volume Trend Line".
"Moving Average Type" = The type of moving average calculation to be applied.
Default = "EMA"
Available Options: "SMA","EMA" ,"HMA" ,"SMMA (RMA)" ,"WMA" ,"VWMA"
(See moving average key)
"Moving Average Length" = The number of candles back into the chart used to calculate the Moving Average. (The higher the number, the slower the moving average becomes)
Default Length = 400
"Apply Double Smoothing" = True or False : This is an option to turn on if an extra smoothing effect to the moving average if required.
Finally
We greatly appreciate the support and feedback from the Trading View community, and we are dedicated to continuing to improve our indicators with your support.
We want to help you manage risk, and that's why we emphasise that trading is risky and any technology used to support our trading decisions is based on information from the past. We encourage traders to take responsibility for their trading businesses and always prioritise risk management.
Volatility Gap TrackerThe Volatility Gap Tracker ( *VGT ) indicator calculates the historical volatility of an asset using the standard deviation of the natural logarithm of the closing price relative to the previous period's closing price. *VGT visualizes the HV with gap lines to highlight when the current HV has increased or decreased significantly compared to the previous period, and adds labels to show the HV value for each of those bars.
Low HV calculated by *VGT can potentially signify a potential move up or down in the price of an asset. When HV is low, it indicates that the price of the asset has been relatively stable or range-bound over the specified period of time. This can sometimes be a precursor to a significant move in either direction, as the price may be building up energy to break out of its range.
*VGT can be used for any market that TradingView supports, including stocks, forex, and cryptocurrencies. It is especially useful for traders who want to identify periods of high volatility or sudden changes in volatility , which can indicate potential trading opportunities or risks. However, it's important to note that HV is a historical measure and may not always accurately predict future volatility .
The indicator can be used under various market conditions, but is especially useful during periods of high volatility , such as market crashes or major news events. It can also be useful for traders who want to monitor the volatility of specific stocks or assets over a longer period of time.
*VGT is provided for informational purposes only and is not a guarantee of future performance or accuracy. Traders should use multiple indicators and analysis methods to make informed trading decisions. Trading involves risks and traders should always conduct their own research and analysis before making any investment decisions.
Expansion IndexWhat is the expansion index?
The expansion index is a concept that charts the relative strength or weakness based on the comparison of recent price changes and overall prices changes for the period.
It can be used as an momentum oscillator and show overbought or oversold price conditions by measuring the relation between the sum of "strong" price changes (which can form trends).
The Expansion Index is most typically used on an 8 day timeframe. It changes on a scale from −100 to +100, with the overbought and oversold levels marked at +60 and −60, respectively.
What about this indicator?
This indicator basically shows the rate of expansion from zero, but also has other uses apart from finding over bought or over sold territory.
Scenarios:
Lets say you are identifying a contraction zone (low volume zone of candles), you can further confirm the contraction if the Index is at or near 0, in this case it might have more strength
and play out more accurately the contraction and expansion.
Once the Expansion begins and price expands from the 0 level you can determine if its overbought which would be around the 1.00 Level or Oversold which would be at around the -1.00 Levels, and a reversal can follow out.
With the rate of change line you can identify trends in market and when reversals will start.
This indicator is best used with contraction, expansion, and trend principles also known as the Forex Master Pattern, as it was for what this specific indicator was designed for.
Thanks to NNAMDERT for writing this indicator and giving full rights. :)
TWA - SurgeWith the TWA Surge indicator we make price and volume impulses easy to read.
Ideally if you are looking to go long look for a red surge and if your looking to go short look for a green surge.
Volume traders out there always wonder if its a bull rush or a falling knife and not sure when that push of volume and momentum will slow down. That's where the borders of the surge come in when a green surge gets a red border forming or a red surge gets a green border forming that means it's show time.
Lastly the surge has exhausted volume built in as well so when you see a different color in your red or green surges you will be able to get further confirmation that the team you are trading against needs to take a break and your team is at full strength ready to take them down.
Under the hood the surge impulses are calculated using a proprietary algorithm involving the amount of standard deviations price deviates from an average, and accumulations of volume for both above and below average volume .
Similarly the exhausted volume looks for strong deviations from the average amount of volume . Standard deviations of price measure the amount of variation or dispersion among price values. Looking at price and volume through the lens of standard deviations it can be seen when price and/or volume are outside of their statistical norm, hence as outliers or extremes they become more likely to reverse and return to a statistical norm.
This increased tendency for a reversal makes the surges on the TWA Surge a useful tool for finding trade opportunities.
The indicator provides many elements to create confluence for trade set-ups. The border of the surge histogram changes color to visually signal when momentum is changing direction. A trade set-up of this would be seeing a red surge form followed by the border turning green. Other elements include horizontal line meters that change colors to show the story of price and momentum.
The uppermost horizontal line meter uses an algorithm to compare price to its recent ranges over multiple times to determine trend direction.
The 2nd horizontal line meter measures the directional efficiency of the movement of price to determine direction in the market.
The 3rd horizontal line meter calculates buying and selling pressure by separating volume that moves price up from volume that moves price down, and comparing that to the total volume .
The 4th horizontal line meter uses an algorithm combining the volatility of recent candles with the statistical likeliness of price to return to its mean in order to determine direction, and if that direction is strengthening or weakening.
Flat Market and Low ADX Indicator [CHE]Why use the Flat Market and Low ADX Indicator ?
Flat markets, where prices remain within a narrow range for an extended period, can be both critical and dangerous for traders. In a flat market, the price action becomes less predictable, and traders may struggle to find profitable trading opportunities. As a result, many traders may decide to take a break from the market until a clear trend emerges.
However, flat markets can also be dangerous for traders who continue to trade despite the lack of clear trends. In the absence of a clear direction, traders may be tempted to take larger risks or make impulsive trades in an attempt to capture small profits. Such behavior can quickly lead to significant losses, especially if the market suddenly breaks out of its flat range, causing traders to experience large drawdowns.
Therefore, it is essential to approach flat markets with caution and to have a clear trading plan that incorporates strategies for both trending and flat markets. Traders may also use technical indicators, such as the Flat Market and Low ADX Indicator, to help identify flat markets and determine when it is appropriate to enter or exit a position.
The confluence between flat markets and low ADX readings can further increase the risk of trading during these periods. The ADX (Average Directional Index) is a technical indicator used to measure the strength of a trend. A low ADX reading indicates that the market is in a consolidation phase, which can coincide with a flat market. When a flat market occurs during a period of low ADX, traders should be even more cautious, as there is little to no directional bias in the market. In this situation, traders may want to consider waiting for a clear trend to emerge or using range-bound trading strategies to avoid taking excessive risks.
Introduction:
Pine Script is a programming language used for developing custom technical analysis indicators and trading strategies in TradingView. This particular script is an indicator designed to identify flat markets and low ADX conditions. In this description, we will delve deeper into the functionality of this script and how it can be used to improve trading decisions.
Description:
The first input in the script is the length of the moving average used for calculating the center line. This moving average is used to define the high and low range of the market. The script then calculates the middle value of the range by taking the double exponential moving average (EMA) of the high, low, and close prices.
The script then determines whether the market is flat by comparing the middle value of the range with the high and low values. If the middle value is greater than the high value or less than the low value, the market is not flat. If the middle value is within the high and low range, the script considers the market to be flat. The script also uses RSI filter settings to further confirm if the market is flat or not. If the RSI value is between the RSI min and max values, then the market is considered flat. If the RSI value is outside this range, the market is not considered flat.
The script also calculates the ADX (Average Directional Index) to determine whether it's in a low area. ADX is a technical indicator used to measure the strength of a trend. The script uses the ADX filter settings to define the ADX threshold value. If the ADX value is below the threshold value, the script considers the market to be in a low ADX area.
The script provides various input options to customize the display settings, including the option to show the flat market and low ADX areas. Users can choose their preferred colors for the flat market and low ADX areas and adjust the transparency levels to suit their needs.
Conclusion:
In conclusion, this Pine Script indicator is designed to identify flat market and low ADX conditions, which can help traders make informed trading decisions. The script uses a range of inputs and calculations to determine the market direction, RSI filter, and ADX filter. By customizing the display settings, users can adjust the indicator to suit their preferences and improve their trading strategies. Overall, this script can be a valuable tool for traders looking to gain an edge in the markets.
Acknowledgments:
Thanks to the Pine Script™ v5 User Manual www.tradingview.com
Rekt Edge Reversion BandRekt Edge Reversion band is a technical indicator that utilizes a combination of moving averages and standard deviations to determine optimal entry and exit points in the market. By comparing the current price to its moving average, the indicator identifies potential trends and determines how you can position around them by plotting buy/sell signals and two channels based on user input parameters. The user can choose between Simple Moving Average ( SMA ) or Exponential Moving Average ( EMA ) and select the moving average period, the unit of separation, the multiples of the unit, and other important parameters. The indicator's inputs can be adjusted to suit different trading styles, and it can be used on any time frame. The indicator can be used to identify potential trend reversals or breakouts (or breakdowns) when the price moves outside of the channels. The indicators potential use cases include identifying overbought or oversold conditions. With its ability to provide a clear signal on when to enter and exit a trade, this indicator is a popular tool among traders looking to make more informed and profitable trading decisions. This indicator can also be used in conjunction with other technical analysis tools to confirm or invalidate trading signals.
VolatilityAlgoThis indicator allows you to calculate the precise volatility in real time
> Allows analyzing the periods of high/low volatility
> Also to do a technical analysis on the volatility of each bar
> It works with all assets as well as all periods
Here are the different Values:
Upper Volatility Calculation
1 open to close
2 open to high
3 upper shadow
Lower Volatility Calculation
4 open to close
5 open to low
6 lower shadow