Classical Supports & ResistancesThis indicator shows classical resistance and support levels which retraced the chart lately. Notice that the condensed lines laying close together are showing an area of support and/or resistance.
But after all, it was a tedious work creating this indicator because like I've already said, pine script is a very odd and weak language which does not have many ordinary features like useful loops, simple line drawing and even reasonable variable casting!
So I was forced to use its built-in pivothigh() and pivotlow() functions without any handy documentation. I assume that even these functions don't work as expected, and because of that, I embedded "Sensitivity" and "Lookback Time" options in the indicator as a workaround.
Feel free to use it and send me your comments/solutions.
Pivot
Pivot LinesThis indicator provides possible short, medium, and long-term support and resistance levels based on recent highs and lows. The furthest the level is, the thicker its line is, making it easy to spot stronger levels where 2 lines overlap. It can be configured to use open/close values instead of high/low for tighter levels.
Default settings:
- Short Period: 20
- Medium Period: 50
- Long Period: 100
This script also provides alerts for when the price crosses over/under a given level or pulls back.
Note: It sometimes displays supports above the price and resistances below it, I still have to figure out why (and fix it if possible), but it's still useful.
Fractals | Swing Points | Highs & Lows | Custom PeriodsSimple script which marks out key swing highs & lows.
One of the only indicators I have on the chart most days
- perfect for naked charting
- quickly helps you to visually identify key areas of interest
An extension of Bill Williams fractals
- aka short term swing points
Allows you to filter for only the most prominent swing points
- you can even overlay multiple swingpoint filters in different colours (as per example chart)
The number ( Fractal Periods) is simply:
- the number of less prominent points either side of your swing high/low
- example shown on the chart
Otherwise make a fist
- look at your 5 knuckles
- swing high is your middle knuckle
- 2 lower points either side
Bill Williams Original Fractal:
Fractal Periods = 2
Your Fractal Period for Filtering:
3, 4, 5, 30, 365, etc
Allows you to find swing points down to:
Fractal Periods = 1
Simple, easy, shared to enjoy =)
CPR by GuruprasadMeduriThis script will allow to add CPR with Standard Pivot ad 9 levels of support and 9 levels of resistance lines. It has CPR, 3 levels of Day-wise pivots, 3 levels of Weekly pivots and 3 Levels of Monthly Pivots. All the Support and resistance levels can be enabled / disabled from settings. It will allow to select multiple combinations of support and resistance levels across 3 levels at any of the 3 time-frames individually and combined.
These number of combinations will allow user to visualize the charts with desired pivot support & resistance levels on all or any of the 3 time frames.
For Ease of access, listed few points on how the script works..
- CPR and day-wise level 1 & 2 (S1, R1, S2 R2) enabled by default and can be changed from settings
- Day-wise Level 3 (S3 & L3) can be enabled from settings
- Weekly 3 levels and Monthly 3 levels can be enabled from settings
- CPR & pivot levels colored in blue lines
- All support levels colored in Green
- All resistance levels Colored in Red
- Day-wise pivot, support & resistance are straight lines
- Weekly pivot, support & resistance are cross (+) lines
- Weekly pivot, support & resistance are circle (o) lines
- Any combinations can be selected from stettings-> Inputs & style
// - This is an iterative development. Will add more features due course of time. Suggestions are always welcomed!!
Camarilla Pivot Points V2 Strategy Camarilla pivot point formula is the refined form of existing classic pivot point formula.
The Camarilla method was developed by Nick Stott who was a very successful bond trader.
What makes it better is the use of Fibonacci numbers in calculation of levels.
Camarilla equations are used to calculate intraday support and resistance levels using
the previous days volatility spread. Camarilla equations take previous day’s high, low and
close as input and generates 8 levels of intraday support and resistance based on pivot points.
There are 4 levels above pivot point and 4 levels below pivot points. The most important levels
are L3 L4 and H3 H4. H3 and L3 are the levels to go against the trend with stop loss around H4 or L4 .
While L4 and H4 are considered as breakout levels when these levels are breached its time to
trade with the trend.
WARNING:
- For purpose educate only
- This script to change bars colors.
Zig Zag High LowZig Zag script that uses local minimums and maximums as pivot points. It can be used as a source for pattern recognition.
Future PivotNormaly Pivot is calculate from the last candle.
Future Pivot is calculate from the running candle.
The Future Pivot Indicator is usefull at the end of a period (11pm, Sundays, and end of the month)
Have Fun
Please do not Copy&Paste, use this Link
Have Fun
Fibonacci Pivot PointsI have included the main support and resistance pivot point levels for the Fibonacci Pivot Points. I changed the bar colors to reflect buy and sell points so if a bar is green then that means to buy it and if it is red then sell it
Let me know if you would like to see me do any other indicators!
Pivot Point SuperTrend [Backtest]Hello All,
This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.
You can visit following link to see "Pivot Point SuperTrend" . by using this backtesting tool, you can test&find better options
There is option "Use Center Line to Close Entry for 50%" . by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)
Enjoy!
Chonky Pivot Pointsstandard pivot points re-written with circle plots.
Only shows the current pivot points. P, R1/R2, S1/S2
I don't use R3, R4 etc. so I didnt include them but feel free to modify the code.
You can change the resolution in indicator settings, default is set to Monthly.
Also to change the size of the circles all at once, you can input a number 1-4 in the inputs section.
Pivot Points & Midlines with color selectorAdapted from Pinescript Manual's "Pivot Points Standard". Added extra levels and midlines as well as user inputs for color and a "show labels" on/off switch.
So this will show the Pivot level, the resulting levels R1,R2,R3,S1,S2,S3 and the midpoint lines between these.
User can choose the Higher timeframe period from which to calculate these pivot levels, as per the original script.
I like to add two of these to a chart, one for daily and one for weekly pivot levels.
If you don't need any particular level, just comment out the appropriate lines (one from each of the second last and third last blocks in the script).
Renko Chart Alerts with PivotsAdd alerts to renko charts to be notified when:
new brick
brick up
brick down
direction change
direction change up
direction change down
Also shows pivots based on brick reversals. Alerts also available for:
pivot breakout
pivot high breakout
pivot low breakout
You can hide the plots for pivot high/low and breakouts in the style tab of the settings for the indicator.
To add the alerts:
add the indicator to your renko chart
click add alert
click the condition dropdown and choose Renko Alerts
you should see all the alerts there and you can add any one or more to your chart
RVC-Daily_PivotsPurpose: Fibonacci Pivot levels + Gann levels calculation and display on Chart automatically.
Mainly expected to use these for intraday trading on NIFTY and BankNifty
Display R1/R2/R3 - Pivot - S1/S2/S3 levels
Also display GANN Levels of
720- / 540- / 360- / 270-/ 180- / 90- / 45-
45+ / 90+ / 180+ / 270+ / 360+ /540+ /720 +
Same pivot levels are useful for any equity - support and resistance levels.
Levels indicated are only for reference and not meant for trading purpose.
PivotPoints with Momentum confirmation by PeterOWho wouldn't like to be able to tell when the market actually reverses instead of just faking it? Every trader who has tried pivothigh/pivotlow functions for that, surely bumped into so many meaningless reversal signals, that probably got discouraged with this concept entirely.
Yet, pivot points are very important. Only they need to be confirmed at least a little bit (you'll never know for sure, you understand that right?)
This script enhances pivot-points mechanism with by confirming potential pivot point with actual reversal in momentum. If momentum reversal is also noticed in synch with the pivothigh/pivotlow, then you've got yourself a reversal - marked on the chart with red or green triangle. You can visually compare where those triangles are marked as compared to those small black ones, meaning the standard pivothigh(high,1,1)/pivotlow(low,1,1). Check yourself how many times this method would save us from pre-mature entry. On average 2/3 pivot points are filtered out.
This is a non-delayed confirmation - there is no waiting for another candle to close, just looking to another indicator for a match.Trader needs to take a decision immediately because if he hesitates, he will be late for sure. Also sometimes this script produces signal even before a full pivot-point is formed, as pin-bar analysis is also included here.
What this script IS NOT:
- a complete trading map. Don't take trade on each green or red triangle. You still need to do your homework on market direction, trend, phase, wave, etc. But at least you have the "trigger" part done.
- these pivot points are still not "guaranteed". You never know the future even as close as the very next candle, so the market can continue its trend right after it produces reversal signal. The aim of this indicator was only to filter out those potential pivot points, which didn't really look like reversals.
If you think this method could be improved somehow or would like to share your thoughts or approach, don't hesitate to reach out to me or write down in comments.
P.S. Credit goes to UCSGEARS for his Top&Bottom candle script. Amazing work. I used the momentum calculation from there.
MultiTimeFrame Fractals D W M [xdecow]This indicator shows fractals in different timeframes. With the possibility of coloring the bars with any combination of current, daily, weekly and monthly timeframes.
The return points are calculated as follows:
high > last 3 highs and close above highest low
low < last 3 lows and closes below lowest high
The direction of higher timeframes fractals tend to be more durable and reliable. This indicator helps to find the fractal alignment of different timeframes, so that you can look for trade opportunities in the same direction as the higher timeframes and improve your chances.
BEST Pivots CloudHello traders,
This script is an adaption of an FXCM indicator called Pivots Cloud
Takes in input two timeframes, build the pivots based on them and fill the space between those pivots
Should be non-repainting
Best
Dave
[fikira] Divergences (RSI)This script can be used with candlesticks, accompanied with " RSI + Divergences"
The calculation is different than my "Divergences (Pivots)"
Thank you!
Extrapolated Pivot Connector - Lets Make Support And ResistancesIntroduction
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 !