Correlation AnalysisAs the name suggests, this indicator is a market correlation analysis tool.
It contains two main features:
- The Curve: represents the historic correlation coefficient between the current chart and the “Reference Market” input from the settings menu. It aims to give more depth to the current correlation values found in the second feature.
- The Screener: this second feature displays all correlation coefficient values between the (max) 20 markets inputs. You can use it to create several screeners for several market types (crypto, forex, metals, etc.) or even replicate your current portfolio of investments and gauge the correlation of its components.
Aside from these two previous features, you can visually plot the variation rate from one bar to another along with the covariance coefficient (both used in the correlation calculation). Finally, a simple “signal” moving average can be applied to the correlation coefficient .
I might add alerts to this script or even turn it into a strategy to do some backtesting. Do not hesitate to contact me or comment below if this is something you would be interested in or if you have any suggestions for improvement.
Enjoy!!
M-oscillator
Jdawg Sentiment Momentum Oscillator EnhancedThe Jdawg Sentiment Momentum Oscillator Enhanced (JSMO_E) is a versatile technical analysis indicator designed to provide traders with insights into potential trend changes and overbought or oversold market conditions. JSMO_E combines the principles of the Relative Strength Index (RSI), the Simple Moving Average (SMA), and the Rate of Change (ROC) to create a comprehensive tool for assessing market sentiment and momentum.
The uniqueness of JSMO_E lies in its ability to integrate the RSI, SMA of RSI, and ROC of RSI, while also allowing users to customize the weight of the ROC component. This combination of features is not commonly found in other indicators, which increases its distinctiveness.
To effectively use JSMO_E, follow these steps:
Apply the JSMO_E indicator to the price chart of the asset you are analyzing.
Observe the plotted JSMO_E line in relation to the zero line, overbought, and oversold levels.
When the JSMO_E line crosses above the zero line, it may signal the beginning of an uptrend or bullish momentum. Conversely, when the JSMO_E line crosses below the zero line, it may indicate the start of a downtrend or bearish momentum.
Overbought and oversold levels, marked by the red and green dashed lines, respectively, can serve as a warning that a trend reversal may be imminent. When the JSMO_E line reaches or surpasses the overbought level, it might indicate that the asset is overvalued and could experience a price decline. Conversely, when the JSMO_E line reaches or goes below the oversold level, it can signal that the asset is undervalued and may experience a price increase.
Adjust the input parameters (RSI Period, SMA Period, ROC Period, and ROC Weight) as needed to optimize the indicator for the specific market and time frame you are analyzing.
The JSMO_E indicator is suitable for various markets, including stocks, forex, commodities, and cryptocurrencies. However, its effectiveness may vary depending on the market conditions and time frames used. It is recommended to use JSMO_E in conjunction with other technical analysis tools and methods to confirm potential trade setups and improve overall trading performance. Always conduct thorough backtesting and forward-testing before employing any indicator in a live trading environment.
Triple RSI Indicator with ToggleThis script combines three relative strength index (RSI) indicators with different periods, and allows the user to toggle between them to generate overbought and oversold signals. The indicator is named "Triple RSI Indicator with Toggle" and has the short title "TRSI-T."
The input parameters for the RSI periods are set by the user and include a short RSI with a period of 5, a main RSI with a period of 14, and a long RSI with a period of 28. The overbought and oversold levels for each RSI can also be set by the user.
The script plots the three RSI lines on the chart and calculates a bar color based on the enabled RSI values. If all three RSI values are overbought, the bar color is set to fuchsia, if all three RSI values are oversold, the bar color is set to aqua, and if neither of these conditions is met, the bar color is set to not available.
The script also includes a fast RSI and an RSI exponential moving average (EMA) with adjustable periods. The RSI fast line is plotted along with the RSI EMA line, and a cloud fill is generated between the two lines. The fill color is based on whether the fast RSI line is above or below the RSI EMA line, with a blue color used for long signals and a pink color used for short signals.
This indicator can be used as part of a trading strategy in a number of ways. Here are a few examples:
Overbought and Oversold Signals: When the bar color of the indicator is fuchsia, it indicates that all three RSIs are overbought, and when the bar color is aqua, it indicates that all three RSIs are oversold. These signals can be used to enter a trade in the opposite direction, anticipating a reversal in price.
RSI Divergence: Traders can also look for divergences between the price and the RSI values. For example, if the price is making higher highs but the RSI values are making lower highs, it could indicate that the price trend is weakening and a reversal may be imminent. Conversely, if the price is making lower lows but the RSI values are making higher lows, it could indicate that the price trend is about to reverse.
RSI Cloud Signals: The cloud fill generated between the fast RSI and RSI EMA lines can be used to generate trading signals. When the fast RSI line is above the RSI EMA line and the fill color is blue, it can be a signal to go long. When the fast RSI line is below the RSI EMA line and the fill color is pink, it can be a signal to go short.
If anybody has some interesting thoughts on how to improve it, let me know!!
Advanced RSI with Volatility Bands [RedWhite]English - Introduction
This indicator uses a standard RSI of 14 periods, however, instead of using static lines of 70 and 30 to identify overbought and oversold zones, a moving average band is added, similar to the Bollinger Bands indicator.
Español - Introducción
Este indicador utiliza un RSI estándar de 14 períodos, sin embargo, en lugar de utilizar líneas estáticas de 70 y 30 para identificar las zonas de sobrecompra y sobreventa, se agrega una banda de medias móviles similar al indicador de las Bandas de Bollinger.
English - Calculation
The moving average band is constructed by calculating a moving average (default of 70 periods) on the standard RSI of 14 periods. From this average, volatility bands are applied, drawing an upper and lower band by using a standard deviation (default of 1).
Español - Cálculo
La banda de medias móviles se construye calculando una media móvil (por defecto de 70 períodos) sobre el RSI estándar de 14 períodos. A partir de esta media, se aplican bandas de volatilidad, dibujando así una banda superior e inferior mediante el uso de una desviación estándar (por defecto de 1).
English - Interpretation
When the RSI surpasses the upper band, the chart's background is shaded by default (green) to signal a possible overbought situation. On the other hand, when the RSI surpasses the lower band, the chart's background is shaded by default (red) to signal a possible oversold situation. The indicator can be customized in terms of period length, moving average values, and standard deviations. In addition, background colors can be adjusted according to the user's preferences.
Español - Interpretación
Cuando el RSI supera la banda superior, el fondo del gráfico se sombra de un color por defecto (verde) para señalar una posible situación de sobrecompra. Por otro lado, cuando el RSI supera la banda inferior, el fondo del gráfico se sombrea de un color por defecto (rojo) para señalar una posible situación de sobreventa. El indicador se puede personalizar en cuanto a la longitud de los períodos, los valores de la media móvil y las desviaciones estándar. Además, los colores del fondo se pueden ajustar según las preferencias del usuario.
English - Conclusion
By incorporating moving average bands, the indicator can provide more precise signals that are adjusted to changing market conditions. Additionally, the function of coloring the background can help traders visualize overbought and oversold zones clearly and make informed decisions accordingly. It is important to note that this indicator is not infallible and should be used in conjunction with other indicators and market analysis to make informed trading decisions.
Español - Conclusión
Al incorporar bandas de medias móviles, el indicador puede proporcionar señales más precisas ajustadas a las condiciones cambiantes del mercado. Además, la función de colorear el fondo puede ayudar a los traders a visualizar claramente las zonas de sobrecompra y sobreventa y tomar decisiones informadas en consecuencia. Es importante tener en cuenta que este indicador no es infalible y debe ser utilizado junto con otros indicadores y análisis del mercado para tomar decisiones de trading informadas.
English: For comparison purposes, the standard 14-period RSI is presented above, and below it, the standard 14-period RSI with volatility bands is shown.
Español: Con fines comparativos, se presenta el RSI estándar de 14 períodos arriba, y debajo se muestra el RSI estándar de 14 períodos con bandas de volatilidad.
English: RSI of 14 periods with a band of moving averages of 70 periods and a standard deviation with a value of 1
Español: RSI de 14 periodos con una banda de medias móviles de 70 periodos y una desviación estándar con un valor de 1
English: RSI of 14 periods with a band of moving averages of 70 periods and a standard deviation with a value of 0
Español: RSI de 14 periodos con una banda de medias móviles de 70 periodos y una desviación estándar con un valor de 0
English - Note
This indicator is inspired by Blai5's "Advanced RSI".
Español- Nota
Este indicador está inspirado en el "RSI Avanzado" de Blai5.
WillyCycle Oscillator&DoubleMa/ErkOzi/"This code creates a technical analysis indicator used to calculate and visualize the WillyCycle oscillator and double moving average indicators on the price of a financial asset. The functionality can be summarized as follows:
*Calculate the WillyCycle oscillator: The WillyCycle is an oscillator calculated based on the highest and lowest values of an asset. This oscillator is used to measure overbought or oversold conditions of the asset.
*Calculate the double moving average: The double moving average helps determine trends by calculating the short-term and long-term moving averages of asset prices.
*Use the WillyCycle oscillator and double moving average indicators together: The WillyCycle oscillator is combined with the double moving averages to provide a clearer indication of overbought and oversold conditions.
*Visualize the indicator with color coding: The indicator is color-coded to show overbought and oversold conditions. Additionally, line and background colors are changed to make the indicator more readable.
Many parameters can be adjusted on the indicator: The indicator can be customized and modified by the user. For example, the period of the WillyCycle oscillator and the lengths of the double moving averages can be adjusted."
The strategy is based on two indicators - the WillyCycle oscillator and the double moving average. The WillyCycle oscillator measures overbought and oversold conditions of the asset based on its highest and lowest values. The double moving average calculates short-term and long-term moving averages of the asset's price, which can help identify trends.
The WillyCycle oscillator and the double moving average are combined in this strategy to provide a clearer indication of overbought and oversold conditions. When the WillyCycle oscillator indicates that the asset is oversold and the short-term moving average crosses above the long-term moving average, it may signal a buy opportunity. Conversely, when the WillyCycle oscillator indicates that the asset is overbought and the short-term moving average crosses below the long-term moving average, it may signal a sell opportunity.
To make it easier for traders to read and interpret the indicator, color-coding is used to indicate overbought and oversold conditions. The user can also customize the indicator by adjusting parameters such as the period of the WillyCycle oscillator and the lengths of the double moving averages.
*ıt provides successful buy and sell signals for price reversals.
*You can open counter trades in overbought and oversold areas by following the averages.
RSI Divergence Method█ OVERVIEW
This is a divergence indicator based on Relative Strength Index (RSI).
My attempt to make this indicator updated based on latest pine script features such as type, object and method.
█ FEATURES
1. Color of plot and label is based on contrast color of chart background. Able to customize color from style menu.
2. Big divergence (Regular Divergence) is based on lime / red color.
3. Small divergence (Hidden Divergence) is based on contrast color of chart background.
█ EXAMPLES / USAGES
The Flash-Strategy (Momentum-RSI, EMA-crossover, ATR)The Flash-Strategy (Momentum-RSI, EMA-crossover, ATR)
Are you tired of manually analyzing charts and trying to find profitable trading opportunities? Look no further! Our algorithmic trading strategy, "Flash," is here to simplify your trading process and maximize your profits.
Flash is an advanced trading algorithm that combines three powerful indicators to generate highly selective and accurate trading signals. The Momentum-RSI, Super-Trend Analysis and EMA-Strategy indicators are used to identify the strength and direction of the underlying trend.
The Momentum-RSI signals the strength of the trend and only generates trading signals in confirmed upward or downward trends. The Super-Trend Analysis confirms the trend direction and generates signals when the price breaks through the super-trend line. The EMA-Strategy is used as a qualifier for the generation of trading signals, where buy signals are generated when the EMA crosses relevant trend lines.
Flash is highly selective, as it only generates trading signals when all three indicators align. This ensures that only the highest probability trades are taken, resulting in maximum profits.
Our trading strategy also comes with two profit management options. Option 1 uses the so-called supertrend-indicator which uses the dynamic ATR as a key input, while option 2 applies pre-defined, fixed SL and TP levels.
The settings for each indicator can be customized, allowing you to adjust the length, limit value, factor, and source value to suit your preferences. You can also set the time period in which you want to run the backtest and how many dollar trades you want to open in each position for fully automated trading.
Choose your preferred trade direction and stop-loss/take-profit settings, and let Flash do the rest. Say goodbye to manual chart analysis and hello to consistent profits with Flash. Try it now!
General Comments
This Flash Strategy has been developed in cooperation between Baby_whale_to_moon and JS-TechTrading. Cudos to Baby_whale_to_moon for doing a great job in transforming sophisticated trading ideas into pine scripts.
Detailed Description
The “Flash” script considers the following indicators for the generation of trading signals:
1. Momentum-RSI
2. ‘Super-Trend’-Analysis
3. EMA-Strategy
1. Momentum-RSI
• This indicator signals the strength of the underlying upward- or downward-trend.
• The signal range of this indicator is from 0 to 100. Values > 60 indicate a confirmed upward- or downward-trend.
• The strategy will only generate trading signals in case the stock (or any other financial security) is in a confirmed upward- (long entry signals) or downward-trend (short entry signals).
• This indicator provides information with regards to the strength of the underlying trend and it does not give any insight with regard to the direction of the trend. Therefore, this strategy also considers other indicators which provide technical confirmation with regards to the direction of the underlying trend.
Graph 1 shows this concept:
• The Momentum-RSI indicator gives lower readings during consolidation phases and no trading signals are generated during these periods.
Example (graph 2):
2. Super-Trend Analysis
• The red line in the graph below represents the so-called super-trend-line. Trading signals are only generated in case the price action breaks through this super-trend-line indicating a new confirmed upward-trend (or downward-trend, respectively).
• If that happens, the super trend-line changes its color from red to green, giving confirmation that the trend changed from bearish to bullish and long-entries can be considered.
• The vice-versa approach can be considered for short entries.
Graph 3 explains this concept:
3. Exponential Moving Average / EMA-Strategy
The functionality of this EMA-element of the strategy has been programmed as follows:
• The exponential moving average and two other trend lines are being used as qualifiers for the generation of trading-signals.
• Buy-signals for long-entries are only considered in case the EMA (yellow line in the graph below) crosses the red line.
• Sell-signals for short-entries are only considered in case the EMA (yellow line in the graph below) crosses the green line.
An example is shown in graph 4 below:
We use this indicator to determine the new trend direction that may occur by using the data of the price's past movement.
4. Bringing it all together
This section describes in detail, how this strategy combines the Momentum-RSI, the super-trend analysis and the EMA-strategy.
The strategy only generates trading-signals in case all of the following conditions and qualifiers are being met:
1. Momentum-RSI is higher than the set value of this strategy. The standard and recommended value is 60 (graph 5):
2. The super-trend analysis needs to indicate a confirmed upward-trend (for long-entry signals) or a confirmed downward-trend (for short-entry signals), respectively.
3. The EMA-strategy needs to indicate that the stock or financial security is in a confirmed upward-trend (long-entries) or downward-trend (short-entries), respectively.
The strategy will only generate trading signals if all three qualifiers are being met. This makes this strategy highly selective and is the key secret for its success.
Example for Long-Entry (graph 6):
When these conditions are met, our Long position is opened.
Example for Short-Entry (graph 7):
Trade Management Options (graph 8)
Option 1
In this dynamic version, the so-called supertrend-indicator is being used for the trade exit management. This supertrend-indicator is a sophisticated and optimized methodology which uses the dynamic ATR as one of its key input parameters.
The following settings of the supertrend-indicator can be changed and optimized (graph 9):
The dynamic SL/TP-lines of the supertrend-indicator are shown in the charts. The ATR-length and the supertrend-factor result in a multiplier value which can be used to fine-tune and optimize this strategy based on the financial security, timeframe and overall market environment.
Option 2 (graph 10):
Option 2 applies pre-defined, fixed SL and TP levels which will appear as straight horizontal lines in the chart.
Settings options (graph 11):
The following settings can be changed for the three elements of this strategy:
1. (Length Mom-Rsi): Length of our Mom-RSI indicator.
2. Mom-RSI Limit Val: the higher this number, the more momentum of the underlying trend is required before the strategy will start creating trading signals.
3. The length and factor values of the super trend indicator can be adjusted:ATR Length SuperTrend and Factor Super Trend
4. You can set the source value used by the ema trend indicator to determine the ema line: Source Ema Ind
5. You can set the EMA length and the percentage value to follow the price: Length Ema Ind and Percent Ema Ind
6. The backtesting period can be adjusted: Start and End time of BackTest
7. Dollar cost per position: this is relevant for 100% fully automated trading.
8. Trade direction can be adjusted: LONG, SHORT or BOTH
9. As we explained above, we can determine our stop-loss and take-profit levels dynamically or statically. (Version 1 or Version 2 )
Display options on the charts graph 12):
1. Show horizontal lines for the Stop-Loss and Take-profit levels on the charts.
2. Display relevant Trend Lines, including color setting options for the supertrend functionality. In the example below, green lines indicate a confirmed uptrend, red lines indicate a confirmed downtrend.
Other comments
• This indicator has been optimized to be applied for 1 hour-charts. However, the underlying principles of this strategy are supply and demand in the financial markets and the strategy can be applied to all timeframes. Daytraders can use the 1min- or 5min charts, swing-traders can use the daily charts.
• This strategy has been designed to identify the most promising, highest probability entries and trades for each stock or other financial security.
• The combination of the qualifiers results in a highly selective strategy which only considers the most promising swing-trading entries. As a result, you will normally only find a low number of trades for each stock or other financial security per year in case you apply this strategy for the daily charts. Shorter timeframes will result in a higher number of trades / year.
• Consequently, traders need to apply this strategy for a full watchlist rather than just one financial security.
Mason’s Line IndicatorThe Macon Strategy is an idea conceived by Didier Darcet , co-founder of Gavekal Intelligence Software. Inspired by the Water Level, an instrument used by masons to check the horizontality or verticality of a wall. This method aims to measure the psychology of financial markets and determine if the market is balanced or tilting towards an unfavorable side, focusing on the behavioral risk of markets rather than economic or political factors.
The strategy examines the satisfaction and frustration of investors based on the distance between the low and high points of the market over a period of one year. Investor satisfaction is influenced by the current price of the index and the path taken to reach that price. The distance to the low point provides satisfaction, while the distance to the high point generates frustration. The balance between the two dictates investors’ desire to hold or sell their positions.
To refine the strategy, it is important to consider the opinion of a group of investors rather than just one individual. The members of a hypothetical investor club invest successively throughout the past year. The overall satisfaction of the market on a given day is a democratic expression of all participants.
If the overall satisfaction is below 50%, investors are frustrated and sell their positions. If it is above, they are satisfied and hold their positions. The position of the group of investors relative to the high and low points represents the position of the air bubble in the water level. Market performance is measured day by day based on participant satisfaction or dissatisfaction.
In conclusion, memory, emotions, and decision-making ability are closely linked, and their interaction influences investment decisions. The Macon Strategy highlights the importance of the behavioral dimension in understanding financial market dynamics. By studying investor behavior through this strategy, it is possible to better anticipate market trends and make more informed investment decisions.
Presentation of the Mason’s Line Indicator:
The main strategy of this indicator is to measure the average satisfaction of investors based on the position of an imaginary air bubble in a tube delimited by the market’s highs and lows over a given period. After calculating the satisfaction level, it is then normalized between 0 and 1, and a moving average can be used to visualize trends.
Key features:
Calculation of highs and lows over a user-defined period.
Determination of the position of the air bubble in the tube based on the closing price.
Calculation of the average satisfaction of investors over a selected period.
Normalization of the average satisfaction between 0 and 1.
Visualization of normalized or non-normalized average satisfaction levels, as well as their corresponding moving averages.
User parameters:
Period for min and max (days) : Sets the period over which highs and lows will be calculated (1 to 365 days).
Period for average satisfaction (days) : Determines the period over which the average satisfaction of investors will be calculated (1 to 365 days).
Period for SMA : Sets the period of the simple moving average used to smooth the data (1 to 1000 days).
Bubble_value : Adjustment of the air bubble value, ranging from 0 to 1, in increments of 0.025.
Normalized average satisfaction : Option to choose whether to display the normalized or non-normalized average satisfaction.
Please note that the Mason’s Line Indicator is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
SynthSAR ConfirmationThis indicator represents confirmation of a trend based on the PSAR indicator and includes signals from the MACD, stochastic oscillator, and awesome oscillator. It displays the points of the parabolic SAR on the chart, which help determine the direction of the trend. Additionally, the indicator allows for tracking signals based on the combined analysis of three other technical indicators: MACD, stochastic oscillator, and awesome oscillator. Furthermore, the indicator includes the ability to display buy/sell labels and signals for changing the trend direction. This is not an investment recommendation.Very effective in higher timeframes.If the MACD "macd line" crosses the "signal line" from above and the Stochastic %K line crosses the %D line from above, and the last column in the Avesome Oscillator is red, then the indicator gives a signal to sell. If the MACD "macd line" crosses the "signal line" from below and the Stochastic %K line crosses the %D line from below, and the last column in the Avesome Oscillator is green, then the indicator gives a signal to buy.
Rainbow Collection - VioletMoving averages come in all shapes and types. The most basic type is the simple moving average which is simply the sum divided by the quantity. Therefore, the simple moving average is the sum of the values divided by their number.
In technical analysis, you generally use moving averages to understand the underlying trend and to find trading signals. In the case of the Violet indicator, we are using a Hull moving average which is a special variation based on different weights to minimize lag.
The Violet indicator is therefore used as follows:
* A bullish signal is generated whenever the close price surpasses the 20-period Hull moving average while the previous close prices from periods were all below their respective Hull moving average of the period.
*A bearish signal is generated whenever the close price breaks the 20-period Hull moving average while the previous close prices from periods were all above their respective Hull moving average of the period.
The aim of the Violet indicator is to capture reversals as early as possible through a combination of lagged conditions based on the Fibonacci sequence.
Cryptocurrency Market Sentiment v1.0Introduction:
Capable of observing the market sentiment of the cryptocurrency market
The relative status of BTC and altcoins
How it works:
1. The general uptrend process of the cryptocurrency market is BTC → ETH → high-cap altcoins → low-cap altcoins. When funds cannot push up BTC's market cap, funds gradually flow into smaller-cap altcoins until the upward trend ends.
2. Select ETH as the representative of altcoins, and understand the sentiment and current stage
3. Mathematical principle : divide the price of ETH by the price of BTC, and then apply it to the RSI formula .
How to use it:
1. Similar to the RSI indicator , when CMS enters the overbought zone, it represents an active altcoin market, a passionate market sentiment , and the end of the uptrend.
2. When CMS enters the oversold zone, it indicates the leading stage of BTC in the rising trend or the capital flow back to BTC in the declining process .
3. If CMS is at a low level, long positions should focus on altcoins, and short positions should focus on BTC, and vice versa.
----------------------------------------------------------------------------------------------------------
简单介绍:
能够观察加密市场市场情绪
BTC和寨币的相对状态
如何工作:
1、加密市场一般的上涨过程为 BTC → ETH → 大市值山寨 → 小市值山寨,当资金无法推动大市值的BTC上涨时,资金就会逐渐流向市值较小的山寨,直到一轮上涨结束。
2、选取ETH作为altcoins的代表,通过ETH与BTC的关系来了解加密市场的情绪和目前上涨的阶段。
3、数学原理:将ETH的价格/BTC的价格,随后将其带入RSI公式
如何使用:
1、与RSI指标类似,当cms进入超买时,代表寨币市场的活跃,市场情绪热烈,上涨进入尾声。
2、当cms进入超卖时,为上涨中BTC领涨的阶段或下降过程中资金回流BTC。
3、如果cms在低位,做多应关注altcoins,做空应关注btc,反之亦然。
Futures/Spot Ratiowhat is Futures /Spot Ratio?
Although futures and spot markets are separate markets, they are correlated. arbitrage bots allow this gap to be closed. But arbitrage bots also have their limits. so there are always slight differences between futures and spot markets. By analyzing these differences, the movements of the players in the market can be interpreted and important information about the price can be obtained. Futures /Spot Ratio is a tool that facilitates this analysis.
what it does?
it compresses the ratio between two selected spot and futures trading pairs between 0 and 100. its purpose is to facilitate use and interpretation. it also passes a regression (Colorful Regression) through the middle of the data for the same purpose.
about Colorful Regression:
how it does it?
it uses this formula:
how to use it?
use it to understand whether the market is priced with spot trades or leveraged positions. A value of 50 is the breakeven point where the ratio of the spot and leveraged markets are equal. Values above 50 indicate excess of long positions in the market, values below 50 indicate excess of short positions. I have explained how to interpret these ratios with examples below.
Fair Value Strategy - ekmllThis is a strategy using SPX's Fair Value derived from Net Liquidity.
The main difference between this one and calebsandfort's one is net liquidity values in this one are calculated in TradingView and doesn't need author's daily library updates to function.
Net Liquidity function is simply: Fed Balance Sheet - Treasury General Account - Reverse Repo Balance
Formula for calculating the fair value of and Index using Net Liquidity looks like this: (WALCL - WTREGEN - RRPONTSYD)/1000000000/scalar - subtractor
The Index Fair Value is then subtracted from the Index value which creates an oscillating diff value.
When diff is greater than the overbought threshold, Index is considered overbought and we go short/sell.
When diff is less than the oversold signal, Index is considered oversold and we cover/buy.
Parameters:
Index: SPX, NDX, RUT
Strategy: Short Only, Long Only, Long/Short
Inverse (bool): check if using an inverse ETF to go long instead of short.
Scalar (float)
Subtractor (int)
Overbought Threshold (int)
Oversold Threshold (int)
Start After Date: When the strategy should start trading
Close Date: Day to close open trades. I just like it to get complete results rather than the strategy ending with open trades.
I've optimized the parameters for SPX.
Equilibrium╭━━━╮╱╱╱╱╱╱╭╮╱╭╮
┃╭━━╯╱╱╱╱╱╱┃┃╱┃┃
┃╰━━┳━━┳╮╭┳┫┃╭┫╰━┳━┳┳╮╭┳╮╭╮
┃╭━━┫╭╮┃┃┃┣┫┃┣┫╭╮┃╭╋┫┃┃┃╰╯┃
┃╰━━┫╰╯┃╰╯┃┃╰┫┃╰╯┃┃┃┃╰╯┃┃┃┃
╰━━━┻━╮┣━━┻┻━┻┻━━┻╯╰┻━━┻┻┻╯
╱╱╱╱╱╱┃┃
╱╱╱╱╱╱╰╯
Overview
Equilibrium is a tool designed to measure the buying & selling pressure in the market. It is depicted as a “pressure gauge” that automatically adjusts as new candles are formed, providing a real-time indication of who's on top right now, buyers or sellers?
Background
Supply & demand is considered to be the main driving force of our modern economies, where the interaction between the two parties(sellers & buyers) leads to the determination of the fair price for a given product. Stock markets are no exception, they operate very much based around the idea of supply & demand.
In simple terms, supply refers to the availability of a product, and demand is the willingness of consumers to buy that product at a given price. It is obvious that different vendors may sell the same product at slightly different prices, and similarly, different customers may choose to buy the same product from different vendors at varying prices. The idea is that the price is allowed to fluctuate from time to time, but in a free & fair market, the price will eventually settle down to a value that makes both the parties happy. Such a state is known as the “Price-Equilibrium”, and this process is also referred to as the market mechanism.
This is the basic assumption around which this tool is based, the market is always trying to move towards a state of equilibrium.
Calculations
This tool takes a simplistic approach to estimate the degree of imbalance between buyers & sellers, here’s a brief summary of how the pressure is calculated:
- We compute the total lengths of red & green candles for a given period, i.e. price range multiplied by the volume for that candle.
- Then the distribution of each type of candle is calculated.
- Assuming more red candles denote more selling pressure, and green candles denote buying pressure, the gauge is populated cell by cell.
- As the pressure on one side increases, the intensity of the cell color also increases, signifying the extent to which one side is dominating.
How to use it
- The indicator is designed as a pressure gauge that moves up(vertical alignment) or to the right(horizontal alignment) as the buying pressure increases, and moves down or to the left as the selling pressure increases. How it is to be used & applied, that completely depends on your trading methodology. But, the general idea is that we expect the market to be in a state of equilibrium, and if that is not the case the tool will highlight that, and this is also where the opportunity lies to find suitable trades.
- Just by having an idea about who’s dominating the market currently, a trader can also pick sides wisely. Remember, the market is always striving to come back a state of equilibrium, and a slight imbalance can indicate the current trend, and more importantly, who’s more likely to make the next move.
User Settings
The tool offers some minimal configurations for the end user:
- You can choose to display the actual percentage value in the gauge(Show Text).
- You can adjust colors that denote buyers & sellers.
- You can change the layout of gauge, default is vertical(right side of the screen).
- Last, and most important, you can adjust the number of candles to traverse for calculating the pressure. Default is 50, can go upto 1000.
Supertrend ANY INDICATOR (RSI, MFI, CCI, etc.) + Range FilterThis indicator will generate a supertrend of your chosen configuration on any of the following indicators:
RSI
MFI
Accum/Dist
Momentum
On Balance Volume
CCI
There is also a RANGE FILTER built into the scripts so that you can smooth the indicators for the supertrend. This is an optional configuration in the settings. Also, you can change the oversold/overbought bounds in the settings (they are removed entirely for indicators without bounds).
If you find this indicator useful, please boost it and follow! I am open to suggestions for adding new indicators to this script, it's very simple to add new ones, just suggest them in the comments.
RSI is in Normal Distribution?Does RSI Follow a Normal Distribution?
The value of RSI was converted to a value between 0~2, 2~4, ..., 98~100, and the number of samples was graphed.
The Z values are expressed so that the values corresponding to 30 and 70 of the RSI can be compared with the standard normal distribution.
Additionally, when using the RSI period correction function of the 'RSI Candle Advanced V2' indicator that I made before, it shows no change in standard deviation.
RSI는 정규분포를 따를까요
RSI의 값을 0~2, 2~4, ..., 98~100 사이 값으로 변환하고 그 표본 갯수를 그래프로 표현하였습니다.
Z 값은 RSI의 30, 70에 해당하는 값을 표준정규분포와 비교할 수 있도록 표현하였습니다.
추가적으로 제가 예전에 만들었던 'RSI Candle Advanced V2' 지표의 RSI 기간 보정 함수를 사용할 경우 표준편차의 변화가 없음을 보입니다.
Relative Strength Index Wave Indicator [CC]The Relative Strength Index Wave Indicator was created by Constance Brown (Technical Analysis for the Trading Professional), and this is a unique indicator that uses the weighted close formula, but instead of using the typical price values, it uses the RSI calculated from the various prices. It then creates a rainbow by smoothing the weighted RSI with four different lengths. As far as the buy or sell signals with this indicator go, I did change things from the original source, so feel free to experiment and let me know if anything works better for you. I decided to do a variation of the original source and create buy and sell signals based on crossovers, but my version only uses the first and second smoothed RSI lines. You could also average all of the lines and buy when the average is rising and sell when it starts to fall. I have used my typical buy and sell signals to use darker colors for strong signals and lighter colors for normal signals. Because of the rainbow effect from the wave, the color changes will only appear for the bar itself when you enable that setting.
Let me know if there is any other script you would like to see me publish! I will have plenty more RSI scripts to publish in the next week. Let me know if you like this indicator series.
Ehlers Stochastic Center Of Gravity [CC]The Stochastic Center Of Gravity Indicator was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pgs 79-80), and this is one of the many cycle scripts that I have created but not published yet because, to be honest, I don't use cycle indicators in my everyday trading. Many of you probably do, so I will start publishing my big backlog of cycle-based indicators. These indicators work best with a trend confirmation or some other confirmation indicator to pair with it. The current cycle is the length of the trend, and since most stocks generally change their underlying trend quite often, especially during the day, it makes sense to adjust the length of this indicator to match the stock you are using it on. As you can see, the indicator gives constant buy and sell signals during a trend which is why I recommend using a confirmation indicator.
I have color-coded it to use lighter colors for normal signals and darker colors for strong signals. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
Leavitt Convolution Acceleration [CC]The Leavitt Convolution Slope indicator was created by Jay Leavitt (Stocks and Commodities Oct 2019, page 11), who is most well-known for creating the Volume-Weighted Average Price indicator. This indicator didn't have a good explanation or description so I custom-coded most of it. The way it works is it will give trend spikes in the direction of the underlying trend. If you don't see a spike then it means that the stock isn't trending at the moment. One possible avenue to explore with this indicator is judging the size of the trend spike before you open a position in that direction (or the opposite direction if you are shorting). I added a normalization function using code from a good friend @loxx that I recommend leaving on but feel free to experiment with it. I have color coded the lines to turn light green for a standard buy signal or dark green for a strong buy signal and light red for a standard sell signal, and dark red for a strong sell signal.
This is another indicator in a series that I'm publishing to fulfill a special request from @ashok1961 so let me know if you ever have any special requests for me.
[blackcat] L1 Ehlers Every Little Bit HelpsLevel 1
Background
Inspired by "Averaging The Open And Close To Reduce Noise" on March 2023 by John F. Ehlers’ article in the March issue, “Every Little Bit Helps”, I further smooth it because noise was still large and “Every Little Bit Does Not Helps Much”.
Function
In John F. Ehlers' 03/2023 article, "Every Little Bit Helps," he suggests that noise can be reduced by simply averaging the open and close prices of a bar, rather than just using the close price. The data sampling example presented in this article compares the traditional RSI using close data to an RSI calculated using the average of the open and close.
Compared to RSI, I used my customized RMI version which is more suitable for moment smoothing. For example, the price entry of the 1st RMI can be changed from Close to (Close + Open) / 2. In fact, the RMI indicator itself has a price input that can be changed in a similar way. You can change the input parameter "m" to "More Help", which is 5 by default.
Remarks
Feedbacks are appreciated.
CBDE OscillatorWhat makes The Universe grow at an accelerating pace?
Dark Energy.
What makes The Economy grow at an accelerating pace?
Debt.
Debt is the Dark Energy of The Economy.
The Central Bank Dark Energy Oscillator (CBDEO) is a companion to the popular CBDET (Central Bank Dark Energy Tracer) script.
CBDEO is an oscillator that shows up in a separate TradingView pane in order to provide a relative change signal. It uses the same equations to aggregate central bank liquidity that are used in CBDET, and adds unique analysis tools that provide rate of change data.
There are 2 signals in the chart. First is the change/delta on a per bar basis, based on the chart time frame. The default style for this plot is "columns". This style parameter can be changed in the settings, along with each plot's visibility.
The second plot is a divergence signal that tests the change vs a simple moving average of the CBDET signal (central bank liquidity). The SMA length is customizable in the Input tab within the settings for the indicator. The SMA is based on the chart's current time frame.
The changes in liquidity on various time frames, and calculated as divergence against the liquidity signal SMA can be useful in determining the rate of change in liquidity, and therefore potential thrust in market price action.
Short Term Bubble RiskThis risk indicator uses the extension of the closing price to the 20W SMA and displays a color-coded risk oscillator. The higher the oscillator is, the greater the short-term risk and vice-versa. This indicator has historically worked well for estimating the short-term risk of Bitcoin and Ethereum on a weekly timeframe.
Divergence for Many [Dimkud - v5]Strategy is based on "Divergence for Many Indicators v4 ST" strategy by CannyTolany01
which is based on "Divergence for Many Indicator" indicator by LonesomeTheBlue
This strategy is searching for divergences on 18 indicators which you can select and optimise one by one.
Additionally you can connect any other External Indicator value. (just add this indicator the the chart and select option in settings)
To the original indicator/strategy I have added 9 additional indicators:
( Money Flow Index, Williams_Vix, Stochastic RSI , SMI Ergodic Oscillator, Volume Weighted MACD , Bull Bear Power, Balance of Power , Relative Volatility Index , Logistic Settings).
Converted strategy to v5 of Pine Script.
Added Static SL/TP in percents (%).
Added filters to filter enters:
1. Volume Weighted MACD - Multi-TimeFrame Filter
(It checks for histogram to falling or rising for a set periods of bars)
2. Money Flow Index - Multi-TimeFrame Filter
(It checks if MFI Oscillator is in the set diapason.
Also It checks if MFI is falling or rising for a set periods of bars )
3. ATR filter
(check changes in fast ATR to slow ATR )
Strategy shows good backtest results on many crypto tokens on 45m - 1h periods. (with parameters optimisation for every indicator)
To find best parameters - you can enable indicators one-by one, and optimise best parameters for each of them.
Then enable all indicators with successful results.
Optimise SL/TP.
Then try to enable and optimise filters (channels etc.)
The better is to optimise parameters separately for Short and Long trading. And run two separate bots (in settings enable only Long or only Short.)
Updates:
- Added visualisation for open trades (SL/TP)
- Added Volatility filter by ATR with many options for tests.
- Fixed some small bugs.
- Added second RSI filter (you can use two RSIs with different TF or settings)
- Updated ATR volatility and MFI filter. Removed non-effective options
- Added CCI filter
- Added option to Enable/Disable visualisation of TP/SL on chart
- Fixed one small quick bug. ("ATR filter short" was not working)
- Added Super Trend filter
- Added Momentum filter
- Added Volume Filter
- All "request.security" MultiTimeFrame calls changed to 100% non-repait function "f_security()"