alexgrover

Extrapolated Pivot Connector - Lets Make Support And Resistances

Introduction

The support and resistance methodology remain the most used one in technical analysis , this is mainly due to its simplicity, and unlike lots of techniques used in technical analysis support and resistances have a certain logic, price can sometimes appear moving into a channel, support and resistances allow the trader to estimate such channel and project it into the future in order to spot points where price might reverse direction.

In this script a simple linear support and resistance indicator is proposed, the indicator is made by connecting past pivot high's/low's to more recent ones and extrapolating the resulting connection. The indicator is also able to make support and resistances by using other indicators as input.

Indicator Settings

The indicator include various settings, the first one being the length setting who determine the sensitivity of the pivot high/low detection, low values of length will detect the pivot high/low of noisy variations, while higher values will detect the pivot high/low of longer term variations.


The figure above use length = 5.

The A-High parameter determine the position of the pivot high to be used as first point of the resistance line, higher values will use oldest pivot high's as first point. The B-High parameter determine the last pivot high. A-Low and B-Low work the same way but affect the support line, a label is drawn on the chart in order to help you determine the position of A/B-High/Low.

Using Other Indicators Output As Input

The "Use Custom Source" option allow you to apply the indicator to other indicators, for example we can use a moving average of period 50 as input


Or the rsi :


Let me help you set the proposed indicator easily to indicators appearing on a separate window, for example the momentum oscillator, add the momentum oscillator to the chart, to do so click on indicator and search "momentum", click on the first result, once on the chart put your mouse pointer on the indicator title, you'll see appearing the hide, settings and delete option, at the right of delete you should see three dots which represent the "more" option, click on it and select "Add indicator on Mom" and select the extrapolated pivot indicator, you can do that by searching it, altho it might be easier to do it by adding the indicator to favorites first, you then only need to select it from your favorites.

You might see a mess on the indicator window, thats because the extrapolated pivot is still using high and low as input, go to the settings of the extrapolated pivot indicator and check "Use Custom Source", it should appear properly now.


Tips And Tricks When Using Support And Resistances


Linear support and resistances assume an approximately linear trend, if you see non linear growth in the price evolution you can use a logarithmic scale in order to have a more linear evolution. To do so right click on the the chart scale and select "Logarithmic" or use the following key shortcut "alt + l".

When applying the indicator to an oscillator centered around zero make sure to adjust the settings of the oscillator such that the peak magnitude of the oscillator is relatively constant over time.


Here a roc of period 9 has non constant peak amplitude, you can see that by looking at the position of the pivots (circles), increasing the period of the roc help capture more significant pivots high's/low's


Conclusion

In this post an indicator aiming to draw support and resistances is presented, the fact that it can be applied to any other indicator is a relatively nice option, and i hope you might make use of this feature.

The code make heavy use of the new features that where integrated on the v4 of pine, such features are really focused on making figures and labels, things i don't really work with, but it is nice to step out my short codes habits, and i don't exclude working with figures in pine in the future.

Thanks for reading !



Jan 03
Catatan Pelepasan: Removed unnecessary fixnan's
Jan 25
Catatan Pelepasan: Removed connectors plot
Keluarkan daripada Skrip Pilihan Tambah kepada Skrip Pilihan
Show your support by donating

BTC : 1J5BQYnx5Wb2akoSfc3ykeShtvmXGsgP6W

ETH : 0xc418eE4039D16EDf44C52dFa292EAbdF117954B3

Komen

"something of my emotions "

made 15000 loss as on 01.02.2019 ,started trading last month, i am a cost management student , father admitted in hospital two days back so me in need of money , even today made 2000 loss ,, from last month i am making study of market , today i made fight from my will power , lastly i found this ,, its like my life savior,,,what can i say else ,,,, you made my life rejuvenated.....

thanks
indranil
+8 Balas
Jbarre47 cmaindranilbasu05
@cmaindranilbasu05, im glad you turned it around and started winning..is it easy to use?
Balas
A true work of art Alex, and it has absolute validity as prior to importing the script, I had found support and resistance using Fibonacci Retracement finding my 0.5 support and 0.618 resistance. As soon as your script became visible it cross-correlate right on my support level depicted in a dashed green, but also my resistance.
+3 Balas
alexgrover neincoronas
@neincoronas, Glad to hear that, thx for your comment :)
+1 Balas
I freakin love you with all my heart. Thank you for sharing this. I will cherish this for a long time to come.
+3 Balas
Excellent. Thank you very much... and Happy New Year! :))
+3 Balas
You're an absolute baller. Thanks for sharing.
+3 Balas
Thanks a lot for sharing this indicator.
+1 Balas
great one
+1 Balas
Laman Utama Penyaring Saham Penyaring Forex Penyaring Kripto Kalendar Ekonomi Bagaimana ia berfungsi Ciri-ciri Carta Harga Rujuk rakan Peraturan Dalaman Pusat Bantuan Laman web dan Penyelesaian Broker Widget Penyelesaian Pencartaan Perpustakaan Pencartaan yang Ringan Blog & Berita Twitter
Profil Tetapan Profil Akaun dan Pengebilan Rujuk rakan Tiket Sokongan Saya Pusat Bantuan Idea yang diterbitkan Pengikut Mengikut Mesej Peribadi Sembang Daftar Keluar