Bubble Risk IndicatorThe Bubble Risk Indicator is a sophisticated tool designed to assess the potential risk level of a trading instrument by measuring its deviation from a 20-week Simple Moving Average (SMA). This dynamic indicator visually represents the deviation with a color-changing line, indicating the degree of risk based on the distance from the SMA.
🔷 Calculation
The indicator calculates the deviation from the 20-week SMA and expresses it as a percentage extension:
20-Week SMA : Averages the closing prices over the past 20 periods, providing a consistent measure of the long-term trend.
Deviation Percentage : Measures the percentage difference between the current closing price and the 20-week SMA.
🔷 Color Coding
The line changes color based on the deviation level to represent different risk levels. Users can customize these colors as per their preferences. However, the following are the default recommended settings:
Extreme Low Risk (Below 0) : Blue
Low Risk (Below 0) : Light Blue
Low Risk (Above 0) : Light Purple
Medium Risk : Orange
High Risk : Red
Colors transition smoothly to reflect the increasing or decreasing risk based on the deviation from the SMA.
🔷 Customization
Users have the flexibility to change the colors representing each risk level through the indicator settings. While the default colors are recommended for a standard view, users comfortable with custom color schemes can adjust according to their preference.
🔷 Usage
This indicator is beneficial for gauging the relative risk associated with current price movements compared to a historical average. It's most effective when used in conjunction with other technical analysis tools and market knowledge.
🔷 Limitations
While the Bubble Risk Indicator provides valuable insights, it should form part of a broader trading strategy. It assesses risk levels based on historical data and does not predict future market directions.
🔷 Conclusion
The Bubble Risk Indicator offers a nuanced and visually intuitive way to understand market risk levels, providing traders with an additional tool for informed decision-making.
🔷 Risk Disclaimer
Trading involves significant risk and is not suitable for every investor. The value of investments can fluctuate. Past performance is not indicative of future results. Always consider your circumstances and seek independent advice before making financial decisions. This indicator is provided for informational purposes only and is not intended as financial advice.
Sentiment
Intraday Volume Profile [BigBeluga]The Intraday Volume Profile aims to show delta volume on lower timeframes to spot trapped shorts at the bottom or trapped longs at the top, with buyers pushing the price up at the bottom and sellers at the top acting as resistance.
🔶 FEATURES
The indicator includes the following features:
LTF Delta precision (timeframe)
Sensibility color - adjust gradient color sensitivity
Source - source of the candle to use as the main delta calculation
Color mode - display delta coloring in different ways
🔶 DELTA EXAMPLE
In the image above, we can see how delta is created.
If delta is positive, we know that buyers have control over sellers, while if delta is negative, we know sellers have control over buyers.
Using this data, we can spot interesting trades and identify trapped individuals within the candle.
🔶 HOW TO USE
In the image above, we can see how shorts are trapped at the bottom of the wick (red + at the bottom), leading to a pump also called a "short squeeze."
Same example as before, but with trapped longs (blue + at the top).
This can also work as basic support and resistance, for example, trapped shorts at the bottom with positive delta at the bottom acting as strong support for price.
Users can have the option to also display delta data within the corresponding levels, showing Buyers vs Sellers for more precise trading ideas.
NOTE:
User can only display the most recent data for the last 8 buyers and sellers.
It is recommended to use a hollow candle while using this script.
Pairs strategyHello, Tradingview community,
I am been playing with this idea that nowadays trading instruments are interconnected and when one goes too far "out of order" it should return to the mean.
So, here's a relatively simple idea.
This is a LONG-ONLY strategy.
Buy when your traded instrument's last bar closes down, and the comparing instrument closes up.
Sell when close is higher than the previous bar's high.
Best results I found with medium timeframes: 45min, 120min, 180min.
Also, feel free to test non-typical timeframes such as 59min, 119min, 179min, etc.
My reasoning for medium timeframes would be, that they are big enough to avoid "market noise"
of smaller timeframes + commissions & slippage is less negligible, and small enough to avoid exposure of higher timeframes, although, I haven't tested D timeframe and above.
The best results, I found were with instruments that aren't directly correlated. I mostly tested equities and equity futures, so for equity indexes, equity index futures, or large-cap stocks, NASDAQ:SMH , NASDAQ:NVDA , EURUSD, and Crude Oil would be a good candidate for comparing symbols.
When testing either futures or stocks, please adjust the commission for each asset, for stocks I use % equity, so it compounds over time, whereas, for futures, I use 1 contract all the time.
Here's NASDAQ:MSFT on 119min chart
Here's AMEX:SPY on 59min chart using NASDAQ:NVDA as comparison
Here's CME_MINI:ES1! on 179min chart using NYMEX:CL1! as comparison
To change comparison symbol just insert your symbol between the brackets on both fields down here.
SymbolClose = request.security("YOUR SYMBOL HERE", timeframe.period, close)
SymbolOpen = request.security("YOUR SYMBOL HERE", timeframe.period, open)
Since I am still relatively new to testing, hence, I am publishing this idea, so you can point out some crucial things I may have missed.
Thanks,
Enjoy the strategy!
MCV - Meme Coin Volume [Logue]Meme Coin Volume. Investor preference for meme coin trading may signal irrational exuberance in the crypto market. If a large spike in meme coin volume is observed, a top may be near. Therefore, the volume of the most popular meme coins was added together in this indicator to help indicate potential mania phases, which may signal nearing of a top. A simple moving average of the meme coin volume also helps visualize the trend while reducing the noise. In back testing, I found a 10-day sma of the meme coin volume works well.
Meme coins were not traded heavily prior to 2020. Therefore, there is only one cycle to test at the time of initial publication. Also, the meme coin space moves fast, so more meme coins may need to be added later.
The total volume is plotted along with a moving average of the volume. For the indicator, you are able to change the raw volume trigger line, the sma trigger line, and the period (daily) of the sma to your own preferences. The raw volume or sma going above their respective trigger lines will print a different background color.
Use this indicator at your own risk. I make no claims as to its accuracy in forecasting future trend changes of Bitcoin or the crypto market.
Kimchi Premium / Korean Premium ALL TICKERSKimchi Premium
Due to the isolated nature of Korean crypto markets, Koreans pay a hefty premium on most cryptos. (Usually ranging from 3% to 5%). This is colloquially known as the " Kimchi Premium ".
Uses
The extend of this premium can be used to gauge Korean sentiment towards certain tickers. Most of the insane alt coin rallies that are started by Korean degens are missed by foreign traders entirely. This script seeks to fix that.
Notes
This script automatically detects your current ticker and compares the USDT pair to the KRW pair after adjusting for exchange rate.
Works on all USDT, USDC, BUSD, FDUSD, USD, USDT.P, USDC.P or KRW pairs. Will obviously throw an error if your ticker has no KRW pairing.
VIX Statistical Sentiment Index [Nasan]** THIS IS ONLY FOR US STOCK MARKET**
The indicator analyzes market sentiment by computing the Rate of Change (ROC) for the VIX and S&P 500, visualizing the data as histograms with conditional coloring. It measures the correlation between the VIX, the specific stock, and the S&P 500, displaying the results on the chart. The reliability measure combines these correlations, offering an overall assessment of data robustness. One can use this information to gauge the inverse relationship between VIX and S&P 500, the alignment of the specific stock with the market, and the overall reliability of the correlations for informed decision-making based on the inverse relationship of VIX and price movement.
**WHEN THE VIX ROC IS ABOVE ZERO (RED COLOR) AND RASING ONE CAN EXPECT THE PRICE TO MOVE DOWNWARDS, WHEN THE VIX ROC IS BELOW ZERO (GREEN)AND DECREASING ONE CAN EXPECT THE PRICE TO MOVE UPWARDS"
Understanding the VIX Concept:
The VIX, or Volatility Index, is a widely used indicator in finance that measures the market's expectation of volatility over the next 30 days. Here are key points about the VIX:
Fear Gauge:
Often referred to as the "fear gauge," the VIX tends to rise during periods of market uncertainty or fear and fall during calmer market conditions.
Inverse Relationship with Market:
The VIX typically has an inverse relationship with the stock market. When the stock market experiences a sell-off, the VIX tends to rise, indicating increased expected volatility.
Implied Volatility:
The VIX is derived from the prices of options on the S&P 500. It represents the market's expectations for future volatility and is often referred to as "implied volatility."
Contrarian Indicator:
Extremely high VIX levels may indicate oversold conditions, suggesting a potential market rebound. Conversely, very low VIX levels may signal complacency and a potential reversal.
VIX vs. SPX Correlation:
This correlation measures the strength and direction of the relationship between the VIX (Volatility Index) and the S&P 500 (SPX).
A negative correlation indicates an inverse relationship. When the VIX goes up, the SPX tends to go down, and vice versa.
The correlation value closer to -1 suggests a stronger inverse relationship between VIX and SPX.
Stock vs. SPX Correlation:
This correlation measures the strength and direction of the relationship between the closing price of the stock (retrieved using src1) and the S&P 500 (SPX).
This correlation helps assess how closely the stock's price movements align with the broader market represented by the S&P 500.
A positive correlation suggests that the stock tends to move in the same direction as the S&P 500, while a negative correlation indicates an opposite movement.
Reliability Measure:
Combines the squared values of the VIX vs. SPX and Stock vs. SPX correlations and takes the square root to create a reliability measure.
This measure provides an overall assessment of how reliable the correlation information is in guiding decision-making.
Interpretation:
A higher reliability measure implies that the correlations between VIX and SPX, as well as between the stock and SPX, are more robust and consistent.
One can use this reliability measure to gauge the confidence they can place in the correlations when making decisions about the specific stock based on VIX data and its correlation with the broader market.
Liquidity Weighted Moving Averages [AlgoAlpha]Description:
The Liquidity Weighted Moving Averages by AlgoAlpha is a unique approach to identifying underlying trends in the market by looking at candle bars with the highest level of liquidity. This script offers a modified version of the classical MA crossover indicator that aims to be less noisy by using liquidity to determine the true fair value of price and where it should place more emphasis on when calculating the average.
Rationale:
It is common knowledge that liquidity makes it harder for market participants to move the price of assets, using this logic, we can determine the coincident liquidity of each bar by looking at the volume divided by the distance between the opening and closing price of that bar. If there is a higher volume but the opening and closing prices are near each other, this means that there was a high level of liquidity in that bar. We then use standard deviations to filter out high spikes of liquidity and record the closing prices on those bars. An average is then applied to these recorded prices only instead of taking the average of every single bar to avoid including outliers in the data processing.
Key features:
Customizable:
Fast Length - the period of the fast-moving average
Slow Length - the period of the slow-moving average
Outlier Threshold Length - the period of the outlier processing algorithm to detect spikes in liquidity
Significant Noise reduction from outliers:
VDVA - Volume Delta Volatility AmplifierThis script defines an indicator named VDVA (Volume Delta Volatility Amplifier), which combines volume delta (the difference between volume up and volume down) and volatility (ATR) into one line. This line is then smoothed using a moving average and compared with the zero level and a shorter-period moving average. The script also plots shapes when the rate of change of the line exceeds the first standard deviation. Moreover, the script uses Bollinger Bands and Keltner Channels to determine the squeeze condition, which is a signal of a potential breakout. Finally, the script plots two bar charts that show the volume up and volume down multiplied by ATR.
dark green line - bullish
light green line - potential bearish
dark red line - bearish
light red line - potential bullish
blue cloud - bullish
yellow cloud - bearish
red triangle - bearish entry
green triangle - bullish entry
purple cross - squeeze
VaR Market Sentiment by TenozenHello there! I am excited to share with you my new trading concept implemented in the "VaR Market Sentiment" indicator. But before that, let me explain what VaR is. VaR, or Value at Risk, is an indicator that helps you identify the worst-case scenario of a market movement based on a percentile/confidence level. This means that it calculates the worst moves, whether it's a buy or sell, based on the timeframe you're using.
Now, let's discuss how VaR Market Sentiment works. It uses a historical VaR to calculate the worst move either if the market goes up or down based on a percentile/confidence level. The default setting is the 95th percentile, which means that the market is unlikely to hit your SL level within the day if you're using a daily timeframe, etc.
To determine the strength of a candle, it subtracts the value of both sides based on the returns of the current timeframe with the VaR value (Bullish VaR - Bullish Returns, Bearish VaR - Bearish Returns). If the result is above the mean, the current candle is potentially weak. Conversely, if the result is below the mean, the current candle is potentially strong. The deviation shows critical sentiments, where if the market is above the deviation, it means that the current candle is really weak. If it's below the deviation, it means that the current candle is really strong.
It's important to note that this indicator needs other supporting indicators such as trend-following or mean reversion indicators based on your trading style. Also, as a follow-up to my previous concept, I called out that the market has what's called "power." And for now, I conclude that VaR Market Sentiment is the "power."
I'm going to share more helpful indicators in the future! I hope this indicator will be helpful for you guys! Ciao!
FlexiMA Variance Tracker - Strategy [presentTrading]█ Introduction and How It Is Different
The FlexiMA Variance Tracker by PresentTrading introduces a novel approach to technical trading strategies. Unlike traditional methods, it calculates deviations between a chosen indicator source (such as price or average) and a moving average with a variable length. This flexibility is achieved through a unique combination of a starting factor and an increment factor, allowing the moving average to adapt dynamically within a specified range. This strategy provides a more responsive and nuanced view of market trends, setting it apart from standard trading methodologies.
BTC 8h L/S
Local
█ Strategy, How It Works: Detailed Explanation
The FlexiMA Variance Tracker, developed by PresentTrading, stands at the forefront of trading strategies, distinguished by its adaptive and multifaceted approach to market analysis. This strategy intricately weaves various technical elements to construct a comprehensive trading logic. Here's an in-depth professional breakdown:
🔶Foundation on Variable-Length Moving Averages:
Central to this strategy is the concept of variable-length Moving Averages (MAs). Unlike traditional MAs with a fixed period, this strategy dynamically adjusts the length of the MA based on a starting factor and an incremental factor. This approach allows the strategy to adapt to market volatility and trend strength more effectively.
Each MA iteration offers a distinct temporal perspective, capturing short-term price movements to long-term trends. This aggregation of various time frames provides a richer and more nuanced market analysis, essential for making informed trading decisions.
🔶Deviation Analysis and Normalization:
The strategy calculates deviations of the price (or the chosen indicator source) from each of these MAs. These deviations are pivotal in identifying the immediate market direction relative to the average trend captured by each MA.
To standardize these deviations for comparability, they undergo a normalization process. The choice of normalization method (Max-Min or Absolute Sum) can significantly influence the interpretation of market conditions, offering distinct insights into price movements and trend strength.
🔹Normalization: Absolute Sum
🔶Composite Oscillator Construction:
A composite oscillator is derived from the median of these normalized deviations. The median serves as a balanced and robust central trend indicator, minimizing the impact of outliers and market noise.
Additionally, the standard deviation of these deviations is computed, providing a measure of market volatility. This volatility indicator is crucial for assessing market risk and can guide traders in setting appropriate stop-loss and take-profit levels.
🔶Integration with SuperTrend Indicator:
The FlexiMA strategy integrates the SuperTrend indicator, renowned for its effectiveness in identifying trend direction and reversals. The SuperTrend's incorporation enhances the strategy's ability to filter out false signals and confirm genuine market trends.
* The SuperTrend Toolkit is made by @QuantiLuxe
This combination of the variable-length MA oscillator with the SuperTrend indicator forms a potent duo, offering traders a dual-confirmation mechanism for trade signals.
🔹Supertrend's incorporation
🔶Strategic Trade Signal Generation:
Trade signals are generated when there is a confluence between the composite oscillator and the SuperTrend indicator. For example, a long position signal might be considered when the oscillator suggests an uptrend, and the SuperTrend flips to bullish.
The strategy's parameters are fully customizable, enabling traders to tailor the signal generation process to their specific trading style, risk tolerance, and market conditions.
█ Usage
To effectively employ the FlexiMA Variance Tracker strategy:
Traders should set their desired trade direction and fine-tune the starting and increment factors according to their market analysis and risk tolerance.
Indicator Length: 5
Indicator Length: 40
The strategy is suitable for a wide range of markets and can be adapted to different time frames, making it a versatile tool for various trading scenarios.
█ Default Settings Impact on Performance: FlexiMA Variance Tracker
1. Trade Direction (Configurable: Long, Short, Both): Determines trade types. 'Long' for buying, 'Short' for selling, 'Both' adapts to market trends.
2. Indicator Source: HLC3: Balances market sentiment by considering high, low, and close, providing comprehensive period analysis.
4. Indicator Length (Default: 10): Baseline for moving averages. Shorter lengths increase responsiveness but add noise, while longer lengths favor trends.
5. Starting and Increment Factor (Default: 1.0): Adjusts MA lengths range. Higher values capture broad market dynamics, lower values focus analysis.
6. Normalization Method (Options: None, Max-Min, Absolute Sum): Standardizes deviations. 'None' for raw deviations, 'Max-Min' for relative scaling, 'Absolute Sum' emphasizes relative strength.
7. SuperTrend Settings (ATR Length: 10, Multiplier: 15.0): Influences indicator sensitivity. Short ATR or high multiplier for short-term, long ATR or low multiplier for long-term trends.
8. Additional Settings (Mesh Style, Color Customization): Enhances visual clarity. Mesh style for detailed deviation view, colors for quick market condition identification.
Spike RangeGuided by new ICT tutoring, I create this versatile Spike Range
This indicator shows a different way on how to display "Spikes or Shadows" based on their size,
the indicator divides the "Spike or Shadows" into levels 0.5 - 0.75 - 0.25 Fibonacci, giving the possibility of viewing the "Spike or Shadows" with a certain size and being able to use them as continuation or reversal zones
The user has the possibility to:
- Choose the size of the "Spike or Shadows"
- Choose to view "Spike or Shadows" levels
- Choose to show only bullish or only bearish "Spike or Shadows" levels
The indicator should be used as ICT shows in its concepts.
The indicator takes into account the "Spades or Shadows" that have a certain size (based on the minimum range set)
These Spikes can be rated as "FVG" so you can expect reactions on the levels it marks, considering a reversal or continuation based on the range being respected
If the Spike is Bullish and the Price closes by invalidating 50% of the range we can evaluate a possible entry up to the High of the Spike
Below is an example of how to use them:
Invalidades Range
Respect Range
FlexiMA Variance Tracker [presentTrading]🔶 Introduction and How it is Different
The FlexiMA Variance Tracker (FlexiMA-VT) represents a novel approach in technical analysis, distinctively standing out in the realm of financial market indicators. It leverages the concept of a variable Length Moving Average (MA) to create a versatile and dynamic oscillator. Unlike traditional oscillators that rely on a fixed-length MA, the FlexiMA-VT adapts to market conditions by varying the length of the MA, offering a more responsive and nuanced view of market trends. (*The achieved method took reference from SuperTrend Polyfactor Oscillator)
This innovative design allows the FlexiMA-VT to capture a broader spectrum of market movements, making it highly effective in diverse trading environments. Whether in stable or volatile markets, its adaptability ensures consistent relevance, providing traders with deeper insights into potential market swings.
The proposed oscillator accentuates several key aspects through a distinctive mesh of bars, which are derived from the differences between the price and a set of 20 Moving Averages, each altered by varying factors. The intensity of the mesh's colors serves as an indicator, with brighter hues signifying a greater convergence of Moving Average signals.
Starting Length = 5
Starting Length = 40
🔶 Strategy, How it Works: Detailed Explanation
1. Core Concept:
The FlexiMA-VT operates by comparing the price or an average value (indicator source) against a set of moving averages with varying lengths.
These lengths are dynamically adjusted through a starting factor and multiple increment factors, ensuring a comprehensive analysis over different time scales.
2. Normalization and Standard Deviation Calculation:
Once deviations are calculated, they undergo a normalization process, which can be set to 'None', 'Max-Min', or 'Absolute Sum'.
This step is crucial as it standardizes the deviations, allowing for a consistent scale of comparison.
The standard deviation of these normalized deviations is then calculated, offering insights into the market’s volatility and potential trend strength.
🔹Normalization
3. Median Value and Oscillator Creation:
The median of the normalized deviations forms the core of the FlexiMA-VT oscillator.
This median value provides a balanced central point, reflecting the consensus of various MA lengths.
The standard deviation bands plotted around the median enhance the interpretative power of the oscillator, indicating potential overbought or oversold conditions.
4. Multi-Factor Analysis:
The FlexiMA-VT uses multiple increment factors to generate a range of MAs, each factor representing a different scale of trend analysis.
By averaging the results from these different scales, the FlexiMA-VT forms a more comprehensive and reliable oscillator.
🔹Consensus
5. Practical Application:
Traders can use the FlexiMA-VT for various purposes, including identifying trend reversals, gauging market momentum, and determining overbought or oversold conditions.
Its dynamic nature makes it adaptable to different trading strategies, from short-term scalping to long-term position trading.
🔶 Settings
1. Indicator Source (indicatorSource): Determines the base data for calculations, typically a price average (HLC3).
2. Indicator Length (indicatorLength): Sets the base length for Moving Averages, influencing initial calculations.
3. Starting Factor (startingFactor): Initial multiplier for MA length, impacting the starting point of analysis.
4. Increment Factors (incrementFactor_1, incrementFactor_2, incrementFactor_3): Modulate the rate of change in MA lengths, adding variability.
5. Normalization Method (normalizeMethod): Standardizes deviations, with methods like 'Max-Min' and 'Absolute Sum' for comparability.
Bitcoin Google Trends OverlayThis indicator overlays Bitcoin Google trends data starting from 16/12/2018 until 10/12/2023. To have more recent data, you will need to update the data points manually.
If it is not showing properly, you need to plot the indicator to a new scale. Try also to use a logarithmic scale to better correlate the Bitcoin Google Trends data.
Interpretation:
Google Trends data and the Bitcoin price are very correlated. Google Trends data is a good indicator of market sentiment, but it usually lags.
Interest Rate and GDP Dashboard by toodegreesDescription:
The Interest Rate and GDP Dashboard is a powerful tool designed to provide traders with valuable insights into Interest Rate and Gross Domestic Product (GDP) of the largest Central Banks.
Interest Rates are closely monitored from all around the world, and play a massive role in Interbank Institutional Trading. Although mainly used by Forex traders, it's important for all types of analysts to understand risk-on and risk-off environments in respective currencies, or other asset classes, based on a global financial landscape.
Forex Pair Dashboard ( FOREXCOM:EURUSD ):
Non-Forex Pair Dashboard ( CME_MINI:ES1! ):
This tool displays the Live Interest Rates (as well as latest Interest Rate Change) and GDP, of the following countries/regions:
Australia
Canada
Europe
Japan
New Zealand
Switzerland
United Kingdom
United States
Further, analysts will be able to see Interest Rate Change labels directly on chart, to monitor Time and price relationship following rate hikes or rate cuts. The labels will display according to the impact of the Interest Rate Change on the current asset on chart, and their tooltips will display the %Change:
Analysts can also choose to mark Interest Rate Changes with vertical lines, to aid in marking changes in sentiment or global financial environment:
The real power and value provided by this tool is its tailored Interest Rate (and GDP) Differential feature for Forex markets, based on the Interest Rate Differential concept as taught by the Inner Circle Trader (ICT).
Using Interest Rate Differentials as a further Long Term Bias factor was introduced by ICT in conjunction with other higher Timeframe principles like Seasonal Tendency, Commitment of Traders, and Open Interest. This fusion ensures a holistic approach to dissecting specific Forex pairs, and the involvement of Institutional traders.
Key Features:
Dynamically calculates and organizes the dashboard to display the interest rate differential of the chart's forex pair, or displays all if outside of forex markets.
Pinpoint historical interest rate changes with precision using vertical lines and/or dynamic labels with tooltips.
Other Features:
Toggle Options: Customize your viewing experience by toggling the display of previous rate changes, enabling or disabling GDP visibility, and tailoring the size and location of the dashboard.
Fine-tune Visuals: Adjust the size and style of the previous interest rate labels and lines to suit your preferences, offering a personalized touch to your analytical workspace.
Usage Guidance:
Add the Interest Rate and GDP Dashboard to your Tradingview chart.
Tailor your experience by customizing the table and style to be in line with your analytical preferences, ensuring a visually engaging and personalized chart.
Observe where and when key Interest Rate decisions impact the macro trend or market environment.
Leverage this invaluable information to shape your Higher Timeframe narrative in confluence with other tools.
Total number strength by ticker volumeThis is about stocks, which I always analyze.
Figure this out by looking at what the code calls ta.secutity.
This indicator plots the highest value of the ratio of total volume to individual volume for the stock you are analyzing, and the histogram tumbles to red when the stock changes in that value. The changed value is plotted as a label above that histogram. By using this indicator, you can determine which is currently the focus of attention, and if there are outliers, you will know by the histogram's detachment.
The parameters are explained below, but Timefream is the market value to be determined
setvalue sets the item to be judged, and lenght sets the time period to be judged. setvalue is the parameter that determines the timeframe for the judgment. vol is the volume, VP is the total purchase price, VPMA is its average, VPMAD is the detachment from its average, MA is the average of the vol, MAD is the detachment from its average, LRC is the average of the vol, and LRC is the average of the vol. value of linear regression, and also
The calculation of detachment is not negative because it comes out as a square, but it is not a problem because it is calculated as a percentage.
There is a *problem, and if the timefreame to be displayed is not calculated below the value of timefreame, an error will occur. We are currently searching for a solution to this problem. If you know the solution, I would appreciate it if you could let me know in the chat.
MADALGO's Fear and Greed OscillatorThe Fear and Greed Oscillator is a dynamic tool designed to gauge market sentiment by analyzing various components such as volatility, momentum, and volume. This indicator synthesizes multiple metrics to provide a singular view of market emotion, oscillating between fear and greed.
🔷 Calculation -
The oscillator integrates the following components, each normalized and weighted to contribute equally:
ATR (Average True Range): Represents market volatility.
MACD (Moving Average Convergence Divergence): Captures market momentum.
RSI (Relative Strength Index): Provides insights into overbought or oversold conditions.
Volume: Reflects market participation levels.
Each component is first normalized to ensure a balanced impact and then averaged to create the final oscillator value.
🔷 Color Coding -
The oscillator's plot changes color based on its value, representing market sentiment:
Green: Indicates a leaning towards greed.
Red: Suggests a leaning towards fear.
The intensity of the color represents the strength of the sentiment.
🔷 Usage -
This indicator is valuable for traders looking to understand market sentiment. It works best when combined with other forms of analysis, such as fundamental or other technical indicators, to form a comprehensive trading strategy.
🔷 Signal Lines -
Two horizontal lines represent extreme conditions:
A line for Extreme Fear.
Another for Extreme Greed.
These lines help identify when the market sentiment is at potentially unsustainable levels.
🔷 Customization -
The Fear and Greed Oscillator is designed with flexibility in mind, allowing users to adjust several parameters to match their specific analysis requirements. Understanding and utilizing these customization options can significantly enhance the indicator's relevance and effectiveness in various market conditions.
1. Length Parameters:
ATR and RSI Length: This input determines the period over which the Average True Range (ATR) and the Relative Strength Index (RSI) are calculated. Adjusting this length can affect the sensitivity of the oscillator to recent market movements. A shorter length makes the oscillator more responsive to recent changes, while a longer length smoothens it, reducing sensitivity to short-term fluctuations.
MACD Parameters: These include the Fast Length, Slow Length, and Signal Smoothing. By adjusting these, users can control how the Moving Average Convergence Divergence (MACD) component reacts to price movements. This customization is crucial for aligning the oscillator with different trading strategies, whether short-term or long-term focused.
Volume Length: This parameter sets the period for the moving average and standard deviation calculations of the volume component. Altering this length allows the oscillator to either emphasize recent volume changes or consider a broader historical context.
2. Weight Adjustments:
Component Weights: Each component (ATR, MACD, RSI, Volume) has an associated weight factor. These weights determine the relative influence of each component on the final oscillator value. Users can increase the weight of a component to give it more influence or decrease it to lessen its impact. This feature is particularly beneficial for traders who have a preference or insight into which market aspects are more indicative of fear or greed at given times.
Balancing the Components: The key to effective customization lies in balancing these weights to reflect the user's market perspective and trading style. For instance, a trader focusing on volatility might increase the weight of the ATR, while one interested in momentum might prioritize the MACD and RSI weights.
3. Color and Signal Line Customization:
Color Intensity: The intensity of the color gradient of the oscillator line can be a visual aid in quickly identifying market sentiment. Users can experiment with the colorValue calculation within the script to adjust how rapidly the color changes with the oscillator values
Extreme Levels: The extreme fear and greed levels, represented by horizontal lines, are customizable. Users can set these levels based on historical data analysis or personal risk tolerance. These lines act as alerts for potentially overextended market conditions.
🔷 Limitations -
As with any technical tool, the Fear and Greed Oscillator should not be used in isolation. It does not predict market direction but rather gauges the prevailing market emotion. Its effectiveness may vary across different markets and timeframes.
🔷 Conclusion -
The Fear and Greed Oscillator offers a unique perspective on market sentiment, encapsulating various aspects of market behavior into a single indicator. It serves as a versatile tool for traders aiming to understand the emotional undercurrents of the market.
🔷 Risk Disclaimer -
Financial trading involves significant risk. The value of investments can fluctuate, and past performance is not indicative of future results. This indicator is for informational purposes and should not be construed as financial advice. Always consider your personal circumstances and seek independent advice before making financial decisions.
Tips,Notes,RulesEasy Annotation:
Quickly create custom annotations during your trading sessions to capture important ideas, strategies and observations as you go.
User-friendly Interface:
The indicator offers an intuitive interface, ensuring a smooth experience for adding notes to your chart.
Custom Appearance:
Personalize your annotations according to your preferences.
Adjust the text size to make your notes easily readable and tailored to your visual preferences.
Choose from a variety of colors to make your annotations visually distinct and recognizable.
Align your text according to your preferences to create a visually appealing graphic.
Flexible Positioning:
Place your annotations at the top, middle, or bottom of the chart, providing flexibility without obstructing your view of the price action.
Clear View of Price Action:
Make sure your personalized notes don't interfere with your analysis of market movements.
Tracking Trading Rules:
Use the indicator to record your trading rules, ensuring that you follow your established strategies consistently.
Implement and follow your risk management plans, helping you maintain control over your transactions.
Capture and examine the psychological cues that influence your decisions, promoting greater discipline in your approach to trading.
Improved Trading Experience:
The Trading Notes indicator integrates seamlessly into your trading workflow, allowing you to focus on market analysis and decision-making.
Develop a complete record of your trading sessions, facilitating post-analysis and continuous improvement.
CBC FlipThis is an indicator for the Candle By Candle (CBC) Flip strategy as created by @MapleStax
It’s useful to traders because it’s a simple approach to gauge if bulls or bears are in control for any particular candle. The logic is as follows:
If the most recent candle close is above the previous candle high, then bulls are in control.
If the most recent candle close is below the previous candle low, then bears are in control.
If neither of these 2 conditions are met, then whoever was already in control remains in force until one of the 2 conditions is met and the sentiment is flipped, hence the name CBC Flip.
My script is original because there are no other CBC Flip scripts available on TV. This is the first, which is why I created it, to help other traders benefit from the power of CBC Flips.
The indicator output is simply interpreted as follows:
Triangle up = bulls in control
Triangle down = bears in control
In my experience this script is best used on the 5 or 10 minute time frames, as it helps to keep you in the trade for the bigger moves once a trend is established, while not getting shaken out from the “noisy” up/down candle price action of lower time frames like the 1 minute.
I’ve also had more success with this indicator when only taking long trades once the green triangle appears and price is above VWAP, and only taking short trades once the red triangle appears and price is below VWAP.
Logarithmic CVD [IkkeOmar]The LCVD is another Mean-Reversion Indicator. it doesn't detect trends and does not give a signal per se. However the logarithmic transformation is made to visualize the direction of the trend for the volume. This allows you to see if money is flowing in or out of an asset.
What it does is tell you if we have a flashcrash based on the difference in volume.
Think of this indicator like a form of a volatility index.
Smoothing input:
The only input is an input for the smoothing length of the logDelta.
Volume Calculation:
// @IkkeOmar
//@version=5
indicator('Logarithmic CVD', shorttitle='CVD', overlay=false)
smooth = input.int(defval = 25, title = "Smoothing Distance")
// Calculate buying and selling volume
askVolume = volume * (close > open ? 1 : 0) // Assuming higher close than open indicates buying
bidVolume = volume * (close < open ? 1 : 0) // Assuming lower close than open indicates selling
// Delta is the difference between buying and selling volume
delta = askVolume - bidVolume
// Apply logarithmic transformation to delta
// Adding a check to ensure delta is not zero as log(0) is undefined
logDelta = delta > 0 ? math.log(math.abs(delta)) * math.sign(delta) : - math.log(math.abs(delta)) * math.sign(delta)
// use the the ta lib for calculating the sma of the logDelta
smoothLogDelta = ta.sma(logDelta, smooth)
// Create candlestick plot
plot(logDelta, color= color.green, title='Logarithmic CVD')
plot(smoothLogDelta, color= color.rgb(145, 37, 1), title='Smooth CVD')
These lines calculate the buying and selling volumes. askVolume is calculated as the total volume when the closing price is higher than the opening price, assuming this indicates buying pressure. bidVolume is calculated as the total volume when the closing price is lower than the opening price, assuming selling pressure.
The Delta is simply the difference between buying and selling volumes.
Logarithmic Transformation:
logDelta = delta > 0 ? math.log(math.abs(delta)) * math.sign(delta) : - math.log(math.abs(delta)) * math.sign(delta)
Applies a logarithmic transformation to delta. The math.log function is used to calculate the natural logarithm of the absolute value of delta. The sign of delta is preserved to differentiate between positive and negative values. This transformation helps in scaling the delta values, especially useful when dealing with large numbers.
This script essentially provides a visual representation of the buying and selling pressures in a market, transformed logarithmically for better scaling and smoothed for trend analysis.
Hope it makes sense!
Stay safe everyone!
Don't hesitate to ask any questions if you have any!
Advanced Technical Range and Expectancy Estimator [SS]Hello everyone,
This indicator is a from of momentum based probability modelling. It is derived from my own approaches to probability modelling but just simplified a bit.
How it works:
The indicator looks at various technical, including stochastics, RSI, MFI and Z-Score, to determine the likely sentiment. All of these, with the exception of Z-Score, are momentum based indicators and can alert us to likely sentiment. However, instead of us making the subjective determination ourselves as to whether the RSI or MFI or Stochastics are bullish, the indicator will look at previous instances of these occurrences, and tally the bullish and bearish follow throughs that happened. It will also calculate the average target price that was hit, under similar conditions, on the same timeframe.
The Z-Score is your "tie breaker". It is not a momentum based indicator and measures something a little different (the standard deviation and over-extension of the stock). For this reason, it provides an alternative assessment and tends to be a bit more reliable in times of low momentum.
Back-test Results:
The indicator back-tests itself over the previous 100 candles. I have limited it to 100 candles for pragmatic considerations (it has to back-test each technical individually and increasing the BT length will slow and potentially error out the indicator) as well as accuracy considerations.
One thing I have noticed in my years of trying to crack the code and develop probability models for tickers, is historical accuracy doesn't always matter because sentiment is always changing. You need to see what it has done over the most recent 100 to 200 candles.
There are two back-test windows, one for the price targets and the other for the sentiment accuracy. The most effective/most accurate will highlight green, the least effective/least accurate will highlight red:
In the image above, you can see that the most accurate predictor of sentiment is Z-Score, with a 90.32% accuracy rate over the past 100 candles.
The most accurate predictor of price is MFI, with a 60% (for bull targets) and 42% (for bear targets)accuracy rate.
Anchoring Points:
The indicator permits you to anchor by two points. The default setting is anchoring by previous candle. If you plan to use this as an oscillator, to see the current prediction for the current candle you are viewing, then you will need to leave this default setting. It will pull the data from the previous candle and give you the data for the current candle you are on.
If you are assess the likely sentiment for the next day after the day has closed off, you will want to anchor by current candle. This will take the current technicals that the day has closed off with and run the assessment for you.
Customizability
You can customize the technicals by source and length of assessment.
They are all defaulted to the traditional settings of these indicators, but if you want to customize your model to try and improve or enhance accuracy in one way or another, you are free and able to do so!
I do suggest leaving the defaults as they seem to work particular well :-).
Thresholds
Thresholds are the tolerance levels that we permit for our technical search range. If you want them to be exactly identical, then you can set it to 0. If you want it to be extremely similar, you can set it to 0.01. This will hone in on the ranges you are interest in and you can see how it affects your accuracy by reviewing the results in the back-test tables.
Keep Static Colour Option
I want to make a quick note on the "Keep Static Colour" option that is in your settings menu.
The primary table that shows you the probability and price targets change colours based on the accuracy of the assessment. This is so, if you are using a mobile device or smaller screen and can't have the back-test results open at the same time, you can see still which are the most reliable results. However, if you have the back-test tables open and you find these colour changes too distracted, you can toggle on the "Keep Static Colour" and it will resort the colour of the table to a solid white:
Show Technicals
The indicator can show you the current technical values if you are using it in place of an oscillator. Its less pivotal as its making the assessment for you, but just for your reference if you want to see what the current MFI, Z-Score or Stochastics etc. are, you have that option as well.
All Timeframes Permitted
You can view Weekly, Monthly, Hourly, 5 minute, 1 minute, its all supported!
That's the indicator in a nutshell.
Hope you enjoy and leave your questions below.
Safe trades everyone!
Trading Strategy - Follow The Plan"Trading Strategy - Follow The Plan" is a TradingView indicator specifically crafted for traders dedicated to adhering to a structured approach. It emphasizes the elimination of emotional decision-making by providing clear, actionable steps. This tool allows you to articulate and visually embed your trading strategy directly onto your charts, encompassing your entry plan, exit plan, and any additional notes crucial for maintaining focus and discipline. It's designed to aid in sustaining consistency in your trading executions, ensuring that you remain steadfastly aligned with your predetermined trading methodology.
Features
1. Entry Plan: Allows traders to outline specific criteria for market entry. This could include conditions like divergences on multiple timeframes, specific pattern recognitions, or other entry triggers. The flexibility of this section caters to various trading styles and strategies.
2. Exit Plan: Dedicated to defining exit strategies, this section can include details on profit targets, stop-loss levels, or conditions for position reversal. It serves as a constant reminder of exit strategies during active trades.
3. Notes: A customizable space for traders to jot down essential rules, observations, or reminders. This section is particularly useful for reinforcing risk management practices and maintaining focus on broader trading goals.
4. Visibility Controls: Each section of the trading plan (Entry Plan, Exit Plan, Notes) can be toggled on or off, allowing traders to manage on-screen information and reduce chart clutter.
5. Layout Customization: Users can choose the placement of the trading plan on their chart, with options including Top Right, Top Left, Bottom Right, and Bottom Left. This caters to individual preferences and screen setups.
6. Appearance Customization: The indicator allows for adjustments in text and background colors, and text sizes for titles and content, enhancing readability and personal preference alignment.
Opening Range & Prior Day High/Low [Gorb]Introduction:
Opening Range & Prior Day High/Low indicator is an easy to use day traders tool. This indicator automatically plots the previous days high and low, as well as drawing a box from the opening range that the user specifies in the settings. These two together can help provide an indication of market sentiment and price trends for the day. They are often used as a trading strategy for day traders.
Overview:
The Opening Range , draws a box from the high to the low of the user defined time period and is extended until the end of the trading session. Most common are the 5/15/30min opening ranges.
Prior Day High/Low , draws lines from the previous days high and low that extend across the current session. These are used as support/resistance and also a marker to see market sentiment by crossing one of these levels.
The indicator is designed for all kinds of traders, offering a simple approach to automatically plot levels for you.
Features:
All skill-level friendly presets, easy to enable with one-click
Opening Range: Allows user to choose what time the range starts and ends to measure the high & low.
Extend Range Lines: allows the user to choose when the box stops extending according to the trading session time.
Enable Opening Range Box: allows the user to choose to plot the opening range or not.
ORB Border Color: allows the user to change the box border color.
ORB Box Shade Color: allows the user to change the background of the opening range box.
ORB Line Width: allows users to chose the width of the opening range box lines.
Enable Previous Day High: allows users to enable the previous days high to be plotted.
Enable Previous Day Low: allows users to enable the previous days high to be plotted.
Previous Day High Color: allows users to choose the color for this line.
Previous Day Low Color: allows users to choose the color for this line.
All colors are changeable for the user to customize to their liking.
Usage Demonstration
In the image below, we can see a basic example of how these 3 features function.
As explained above, the opening range is customizable to meet the users needs and can be disabled with one click. Same goes for the prior day high(green) and low(red) lines. All 3 are plotted each day automatically for the user if enabled.
In the image below, we can see an example of using the opening range break and prior day high together for a trading strategy.
This is a great example of using the prior day high with the opening range to use as a day trading strategy. It provides the trader with levels to watch for price to break out from for possible trade setups.
In this next image, we can see a failed breakdown from the opening range that results in a bullish breakout.
The first move was a fake breakdown with the failed rejection on the retest of the opening range lows. This led to a breakout above the range and a confirmation bounce on the breakout retest. Price did break above the prior day high and confirmed with a retest bounce on that level as well.
In the image below, we can see how previous days levels can act as resistance to use with the opening range.
Price didn't reject the opening range low, but it did reject the prior day high for the second time. This could be used as an entry or once price breaks down out of the opening range again.
Conclusion:
We believe in providing user-friendly tools to help speed up traders technical analysis and implement easy trading strategies. The goal is to provide a user-friendly indicator to automatically draw opening ranges and previous days levels to suit the users needs and trading style.
RISK DISCLAIMER
All content, tools, scripts & education provided by Monstanzer or Gorb Algo LLC are for informational & educational purposes only. Trading is risk and most lose their money, past performance does not guarantee future results.
Predictive Candles Variety Pack [SS]This indicator provides you with the ability to select from a variety of candle prediction methods.
It permits for:
👉 Traditional Linear Regression Candle Predictions
👉 Candle Predictions based on the underlying Stochastics
👉 Candle Predictions based on the underlying RSI
👉 Candle Predictions based on the underlying MFI
👉 Candle Predictions based on the EMA 9
👉 Candle Predictions based on ARIMA modelling
Which is best?
Each method serves its unique purpose.
Here are some general tips of which candles are better suited for what:
🎯Trend Following🎯
For Trend following, the EMA 9 would be an appropriate choice of candle as it helps you to identify the current trend and potential early pullbacks/reversals.
🎯Momentum Following🎯
Momentum following is best carried out with the Stochastics Candles.
🎯Pullback Determination🎯
Pullback Determination is best accomplished through the RSI candles, as the ranges compress or expand based on the current state of oversold/overboughtness.
🎯Detrended Range🎯
To see the detrended range of where the ticker should be falling, absent the trendy noise, it's best to use the ARIMA candles.
Other Features
👉 Other features include a Backtest option that can be toggled on or off and will backtest over the length of the assessment. I don't recommend leaving it on as it can be resource-heavy on Pinescript though.
👉 The ability to adjust the transparency of the candles if you want them to be more or less visible.
Troubleshooting Note
The ARIMA modeling version is extremely resource-heavy, as it has to fully develop an ARIMA model. I have tried to optimize it by reducing the lagged assessment to just 2 lags. If you are using a free or non-premium membership, you may need to reduce the length of the assessment.
And that's it! Pretty straightforward indicator.
Hope you enjoy it!