S&P Sector Advance/Decline Weighted -Tom1traderEnjoy, enhance your trading (I hope), copy or adapt to your needs and keep smiling!
Thanks to @MartinShkreli. The sector variables and the "repaint" option (approx lines 20 through 32 of this script) are used directly from your script "Sectors"
RECOMMENDATION: Update the sector weightings -inputs are provided. They change as often as monthly and the
annual changes are certainly significant. When updating weighting percentages use the decimal value. I.E. 29% is .29
Good on any time frame. Especially SPY, SPX and ES scalpers and 0DTE options traders may like this a lot.
This gives good signals on S & P and related (ES, SPY) and indicates / plots differently than the AD line or ratio.
Each sector's entire % weight is added or subtracted depending of whether that sector advanced or declined.
Example: Information Tech weight at 29% so that % of 500 (145) is added if InfoTech is up a penny and subtracted if it is
down a penny. All sectors processed the same way so that for a given bar/candle the value will be between +500 (all
sectors up) and -500 (all sectors down). This weighted AD line of sectors is scaled to +/- 350 and plotted as a red/green line
along with aqua/fuchsia columns of its 5 period ema. The line is actual sector behavior and the columns seem to make a
good signal with column zero crosses standing out.
The columns aqua / fuchsia are a 5 period ema of the Sector AD line and give pretty good signals at
zero cross for SPX. I colored the AD red green line also to emphasize the times it opposes the ema
for example the histo/colums zero cross signal is NOT true when the AD line is showing all or most sectors
going the other way.
For readability, the AD line itself is scaled to 350. This lets the columns of the ema stand out better. The hlines at
350 and at 175 give an idea for the AD green red line how much of the sector's weight is up or down.
350 is all sectors up (advancing) and -350 is all sectors down (declining). The hlines at +/- 175 seem to outline
a more or less "neutral" zone. For example in an uptrend with most of the AD level positive and the columns positive;
a negative spike that does not pass the -175 line and returns positive does not seem to impact the price as much as
a deeper negative spike.
Centered Oscillators
Stock Rotation Model [CC]This is an original indicator so a true hidden gem in my opinion. I based this idea off of the work by Giorgos Siligardos (Stocks and Commodities Aug 2012) with his indicator called the Sector Rotation Model. This indicator is best used as a trend confirmation in combination with another indicator such as a leading indicator. This will show you how strong the current stock you are looking at is compared to the S&P 500 which almost everyone uses as a relative strength comparison. Feel free to change the default lengths if you would like as these were just the settings that I liked the best overall. Let me know if you find any good combos that works for most stocks in general. I have included strong buy and sell signals in addition to normal ones so 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 indicators or scripts you would like to see me publish!
Detrended Ehlers Leading Indicator [CC]The Detrended Ehlers Leading Indicator was created by Bill Mars based off of Ehlers work and this is his attempt to create a leading indicator based on the previous Detrended Synthetic Price . I will be honest that this is a bit of a strange script because it is an indicator based off of the detrended synthetic price which is based off of Ehlers work so I haven't found clear buy and sell signals so I'm open to suggestions. His suggestion for buy and sell signals is to only buy and sell at the indicator crossings but haven't found buy and sell logic that I'm sure about. I have included strong buy and sell signals in addition to normal ones so 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 indicators or scripts you would like to see me publish!
Detrended Synthetic Price [CC]The Detrended Synthetic Price was created by Bill Mars and this indicator is another undiscovered gem that I have found very useful. He obviously took inspiration from John Ehlers in the creation of this indicator and I would describe this indicator as a combination of a MACD and Ehlers work. This indicator is extremely smooth and gives very clear buy and sell signals. Let me know how this indicator works for you. I have included strong buy and sell signals in addition to normal ones so 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 indicators or scripts you would like to see me publish!
Price Clouds Oscillator (PCO)This is the oscillator version of Price Clouds (PS). Use this with (PS) for best results.
This indicator shows you over bought and over sold regions similarly to to rsi or stochastic. This indicator centers a moving average around the hl2 of the price. This is calculated as the difference of four moving averages. The signal line shows you how much momentum in any given direction you have. You can also see how much volatility there is by the band width. Just like the Bollinger band high volatility comes before low volatility and visa versa. You can also see what the market is doing based on the signal crosses. If the fast line is above the slow line you are going up and visa versa. This indicator works in most markets, especially crypto. There is a tool tip for every aspect of this indicator explaining how everything works.
Key Feature:
>See where the price is relative to a mean price
>Measure volatility
>Clean global settings
>Normalization feature lets you scale the band from 0 to 1. You loose some information but its easier to use if you aren't measuring volatility.
I hope you are very profitable with this one!
If you find this indicator is useful to you, Star it, Follow, Donate, Like and Share.
Your support is a highly motivation for me.
PCO
----------------------/\-----
-------------/\----/----\---
\----------/----\/--------\-
--\------/------------------
----\_/---------------------
Projection Oscillator [CC]The Projection Oscillator was created by Mel Widner (Stocks and Commodities Jul 1995) and this is another hidden gem that is of course a great complementary indicator to my previous Projection Bands . I would recommend to use both on the same chart so you get the full array of information. This indicator tells you where the current price falls between the bands and the higher the oscillator is, the closer the price is to the upper band and vice versa. Now since the price never falls outside of the bands, the indicator is limited from 0 to 100. You will notice that with this indicator it gives even earlier signals than the Projection Bands so a very useful indicator indeed. I have included strong buy and sell signals in addition to normal ones so 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 indicators or scripts you would like to see me publish!
Mobility Oscillator [CC]The Mobility Oscillator was created by Mel Widner (Stocks and Commodities Feb 1996) and this is another of my ongoing series of undiscovered gems. I would say this is probably the most complicated script I have written for an indicator. It is extremely complicated to calculate comparing to other indicators but this is essentially an overbought and oversold indicator that uses a very unique technique to calculate overbought and oversold levels and overall upward or downward momentum there is in the underlying stock. It uses a price distribution function to determine how often the current prices fall within the current trend which tells us how strong the momentum for the current trend actually is. I had to customize this indicator a bit to give clear buy and sell readings so I had to introduce a lag in exchange for clearer signals. This indicator ranges between +100 and -100 and when it stays at the +100 level for example then this means a sustained uptrend and vice versa. I have included strong buy and sell signals in addition to normal ones so 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 or indicators you would like to see me publish!
Ultimate MACDThis indicator is an improved version of MACD+RSI (refer to my script list). Basically, this indicator is a combination of several indicators:
1. Fast MACD (preset at 8, 16, 11 - it is my own preference settings and the red and blue line in this indicator are referring to the Fast MACD settings)
2. Slow MACD (preset at 12, 26, 9 - standard settings and the Slow MACD lines are not displayed in this indicator)
3. RSI (preset over value 50)
4. Stochastic (preset overbought at 80, oversold at 20)
How to read:
1. Fast and Slow MACD:
- Two red and blue lines are displaying the Fast MACD lines
- Small blue cross will appear at every crossover of the Fast MACD lines
- Golden Cross 1: Yellow background will appear if only Fast MACD lines are crossing to each other (blue crossover red)
- Golden Cross 2: Green background will appear if both Fast and Slow MACD lines are crossing to each other (blue crossover red but for Slow MACD, I didn't put those lines in this indicator)
- Death Cross 1: Blue background will appear if only Fast MACD lines are crossing to each other (red crossover blue)
- Death Cross 2: Red background will appear if both Fast and Slow MACD lines are crossing to each other (red crossover blue)
2. RSI:
- Purple dots will appear on the center line if RSI value is over 50
3. Stochastic:
- Big Blue cross will appear on the center line if stochastic line are crossing to each other in the oversold area (preset at 20)
- Big Red cross will appear on the center line if stochastic line are crossing to each other in the overbought area (preset at 80)
That's all about this indicator, you can use it based on your own trading style if it suits you. And again I let the script open for anyone to modify it based on your own preferences.
Reverse Moving Average Convergence Divergence [CC]The Reverse Macd was created by Johnny Dough (Stocks and Commodities Jan 2012) and this is another indicator in my ongoing series to find those hidden gems. This indicator works in a few very powerful ways. For example the blue line shows you what the current price would be if the macd was at the macd level that you choose. I set the default to 0 but feel free to change it if you want. This will give you short to medium term info by telling you if it is an uptrend when the price is above the blue line or vice versa. It also creates the reverse macd line and it's signal line by using information from the previous day to decompile the macd and show you the price that it would be at if the macd was at that level. It turns this into a new moving average that closely tracks price movements and with the two competing signals, gives you more than enough info to find the perfect entry and exit points. Like always I have included strong buy and sell signals in addition to normal ones so darker colors are strong signals and lighter colors are normal signals. Buy when the line is green and sell when it is red.
Let me know if there are any other scripts you would like to see me publish!
Goethe B - Mutiple Leading Indicator PackageGoethe B is an Indicator Package that contains multiple leading and lagging indicators.
The background is that shows the local trend is calculated by either two Moving Averages or by a Kumo Cloud. By default the Kumo Cloud calculation is used.
What is the main oscillator?
- The main oscillator is TSV, or time segmented volume. It is one of the more interesting leading indicators.
What is the top bar?
-The top bar shows a trend confirmation based on the wolfpack ID indicator.
What are those circles on the second top bar?
-Those are Divergences of an internally calculated PVT oscillator. Red for Regular-Bearish, Green for Regular-Bullish.
What are those circles on the main oscillator?
-These are Divergences. Red for Regular-Bearish. Orange for Hidden-Bearish. Green for Regular-Bullish. Aqua for Hidden-Bullish.
What are those circles on the second lower bar?
-Those are Divergences of an internally calculated CCI indicator. Red for Regular-Bearish, Green for Regular-Bullish.
What is the lower bar?
-The lower bar shows a trend confirmation based on the Acceleration Oscillator, in best case it showes how far in the trend the current price action is.
What are those orange or aqua squares?
- These are TSI (true strength indicator) entry signals . They are calculated by the TSI entry signal, the TSI oscillator threshold.
Most settings of the indicator package can be modified to your liking and based on your chosen strategy might have to be modified. Please keep in mind that this indicator is a tool and not a strategy, do not blindly trade signals, do your own research first! Use this indicator in conjunction with other indicators to get multiple confirmations.
Coppock Curve with Pivot Points and Divergence The Coppock Curve is a long-term price momentum indicator used primarily to recognize major downturns and upturns in a stock market index. It is calculated as a 10-month weighted moving average of the sum of the 14-month rate of change and the 11-month rate of change for the index. It is also known as the "Coppock Guide."
The Coppock formula was introduced in Barron's in 1962 by Edwin Coppock.
The Coppock Curve is a technical indicator that provides long-term buy and sell signals for major stock indexes and related ETFs based on shifts in momentum.
What Does the Coppock Curve Tell You?
The Coppock Curve was originally implemented as a long-term buy and sell indicator for major indices such as the S&P 500 and the Wilshire 5000. Often, it is used with long-term time series such as a candlestick chart, but where each candle contains a month's worth of price information.
The Difference Between the Coppock Curve and Rate of Relative Strength Index (RSI)?
The relative strength index looks at how the current price compares to prior prices, though it is calculated differently than the rate of change (ROC) indicator used in the Coppock Curve calculation. Therefore, these indicators will provide different trade signals and information.
What are those circles?
-These are Divergences. Red for Regular-Bearish. Orange for Hidden-Bearish. Green for Regular-Bullish. Aqua for Hidden-Bullish.
What are those triangles?
- These are Pivots . They show when the VPT oscillator might reverse, this is important to know because many times the price action follows this move.
Please keep in mind that this indicator is a tool and not a strategy, do not blindly trade signals, do your own research first! Use this indicator in conjunction with other indicators to get multiple confirmations.
Momentum ScoreMomentum is the tendency of assets that have gone up in price to continue going up in price - and for assets that have gone down in price to continue going down in price. The reasons behind it are not well understood by academics, but momentum is a property that exists across geographies and asset classes.
The Momentum Score is a system that scores companies based on their one year total returns, excluding the last month of returns. In other words, a momentum score for today will be based on the total returns of a stock from 12 months ago today to one month ago today.
Our Momentum Score 13612W has the following composition:
MS 13612W = 12 * Roc(1) + 4 * Roc(3) + 2 * Roc(6) + 1 * Roc(12)
with ROC = (p0/pt) - 1, where pt equals price p with a t-month lag
TropRSIThis is a variety of RSI based on the distance from the MA. It calculates the difference between price and a user defined EMA, then it calculates the RSI for the values obtained.
I find it more reactive and at the same time more adjustable thatn normal RSI.
It also shows divergences.
Ehlers Hann Relative Strength Index [CC]The Hann Relative Strength Index was created by John Ehlers (Stocks and Commodities Jan 2022 pgs 26-28) and this indicator builds upon his Hann Window Indicator to create an unique rsi indicator that doesn't rely on overbought or oversold levels to determine a reversal point and also provides a very superior smoothing without any of the lag associated with traditional smoothing. A much more useful RSI than the standard version in my honest opinion. Short term you buy when the line turns green and sell when it turns red. Medium to long term you buy when the indicator rises above the 0 line and sell when it falls below the 0 line. I have included strong buy and sell signals in addition to normal ones so strong signals are darker in color and normal signals are lighter in color.
Let me know if there are any other indicators or scripts you would like to see me publish!
Sharktank - MACD ExtendedThe MACD, but with added features. Features are:
* Different color schemes.
* Change between different MA types (EMA and SMA) for both the oscillator and the signal MA.
* Show normal bearish and bullish divergence on both the oscillator and the signal MA.
* Show hidden bearish and bullish divergence on both the oscillator MA and the signal MA.
* Change line styles.
Ehlers Elegant Oscillator [CC]The Elegant Oscillator was created by John Ehlers (Stocks and Commodities Feb 2022 pg 21) and for those of you who don't know, he introduced the indicators for the Fisher Transform and Inverse Fisher Transform and this is a new updated version to that idea based on his latest research. This uses a soft limiter which he says is superior to a hard limiter. There are several ways to interpret this indicator. First if the indicator is above the 0 line then it is a long term bullish trend and below 0 a long term bearish trend. Second this indicator can be used for reversal points with the peaks and valleys. Finally when the indicator line starts moving higher for example it is a bullish short term trend and vice versa. I have included strong buy and sell signals in addition to normal ones so strong signals are darker in color and normal are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
Z Score (Close + High and Low bands)Basic z score with High and Low bands.
If z is positive = uptrend.
If z is negative = downtrend.
If z > +3 or z < -3 = reverse is possible.
H lines can act as a support/resistance.
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
MACD Objective Breakouts + AlertsFinds the most recent support and resistance level as confirmed by the MACD . These level are detected dynamically and the lines will be updated as new levels form.
Alerts can be toggled on or off in the settings but will not work if the alert is not added to your chart. Alerts can be added by selecting the "Alert" button on TradingView then selecting "MOB Alerts" as the condition
Alerts will trigger when price closes above or below the indicated levels.
Please let me know if you find any bugs!
Velocity, Acceleration, JerkJust a simple indicator. It measures the velocity, acceleration, and jerk of the price. Velocity being the rate of change of price, acceleration being the rate of change of velocity, jerk being the rate of change of acceleration.
With the default length of 50, the indicator measures the height difference of two prices 50 bars apart. This is recorded as velocity or slope. 50 bars later, a second slope is recorded. The change in this value will be the acceleration. Another 50 bars later, (a total of 150 bars) another acceleration is recorded, and the change of that value is jerk.
Positive velocity indicates the price is uptrending. Positive acceleration indicates the trend is growing, or the price is falling then rising (price will make "U" shapes for positive and "∩" shapes for negative). Positive jerk indicates higher highs and higher lows (price will transition from "∩" to "U" shapes for positive jerk and "U" to "∩" for negative jerk).
I'm not sure any of this is useful. It's just interesting to see some physics behind prices.
Note: velocity, acceleration, and jerk graphs are not to scale (they'd be too small to see if they were)
MACD + AveragesA classic MACD with average peak and dip lines. The lighter green and red horizontal lines are the average peak and dip of the entire span, respectively. The second, bolder of the two lines are the averages of the peaks and dips above and below the overall peak and dip averages. The filled in color is to help visualize these averages and possible trade setups.
Swing ComparatorHere I bring you an array of methods to compare the swings and consistency between assets.
This indicator is excellent for swing traders and scalpers looking to maximize their profits by examining which of two closely related pairs provides greater price fluctuation during given period.
This indicator works against two assets, which are to be configured in settings.
This indicator has 5 particular plots for you to examine, each which can be considered for you to contemplate which pair for you to next perform a trade on.
First off, let's start with the blue.
The blue is simply a pearson correlation coefficient, thankfully now included in tradingview. This provides a value of 1 as values show to be close correlation, 0 showing no correlation, and -1 showing negative correlation - meaning an increase in one pair correlates to a decrease in another pair. This will turn green when greater than 0.975, showing a very strong relationship between the two pairs, and red when below -0.975. This is the only plot to be interpreted on a scale from -1 to +1.
Next, we have the purple and yellow background plots, followed by the white and green moving averages. Though similar, these are all slightly different.
For each of these 4 plots, a value greater than 0 indicates greater price swings for your Symbol #1, while a value less than 0 indicates greater price swings for Symbol #2.
These calculations are performed on a per bar basis, meaning you're likely going to be examining bars longer than what you'll normally be trading on. Use confluence, as well as your own judgement for this.
For example, if symbol #1 provides a bar with an open value 1% greater or less than close, providing a 1% swing on a given bar, but symbol #2 provides 2%, the indicator will fall down toward the negative, as Symbol #2 had the greater swing.
First, yellow focuses on only open/close bar values, and thus the body of the candlestick.
Purple, on the other hand, focuses on the wicks of the candle - thus, the high/low values. I've opted to make these two different values as a wick focuses on the embodiment within the time period, and body focuses on the open/close instant.
Next, the green is an extended EMA of the purple - High/Low ratio. This is important to examine trend overtime, and reduce unneeded noise.
Lastly, the white is simply difference in the standard deviation of the particular bars, between the two symbols you have selected. The tends to usually tie up with the green pretty well.
Considering this is going to by nature be very noisy datasets, I have included in settings the option to extend an EMA for everything. They have their default settings, but if you'd like to examine the trend without an EMA, feel free to set it to 1 to eliminate its effects.
I have additionally added the ability to introduce clipping, as well as scale the correlation coefficient to remain visible when examining very short term time scales. In the future, I hope to properly normalize all plots to remain within a -1 to +1 basis. Please be patient as I have multiple projects ongoing.
Suggestions and constructive criticism are very well encouraged.
Anyone is welcome to utilize this in their code, as well, i just ask you provide credit.
As you reduce to time frames less than a day, you will likely have to reduce the coefficient min/max closer to 0.025, or just hide it entirely.
TODO:
Make it look better. Sorry, folks.
Introduce latency between pairs.
Examine significance of a coefficient of determination
Remove static weights and introduce z-score and linear normalization.
Consider adding room for a 3rd pair. This could get ugly, however.
Buy / Sell alert indicator [Crypto_BCT]Hello everyone!
I bring to your attention a indicator to determine the point of buy and sell purchase.
It is based on oscillators and a moving average.
It can be used to work with bots, for example 3COMMAS DCA bot.
Signal Condition Settings:
ATR
The current candle is larger than the ATR for this period
EMA
The signal is necessarily below (for buy) and above (for sell) the EMA of the specified period
(Buy) RSI low
The RSI index is below this value
(Sell) RSI High
The RSI index is higher than this value
(Buy) MFI low
The MFI index is below this value
(Sell) MFI High
The MFI index is higher than this value
(Buy) CCI low
CCI index is below this value
(Sell) CCI High
The CCI index is higher than this value
(Buy) Lowest bar from
The closing of the current bar is lower than the closing of the bars back in this range
(Sell) Highest bar from
The closing of the current bar is higher than the closing of bars in this range
(Buy) Lowest EMA bar ago
During a given distance back, the EMA value only decreased
(Sell) Highest EMA bar ago
At a given distance back, the EMA value only increased
I hope it will be useful!
Internal Bar Strength (ValueRay)The IBS (Internal Bar Strength) as we know it, calculates only correctly on the long side. When the candle closes in loss, the original IBS still uses the upper wick.
This IBS checks first if its an up or down candle and then uses the top or bottom wick to calculate the IBS.
The yellow line is the corrected IBS, the blue line the original