MomentumX Pro, RSI, Fibonacci, DivergencesThis Pine Script code provides a technical analysis indicator on the TradingView platform, incorporating features like divergences, support/resistance levels, pivot points, RSI values, and volume-based doji candles. The key functionalities include:
RSI Divergences:
Bullish Divergence: When the price forms lower lows but RSI forms higher lows, it indicates potential upward movement, marked with arrows on the chart.
Bearish Divergence: When the price forms higher highs but RSI forms lower highs, it signals potential downward movement, also marked on the chart.
Pivot Points:
Detects and marks significant high (pivot high) and low (pivot low) levels that the price has reached.
Automatic Fibonacci Levels:
Automatically plots Fibonacci retracement levels based on the highest and lowest points in a given period.
RSI Values and Labels:
Generates buy/sell signals when RSI values exceed 80 or drop below 20.
Displays RSI levels as labels on the price chart.
Doji Candles and Volume Detection:
Highlights high-volume doji candles based on body size and volume thresholds.
Directional Movement and Alerts:
Triggers alerts for upward or downward price movement based on directional signals.
** Türkçe
Bu Pine Script kodu, TradingView platformunda uyumsuzluklar, destek/direnç seviyeleri, pivot noktaları, RSI değerleri ve hacimli doji mumlar gibi teknik analiz araçlarını kullanan bir indikatör sağlar. Kodun başlıca işlevleri şunlardır:
RSI Uyumsuzlukları:
Boğa Uyumsuzluğu (Bullish Divergence): Fiyat daha düşük dipler yaparken RSI daha yüksek dipler yapıyorsa, olası bir yükseliş işareti olarak grafik üzerinde oklar ile işaretlenir.
Ayı Uyumsuzluğu (Bearish Divergence): Fiyat daha yüksek tepeler yaparken RSI daha düşük tepeler yapıyorsa, olası bir düşüş işareti olarak grafik üzerinde işaretlenir.
Pivot Noktaları:
Fiyatın geçtiği yüksek (pivot high) ve düşük (pivot low) noktalar belirlenir ve işaretlenir.
Otomatik Fibonacci Seviyeleri:
Belirli bir periyottaki en yüksek ve en düşük seviyelere dayalı olarak Fibonacci seviyeleri otomatik çizilir ve doldurulur.
RSI Değerleri ve Etiketleri:
RSI değerlerinin 80 üzeri veya 20 altına düştüğünde sinyal verilmesi gibi belirli eşiklerde al/sat sinyalleri üretilir.
RSI seviyeleri mum grafiği üzerine etiket olarak eklenir.
Doji Mumları ve Hacim Tespiti:
Gövde büyüklüğüne ve hacim seviyelerine dayalı olarak yüksek hacimli doji mumlar işaretlenir.
Hareket Yönü ve Alarm:
Fiyat hareketi yukarı veya aşağı bir yönde sinyal verdiğinde alarm tetiklenir.
Fib
Fibonacci Moving Average PlusFibonacci Moving Average Plus is a sophisticated technical indicator that employs the first 15 numbers of the Fibonacci sequence to create dynamic moving average channels. This indicator aims to capture both immediate and long-term price movements by calculating Exponential Moving Averages (EMAs) based on these Fibonacci values. By using Fibonacci-based moving averages for both high and low price points, the indicator generates a visual channel that reflects the ebb and flow of market trends, acting as potential zones of support and resistance. Additionally, the indicator provides midline, retracement, and extension levels rooted in Fibonacci ratios, which are frequently observed as key levels for reversals or trend continuation.
Ideology Behind Using Fibonacci Sequence-Based Moving Averages
The Fibonacci sequence, known for its mathematical harmony and prevalence in natural patterns, is widely utilized in technical analysis to identify potential turning points in markets. In this indicator, the first 15 Fibonacci numbers (5, 8, 13, 21, etc.) are used as the lookback periods for EMAs to capture different layers of market sentiment. These moving averages represent timeframes that are theoretically in alignment with the natural rhythms of market cycles, where key levels—often coinciding with Fibonacci numbers—can act as magnetic points for price.
The Fibonacci high and low channels aim to encapsulate price action, giving traders a sense of whether the market is trending, consolidating, or experiencing reversal pressure. These levels, grounded in both mathematics and market psychology, help traders spot areas where price might face resistance or find support.
Key Features
Fibonacci Moving Average High and Low: This indicator calculates the high and low EMAs based on Fibonacci sequence numbers (e.g., 5, 8, 13, etc.) for enhanced trend analysis.
Golden Pocket Retracement (GPR) and Extension (GPE) Bands: Displays common Fibonacci retracement and extension levels (0.618, 0.65 for retracement, and 1.618, 1.65 for extension).
Midline: Plots the average of the Fibonacci high and low to act as an additional reference level.
Stop-Loss Levels: Provides suggested stop-loss levels based on Fibonacci levels for both long and short positions.
Basic User Guide
Adjust Input Settings:
Input Timeframe: Set a specific timeframe for the Fibonacci moving average calculation, separate from the chart's primary timeframe.
Show Fibonacci MA High/Low: Toggle the visibility of the high and low Fibonacci moving averages.
Show Mid Line: Display a midline for added trend reference.
Show Golden Pocket Bands: Choose to display retracement or extension bands for potential support or resistance zones.
Show Stop-Loss Levels: Enable to visualize potential stop-loss levels for both long and short trades.
Interpretation:
Fibonacci MA High and Low: Use these lines to gauge the general trend. When the price is above both, it may indicate an uptrend; below both, a downtrend.
Golden Pocket Retracement: This zone (between 0.618 and 0.65) is often a key level for potential reversals or support/resistance.
Golden Pocket Extension: The 1.618 and 1.65 levels can indicate potential profit-taking or trend exhaustion points.
Stop-Loss Levels: The calculated stop-loss levels (long SL below and short SL above) can aid in risk management.
Customization:
You can customize the appearance and visibility of each component through the input settings to fit your specific strategy and visual preferences.
This indicator should be used alongside other technical analysis tools to provide a more comprehensive trading approach.
This Indicator would not exist without the original contributions and blessing from Sofien Kaabar
Linear and Logarithmic Fibonacci Levels and (Price&Time) FansIntroduction
The Fibonacci Retracement tool is a go-to for traders looking to spot potential support and resistance levels. By measuring the distance between swing highs and lows, you can apply Fibonacci ratios like 0.236, 0.382, and 0.618 to predict key market levels.
Traditionally, these levels are set by dividing this distance into equal parts—known as Linear Levels. A more refined approach, Logarithmic Price and Time Levels, divides the distance into proportionally equal segments. Plus, this indicator now includes Fibonacci fans, adding another layer of analysis by projecting potential price levels using trendlines based on Fibonacci ratios.
This tool makes it easier to identify both Linear and Logarithmic levels while also leveraging Fibonacci fans for a more complete market view.
Applications
Logarithmic Levels and Fibonacci fans are ideal for volatile markets. In crypto, they’re especially effective for BTCUSDT (check out the wick from January 23, 2024). They also help spot accumulation and distribution patterns in high-volume altcoins like FETUSDT . In traditional markets, they’re useful for tracking stocks like TSLA and NVDA with extreme price swings, as well as indices in inflation-affected markets like XU100 , or recession-hit currency pairs like JPYUSD .
How to Use
This indicator is intuitive and similar to TradingView’s Fibonacci Tool. Select your reference levels (Level 1 and Level 0), then tweak the settings to customize your analysis, including adding Fibonacci fans for extra insights.
Why It’s Different
Unlike TradingView’s tool, which forces you to switch to a logarithmic scale (messing with other indicators and trend lines), this indicator lets you view both Linear and Logarithmic levels—and Fibonacci fans on Price and Time Series—without changing your chart’s scale. The original Fibonacci Code was derived from zekicanozkanli, modified and upgraded to plot fib front and back fans as well. Due to TV Max Plot restrictions I need to publish just Front and Back and Front Fibs separately.
Multi Pivot (S/R) & Previous Period (OHLC)█ Multi Pivot (Support/Resistance) & Previous Period (Open/High/Low/Close)
The previous script was deleted because of a copyrighted word.
From JayRogers description.
█ Multi Pivot Selector
Allows you to set up to 3 distinct sets of pivots, each with their own resolution settings and the ability to select how many support|resistance levels are shown.
The maximum amount of S|R levels available varies with different pivot types, the options available are:
Traditional
Fibonacci
Woodie
Classic
Copyrighted word
Camarilla
Fibonacci Extended
█ Previous Period Levels
A simple but highly customisable display of previous higher time-frame OHLC values.
Customised resolution input which excludes time frames lower than 1 hour while extending the common higher reference inputs.
This script is based on JayRogers script, I only added some features so please check out his script.
I added the timeframe in the labels, in order to make it easier to differentiate when using multiple pivot set.
As well as making it possible to change the lines color of each pivot set separately.
Labels can now be displayed on each side (right, left and both) or just disabled.
The type of pivot can be shown on the right side.
Lines extension can be disabled and lines width value can be changed.
I also added another one of his script to display OHLC levels, I made similar changes.
Converted to Pine Script v5.
Previous Period Levels - X Alerts
Pivotal - Multi Pivot Selector (which was also deleted because of the copyrighted word)
FIBO ZONESThe "Fibonacci ZONES" indicator combines Fibonacci ratio-derived zones(channels), together with a Fibonacci pattern of the Previous period high/low.
Auto Fibonacci tools are powerful ways designed to simplify your technical analysis by automatically drawing Fibonacci retracement and extension levels on your chart. This indicator is built to enhance your trading experience with clearer market moves and informative insights.
You can easily spot your waves and patterns when the percentages are moving with you.
Key Features:
Automated Fibonacci Levels: Plots Fibonacci retracement and extension levels based on recent price movements.
Multi-Timeframe Support: This indicator is your versatile companion, offering multi-timeframe functionality. You can seamlessly track Fibonacci levels across different resolutions, providing a comprehensive view of the market.
Two Types of Fibs: Retracement and Timeframe extension Fibonacci levels. Use retracements to identify potential reversal points and extensions to anticipate price targets, giving you a well-rounded perspective on market movements.
Benefits:
Save Time: No more manual Fibonacci drawing; It does this for you in real-time.
Enhanced Analysis: Gain a deeper understanding of potential support, resistance, and price targets.
User-Friendly: Suitable for traders of all levels, this indicator simplifies complex technical analysis.
Breakouts from a Fibonacci Channel are also indicated by labels, indicating a potential reversal.
Each range extremity/area can also be used as support/resistance.
Higher Fibonacci EMAOverall image:
If the closing price is higher than the three Fibonacci EMAs (uptrend):
Thanks to @ZenAndTheArtOfTrading and his indicator "Higher Timeframe EMA", URL =
This is a trend-discriminating indicator that uses 3 EMAs.
The Williams Alligator is the underlying philosophy, and we have applied it to capture the larger trend.
It is set up for the current time frame + 2 higher time frames.
One of the upper time legs has a daily EMA length of 13 Fibonacci numbers.
The top-level time leg has a weekly EMA with a length of 5 Fibonacci.
If the current closing price of the ticker leg is higher than these three EMAs, the bar color will be green. If it is lower, it will be red. If it is neither, it will be gray.
If the bar color is green, it suggests that the trend is upward. If it is red, you can consider entering short. If it is gray, it is best not to enter anything.
Fib top and bottom Hunter - No Repaint "Top and bottom Hunter" indicator combines two popular technical analysis tools, Fibonacci retracement levels and the Relative Strength Index (RSI), to identify potential trading opportunities in the market.
Fibonacci retracement levels are based on the Fibonacci sequence, a mathematical series where each number is the sum of the two preceding ones. In trading, Fibonacci retracement levels are used to identify potential support and resistance levels based on the recent price action. The indicator uses two Fibonacci levels, fib_0 and fib_1, which are typically set to 0.382 and 0.618, respectively. These levels represent common retracement ratios.
To calculate the Fibonacci levels, the indicator considers the highest and lowest prices within a specified range, typically the highest and lowest of the last two bars. It calculates the fib_range, which is the difference between the highest and lowest prices. Then, fib_level_0 and fib_level_1 are determined by subtracting the Fibonacci ratios from the highest price.
The RSI is a momentum oscillator that measures the speed and change of price movements. It helps identify overbought and oversold conditions in the market. The RSI parameters used in this indicator are rsi_length (length of the RSI calculation), rsi_overbought (upper threshold indicating overbought conditions), and rsi_oversold (lower threshold indicating oversold conditions). The RSI value is calculated based on the closing prices.
The indicator generates buy and sell signals based on specific conditions:
Buy Condition: A buy signal is triggered when the RSI crosses above the oversold level (rsi_oversold) and the closing price is higher than fib_level_1. This indicates a potential reversal or bounce from the Fibonacci support level.
Sell Condition: A sell signal is triggered when the RSI crosses below the overbought level (rsi_overbought) and the closing price is lower than fib_level_0. This suggests a potential reversal or pullback from the Fibonacci resistance level.
In summary, this indicator combines the power of Fibonacci retracement levels and the RSI to identify potential trading opportunities. It helps traders find confluence between the Fibonacci support or resistance levels and the RSI readings, indicating potential trend reversals or bounces. Traders can use this information to make informed decisions about entering or exiting positions in the market.
Feel free to change the settings for what works best for you and use this with other confluences. I personally use RSI overbought and oversold values as 80 and 20
Fib RetracementI've re-created the fib retracement tool as an indicator and this is as close as I can currently get to matching the built-in fib retracement tool.
Why did I make this? For custom labels for every fib retracement level.
Caveats to this vs the built-in tool are:
the "Save as Default" doesn't appear to work (I believe this is due to the interactive/confirm based settings)
copy and paste to another chart is locked into the price of source location
when dragging the points of retracement the tool/indicator disappears
Hopefully some can find usefulness in this code or it's functionality.
Golden PocketGolden Pocket
This marks up the fibonacci retracement levels of 0.65 and 0.618 by default, these levels are often referred to as the golden pocket.
They are known by this because when price has an impulse either to the up or downside, price will end up retracing at some point. This Golden pocket often lines up with other means of confluence where it's considered a good entry price from the retrace.
Unlike standard fib retracement indicators, these boxes will extend with current price until they are hit. As well as this, there is a moving average filter which you can set to higher timeframes meaning that you can choose to only look for golden pockets which are following the higher time frame trend. You can easily monitor all of your settings by setting up just 1 alert.
Settings
You have the option to enable/disable the line which marks out the pivot points the fib is being calculated from, you can also change the colour and style of the line.
Below this you have the option to choose what colour the fib boxes are and what colour they change to once price hits it. If you want them to disappear change the colours opacity to 0%.
If you want to change the golden pocket levels you can do that by changing the 0.618 or 0.65 levels in the settings.
The pivot distance controls what part defines a pivot high or low, it must be the highest/lowest to the left/right of the pivot candle count.
MA filter will only accept golden pockets which are trending with the Moving average.
You can change all the settings of the Moving average which acts as a filter including which timeframe it is calculated on.
Alerts
Simply toggle this on int the settings and then click on the 3 dots next to the indicators name, 'add alert', leave the top boxes as they are, you can name the alert anything you like but once you confirm this, it will monitor all golden pockets on the particular asset and timeframe you are looking at. The alerts are set up to trigger as soon as price touches one of the boxes.
Use Cases
We like setting are moving average up on the daily timeframe and using the Moving average filter so we know we are only trading with the higher timeframe trend. From there we can set up alerts on any lower timeframe.
Feel free to use any part of this script in your own code, please just give us a mention so we can check out your contributions to the community as well!
Happy to take in any suggestions or ways of improving
BasicVisibleChartBasic library for the visible range chart; with functions to allow plotting Fibs from body high/low as well as wick high/low
-Thanks to code from @PineCoders Visible Chart library (PineCoders/VisibleChart/4), which is a much more comprehensive library than this, but which does not include some functions that I find useful:
-Added the following exportable functions: highest/lowest body, highest/lowest close, highest/lowest open. These allow one to anchor fibs from bodies rather than wicks
-Added a Fib Box function in the example code
The above chart shows the example code plotting a Fib range drawn from bodies and a highlighted retracement zone (61.8 % - 78.6% )
~~All Exportable Functions~~
barIsVisible()
highestClose()
highestOpen()
highestBody()
lowestClose()
lowestOpen()
lowestBody()
high()
highBarTime()
low()
lowBarTime()
open()
close()
Democratic Fibonacci Moving AveragesWith this indicator, we have taken moving averages at Fibonacci lengths (3 to 233) as well as the average of these values, labeled the DFMA. Additionally, these values have been inputted into a table overlay. The cross of the FibMA(233) and the DFMA can be used as a signal for long or short.
The FibMA lengths of 3 and 233 are plotted in white by default, the FibMAs with lengths between 3 and 233 are plotted in blue by default, and the democratic line (DFMA) that averages these lines is plotted in green or red (depending on if the value is above or below the 233-length FibMA).
Auto Fibo Multi Timeframe [Misu]█ This indicator shows a Multi Timeframe automatic Fibonacci retracement levels.
This indicator is built using pivots from a user-selected timeframe to draw and orient the Fibonacci retracement.
Fibonacci analysis uses a logical sequence of numbers to predict trends and price action.
█ Usages:
The Fibonacci retracement is used to identify hidden support and resistance levels that an investor can use for entry, exit, and stop placement.
Depending on your usage, you can track breakouts above and below retracement levels to provide early entry points for major breakouts and breakdowns.
Higher timeframe Fibs allow you to have more relevant and weighted signals.
█ Features:
Choose Timeframe
Choose Fib levels
Color Fib Levels Individually
Color Fib Levels all in one
█ Parameters:
Timeframe: The Timeframe chosen.
Left Bars: A parameter used to calculate pivots.
Right Bars: A parameter used to calculate pivots.
UI Settings: Select Fibs levels and colors.
Fibonacci MAsIt's a pretty simple script. Idea is to compute MAs with the length of Fibonacci numbers and then compute an average of them all.
In the script, you can choose the type of MAs and how many Fibonacci numbers to use for it.
You can also adjust the length of these MAs manually and choose the color of every one of them.
Thanks to @MUQWISHI for helping me code it.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
FibonacciLibrary "Fibonacci"
General Fibonacci functions. Get fib numbers, ratios, etc.
fib_precise(f, precision)
Get the precise Fibonacci ratio, to the specified number of decimal places
Parameters:
f : Fibonacci ratio (string, in form #.###)
precision : Number of decimal places (optional int, dft = 16, max = 32)
Returns: Precise Fibonacci ratio (float)
fib_n(n)
Calculate the Nth number in the Fibonacci sequence
Parameters:
n : Index/number in sequence (int)
Returns: Fibonacci number (int)
GBT TunnelThis is a channel type tool I created, heavily influenced by LazyBear COG Fibs script and the COG Fibs script by Joy_Bangla which also uses LazyBear COG Fib logic. All credit to those guys, publishing this open source as well since its nothing here is my original work really.
Auto Fibonacci [Misu]█ This indicator shows an automatic Fibonacci retracement levels.
This indicator is designed based on highs, lows, and trend interpretation to orientate the fibonacci retracement in the good direction.
Fibonacci analysis uses a logical sequence of numbers to predict trends and price action.
█ Usages:
The Fibonacci retracement is used to identify hidden support and resistance levels that an investor can use for entry, exit, and stop placement.
Depending on your usage, you can track breakouts above and below retracement levels to provide early entry points for major breakouts and breakdowns.
█ Features:
> Choose Fib levels
> Color Fib Levels all in one
> Color Fib Levels Individually
█ Parameters:
Deviation: A parameter used to calculate pivots.
Depth: A parameter used to calculate pivots.
UI Settings: Select Fibs levels and colors.
RSI FIB [G I O]BINANCE:BTCUSDT
A free indicator where you can see the fibonacci levels of the RSI.
Giotrade is aware of the importance of the RSI in trading and offers a new indicator that can guide you to conduct free market analysis.
The red and green zones warn of overbought and oversold, allowing you to predict the direction of price volatility.
Fibonacci Ratios with Volatility(Weekly Time Frame.)Script is based on weekly time Frame. Fib ratios are drawn at the Open of the Market. Open price is compared with Previous week High , low and close. If weekly open is above Previous week high or low, Fib 0 % is plotted above High or the low as the case may be . If weekly open is between previous week high and low Fib 0% is equal to previous week Close and other fib ratios are plotted accordingly. As its vol based, works fantastically. This script is inspired by Fibonacci and Volatility script by PB GHOSH.
Opening Range Breakout with Price TargetsJust publishing a version of the script amitgandhinz already created, which is amazing.
Added fib levels that amitgandhinz already started but commented out
Added mid point that is often found effective as a starting point, SL, etc
Automated MSB OTE Fibs and Premium DiscountOTE means optimal trade entry and can give the best price point to enter a trade at lower time frames. This indicator automatically draws these OTE levels and the premium /discount of the range, following a market structure break or MSB.
It does this by finding a pivot, checking if it has been broken by a candle body, then drawing a line for that MSB.
The premium /discount range and fib levels are taken from the high/low before and after the MSB, with the most recent MSB being used.
What is particularly great is that the levels and boxes move in realtime, so there is never any need to redraw things manually, drawing is fully automated and updates with every change in price or MSBs.
Settings:
Left and Right bars for Pivot - this determines the strength of the pivot that has been broken. The stronger the pivot, the stronger the MSB.
Max Lookback - How far to look back for MSBs.
Various aesthetic options to show bullish / bearish MSBs independently, as well as colour and line settings for the MSB, Fibs and Premium/Discount.
Previous Days RangesPrevious Days Ranges
Simply plots out market ranges of previous days price action, of which are the following:
Previous Day High
Previous Day Low
Previous Day Extended High
Previous Day Extended Low
Supports adjustments of timeframes, for different time zones, and style.
High and Low Fibonacci Pivot PointsThis is a standard fibonacci retracement level indicator and free to use for all. I couldn't find any decent retracement levels that works for me (and definitely wasted money on paid script access that didn't work so well for my trading style), so I created this for my own use and now sharing it with the TradingView community. Fibonacci retracement levels help traders predict key areas where a stock/security may find support or resistance. The common ratios are available, such as 23.6, 38.2, 61.8 and so forth. You can choose from Day, Week or Month for your fibonacci retracement lines. In order to keep in sync with my particular style of keeping charts nice and clean, I've created this indicator with defaults to use friendly color schemes. You can of course, choose another color, etc... that fits your own taste. All of my published scripts utilize TradingView's version 5 scripting.
Main Features:
- Show or hide pre-market high and lows (the pre-market high & lows are hidden by default)
- Show or hide the 1-hour 20 EMA line (hidden by default, as this is more uncommon than the 1-hour 50 EMA line for potential support or resistance)
- Show or hide the 1-hour 50 EMA line
- Show or hide the fibonacci retracement lines (the 50% line is hidden by default)
- Option to allow the fibonacci retracement lines to start out the first few minutes of market open to use the pre-market high & low. Once the stock/security price breaks either the pre-market high or pre-market low, it reverts to using the day's high and low. This only works on chart timeframes under the daily time frame.
FYI:
All customizable settings have a help/info window. Please refer to the help/info window, if you're unsure of what a setting does what. Also, note that I wrote and published this script after market close, so I haven't had the chance to check/test if everything works, which can only be fully verified during market open hours (for non-crypto securities).
* Please note that this script is in its early beta stage and there could be bugs. This is being provided as is and the information provided by this script is meant for informational/entertainment purposes only.