Support and Resistance by CainKellyeCheck out my automatic support and resistance indicator that uses the EMA of price change * relative volume as the bases of pivot search.
It also tells the strength of the support and resistance lines calculated using a 4 times quicker EMA and using its distance from the slower one.
The strongest plotted line has the maximum opacity and the weakest has the minimum opacity inside the given range.
This calculation results in an organic detection of the support and resistance prices.
You can set the distance range in percentage you want to have lines calculated around the current price.
You can set the lines gravity distance inside which they are snapped together: the stronger line pulls the weaker to it by using strength weighted average for the new price value.
You can increase the minimum opacity value in case you only see few lines (but the maximum is 15)
You can change the used price for the lines to Close or High/Low but recommended is to use the average of those two (default)
The distances multiplier helps to get a birds eye view easily when using 4H (or higher) chart and a separate one to use on Daily / Weekly / Monthly for even broader view.
Lines and labels are drawn near the candles so you are still able to zoom in.
Labels are not drawn when their line is barely visible (transparency >= 80)
This indicator has been refined on the 15 minute and 1 hour charts of BTC and other cryptos but it works well in smaller volatility markets as well if the distances are adjusted accordingly.
X-lines
Support and ResistanceThis indicator shows three types of support and resistance lines: Horizontal, Parallel (using linear regression) and Fibonacci Retracement. Lines can be adjusted or turned on and off in settings. A great tool for setting up entries, exits and locating pivot points.
Zig Zag Channels [LuxAlgo]The Zig Zag indicator is a useful indicator when it comes to visualizing past underlying trends in the price and can make the process of using drawing tools easier. The indicator consists of a series of lines connecting points where the price deviates more than a specific percentage from a maximum/minimum point ultimately connecting local peaks and troughs.
This indicator by its very nature backpaints by default, meaning that the displayed components are offset in the past.
🔶 USAGE
The Zig Zag indicator is commonly used to returns points of references for the usage of specific drawing tools, such as Fibonacci retracements, fans, squares...etc.
The proposed indicator estimates peaks and troughs by using rolling maximums/minimums with a window size determining their significance. This window size approach allows us to have an indicator that works with a certain regularity no matter the scale of the price, something the percentage-based approach struggles with. Additionally, one upper and lower extremity are displayed, highlighting the price point that deviates the most from the Zig Zag lines.
A common usage also includes the easy determination of Elliot wave patterns in the price.
The Zig Zag indicator above highlights a downtrending motive wave.
🔹 Extremities
The novel approach taken by this Zig Zag indicator is the addition of two extremities derived from the distance between the price and the Zig Zag line, thus returning channels. It is uncommon seeing extremities in Zig Zag indicators since the line connecting peaks and troughs has rarely any other utility than seeing trend variations with more clarity and is not meant to provide an accurate estimate of underlying local trends in the price.
This channel can be useful to study the potential relationship between underlying trends and the Zig Zag line. A low width between the Zig Zag and the upper extremity indicates price variations mostly located below the Zig Zag while equal width indicates more linear trends.
When the indicator is extended to the last line, the extremities provide potential support and resistances, thus making this indicator able to forecast price variations.
🔶 SETTINGS
Length: Determines the significance of the detected peaks and troughs.
Extend To Last Bar: Extend the most recent line to the most recent closing price value.
Show Extremities: Displays the extremities.
Show Labels: Display labels highlighting the high/low prices located at peaks and troughs.
🔹 Style
Upper Extremity Color: Color of the upper extremity displayed by the indicator.
Zig Zag Color: Color of the ZigZag lines.
Lower Extremity Color: Color of the lower extremity displayed by the indicator.
RSI Over EMA (Range Lines)This is another version of the RSI over EMA Trend Sniper script that I released here:
This one gives you better control across pairs wither higher volatility with the extra lines and more alert possibilities.
Here are the useful Alert functions within this indicator:
LONGS:
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Green line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Green line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Amber line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Amber line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Lower Red line
-Aqua line (RSI Line) - Crossing UP (Long Alert) on the Upper Red line
SHORTS:
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Green line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Green line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Amber line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Amber line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Lower Red line
-Aqua line (RSI Line) - Crossing DOWN (Short Alert) on the Upper Red line
You can setup alerts for the Aqua line (RSI Line) 'crossing up' (Long Alert) or 'crossing down' (Short Alert) on any of the colored EMA lines.
By default the lines are spread out at 10/20/30 and that should cover high volatility charts. But, this is customizable and you can reduce the size of Green/Amber/Red lines to try and get a better more focused setup for whichever coin you are trading on. I have found this version of the RSI over EMA to work better with alt coins that are generally more volatile, but using it on Bitcoin works too.
I am using this for Cryptocurrency alerts, but not for automation to enter or exit a trade. It's important to only use this on normal candles, and only use it as a confirmation of a possible good entry or exit.
Gridimus MaximusGridimus Maximus draws N grid lines stepping by price or percent in chosen direction from set price, or draws N grid lines stepping by pivots.
The queue function method used is adapted from an example provided on the PineCoders website, much gratitude to LucF for this gem!
To prevent grid lines out of range from causing chart to rescale right click on chart's price column and enable Scale Price Chart Only.
Pictured example above is using Type Of Increment: Steps By Pivot, Number Of Steps: 5.
Pictured example below is using Type Of Increment: Steps By Price, Number Of Steps: 6, Starts From Price: $10k, Steps By Percent Or Price: $10k.
Pictured example below is using Type Of Increment: Steps By Percent, Number Of Steps: 7, Starts From Price: $10k, Steps By Percent Or Price: 33%.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
EMA 8, 21 and SMA 50 from daily timeframe horizontal linesShow horizontal lines after the last point of EMA8, EMA21 and SMA50 from daily timeframe. Always shows the daily lines no matter the timeframe of your chart. It can be use as a reference in intraday time frames lower than 1 day.
Muestra líneas horizontales que continúan del último punto del EMA8, EMA21 y SMA50. Siempre muestra las líneas diarias sin importar el rango de tiempo que estés utilizando. Se puede usar como líneas de referencia para intradía.
Auto Horizontal Lines_Arshak_TcAdjust the time as per your purpose.Turn off second line option if you don't need it.
Volumetric colored candles with matching pivot point linesCandles are split into 10 categories based on their volume, and can be changed in the options. By default and in the images, white is very high volume, reds are high volume, yellows are medium volume, greens are low and dark-grey is very low.
Adjustments for scale are included in the options. The Magnitude option is a 10x multiplier, so 1=10, 2=100, 3=1000, etc., up to 9. There is also a Multiplier selection option where 1=1, 2=2, 3=3, 4=4, etc.
To attenuate for a given chart, these multipliers will need to be changed. In general, all white means you need to increase the Magnitude and all dark-grey means you need to decrease the magnitude. Somewhere between those two, the Multiplier can be used for further calibration. All this color coating is relational, like a spectrum. As you adjust you will see them maintaining their proportions as the candles switch color (ex. green become yellow while yellow becomes red).
I have also included pivot lines that follow the same logic for color coding. Two options exist for adjusting the pivot high and pivot low points respectively. They do not always correspond to the exact color of the candle producing them, but they should be a rough average (ie. red and green bars making yellow lines). They make for good indicators of how much liquidity may be at a certain support/resistance level. The lines can also be turned off altogether.
If your candles aren't looking right, go to settings of both regular candles and heikin-ashi, and uncheck both border and wick.
I still have some code to clean up and I plan on expanding upon this study. If you like my work consider tipping!
Parallel Pivot Lines [LuxAlgo]Displays lines connecting past pivot high/low points with each line having the slope of a linear regression. This slope can also be controlled by the user with the 'Slope' setting. Each line can be used as a support or resistance by the user.
Settings
Length : Pivot length. Use higher values for having lines connected to more significant pivots points.
Lookback : Number of lines connecting a pivot high/low to display, with a total of lines equal to Lookback*2
Slope : Allows the user to multiply the linear regression slope by a number within -1 and 1
Limitations
The script has currently several real time behavior limitations. Lines are displayed retrospectively and will not update with the arrival of new bars. Readjusting the indicator to newer pivots will require the user to either hide/unhide the indicator or change its settings.
High Length or Lookback values might not return any lines if the location of a pivot point is outside the defined buffer size of the indicator (set as 5000 bars).
How To Use
The indicator can be used to get supports and resistances and is more so closer to a drawing tool due to its limitations. The lines not updating with the arrival of new bars have the advantage of providing fixed supports/resistances.
The Slope setting allows the user to control the angle and direction of the lines. Using a Slope of 1 will return lines with the same slope as the one of a linear regression fit from the farthest pivot point displayed by the indicator to the most recent bar.
The chart above shows the indicators and a linear regression in orange.
If you want to have horizontal lines, use a Slope equal to 0.
Finally using a negative slope value will allow the user to have lines in opposite directions to the main trend.
Conclusion
We hope you like this indicator (drawing tool) and find it useful for drawing your support & resistances in a unique way!
PRIME - ShadoW ZoneZ with RSI LevelsIn This experimental study, we've taken RSI data, Volume Profile, and Trend analysis, combining them into one unique package that will allow a trader to analyze market trend lines and their proposed channels, trend momentum through candle color augmentation similar to "Pulse", and Visible Volume index price levels on chart for the current sequence. Below are explanations of each function within the system.
The Semafor is used to spot future multi-level Supports and Resistance zones.
It is also useful to spot HL or LL or HH or LH zones at different Depth settings.
The red zones are the extreme places where the market has a higher chance of reversing while the green zones have the lowest setting with lower chances of the market reversal
Automatic Trend Lines
The indicator takes in 2 timeframes to detect High and Low values from which to draw the trend lines of each timeframe.
As the values change with price movement, the lines are updated. They are color coded for uptrend and downtrend based on the direction of each individual line. Trend lines can be set up to color with only the default value on the configurations panel.
- Toggle on/off Color Coded
- Change Default, Uptrend, Downtrend color
- Change Line Width
- Change Line Style
- Toggle on/off Line Extensions
- Change Extended Line Width
- Change Extended Line Style
- Toggle On/Off labels for 7 data points of each timeframe
Automatic Trend Sights
This is a neat feature that may help you get a better feel for the direction the current movement is heading towards in correlation with the short or medium length timeframe trends. The sight draws a line from the middle vertical point of the trend coordinates towards the current price. They are toggled off by default but can be enabled in the configurations panel.
- Toggle on/off sight on each timeframe
- Change Width
- Change Line Style
Support & Resistance Levels, the main aim of the study. Level calculations are based on Relative Strength Index ( RSI ) threshold levels of oversold/overbought and bull/bear zones, where all threshold values are customizable through the user dialog box. Background of the levels can be colored optionally.
RSI Weighted Colored Bars and/or Mark Overbought/Oversold Bars , Bar colors can be painted to better emphasis RSI values. Darker colors when the oscillator is in oversold/overbought zones, light colors when oscillator readings are below/above the bull/bear zone respectively, and remain unchanged otherwise. Besides the colors, with “Display RSI Overbought/Oversold Price Bars” option little triangle shapes can be plotted on top or bottom of the bars when RSI is in oversold/overbought zones .
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
Example - Future Line DrawingExample primarily focuses on:
• creating a simple function to get a time offset value
• using the offset to set drawing locations in the future
• how to properly set up and manipulate line positions
Extras ( end of script ):
• inclusion of vertical lines for visualising start and end points using the time offsets
• inclusion of label to read out the current time offset forwards/backwards
This script publication is intended for:
• Educational Purposes
Who is it for?
• anyone who wants to learn the basics of drawing using 'time' for purposes of positioning
Donchian Zig-Zag [LuxAlgo]The following indicator returns a line bouncing of the extremities of a Donchian channel, with the aim of replicating a "zig-zag" indicator. The indicator can both be lagging or lagging depending on the settings user uses.
Various extended lines are displayed in order to see if the peaks and troughs made by the Donchian zig-zag can act as potential support/resistance lines.
User Settings
Length : Period of the Donchian channel indicator, higher values will return fewer changes of directions from the zig-zag line
Bounce Speed : Determine the speed of bounces made by the zig-zag line, with higher values making the zig-zag line converge faster toward the extremities of the Donchian channel.
Gradient : Determine whether to use a gradient to color the area between each Donchian channel extremities, "On" by default.
Transparency : Transparency of the area between each Donchian channel extremities.
Usage
It is clear that this is not a very common indicator to see, as such usages can be limited and very hypothetical. Nonetheless, when a bounce speed value of 1 is used, the zig-zag line will have the tendency to lag behind the price, and as such can provides crosses with the prices which can provide potential entries.
The advantage of this approach against most indicators relying on crosses with the price is that the linear nature of the indicator allows avoiding retracements, thus potentially holding a position for the entirety of the trend.
Altho this indicator would not necessarily be the most adapted to this kind of usage.
When using a bounce speed superior to 1, we can see the predictive aspects of the indicator:
We can link the peaks/troughs made by the zig-zag with the precedent ones made to get potential support and resistance lines, while such a method is not necessarily accurate it still allows for an additional to interpret the indicator.
Conclusions
We presented an indicator aiming to replicate the behaviour of a zig-zag indicator. While somehow experimental, it has the benefits of being innovative and might inspire users in one way or another.
Future Line Example for study PivotPoint I know a lot of people who want to draw a line in future. I asked a lot of good Guys in Pine and they havent a solution. But today i got an idea i want to share with you. I hope this example give you a hint.
it is Usefull if you want to draw it like the Orginal Pivot Point standart or everything else.
I see a lot of Pivot Indicators but all stop at the actual Candle or extended right 100+ Years
Have Fun :)
Label with Trading Idea - ExampleThis is just simple trading idea draw into chart using labels and lines.
Please use it as educational purpose and you are free to modify any part of the script.
Semoga Terhibur.
Previous HighHorizontal line for previous daily, weekly or monthly high.
By default :
Green Label - previous 1 day high
Yellow Label - previous 1 week high
Red Label - previous 1 month high
Each number and color can be change in setting.
Fibonacci EMA [sidd]EMA with Fibonacci Numbers, I have developed this system for finding trend , support and resistance in lower time frame and higher time frame.
If Candles closes below at least 4 Fibonacci line then trend is down if Candles closes are above minimum 4 Fibonacci line the trend is up.
Fibonacci line act as support for Uptrend market similarly same lines act as resistance for downtrend market.
Before new trend start all lines shrink together and looks like single thick line.
And When trend almost matures then all lines are expanded and they have spaces between them.
Hope it will help new trader. This study is not for Buy and Sell.
How To Show Vertical LinesExample of various methods to show dashed or solid vertical lines on chart based on using either session or time.
Credit for line method goes to midtownsk8rguy ->
Credit for plot method goes to PineCoders -> www.pinecoders.com
Special thanks to LucF, midtownsk8rguy, and PineCoders for permission to use their work.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Relative Strength Index custom lines and fillingI changed this RSI oscillator to give everyone ability to change position of strategic lines as RSI has a lot more to offer than only overbought and oversold boundries. You can change overbought and oversold line and make one more space depend what you are looking for. For me and as default it is 40-60 range. I put a center line at 50.
Line & Label RGB Color Editor [DW]This script is a template designed to provide developers with UI color customization for v4 lines and labels.
The color pallete used within this script is a full spectrum "web safe" format with 216 colors to choose from.
Colors are easily modified via the RGB inputs. The designated color selector function takes in the RGB values and returns the corresponding hex color.
Transparency can be modified as well. However, the color.new function only supports constant integers for transparency value, so it has to be manually adjusted within the code.
On line 42, you'll see a variable within the color selector function named trans. This is the transparency value, which can be set to any integer from 0 to 100. I have it set to 0 by default.
I included a sample label to demonstrate how the color editor works. It also displays the hex codes for the current label and text colors for some additional reference.
Implementing this in your own script is pretty straightforward.
All you need to do is copy the color selector function and inputs (feel free to name them whatever you want) into your desired script. Then, you can use them to declare your color variables.
[PX] MTF Standard Deviation LevelHello guys,
once again, I want to show you a different method for detecting support and resistance level. Today's approach is similar to the one I posted recently, but the way the level will be detected is different. I call it the multi-timeframe standard deviation level.
How does it work?
The method is similar to the way Bollinger Bands work. First, the indicator calculates the standard deviation, which can be influenced by the "Sensitivity"- and "Length"-setting.
Sensitiitiy - the higher the value, the fewer level will be shown
Length - simply the length for the standard deviation formula
Second, the detected value will be added (for resistance level) or substracted (for support level) from the current close. Once the upper or lower boundaries are crossed, a level will appear and keeps moving until the up- or downward movement finishes. Then the level will settle and stay in place.
Again, as seen in my previous indicator, you can control all the different styles and colors for the levels. The best part is, the whole thing works in a multi-timeframe fashion. In an example, you could select the "Daily" level and plot them on a 4-hour chart.
If you find this indicator useful, please leave a "like" and hit that "follow" button :)
Have fun, happy trading and once again Merry Christmas :)))
[PX] M/W/D LevelHey guys,
this script shows monthly, weekly and daily OHLC data represented as horizontal level.
I tried to make it as user-friendly as possible. Therefore, you can add different colors and styles for each level, as well as turn them on and off.
With the "Label Offset" -parameter you are in control where the label text should appear. You can shift it from left to right and vice-versa. To shift it to the left choose a negative value. To shift it to the right use a positive one.
This best setting for me personally is the "Candle Selection" -dropdown. This allows you to decide wether you want to show the previous candles OHLC-data or the current live OHLC-data.
!!CAUTION!! If you use the "Current Month/Week/Day" -selection be aware that values shown are "live"-data of the current candle. Therefore, values will change the same way your chart keeps changing on live data.
The "Previous Month/Week/Day" -selection on the other hand is historical data and therefore only changes once we reached a new month/week/day.
If you like my work, consider leaving a like :)
Happy trading!
Price-Line Channel - A Friendly Support And Resistance IndicatorIntroduction
Lines are the most widely used figures in technical analysis, this is due to the linear trends that some securities posses (daily log SP500 for example), support and resistances are also responsible for the uses of lines, basically linear support and resistances are made with the assumption that the line connecting two local maximas or minimas will help the user detect a new local maxima or minima when the price will cross the line.
Technical indicators attempting to output lines have always been a concern in technical analysis, the mostly know certainly being the linear regression, however any linear models would fit in this category. In general those indicators always reevaluate their outputs values (repainting), others non repainting indicators returning lines are sometimes to impractical to set-up. This is what has encouraged me to make a simpler indicator based on the framework used in the recursive bands indicator that i published.
The proposed indicator aim to be extremely flexible and easy to use while returning linear support and resistances, an option that allow readjustment is also introduced, thus allowing for a "smarter" indicator.
The Indicator
The indicator return two extremities, the upper one aim to detect resistance points while the lower one aim to detect support points. The length setting control the steepness of the line, with higher values of length involving a lower slope, this make the indicator less reactive and interact with the price less often.
The name "price-line" comes from the fact that the channel is dependent on its own interaction with the price, therefore a breakout methodology can also be used, where price is up-trending when crossing with the upper extremity and down trending when crossing with the lower one.
Readjusted Option
The line steepness can be readjusted based on the market volatility, it make more sense for the line to be more steep when the market is more volatile, thus making it converge faster toward the price, this of course is done at the cost of some linearity. This is achieved by checking the "readjustment" option. The effects can be shown on BTCUSD, below the indicator without the readjusted option :
when the "readjustment" option is checked we have the following results :
The volatile down movement on BTCUSd make the upper extremity converge faster toward the price, this option can be great for volatile markets.
Conclusion
The recursive bands indicator prove to be an excellent framework that allow for the creation of lots of indicators, the proposed indicator is extremely efficient and provide an easy solution for returning linear support and resistances without much drawbacks, the readjusted option allow the indicator to adapt to the market volatility at the cost of linearity.
The performance of the indicator is relative to the motion of the price, however the indicator show signs of returning accurate support and resistances points. I hope the indicator find its use in the community.
Thanks for reading !
Note
Respect the house rules, always request permission before publishing open source code. This is an original work, requesting permission is the least you can do.