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.
Lines
[RD] HLGO - GANN fibonacci (square/box, based on bars, h&l)==================================================================
Sept 24 - 2019 - HLGO - GANN V1
==================================================================
==================================================================
Description
==================================================================
Script to plot a gann related model (square / box ), try the different params.
Next version will be a time based version. Current version uses bars
(aka bar_index) so it can't plot beyond the last bar accept by extending
===================================================================
Version : v1 (notes
===================================================================
NaN
===================================================================
PLEASE -TIP- (we are trying to raise ₿100 to educate the wales)
===================================================================
BTC: 1C7sk3x8o2sX5eBV5HSz3KAgXJJ3FsF2Mo
ETH: 0xa14f3059EcDAE4aEe2E17826033E1D2C7e83233e
BNB: bnb1kwe3hqp4e8ch02ruhpclau4tvf0enzzh5tc2e3
Multi Horizontal Lines 540Draws horizontal lines depends on condition of regular price, if 10000 then increment is 540, otherwise increment by 54
Multi Horizontal LinesAbility to plot multi price lines, go to settings and put price and increment of lines.
Enjoy
[RD] LCS - line channels (basic) v3 - [republish]==================================================================
July 18 2019 - LCS - line channels (basic) by RootDuk
Version : v3 - read the notes
==================================================================
Easy script to draw channels based on ie. GANN using the following
input params
- ibback : barsback to search for high and low
- ffactor : factor to up/downscale the lines
- oextend : extend lines, left, right, both, none
- bshowline : show horizontal lines yes/no
- bsshowdown : show diag down lines yes/no
- bsshowup : show diag up lines yes/no
- bshowindm : show index marker, where is you current ibback
===================================================================
Notes
===================================================================
When you use this code, pls let me know where and how you used it
as iam always curious what some can do with it. Thanks!
===================================================================
Updates
===================================================================
v1
v2 - July 17 2019
- Removed support wallets from source code. I think the source
- has been deleted because of this, find no other clue.
v3 - July 18 2019
- Republish
[RD] high / low lines pv4 v1==================================================================
July 7 2019 - high / low lines pv4 v1 - by RootDuk
==================================================================
Easy script to draw some lines on the input variable barsback.
You can extend the lines on the sides: left, right, both or none.
With the show variables (bools) you can show or hide the lines
Lines: high to high, low to low, high to low or low to high
Easy way to find support / resistance based on the past with
extended lines. Cheers and enjoy
===================================================================
Notes
===================================================================
Hope TV (pinescript) will get color inputs for line or a type color so we can
easily create inputs for colors for lines. Now its static. If someone knows
another way, pls let me know, i'll integrate it
===================================================================
Updates
===================================================================
Non so far v1
Perigraph's Customizable Multi VWAP LinesCustomizable Multi VWAP Lines
input examples:
30, 60, 120, 180, 240,360,480, 720 = minutes
D = Days
W = Weeks
M = months
12M = 12 Months
Simple LinesIntroduction
Making lines is great in technical analysis since it can highlights principal movements and make the analysis of the price easier when using certain methodologies (Elliott Waves, patterns).
However most of the indicators making lines (Zig-Zag, simple linear regression) are non causal (repaint), this is the challenge i tried to overcome, making an indicator capable of making lines in a smart way (able to follow price without loosing a linear approach) and with the least lag possible, i inspired myself from the behaviour of the renko when using a small brick size. This indicator does not repaint .
The code is short and i hope, understandable for all of you, making lines is not a difficult task and its important to know that when a problem appear complex it does not mean that the code used to solve this problem must be complex. Lets see the indicator in details.
The indicator
The indicator have 4 parameters, the length parameter who control the length of lines, the emphasis parameter who control the stability and also the ability to make lines closer to the price (thus minimizing the sum of squares) , the mult parameter which is similar to emphasis and a point option that we will discuss later.
When emphasis and mult are both equal to 1 the indicator will sometimes draw a perfect line, however this line will try to follow the price and thus can create a noisy result.
This is where emphasis and mult will correct this behaviour. The emphasis parameter give a more periodic look as well as some control to the lines but can also destroy them.
This should not happen with mult , this parameter also give more predictability to the lines. Overall it correct the drawbacks of the parameters combinations mentioned earlier.
Its also possible to mix both the emphasis and mult parameter, but take into account that when both are equals the result consist of less reactive lengthy lines with low accuracy. Its better to only use one of them and let the other stay to 1.
Point Option
The indicator can sometimes have a weird look, appearing almost flat or just dont appearing at all. When such thing happen use the point option.
XPDUSD without point option.
with point option :
Time Frame Problem and Its Fix
When using higher time-frames the result of the indicator can appear different, in general the higher the time frame the lengthier are the lines. In order to fix this you can use decimals in the length parameter
length and mult both equal to 5.5, emphasis cant use decimals.
Conclusion
I have highlighted a simple way to make use of the small renko box size method in order to return reactive lines without making the indicator repaint. However Its ability to be close to the price as well as being always super reactive is not a guarantee.
For any suggestion/help feel free to pm me, i would be happy to help you :)
trendline function - JD!EXPERIMENTAL!
As TV doesn't provide a function to draw lines between points, I wrote a function to do this in one my own indicators.
The function itself however can be applied/modified for different use cases, eg. drawing trendlines.
In this (proof of concept) example I used it to draw lines based on past high/low pivot points.
The inputs required:
* an INPUT FUNCTION (in this form, its designed to work with functions that have occasional values and na-values between them, it then connects the non-zero values to form a line)
* a BOOL (to indicate if you want to draw only the rising or falling lines)
* a DELAY (in this case this is the lookback period for the pivot-points function, this is to compensate the calculation of the past and realtime points)
The function returns:
* the function to draw the extension from the BASE-LINE to the current time (here this is the connection of the last pivot-point to the current point to bridge the gap of the lookback period, this is NOT REALTIME!)
* the function to draw the extension for the current time (here this is the continuation of the line until a new pivot-point is valid, this is DRAWN IN REALTIME!!)
* the color of the lines (in this case the lines are only colored (lime or fuchsia) if they either go up or down, else they are invisible, this is to clean up the invalid lines)
these output functions can then simply be plotted using the 'plot' function.
JD.
X-Lines ProThe X-lines indicator has been long time known by users of the Metatrader 4 & 5 trading platform. It shows interesting market prices ( support and resistance levels). The indicator works without delay and as soon as the bar is closed at the interesting price, immediately after that the symbol "X" will appear above bar and the level will be drawn to the next important value . The levels (prices) that the indicator showing are truly important for the market process (according to them, a large volume of transactions is processed or was working out in the past). Accordingly, such prices in the future can be the goal of the trading process and can act as support and resistance .
The adjustment of the indicator is extremely simple, it is possible to change the value of only one parameter: Levels Power, which default value is 9. The higher the value, the weaker the levels, the indicator (correspondingly, the levels becomes larger). In the case of low figures, the indicator shows stronger and more important prices (correspondingly, the levels are getting smaller). The work of the indicator is provided by the author's algorithm. The indicator does not build levels at the tops of prices or on edge bars, it automatically and in a timely manner determines the amount of work to be done at the closing price of the bar, thereby providing a nearly 100% level accuracy.
It is important to note that, due to the peculiarities of the cloud-based PINE language, the indicator has lost something, and has acquired something. For a more convenient level markup, simply place the horizontal price levels according to the indicator readings.
RSI & Volume Based S&R LinesRSI & Volume Based S&R Lines V1.0
Inspired by previous work available on TradingView I wanted to create my own Support & Resistance based indicator to help with confirming signals used with my swing trading tools (also available on TV).
There are two support and resistance lines, one RSI & historic price based and the other based on volume fractals. I've previously used these to help confirm entries previously and the fundamentals behind it are simple but effective.
Access
This indicator is completely free to those part of my discord community
Link: discord.gg
EFI 13 8study(title="EFI", shorttitle="EFI")
XLen1 = input(13, minval=1)
XLen2 = input(8, minval=1)
hline(0, color=gray, linestyle=line)
xValue = volume * (close - close )
xSMA1 = ema(xValue, XLen1)
xSMA2 = ema(xValue, XLen2)
plot(xSMA1, style = columns, color=aqua, title="SlowAvg")
plot(xSMA2, color=white, title="FastAvg")
log 3EMAlogarithmic exponential moving average
plots 3 lines instead of 1
default is 50,100,200
use standard scale instead of log, for this to work properly.
BTC tip jar: 1Mv1s7nLaTsRoLai5WXEGg8doisXuiPUXy
ETH tip jar: 0x6113DDD23D0D5aCad3d1f8640A8A571E9Cb86cB8
LTC tip jar: LYvyoqTSWxa22TQw3E7818xy4AfYNi6xcm
BCH tip jar: 1GC7oZ7MhLkamKCDdZFnUfV21SKWq84VdY
X-LinesИндикатор X-lines давно известен для пользователей торговой платформы Metatrader 4 & 5. Он показывает интересные рынку цены (уровни поддержки и сопротивления). Индикатор работает без опоздания и как только бар будет закрыт по интересующей рынок цене, тут же над ним появится символ "X" и начнется прорисовка уровня до следующего важного значения . Уровни (цены) которые указывает индикатор являются истинно важными для рыночного процесса (по ним отрабатывается или отрабатывался в прошлом крупный объем сделок). Соответственно подобные цены в будущем могут быть целью торгового процесса и могут выступать, как поддержкой так и сопротивлением.
Настройка индикатора предельно проста, имеется возможность менять значение только одного параметра: Levels Power (сила уровней), по умолчанию значение равно 9-ти. Чем выше значение тем более слабые уровни показывает индикатор (соответственно уровней становится больше). В случае низких цифр индикатор показывает сильные и более важные цены (соответственно уровней становится меньше). Работу индикатора обеспечивает авторский алгоритм. Индикатор не строит уровни по вершинам цен или по краевым барам он автоматически и своевременно определяет отработку объема по цене закрытия бара тем самым обеспечивая практически 100% точность уровня.
Важно отметить, что в силу особенностей облачного языка PINE индикатор кое что потерял, а кое что приобрел. Для более удобной разметки уровней, просто расставите горизонтальные ценовые уровни соответственно показаниям индикатора.
English
The X-lines indicator has been long time known by users of the Metatrader 4 & 5 trading platform. It shows interesting market prices (support and resistance levels). The indicator works without delay and as soon as the bar is closed at the interesting price, immediately after that the symbol "X" will appear above bar and the level will be drawn to the next important value . The levels (prices) that the indicator showing are truly important for the market process (according to them, a large volume of transactions is processed or was working out in the past). Accordingly, such prices in the future can be the goal of the trading process and can act as support and resistance.
The adjustment of the indicator is extremely simple, it is possible to change the value of only one parameter: Levels Power, which default value is 9. The higher the value, the weaker the levels, the indicator (correspondingly, the levels becomes larger). In the case of low figures, the indicator shows stronger and more important prices (correspondingly, the levels are getting smaller). The work of the indicator is provided by the author's algorithm. The indicator does not build levels at the tops of prices or on edge bars, it automatically and in a timely manner determines the amount of work to be done at the closing price of the bar, thereby providing a nearly 100% level accuracy.
It is important to note that, due to the peculiarities of the cloud-based PINE language, the indicator has lost something, and has acquired something. For a more convenient level markup, simply place the horizontal price levels according to the indicator readings.
Sweetspot Gold RN - by JustUncleLThis is an alternate version of "Sweetspot Gold R4" that does not use sublevels. Removing the sublevels allows more efficient use of the plots (TV script has a limit of 64 plot calls).
This works well for all currency pairs I've tested, most commodities, and most stocks.
The indicator plots the so called "round price levels" or "00" levels. For example, 1.4000, 1.4400, 1.4500.
It automatically calculates the levels for each chart time frame. Optionally you can manually select main level size (in pips)
Use this indicator as a guidance to a better mapping of Support/Resistance levels on the chart. Next time you draw Support/Resistance lines, if they coincide with round price levels, you have got a excellent S/R level to work with!
Sweetspot Gold R4-22 - by JustUncleLThis upgrade I have attempted to improve the Automatic levels calculation and better automatic levels selections. It should now work better with exotic currencies, indices, commodities, and stocks.
The indicator plots the so called "round price levels" or "00" levels, which end on 00 and 50: for example, 1.4000, 1.4400, 1.4450. It automatically calculates the levels for based on your charts time frame. Alternatively you can manually select main level size (in pips) and/or the number of sub-levels (0, 1, 2, 3, 9). Generally speaking, the program tries to keep to 3 Digit "00" rounding for currencies and non-stocks, and 2 Digit "00" rounding for Stocks.
Use this indicator as a guidance to a better mapping of Support/Resistance levels on the chart. Next time you draw Support/Resistance lines, if they coincide with round price levels, especially "00", you have got a excellent S/R level to work with!
[RS]Fractal Auto Gann LinesEXPERIMENTAL:
GANN lines projection based on zigzag tops/bottoms, use at your own risk.
[RS]Average Advance and Decline Lines V0Method to draw linear regression lines from average price advance&decline range