Pivots MTF [LucF]Pivots detected at higher timeframes are more significant because more market activity—or work—is required to produce them. This indicator displays pivots calculated on the higher timeframe of your choice.
Features
► Timeframe selection
— The higher timeframe (HTF) can be selected in 3 different ways:
• By steps (15 min., 60 min., 4H, 1D, 3D, 1W, 1M, 1Y). This setting is the default.
• As a multiple of the current chart's resolution, which can be fractional, so 3.5 will work.
• Fixed.
— The HTF used can be displayed near the last bar (default).
— Note that using the HTF is not mandatory. If it is disabled, the indicator will calculate on the chart's resolution.
— Non-repainting or repainting mode can be selected. This has no impact on the display of historical bars, but when no repainting is selected, pivot detection in the realtime bar will be delayed by one chart bar (not one bar at the HTF).
► Pivots
— Three color schemes are provided: green/red, aqua/pink and coral/violet (the default).
— Both the thickness and brightness of lines can be controlled separately for the hi and lo pivots.
— The visibility of the last hi/lo pivots can be enhanced.
— Prices can be displayed on pivot lines and the text's size and color can be adjusted.
— The number of bars required for the left/right pivot legs can be controlled (the default is 4).
— The source can be selected individually for hi and lo pivots (the default is hlc3 and low .
— The mean of the hi/lo pivot values of the last few thousand chart bars can be displayed. Pivots having lasted longer during the mean's period will weigh more in the calculation. The mean can be displayed in running mode and/or only showing its last level as a long horizontal line. I don't find it very useful; maybe others will.
► Markers and Alerts
— Markers can be configured on breaches of either the last hi/lo pivot levels, or the hi/lo mean. Crossovers and crossunders are controlled separately.
— Alerts can be configured using any of the marker combinations. As is usual for my indicators, only one alert is used. It will trigger on the markers that are active when you create your alert. Once your markers are set up the way you want, create your alert from the chart/timeframe you want the alert to run on, and be sure to use the “Once Per Bar Close” triggering condition. Use an alert message that will remind you of the combination of markers used when creating the alert. If you use multiple markers to trigger one alert, then having the indicator show those markers will be important to help you figure out which marker triggered the alert when it fired.
A quick look at the pattern of these markers will hopefully convince you that using them as entry/exit signals would be perilous, as they are prone to whipsaw. I have included them because some traders may use the markers as reminders.
Using Pivots
These pivots can be used in a few different ways:
— When using the high / low sources they will show extreme levels, breaches of which should be more significant.
— Another way to use them is with hlc3 (the average of the high , low and close ) for hi pivots and low for the lo pivots. This accounts for my personal mythology to the effect that drops typically reach previous lows more easily than rallies make newer highs.
— Using low for hi pivots and high for lo pivots (so backward) can be a useful way to set stops or to detect weakness in movements.
You will usually be better served by pivots if you consider them as denoting regions rather than precise levels. The flexibility in the display options of this indicator will help you adapt it to the way you use your pivots. To indicate areas rather than levels, for example, try using a brightness of 1 with a line thickness of 30. The cloud effect generated this way will show areas better than fine lines.
Realize that these pivot lines are positioned in the past, and so they are drawn after the fact because a given number of bars need to elapse before calculations determine a pivot has occurred. You will thus never see a pivot top, for example, identified on the realtime bar. To detect a pivot, it takes a number of bars corresponding to the dilation of the higher timeframe in the current one, multiplied by the number of bars you use for your pivots' right leg. Also note that the Pine native function used to detect pivots in this indicator considers a summit to be a top when the number of bars in each leg are lower or equal to that top. Bars in legs do not need to be progressively lower on each side of the pivot for a pivot to be detected.
If you program in Pine
— See the Pinecoders MTF Selection Framework for an explanation of the functions used in this script to provide the selection mechanism for the higher timeframe.
— This code uses the Pine Script Coding Conventions .
Thanks
— To the Pine coders asking questions in the Pine Script chat on TV ; your questions got me to write this indicator.
Pivot Points
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.
IntraDay Pivot Lines, 30min IBThe script draws critical lines for IntraDay traders:
1) High/Low of the last Month - in Red/Green thick line
2) High/Low of the last Week - in Red/Green
3) High/Low of the first 30minute of the current trading day - in Yellow
4) High/Low of the first 5min of the trading day - in Grey
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.
Created by nitin nraodeo cpr pivot - based on pivot boss vikramCreated by nitin nraodeo cpr pivot - based on pivot boss vikram
Breakout Strategy #1Breakout above previous pivot points trigger a long. Close below pivot lows trigger the exit.
Most effective during trends.
Golden Pivot1. Golden Pivot indicator combines Central Pivot Range and Camarilla Pivots.
2. Pivot calculations are based on Secret of Pivot Boss book by Frank Ochoa.
3. One can also view tomorrow's pivots by today EOD.
[fikira] Divergences (RSI)This script can be used with candlesticks, accompanied with " RSI + Divergences"
The calculation is different than my "Divergences (Pivots)"
Thank you!
[fikira] Harmonic Patterns 2This is "Harmonic Patterns", part 2 Open Source
(in 2 parts, otherwise many lines are gone because the script is too large):
- Crab
- Bat (+ Alt)
- Butterfly
- Shark
A "Pattern" is created by checking 5 consecutive ( pivot ) points, starting with X, A, B, C, and ending with point D.
At point D all 5 points are compared, calculated and verified.
When confirmed, a "Label" will be plotted at point D, together with the "Entry", "Take Profit" and "Stop Loss" price.
The "Entry", "Take Profit" and "Stop Loss" lines will be plotted as well at point D.
Lastly, a "Drawing" automatically will be displayed which makes the "Pattern" visible.
Please do mind, the "Drawing" is calculated differently, the "Drawing" sometimes can be displayed incorrectly
when prices are too close to each other (for example low Satoshi price changes).
THE "ENTRY", "TAKE PROFIT", "STOP LOSS" PRICES AND LINES ARE NOT AFFECTED AT ALL BY THIS, THEY WILL SHOW CORRECTLY!
- 1 "TP point" can be changed ("TP Level 0.618")
- "Labels", "Lines", "Drawings" can be disabled/enabled
- "Labels" can be made smaller or bigger ("Size Label")
- "Labels" can be placed further or closer to the bar ("Distance TP Label" > higher = closer, lower = further)
- "Lines" can be made thicker or thinner ("TP Linewidth")
- "Drawings" can be made thicker or thinner ("Drawings Linewidth")
- "Drawings" are created by comparing with 100 bars back in history (default), should it be (very rarely) a triangle is displayed flat on the left side,
possibly the first point(s) is/are further than 100 bars ago, in this case increase "Period Drawings" above 100.
- Animal symbols can be enabled/disabled
- When several "Patterns" appear on the chart, the oldest ones won't be displayed anymore, first the "Drawings", then the "Lines"
The last (present) ones will always be displayed in total without a problem!
- If you want to see "Patterns" with less correct measurement, change "Error Marge" 0.9 - 1" and "Error Marge" 1 - 1.1"), this gives max. about 10% extra margin
- Added more settings regarding "Drawing Lines"
Thank you very much!
[fikira] Harmonic Patterns 1When using "Harmonic Patterns", always look at the bigger picture, please do not depend solely on the "Pattern".
Use other indicators,... to confirm what you think is going on!
That said, it is quite useful!
Beside my "The Gartley", now, OPEN SOURCE, we have "Harmonic Patterns" in 2 parts (otherwise many lines are gone because the script is too large)
- ABCD
- Gartley
- Cypher
- 5.0
A "Pattern" is created by checking 5 consecutive ( pivot ) points, starting with X, A, B, C, and ending with point D.
At point D all 5 points are compared, calculated and verified.
When confirmed, a "Label" will be plotted at point D, together with the "Entry", "Take Profit" and "Stop Loss" price.
The "Entry", "Take Profit" and "Stop Loss" lines will be plotted as well at point D.
Lastly, a "Drawing" automatically will be displayed which makes the "Pattern" visible.
Please do mind, the "Drawing" is calculated differently, the "Drawing" sometimes can be displayed incorrectly
when prices are too close to each other (for example low Satoshi price changes).
THE "ENTRY", "TAKE PROFIT", "STOP LOSS" PRICES AND LINES ARE NOT AFFECTED AT ALL BY THIS, THEY WILL SHOW CORRECTLY!
- 1 "TP point" can be changed ("TP Level 0.618")
- "Labels", "Lines", "Drawings" can be disabled/enabled
- "Labels" can be made smaller or bigger ("Size Label")
- "Labels" can be placed further or closer to the bar ("Distance TP Label" > higher = closer, lower = further)
- "Lines" can be made thicker or thinner ("TP Linewidth")
- "Drawings" can be made thicker or thinner ("Drawings Linewidth")
- "Drawings" are created by comparing with 100 bars back in history (default), should it be (very rarely) a triangle is displayed flat on the left side,
possibly the first point(s) is/are further than 100 bars ago, in this case increase "Period Drawings" above 100.
- When several "Patterns" appear on the chart, the oldest ones won't be displayed anymore, first the "Drawings", then the "Lines"
The last (present) ones will always be displayed in total without a problem!
- If you want to see "Patterns" with less correct measurement, change "Error Marge" 0.9 - 1" and "Error Marge" 1 - 1.1"), this gives max. about 10% extra margin
- Added more settings regarding "Drawing Lines"
Thank you very much!
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 !
camarilla - Daily,Weekly,Monthly by Ganeshcamarilla - Daily,Weekly,Monthly levels in one chart for support and resitance
(JS) Ultimate RSISo my goal here was to combine all of my RSI ideas into a single indicator in order to make kind of a "Swiss Army Knife" version of the Relative Strength Index ...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So, let's begin with the first RSI indicator I made, which is the RSIDVW (Divergence/Volume Weighted);
To rephrase my original post, the "divergence/volume weighted" portion is meant to expand upon the current RSI format by adding more variables into the equation.
The standard RSI is based off one value that you select (open, close, OHLC4, HLC3, etc.) while this version takes three variables into account.
The default setting is to have RSI normal without anything added to it (Divergence Weight = 0)
1st - it takes the standard variable that RSI normally uses.
2nd - it factors RSI divergence by taking the RSI change % and price change % to form a ratio. Using this ratio, I duplicated the RSI formula and created a divergence RS to be factored in with the standard price RS .
3rd - it takes Relative Volume and amplifies/weakens the move based upon volume confirmation. (So if Relative Volume for a price bar is 1.0, the RSI plot would be the same as it normally would)
So to explain the parameters
- Relative Volume Length: This uses the RV length you specify to determine spikes in volume (or lack of volume ), which then is added into the formula to influence the strength of the RSI move
- RV x Divergence: This is how I calculated the original formula, but you can leave this unchecked to turn Relative Volume off, or apply elsewhere.
- RV x RS: There's two sides, Divergence RS and Standard RS - these check marks allow you to select which part you prefer to be multiplied by Relative Volume .
Checking neither turns off Relative Volume , while checking both amplifies its effects by placing it on both sides of the equation.
-Divergence Weight: This controls how much the DVW portion of the formula influences the RSI plot. As I referred to earlier, default is 0 making RSI normal. The Scale is 0-2, so 1.0 would be the same as 50%.
When I do have DVW on, I generally set it to 0.5
-SMA Divergence: To smooth, or not to smooth, that is the question. UJsing an SMA here is much smoother in my opinon, but leaving it unchecked runs it through an RMA the same way standard RSI is calculated.
-Show Fractal Channel: This allows you to see the whole fractal channel around the RSI (This portion of the code, compliments of the original Ricardo Santos fractal script)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The next portion of the script is adding a "Slow RSI"...
This is rather simple really, it allows you to add a second RSI plot so that you can watch for crossovers between fast and slow lines.
-Slow RSI: This turns on the second RSI Plot.
-Slow RSI Length: This determines the length of the second RSI Plot.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pivot Point RSI was something a friend of mine requested I make which turned out pretty cool, I thought... It is also available in this indicator.
-Pivot Points: Selecting this enables the rest of the pivot point related parts of the script
If Pivot Points isn't selected, none of the following things will work
-Plot Pivot: Plots the pivot point .
-Plot S1/R1: Plots S1/R1.
-Plot S2/R2: Plots S2/R2.
-Plot S3/R3: Plots S3/R3.
-Plot S4/R4: Plots S4/R4.
-Plot S5/R5: Plots S5/R5.
-Plot Halfway Points: Plots a line between each pivot .
-Show Pivot Labels: Shows the proper label for each pivot .
When using intraday charts, from a 15 minute interval or less the pivots are calculated based on a single days worth of price action, above that the distance expands.
Here are the current resolutions Pivot Points will work with:
Minutes - 1 , 2, 3, 5, 10, 13, 15, 20, 30, 39, 78, 130, 195
Hours - 1, 2, 3, 4, 5, 6
Daily
Weekly
Currently not available on seconds or monthly
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Background Colors
Background Colors: I have six color schemes I created for this which can be toggled here (they can be edited).
Gray Background for Dark Mode: Having this on looks much better when using dark mode on your charts.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now finally the last portion, Fibonacci Levels
-Fibonacci Levels: This is off, by default, which then uses the standard levels on RSI (30-50-70). When turned on, it removes these and marks fib levels from 0.146 through 0.886.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So the quick rundown:
Ultimate RSI contains "divergence/volume weighted" modifications, a slow RSI plot, pivot points , and Fibonacci levels all while auto-plotting divergence and having the trend illustrated in the background colors.
RSI has always been my "go to" indicator, so I hope you all enjoy this as much as I do!
Pivot Points (Scalptrading)Classic Pivotpoints useful for Scalptrading.
Input Timeframes: Hourly, 4-Hourly, Daily
Month breaksA very simple indicator that marks the start of every month with a vertical line. But default the vertical line is gray with 80% transparency but you can customize the style/color/transparency as you like.
I hate crowded charts, bloated with all kind of crazy shapes and I created this indicator for two main reasons:
1. beginning/end of the month is an excellent pivot-point
2. to be simple, easy to customize and non-intrusive with the underlying chart
See the attached EURUSD daily chart, at the beginning of every month the price pivoted up and down, can you figure out what happens at the end of Dec 2019?
Trade long and prosper!!!
Triangle finderBased on the diags indicator to find triangle patterns on the chart.
Increase the "Line Length" to find more patterns
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: