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()"
Oszillatoren
Rsi strategy for BTC with (Rsi SPX)
I hope this strategy is just an idea and a starting point, I use the correlation of the Sp500 with the Btc, this does not mean that this correlation will exist forever!. I love Trading view and I'm learning to program, I find correlations very interesting and here is a simple strategy.
This is a trading strategy script written in Pine Script language for use in TradingView. Here is a brief overview of the strategy:
The script uses the RSI (Relative Strength Index) technical indicator with a period of 14 on two securities: the S&P 500 (SPX) and the symbol corresponding to the current chart (presumably Bitcoin, based on the variable name "Btc_1h_fixed"). The RSI is plotted on the chart for both securities.
The script then sets up two trading conditions using the RSI values:
A long entry condition: when the RSI for the current symbol crosses above the RSI for the S&P 500, a long trade is opened using the "strategy.entry" function.
A short entry condition: when the RSI for the current symbol crosses below the RSI for the S&P 500, a short trade is opened using the "strategy.entry" function.
The script also includes a take profit input parameter that allows the user to set a percentage profit target for closing the trade. The take profit is set using the "strategy.exit" function.
Overall, the strategy aims to take advantage of divergences in RSI values between the current symbol and the S&P 500 by opening long or short trades accordingly. The take profit parameter allows the user to set a specific profit target for each trade. However, the script does not include any stop loss or risk management features, which should be considered when implementing the strategy in a real trading scenario.
"The Stocashi" - Stochastic RSI + Heikin-AshiWhat up guys and welcome to the coffee shop. I have a special little tool for you today to throw in your toolbox. This one is a freebie.
This is the Stochastic RS-Heiken-Ashi "The Stocashi"
This is the stochastic RSI built to look like Heikin-Ashi candles.
a lot of people have trouble using the stochastic indicator because of its ability to look very choppy at its edges instead of having nice curves or arcs to its form when you use it on scalping time frames it ends up being very pointed and you can't really tell when the bands turn over if you're using a stochastic Ribbon or you can't tell when it's actually moving in a particular direction if you're just using the K and the D line.
This new format of Presentation seeks to get you to have a better visual representation of what the stochastic is actually doing.
It's long been noted that Heikin-Ashi do a very good job of representing momentum in a price so using it on something that is erratic as the stochastic indicator seems like a plausible idea.
The strategy is simple because you use it exactly the same way you've always used the stochastic indicator except now you can look for the full color of the candle.
this one uses a gradient color setup for the candle so when the candle is fully red then you have a confirmed downtrend and when the candle is fully green you have a confirmed up trend of the stochastic however if, you a combination of the two colors inside of one candle then you do not have a confirmed direction of the stochastic.
the strategy is simple for the stochastic and that you need to know your overall trend. if you are in an uptrend you are waiting for the stochastic to reach bottom and start curving up.
if you are in a downtrend you are waiting for the stochastic to reach its top or its peak and curve down.
In an uptrend you want to make sure that the stochastic is making consistently higher lows just like price should be. if at any moment it makes a lower low then you know you have a problem with your Trend and you should consider exiting.
The opposite is true for a downtrend. In a downtrend you want to make sure you have lower highs. if at any given moment you end up with a higher high than you know you have a problem with your Trend and it's probably ending so you should consider exiting.
The stochastic indicator done as he can actually candles also does a very good job of telling you when there is a change of character. In that moment when the change of character shows up you simply wait until your trend and your price start to match up.
You can also use the stochastic indicator in this format to find divergences the same way you would on the relative strength index against your price highs and price lows so Divergence trading is visually a little bit easier with this tool.
The settings for the K percent D percent RSI length and stochastic length can be adjusted at will so be sure to study the history of the stochastic and find the good settings for your trading strategy.
MVRV Z Score and MVRV Free Float Z-ScoreIMPORTANT: This script needs as much historic data as possible. Please run it on INDEX:BTCUSD , BNC:BLX or another chart of sufficient length.
MVRV
The MVRV (Market Value to Realised Value Ratio) simply divides bitcoins market cap by bitcoins realized market cap. This was previously impossible on Tradingview but has now been made possible thanks to Coinmetrics providing us with the realized market cap data.
In the free float version, the free float market cap is used instead of the regular market cap.
Z-Score
The MVRV Z-score divides the difference between Market cap and realized market cap by the historic standard deviation of the market cap.
Historically, this has been insanely accurate at detecting bitcoin tops and bottoms:
A Z-Score above 7 means bitcoin is vastly overpriced and at a local top.
A Z-Score below 0.1 means bitcoin is underpriced and at a local bottom.
In the free float version, the free float market cap is used instead of the regular market cap.
The Z-Score, also known as the standard score is hugely popular in a wide range of mathematical and statistical fields and is usually used to measure the number of standard deviations by which the value of a raw score is above or below the mean value of what is being observed or measured.
Credits
MVRV Z Score initially created by aweandwonder
MVRV initially created by Murad Mahmudov and David Puell
PA-Adaptive T3 Loxxer [Loxx]PA-Adaptive T3 Loxxer is a Loxxer indicator that is Phase Accumulation Cycle adaptive and uses T3 moving average for smoothing instead of the typical SMA or EMA . this allows for smoother signals by reducing noise.
What is Loxxer?
The Loxxer indicator is a technical analysis tool that compares the most recent maximum and minimum prices to the previous period's equivalent price to measure the demand of the underlying asset.
What is the Phase Accumulation Cycle?
The phase accumulation method of computing the dominant cycle is perhaps the easiest to comprehend. In this technique, we measure the phase at each sample by taking the arctangent of the ratio of the quadrature component to the in-phase component. A delta phase is generated by taking the difference of the phase between successive samples. At each sample we can then look backwards, adding up the delta phases.When the sum of the delta phases reaches 360 degrees, we must have passed through one full cycle, on average.The process is repeated for each new sample.
The phase accumulation method of cycle measurement always uses one full cycle’s worth of historical data.This is both an advantage and a disadvantage.The advantage is the lag in obtaining the answer scales directly with the cycle period.That is, the measurement of a short cycle period has less lag than the measurement of a longer cycle period. However, the number of samples used in making the measurement means the averaging period is variable with cycle period. longer averaging reduces the noise level compared to the signal.Therefore, shorter cycle periods necessarily have a higher out- put signal-to-noise ratio.
Included
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
Divergences
Super 6x: RSI, MACD, Stoch, Loxxer, CCI, & Velocity [Loxx]Super 6x: RSI , MACD , Stoch , Loxxer, CCI , & Velocity is a combination of 6 indicators into one histogram. This includes the option to allow repainting.
What is MACD?
Moving average convergence divergence ( MACD ) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD is calculated by subtracting the 26-period exponential moving average ( EMA ) from the 12-period EMA .
What is CCI?
The Commodity Channel Index ( CCI ) measures the current price level relative to an average price level over a given period of time. CCI is relatively high when prices are far above their average. CCI is relatively low when prices are far below their average. Using this method, CCI can be used to identify overbought and oversold levels.
What is RSI?
The relative strength index is a technical indicator used in the analysis of financial markets. It is intended to chart the current and historical strength or weakness of a stock or market based on the closing prices of a recent trading period. The indicator should not be confused with relative strength .
What is Stochastic?
The stochastic oscillator, also known as stochastic indicator, is a popular trading indicator that is useful for predicting trend reversals. It also focuses on price momentum and can be used to identify overbought and oversold levels in shares, indices, currencies and many other investment assets.
What is Loxxer?
The Loxxer indicator is a technical analysis tool that compares the most recent maximum and minimum prices to the previous period's equivalent price to measure the demand of the underlying asset.
What is Velocity?
In simple words, velocity is the speed at which something moves in a particular direction. For example as the speed of a car travelling north on a highway, or the speed a rocket travels after launching.
How to use
Long signal: All 4 indicators turn green
Short signal: All 4 indicators turn red
Included
Bar coloring
Alerts
Return Abnormality Score [SpiritualHealer117]The Return Abnormality Score indicator is designed to help traders identify potential reversals in price by detecting abnormal daily returns beyond a certain significance level. The indicator uses a normal cumulative distribution function to calculate the probability of the daily return and flags it when it exceeds the specified significance level.
Traders can use this indicator by monitoring the abnormality score. If the daily return is negative, the probability is multiplied by a negative number. Therefore, if the abnormality score goes above the positive threshold, it suggests that the price is oversold, while if it goes below the negative threshold, it indicates that the price is overbought. It can also be helpful for spotting bear or bull traps due to their irregular behavior.
Depending on the trader's preference, the indicator can be smoothed or unsmoothed.
This indicator should be paired with other technical analysis tools like SSL Hybrid for trend confirmation, and proper risk management strategies.
Easy RSI by nnamWhat Does this Indicator Do?
The Easy RSI Indicator color codes candles based on their RSI Value vs. Open / Close (Red / Green). It plots the current price and current RSI value on the chart in real-time. Additionally, when the RSI Value is in an oversold or overbought condition, it plots that signal on the chart in real-time.
The initial candle color is the standard Red / Green Tradingview color, but a Gradient is added to the color which either darkens or lightens the color based on the RSI Value.
As seen in the screenshot below, the higher the RSI Value, the brighter the Green Color is. The lower the RSI Value, the brighter the Red Color is.
The current Price and current RSI Value are both plotted on the chart by default, but can be optionally switched off by the trader.
As seen in the screenshot below, the prices and RSI Values are easily seen while visually tracking the price in real-time.
RSI Overbought Values are plotted when the Overbought condition is triggered. The Default is RED for Overbought and GREEN for Oversold.
As seen in the screenshot below, with all three labels turned on under the input settings (these are ON by default) you can see the overbought condition, the current RSI Value, and current price all in one centralized area. Oversold Values are also plotted when turned on under the input settings.
As shown in the screenshot below, the candle is GREEN (as evident by the green candle outline) but the RSI Value is low and shows lower than average relative strength. This turns the bar color ORANGE vs, GREEN showing that the relative strength of the move is subpar.
As shown on the screenshot below, if the trader has the standard Tradingview Price label switched on (in the Tradingview Chart Settings), the color of the bar is also translated to the price are for an easy to recognize RSI Value just by looking at the price. Even if the current candle is RED, when the RSI is higher than lower, the color will be green / greenish and even if the current candle is GREEN, when the RSI Value is lower than higher, the color will be red-ish / orange in color giving the user a quick view of RSI Value.
If you have any questions or feature requests for this Indicator please do not hesitate to reach out and ask.
GOOD LUCK trading!!
~nnamdert
Ehlers Detrending Filter [CC]The Detrending Filter was created by John Ehlers and this is a complementary indicator to one of my previous scripts:
This indicator builds upon his previous work by attempting to detrend the underlying source data that is used to calculate the final result. He was able to create a leading indicator by removing the trend data and by using his previous calculations to turn the source data into a leading indicator.
There are two ways to understand this indicator. First if the indicator is below the midline then it is in a mid to longterm downtrend and if it is above the midline then it is in a mid to longterm uptrend. Also this indicator shows great promise in predicting future trends so because of that aspect, it may give some false signals from time to time.
I have color coded everything to account for both strong signals and normal signals. Strong signals are darker in color and normal signals are lighter in color. 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!
Stochastic MACD - Slow and FastStochastic MACD - Slow and Fast
The "Stochastic MACD - Slow and Fast" indicator combines two popular technical indicators, the Stochastic Oscillator and the Moving Average Convergence Divergence ( MACD ).
The Stochastic Oscillator is a momentum indicator that measures the current closing position of an asset relative to its recent price range. This indicator helps traders identify possible turning points in an asset's trend, it is used to identify if the market is overbought or oversold.
On the other hand, the MACD is an indicator used to identify the trend and strength of the market and shows the difference between two exponential moving averages ( EMA ) of different periods. The MACD is commonly used to determine the direction of an asset's price trend.
The combination of both indicators can help traders identify market entry and exit opportunities. This indicator has two parts: a slow part and a fast part. The slow part uses input values for the lengths of the moving averages and the length of the signal for the MACD indicator. The fast part uses different input values for the lengths of the moving averages. Also, each part has its own set of line colors and histogram colors for easy visualization.
In general, the "Stochastic MACD - Slow and Fast" indicator is used to identify possible turning points in the trend of an asset. Traders can use the indicator to determine when to enter or exit a position based on the signals generated by the indicator. The stochastic MACD is a variation of the regular MACD that incorporates a stochastic oscillator to provide additional signals.
In summary, this indicator can be useful for those looking for a combination of two popular indicators to help identify trading opportunities.
In addition, parameters were defined to activate or deactivate the graphic signal.
When the Stochastic MACD Slow Line Crosses the Stochastic MACD Slow Signal Line:
Long or Buy = ↑ // The Entry is more Effective if it is made when the signal is below the Zero Trend Line .
Short or Sell = ↓ // The Entry is more Effective if it is made when the signal is above the Zero Trend Line .
When the Fast Stochastic MACD Line Crosses the Slow Stochastic MACD Line:
Long or Buy = ▲ // The Entry is more Effective if it is made when the signal is below the Zero Trend Line .
Short or Sell = ▼ // The Entry is more Effective if it is made when the signal is above the Zero Trend Line .
Taking into account the above, alerts were also defined for possible Purchases or Sales or entries in Long or Short.
COPOSITION AND USE OF THE INDICATOR
This script is an implementation of the Stochastic MACD indicator with two variations - Slow and Fast. It uses a combination of the Stochastic Oscillator and the Moving Average Convergence Divergence (MACD) indicator to identify trend reversals and momentum shifts in the price of an asset.
The Slow version of the Stochastic MACD is built using three inputs - fastLength, slowLength, and signalLength. The fastLength and slowLength are used to calculate two exponential moving averages (EMAs), while the signalLength is used to calculate a signal line as an EMA of the difference between the two EMAs. The Stochastic Oscillator is then applied to the difference between the two EMAs, and the resulting values are plotted on the chart.
The Fast version of the Stochastic MACD is built using the same inputs as the Slow version, but with different values. It uses a shorter fastLength value and a longer slowLength value to generate the two EMAs, and the resulting values are plotted on the chart.
The script also includes inputs for choosing the type of moving average to use (SMA, EMA, etc.), the source of price data (open, close, etc.), the lookback period, and the colors for the lines and histogram bars.
This script can be used in different markets such as forex, indices, and cryptocurrencies for analysis and trading. However, it is important to note that no trading strategy is guaranteed to be profitable, and traders should always conduct their own research and risk management.
Implied Correlation Divergence OscillatorImplied Correlation Divergence Oscillator (ICDO)
ICDO uses an SMA calculation as a low-pass filter to determine divergences from trend. This can be useful for multiple strategies, including detecting overbought or oversold trends, and finding dispersion opportunities, including zero delta straddle plays using options for indices and single assets within the S&P 500 Index.
The aim of the oscillator is to provide a unique perspective on the existing signals provided by the CBOE (Chicago Board Options Exchange)
First choose from a variety of Implied Correlation symbols including: COR1M, COR3M, COR6M, COR9M, COR1Y, COR10D, COR30D, COR70D, COR90D
Then once an IC signal is chosen, configure the moving average (MA) as a customized low-pass filter that will determine the sensitivity of the divergence signal.
The resulting signal is an oscillator around the zero bound, which is color coded for bullish (green), or (bearish) signals.
Faytterro Oscillatorwhat is Faytterro oscillator?
An oscillator that perfectly identifies overbought and oversold zones.
what it does?
this places the price between 0 and 100 perfectly but with a little delay. To eliminate this delay, it predicts the price to come, and the indicator becomes clearer as the probability of its prediction increases.
how it does it?
This indicator is obtained with "faytterro bands", another indicator I designed. For more information about faytterro bands:
A kind of stochastic function is applied to the faytterro bands indicator, and then another transformation formula that I have designed and explained in detail in the link above is applied. These formulas are also applied again to calculate the prediction parts.
how to use it?
Use this indicator to see past overbought and oversold zones and to see future ones.
The input named source is used to change the source of the indicator.
The length serves to change the signal frequency of the indicator.
[blackcat] L2 Aroon13Level 2
Background
The Aroon indicator developed by Tushar Chanand indicates whether there is a trend price or is located in a trading area.
Function
Classical Aroon can also show the beginning of a new trend, its strength and expectation of changes from trade areas to trends. This is a traditional aroon indicator with length == 13, which exhibit good performance.
Remarks
Feedbacks are appreciated.
Price & Percentage Change LabelFairly straightforward script that allows you to plot the current price and % either above the last candle and/or to the right of it. There's also 2 price "follow" lines that you can turn off and on, much like the bid/ask line that's built in to TV.
You can also choose to enable a specific % above/below current price to give you an idea on where price would be with a move north or south by X % amount from current price.
Consumption OscillatorOVERVIEW
The Consumption Oscillator combines Core Consumer Price Index (USCCPI) and Personal Consumption Expenditure (USPCEPI). It can be a useful tool for understanding inflationary and deflationary pressure in the economy.
CONCEPTS
Defining some thresholds may aid in interpreting the oscillator but interpretation needs context. Also, the thresholds may need adjusting. Overall, using this oscillator in combination with other economic indicators may provide some insights into macroeconomic conditions.
Strong positive signal: If the oscillator rises above a threshold value of +2, it may be considered a strong positive signal. This could suggest that the CCPI is growing faster than the PCE, indicating stronger inflationary pressure and potentially higher levels of economic growth.
Weak positive signal: If the oscillator rises above a threshold value of +1, it may be considered a weak positive signal. This could suggest that the CCPI is growing slightly faster than the PCE, which may still indicate some level of inflationary pressure and moderate economic growth.
No signal: If the oscillator is between -1 and +1, it may be considered a neutral signal. This indicates that the CCPI and PCE are growing at roughly the same rate, and there may be no significant inflationary or deflationary pressure in the economy.
Weak negative signal: If the oscillator falls below a threshold value of -1, it may be considered a weak negative signal. This could suggest that the PCE is growing slightly faster than the CCPI, which may indicate some level of deflationary pressure and slower economic growth.
Strong negative signal: If the oscillator falls below a threshold value of -2, it may be considered a strong negative signal. This could suggest that the PCE is growing much faster than the CCPI, indicating stronger deflationary pressure and potentially lower levels of economic growth
Flat Market and Low ADX Indicator [CHE]Why use the Flat Market and Low ADX Indicator ?
Flat markets, where prices remain within a narrow range for an extended period, can be both critical and dangerous for traders. In a flat market, the price action becomes less predictable, and traders may struggle to find profitable trading opportunities. As a result, many traders may decide to take a break from the market until a clear trend emerges.
However, flat markets can also be dangerous for traders who continue to trade despite the lack of clear trends. In the absence of a clear direction, traders may be tempted to take larger risks or make impulsive trades in an attempt to capture small profits. Such behavior can quickly lead to significant losses, especially if the market suddenly breaks out of its flat range, causing traders to experience large drawdowns.
Therefore, it is essential to approach flat markets with caution and to have a clear trading plan that incorporates strategies for both trending and flat markets. Traders may also use technical indicators, such as the Flat Market and Low ADX Indicator, to help identify flat markets and determine when it is appropriate to enter or exit a position.
The confluence between flat markets and low ADX readings can further increase the risk of trading during these periods. The ADX (Average Directional Index) is a technical indicator used to measure the strength of a trend. A low ADX reading indicates that the market is in a consolidation phase, which can coincide with a flat market. When a flat market occurs during a period of low ADX, traders should be even more cautious, as there is little to no directional bias in the market. In this situation, traders may want to consider waiting for a clear trend to emerge or using range-bound trading strategies to avoid taking excessive risks.
Introduction:
Pine Script is a programming language used for developing custom technical analysis indicators and trading strategies in TradingView. This particular script is an indicator designed to identify flat markets and low ADX conditions. In this description, we will delve deeper into the functionality of this script and how it can be used to improve trading decisions.
Description:
The first input in the script is the length of the moving average used for calculating the center line. This moving average is used to define the high and low range of the market. The script then calculates the middle value of the range by taking the double exponential moving average (EMA) of the high, low, and close prices.
The script then determines whether the market is flat by comparing the middle value of the range with the high and low values. If the middle value is greater than the high value or less than the low value, the market is not flat. If the middle value is within the high and low range, the script considers the market to be flat. The script also uses RSI filter settings to further confirm if the market is flat or not. If the RSI value is between the RSI min and max values, then the market is considered flat. If the RSI value is outside this range, the market is not considered flat.
The script also calculates the ADX (Average Directional Index) to determine whether it's in a low area. ADX is a technical indicator used to measure the strength of a trend. The script uses the ADX filter settings to define the ADX threshold value. If the ADX value is below the threshold value, the script considers the market to be in a low ADX area.
The script provides various input options to customize the display settings, including the option to show the flat market and low ADX areas. Users can choose their preferred colors for the flat market and low ADX areas and adjust the transparency levels to suit their needs.
Conclusion:
In conclusion, this Pine Script indicator is designed to identify flat market and low ADX conditions, which can help traders make informed trading decisions. The script uses a range of inputs and calculations to determine the market direction, RSI filter, and ADX filter. By customizing the display settings, users can adjust the indicator to suit their preferences and improve their trading strategies. Overall, this script can be a valuable tool for traders looking to gain an edge in the markets.
Acknowledgments:
Thanks to the Pine Script™ v5 User Manual www.tradingview.com
Ehlers Reflex Indicator [CC]The Reflex Indicator was created by John Ehlers (Stocks and Commodities Feb 2020) and this is a zero lag indicator that works similar to an overbought/oversold indicator but with the current stock cycle data. I find that this indicator works well as a leading indicator as well as a divergence indicator. Generally speaking, this indicator indicates a medium to long term downtrend when the indicator is below the line and a medium to long term uptrend when the indicator is above the line. Ehlers has created a few complementary indicators that I will release in the next few days but just keep in mind that this indicator focuses on the underlying cycle component while removing as much noise with no lag. I have color coded the lines to show strong signals with the darker colors and normal signals with the lighter colors. 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!
Ehlers Data Sampling Relative Strength Indicator [CC]The Data Sampling Indicator was created by John Ehlers (Stocks and Commodities Mar 2023) and this is a genius method to reduce noise in the market data but also doesn't introduce any lag while doing so. The way this works is because traditionally, people have always relied on the close price as the default input for many indicators such as the RSI or MACD as examples. Since the open is usually virtually identical to the previous close, it has been ignored by most people but Ehlers discovered that if you do a simple average of open and close for the input on any indicator, you can remove much of the noise without any added lag. I have used the RSI as he did in his example and plotted both to show the difference between the traditional RSI and using Ehlers' process as the new Data Sampling RSI. You can clearly see that this new RSI follows the price fluctuations much closer and is much smoother than the traditional RSI. As usual, I have included different colors to show the strength of the buy or sell signals so darker colors mean it is a very strong signal and lighter colors means it is a normal signal. Buy when the line turns green and sell when it turns red.
Feel free to try out this method to replace the input for any indicator and let me know how this works for you! And of course let me know if you would like me to publish any indicator script.
Sniper EntryThis source code is an implementation of a TradingView indicator called "Sniper Entry". The purpose of this indicator is to identify potential entry points for trades based on certain candlestick patterns and the Stochastic oscillator.
The indicator calculates the Stochastic oscillator based on the close, high, and low prices of the asset over a period of 14 bars. It then uses this oscillator to generate buy and sell signals.
For a buy signal to be generated, the Stochastic oscillator must cross above the oversold level of 20, and the current candle must either be a bullish pin bar or a bullish engulfing pattern. For a sell signal to be generated, the Stochastic oscillator must cross below the overbought level of 80, and the current candle must either be a bearish pin bar or a bearish engulfing pattern.
The indicator also calculates the stop loss and target levels for both buy and sell trades. The stop loss is calculated based on the low or high of the candle that generated the signal, depending on whether it's a buy or sell signal. The target is calculated based on the risk/reward ratio, which is set to 3 in this implementation. The lot size is also set to 0.01, and the starting capital is set to 100.
The indicator then plots the buy and sell signals, the stop loss and target levels, and the Stochastic oscillator on the chart.
It's important to note that this is just one example of a trading indicator, and its effectiveness may vary depending on market conditions and the asset being traded. It's also important to perform your own analysis and use proper risk management techniques when making trades based on any indicator or strategy.
RSIOMA with Volume Index ConfirmationThis indicator is called "RSIOMA with Volume Index Confirmation". It is a technical analysis tool that plots buy and sell signals on a chart based on the Relative Strength Index (RSI) and the Negative Volume Index (NVI) and Positive Volume Index (PVI) indicators.
The indicator has the following input parameters:
- RSI Length: determines the number of periods used to calculate the RSI. Default value is 14.
- Overbought Level: determines the RSI level at which a security is considered overbought. Default value is 70.
- Oversold Level: determines the RSI level at which a security is considered oversold. Default value is 30.
- NVI Length: determines the number of periods used to calculate the Negative Volume Index. Default value is 255.
- PVI Length: determines the number of periods used to calculate the Positive Volume Index. Default value is 255.
The indicator calculates the RSI using the RSI Length input parameter and the close price of the security. It also calculates the NVI and PVI by looping through the volume data and the close price data of the security over the specified periods.
The indicator then uses the RSI, NVI, and PVI to determine buy and sell signals. A bearish divergence signal is generated when the RSI from one period ago is greater than the Overbought Level, the current RSI is less than the Overbought Level, and the close price from one period ago is greater than the current close price. A bullish divergence signal is generated when the RSI from one period ago is less than the Oversold Level, the current RSI is greater than the Oversold Level, and the close price from one period ago is less than the current close price. A sell signal is generated when a bearish divergence signal occurs and the current NVI is less than the previous NVI value. A buy signal is generated when a bullish divergence signal occurs and the current PVI is greater than the previous PVI value.
The indicator plots the buy and sell signals on the chart as green and red triangles, respectively. The "overlay=true" parameter in the indicator function indicates that the signals are plotted on top of the security's price chart.
Multi indicators tableThis is a comprehensive trading tool that presents an overview of the market in a tabular format. It consists of five distinct categories of trading indicators : Volatility, Trend, Momentum, Reversal, and Volume. Each category includes a series of indicators that are widely used in the trading communauty.
The Volatility category includes the Average True Range (ATR) and Bollinger Bands indicators. The Trend category comprises the Average Directional Index (ADX), four Exponential Moving Averages (EMAs), Aroon, Parabolic SAR, and the Supertrend. The Momentum category includes the Stochastic Relative Strength Index (StochRSI), Money Flow Index (MFI), Williams %R, Relative Strength Index (RSI), and Commodity Channel Index (CCI). The Reversal category includes Parabolic SAR, Moving Average Convergence Divergence (MACD), and PP Supertrend. Finally, the Volume category includes the Volume Exponential Moving Average (EMA) indicator.
The indicators states are easily readable, the indicator case is colored based on his actual state. A bullish color (green by default), a bearish color (red by default),
a very bullish color (dark green by default), a very bearish color (dark red by default) and a neutral color (gray by default) displayed when the indicator doesn't give us a clear signal. Some indicators do not have a very bullish or very bearish state. Concerning volatility indicators, the bullish color indicates high volatility, the bearish color indicates low volatility, and the neutral color indicates normal volatility.
Most of the indicators displayed in the table are customizable, and traders can choose to hide the categories they don't want to use. The Indicator provides a quick and easily readable view on the market and allows traders to reduce the number of indicators on their chart making it lighter and more readable.
range_statA basic statistic to describe "ranges". There are three inputs:
- short range
- long range
- moving average length
The output is a ratio of the short range to the long range. In the screenshot example, the short range is a single day (bar) and the long range is five days. A value near "1" would mean that every day entirely fills the five day range, and that a consolidation is likely present. A value near 0 would mean that each day fills only a small portion of the five day range, and price is probably "trending".
The moving average length is for smoothing the result (which also lags it of course).
The mean, and +- 2 standard deviations are plotted as fuchsia colored lines.
Recursive Zigzag [Trendoscope]Here is an another outcome of Object Oriented Zigzag and Pattern Ecosystem of Libraries.
We already have another implementation of recursive zigzag which makes use of earlier library rzigzag . Here in this example, we make use of similar logic but leverage the new type and method based Zigzag system libraries to derive the indicator.
🎲 Design Overview
Similar to Recursive Auto Pitchfork, here too the indicator code is around 50 lines. Whereas most of the heavy lifting is done by the libraries.
🎲 Base Libraries
Base libraries are those which does not have any dependency. They form basic structures which are later used in other libraries. These libraries need to be crafted carefully so that minimal updates are done later on. Any updates on these libraries will impact all the dependent libraries and scripts.
🎯 Drawing
DrawingTypes - Defines basic drawing types Point, Line, Label, Box, Linefill and related property types.
DrawingMethods - All the methods or functionality surrounding Basic types are defined here.
🎲 Layer 1 Libraries
These are the libraries which has direct dependency on base libraries.
🎯 Zigzag
ZigzagTypes - Types required for defining Zigzag and Divergence
ZigzagMethods - Methods associated with Zigzag Type definitions.
🎲Indicator
Indicator draws zigzags based on given length. And then recursively derives next level zigzags based on previous levels. As per the utility, indicator is useful in several ways
Visualising price structure based on zigzag pivots - which in turn can help visualise patterns.
Ability to add any oscillator makes it easy to spot divergences with choice of indicators.
Programmers can use the derived values to build complex algorithms such as automatic pattern recognition.
🎯 Settings
Settings are explained via tooltips. These are very much straight forward and directly related to zigzag, oscillators and divergence.