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!
Pivot
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 !
Pivot trend indicatorThis is a LAGGING indicator which can provide a good indication of trend. It require a certain (configurable) number of candles to have closed before it can determine whether a pivot has formed.
It provides a 20 period SMA for the timeframe of your choice which is color coded to show the trend according to confirmed pivots.
Anticipated usage:
Long / Short bias is determined by pivot trend
Trader seeks entries according to their strategy
Black consolidation areas may trigger a re-evaluation of the trade and can serve as good profit taking areas
The SMA colors:
Green -> Higher highs & Higher lows
Red -> Lower highs & Lowers lows
Black -> No clear trend from the pivots
Why the 20 SMA?
Feel free to adjust it for your purposes. I personally find that using a higher time frame 20 SMA is a better indication of trend than longer period MAs on shorter time frames. This can be seen from comparing the 20 daily SMA and 200 hourly SMA.
Pivot adjustment
The pivots use the selected time frame (not) the MA trend time frame. You can specify the left and right candles required to confirm a pivot
Pivot of Pivot Reversal Strategy [QuantNomad]Continue looking for more signifcant pivot points.
This script is based on my "Significant Pivot Reversal Strategy".
In this strategy I use concept of pivot of pivot points.
So for PoP I require that pivot highs point should have 2 lower pivot highs points around them and pivot low 2 higher pivot lows points.
Transparent lines represent usual pivot levels ints.
Not transparent lines represent pivot of pivot levels.
Link to original script:
Pocket Pivot IndicatorFrom Gil Morales and Chris Kacher (O'Neil's disciples). Designed to find buy points in bases and continuation buy points in an uptrend. The volume today must be greater then the maximum down volume of the past 10 trading days. Recommended to use in conjunction with the 10 day and/or 50 day moving average.
Typical use :
Scan for pocket pivots.
Is stock strong fundamentally? i.e- leader in it's sector
Has the stock developed a base ?(see O'Neil's work for base discussion)
Is the stock breaking through or bouncing off the 10 period sma? (can use 50 sma too)
If so.. a possible buy.
Cheers
David
Significant PP - Swing Failure / Stop Run Alerts [QN]Tried to create a script for Swing Failure / Stop Run patterns. It is based on my QuantNomad - "Significant Pivot Reversal" Indicator.
It's quite tricky to code these kinds of patterns, so it's really not ideal. I alert when a candle cross pivot level but close below (above for bottom) it and previous close was below (above) it as well.
You can setup params for pivot points and also by how much it should cross pivot level with "SF ATR Mult".
I have in mind a few other things I'd like to test:
* Different types of pivot points
* Few recent pivot levels at once
* Pivots from higher timeframe
* Different types of "touching" levels
* etc.
Ideally, I want to create a strategy from it, but I'm far from it for now.
Do you have any ideas on how to make it better?
Original Significant Pivot Reversal Indicator:
NYSE Session for 24/7 marketsThis script is used for analyzing the correlation between 24/7 markets with regards to the price action during NYSE session. Defaults to showing daily session open/high/low but there is the option to show the weekly session data.
Pivot Points HIgh LowRemake of the integrated Pivot Points indicator
With higher resolution you should lower the indicator values to get a good result
Adaptive Pivot (HLC3)SUMMARY:
Standard Pivot (HLC3) with ATR leeway added to make it adaptive to market volatility.
DESCRIPTION:
Adaptive Pivot is an indicator utilizing the simplicity of HLC3 Pivots as a turning point (and sometimes a trend indicator) while addressing it's fixed and inflexible nature.
Because the indicator is just a single line in the chart, the price may go near it but never touch it. Or it can go pass through it and never retest it again. In an attempt to lessen these from occurring, we can combine pivots with average true range (ATR). This is the specific formula I applied in this indicator:
>Upper Pivot = HLC3 + ATR
>Lower Pivot = HLC3 - ATR
This creates a kind of a range or cloud around the Pivot, making it possibly a more accurate indicator for market turning points.
ADJUSTABLE PARAMETERS:
The usual ATR parameters are included in this indicator:
>ATR_Length = input(14, title="ATR Length", minval=1)
>ATR_Smoothing = input(title="ATR Smoothing", defval="RMA", options="RMA", "SMA", "EMA", "WMA")
Added to the usual ones is this:
>ATR_Multiplier = input(1, title="ATR Multiplier", minval=0.1)
which modifies the extent of the ATR (similar to Chandelier Exit) as it is added/subtracted from the pivot values.
Pivot’s timeframe is also adjustable:
>Pivot_Timeframe = input("3M", title='Pivot Resolution')
Note: I did not lock the type to input.resolution to allow for more possible timeframes.
OTHER PARAMETERS
Indicator color will change to green when the open is above the HLC3 Pivot and change to red when the reverse is true.
Simple AverageSimple average, with builtin plot of a true Weekly, Monthly, Quarterly and Yearly average
(A variation on Pivots, with only the P line (HLC/3))
QuantNomad - Significant Pivot Reversal Strategy AlertsAlerts for "Significant Pivot Reversal Strategy":
As one of the ways to filter out insignificant levels I decided to check that pivot point is not above/below neighbors, but check that it's above/below at least by a certain amount.
I use ATR, so in params, you can set length of ATR and also ATR multiplier. The new level will be calculated only if PP will be above/below neighbors by atr * atr_mult.
It seems this approach might help in some cases.