Volume Histogram [SpiritualHealer117]This indicator is a histogram produced with Pinescript's boxes and is helpful for spotting support, resistance, and key levels. The indicator shows the volume executed at each source price over a customizable time period. The "Key Level" in this indicator is the price at which the most volume was executed, and the "Major Levels" are levels where volume was over a percentile threshold, which you can customize in settings. Feel free to give any feedback on the indicator or make a copy for yourself!
Support
Ultimate RSI - Divergence + S/R + Reverse RSIThis is a modification of the TradingView RSI with some of my favourite RSI features added.
This includes Divergence indicators. EMA with colour change on cross, Support and resistance lines and reverse RSI.
A reverse calc has also been added. This will allow you to input 3 different RSI values for a price prediction. This is good to use with the support and resistance lines and can give you key areas on the chart where the price may bounce/reject.
All colours and modifications can be turned on/off.
Enjoy! :)
Copy/Paste LevelsCopy/Paste Levels allows levels to be pasted onto your chart from a properly formatted source.
This tool streamlines the process of adding lines to your chart, and sharing lines from your chart.
More than one ticker at a time!
This indicator will only draw lines on charts it has values for!
This means you can input levels for every ticker you need all at once, one time, and only be displayed the levels for the current chart you are looking at. When you switch tickers, the levels for that ticker will display. (Assuming you have levels entered for that ticker)
The formatting is as follows:
Ticker,Color,Style,Width,Lvl1,Lvl2,Lvl3;
Ticker - Any ticker on Tradingview can be used in the field
Color - Available colors are: Red,Orange,Yellow,Green,Blue,Purple,White,Black,Gray
Style - Available styles are: Solid,Dashed,Dotted
Width - This can be any negative integer, ex.(-1,-2,-3,-4,-5)
Lvls - These can be any positive number (decimals allowed)
Semi-Colons separate sections, each section contains enough information to create at least 1 line.
Each additional level added within the same section will have the same styling parameters as the other levels in the section.
Example:
2 solid lines colored red with a thickness of 2 on QQQ, 1 at $300 and 1 at $400.
QQQ,RED,SOLID,-2,300,400;
IMPORTANT MUST READ!!!
Remember to not include any spaces between commas and the entries in each field!
ex. ; QQQ, red, dotted, -1, 325; <- Wrong
ex. ;QQQ,red,dotted,-1,325;)<- Right
However,
All fields must be filled out, to use default values in the fields, insert a space between the commas.
ex. ;QQQ,red,dotted,,325; <- Wrong
ex. ;QQQ,red,dotted, ,325; <- Right
While spaces can not be included line breaks can!
I recommend for easier typing and viewing to include a line break for each new line (if changing styling or ticker)
Example:
2 solid lines, one red at $300, one green at $400, both default width. Written in a single line AND using multiple lines, both give the same output.
QQQ,red,solid, ,300;QQQ,green,solid, ,400;
or
QQQ,red,solid, ,300;
QQQ,green,solid, ,400;
In this following screenshot you can see more examples of different formatting variations.
The textbox contains exactly what is pasted into the settings input box.
As you can see, capitalization does not matter.
Default Values:
Color = optimal contrast color, If this field is filled in with a space it will display the optimal contrast color of the users background.
Style = solid
Width = -1
More Examples:
Multi-Ticker: drawing 3 lines at $300, all default values, on 3 different tickers
SPY, , , ,300;QQQ, , , ,300;AAPL, , , ,300
or
SPY, , , ,300;
QQQ, , , ,300;
AAPL, , , ,300
Multiple levels: There is no limit* to the number of levels that can be included within 1 section.
* only TV default line limit per indicator (500)
This will be 4 lines all with the same styling at different values on 2 separate tickers.
SPY,BLUE,SOLID,-2,100,200,300,400;QQQ,BLUE,SOLID,-2,100,200,300,400
or
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400
Semi-colons must separate sections, but are not required at the beginning or end, it makes no difference if they are or are not added.
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400
==
SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400;
==
;SPY,BLUE,SOLID,-2,100,200,300,400;
QQQ,BLUE,SOLID,-2,100,200,300,400;
All the above output the same results.
Hope this is helpful for people,
Enjoy!
ZigZag with Retracement LevelsThis is a modification to "ZigZag with Fibonacci Levels" by LonesomeTheBlue.
By default, the script finds the ZigZag, draws Fibonacci lines and labels accordinly. ZigZag period can be set.
The modification to the original script provides the following features:
1) Option for user to customize retracement levels, if they don't want to use Fibonacci levels. This allows for different strategy adoptions.
2) Option to show Fibonacci or custom retracement levels based on the latest pivot (including the current bar)
For example:
Enjoy and happy trading~!!
Visible Range Mean Deviation Histogram [LuxAlgo]This script displays a histogram from the mean and standard deviation of the visible price values on the chart. Bin counting is done relative to high/low prices instead of counting the price values within each bin, returning a smoother histogram as a result.
Settings
Bins Per Side: Number of bins computed above and below the price mean
Deviation Multiplier: Standard deviation multiplier
Style
Relative: Determines whether the bins length is relative to the maximum bin count, with a length controlled with the width settings to the left.
Bin Colors: Bin/POC Lines colors
Show POCs: Shows point of controls
Usage
Histograms are generally used to estimate the underlying distribution of a series of observations, their construction is generally done taking into account the overall price range.
The proposed histogram construct N intervals above*below the mean of the visible price, with each interval having a size of: σ × Mult / N , where σ is the standard deviation and N the number of Bins per side and is determined by the user. The standard deviation multipliers are highlighted at the left side of each bin.
A high bin count reflects a higher series of observations laying within that specific interval, this can be useful to highlight ranging price areas.
POCs highlight the most significant bins and can be used as potential support/resistances.
Titans Trend LinesThis indicator will plot trend lines based on recent pivot highs and lows.
The pivot sensitivity level may be customised under the indicator settings. The pivot highs and lows are identified by 'H' and 'L' markers.
Through the indicator, a purple dotted line connects the last two pivot highs and another purple dotted line connects the last two pivot lows. These lines are extended to the left and right beyond the connected points.
If a new trend line has developed due to the formation of a new pivot high or low, the last trend line will be grayed to help with referencing.
The user is advised to use this indicator at his own risk.
Titans Empirical LevelsThis indicator marks key pivot levels across two higher timeframes, longer term, and medium term.
When a pivot high or low is detected at the higher timeframe, a line is plotted in the future.
The user may select timeframes and pivot sensitivities in the indicator settings.
As no calculation is involved, the levels are identified purely from historical precedent.
Overlapping lines could imply strength of recent support/resistance at that level.
This indicator should be used in combination with other indicators.
The user is advised to use this indicator at his own risk.
Next Gen Auto S/RThis indicator will automatically plot support and resistance levels and will also allow you to overlay multi time frame support and resistance on any time frame that you are currently conducting analysis on. In addition you can also set alerts when a support and resistance level is tested, fine tune how many levels you would like to view on your charts, option to input how many candlesticks minimum you would like between support and resistance levels. You can also select breakout mode which will turn old support into resistance by a colour change and turn old resistance into support. NEW you can now use extended levels and change your zones into lines.
Trendlines Boll Ichi S1 by GammaprodI. How to use this indicator :
------------------------------
I.1. Set your teadingview theme to dark theme.
I.2. Gammaprod indicator is valid for forex, stock and but more valid for crypto.
I.3. Use three timeframe for more validation (choose between those, that fit to your trading style) :
- Timeframe 1m, 5m, and 15m for Scalping
- Timeframe 30m, 1h and 4h for Intraday
- Timeframe 4h, 1D and 1W for Swing Trading
I.4 Always use THREE INDICATORS FROM GAMMAPROD, those three indicators is back to back each other, by the way, I only made those three indicators only (for now) :
- Trendlines Boll Ichi S1 by Gammaprod
- MACD Volume S2 by Gammaprod
- Stoch RSI Divs Zone S2 by Gammaprod
============================================================================
II. How to setting :
--------------------
II.1. Trendlines Boll Ichi Crypto by Gammaprod
II.1.A. Support and Resistance
- Well if you familiar with this indicator you can add it, but recommended for Timeframe 30m or more
II.1.B. Trendlines Primary or Trendlines Secondary
- Timeframe 1m you DON'T NEED Trendlines Primary or Trendlines Secondary
- Timeframe 5m you DON'T NEED Trendlines Secondary, but you CAN ADD Trendlines Primary if you fell it helpful (for me, it is helpful to find where the candles start or the end trend or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 15m you DON'T NEED Trendlines Secondary, DEFENITELY add Trendlines Primary it will help to find where the candles stop or a consolidation or where the candles will surpass a resistance or a support).
- Timeframe 30m or more, DEFENITELY NEED BOTH Trendlines Primary and Secondary Trendlines, it will help to find where the candle stop or consolidation or where the candle will surpass a resistance or support).
II.1.C. Bollinger, Ichimoku Cloud and Lagging Span
- Please DON'T CHANGE IT at all, it's really helpful to know when and where to make an entry decesion or a trend or a consolidation, if you don't understand how to read it, you better to learn it first (on "how to read" section and "How to OPEN position" the section below)
II.2. Stoch RSI Divs Zone Crypto by Gammaprod (DON'T CHANGE IT)
II.3. MACD Volume Crypto by Gammaprod (DON'T CHANGE IT)
============================================================================
III. How to read :
------------------
III.1. Sell or Buy Priority :
III.1.A. Sell Priority
- Color background on macd and stoch rsi is pink or purple sell is the priority, (if you're not sure to buy, just wait until the best moment to sell)
III.1.B. Buy Priority
- Color background on macd and stoch rsi Teal or light green buy is the priority, (if you're not sure to sell, just wait until the best moment to buy)
III.1.C. Indecision / Golden Moment
- Color background on stoch rsi yellow is indecision / golden moment of reversal pattern (wait until it formed background only on Stoch RSI), please be careful at this moment.
III.2. Trend / Consolidation :
III.2.A. BULLISH trend
- When Stoch RSI and MACD have teal or light green background that's means BULLISH trend, better to confirm by the candle is above green cloud and lagging span (red line) is also above the candle.
III.2.B. BEARISH trend
- When Stoch RSI and MACD have the Pink or purple background that's means BEARISH trend, better to confirm by the candle is above purple cloud and lagging span (red line) is also below the candle.
III.2.C. CONSOLIDATION
- When Stoch RSI have the mix background that's means CONSOLIDATION, better to confirm by the candle is in or near to green / purple cloud and lagging span (red line) is also on the candle.
III.3. Special Mark
III.3.A. Ideal Bullish :
- Near line 20 and green / teal background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for buy
III.3.B. Not an Ideal Bullish :
- Near line 80 and green / teal background = if this happens make sure you know what happen, it could be a false signal or bullish continual pattern
III.3.C. Ideal Bearish :
- Near line 80 and pink / purple background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for sell position.
III.3.D. Not an Ideal Bearish:
- Near line 20 and pink / purple background = if this happens make sure you know what happen, it could be a false signal or bearish continual pattern
III.3.E. The Beginning of Reversal (from BEARISH to BULLISH) :
- When Stoch RSI line shaping GREEN position is near 20.
- MACD lines still PINK, position lines is UNDER the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL PINK (light pink) and the BACKGROUND still PINK / PURPLE.
- Position CANDLES NEAR BLUE line, NEAR PURPLE CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
III.3.F. The Beginning of Reversal (from BULLISH to BEARISH) :
- When Stoch RSI line shaping PINK position is near 80.
- MACD lines still GREEN, position lines is ABOVE the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL GREEN (light green) and the BACKGROUND still TEAL / GREEN.
- Position CANDLES NEAR WHITE line, NEAR TEAL CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
III.3.G. False Signals, or It could be a Golden Moment (better to see it on TF 15 or bigger):
- Near line 20 or 80 and yellow background = When Stoch RSI have the char R / H on color label, that's means divergence or hidden divergence for buy / sell position, if you not see this label that's means just a standard confirmation for buy / sell depends on where the Stoch RSI line if near 20 that's means buy, near 80 means sell
============================================================================
IV. How to OPEN position:
-------------------------
IV.1. Bullish
IV.1.A. Trendlines Boll Ichi S1 by Gammaprod
- The candles above the green cloud.
- Lagging span (red line) above the candles.
- then open buy near yellow line (the first option) / blue line (the second option) (always confirm the position with two other indicators below).
IV.1.B. MACD Volume S2 by Gammaprod
- Teal or Green background.
- The lines is shaped or shaping green.
- Better if at the green histogram.
IV.1.C. Stoch RSI Divs Zone S3 by Gammaprod
- Teal or Green background.
- The lines is shaping green.
- Better if on the bottom (at a range 20).
IV.2. Bearish
IV.2.A. Trendlines Boll Ichi S1 by Gammaprod
- The candles below the purple cloud.
- Lagging span (red line) below the candles.
- then open buy near yellow line (the first option) / white line (the second option) (always confirm the position with two other indicators below).
IV.2.B. MACD Volume S2 by Gammaprod
- Pink or purple background.
- The lines are shaped or shaping green.
- Better if at the pink histogram.
IV.2.C. Stoch RSI Divs Zone S3 by Gammaprod
- Pink or purple background.
- The lines are shaping pink.
- Better if the line on the top (at a range 80).
IV.3. Consolidation
IV.3.A. Trendlines Boll Ichi S1 by Gammaprod
- The candles on the cloud (green or purple).
- Lagging span (red line) on the candles.
- then open buy near the white or blue line (always confirm the position with two other indicators below).
IV.3.B. MACD Volume S2 by Gammaprod
- Changing the background.
- The line is near the middle line.
- Have small Histogram.
IV.3.C. Stoch RSI Divs Zone S3 by Gammaprod
- Mix background specially on a timeframe 15m or more.
- The line move fast up and down.
- Better if on the bottom or the top of the lines (at a range 20 or 80).
============================================================================
>> The secret ingredient is comparing the timeframe :
The example scalping (Timeframe 1m, 5m and 15m)
- TF 1m is for making an open position.
- TF 5m is for making a judgement of the trend market.
- TF 15m is to confirm that judgement from TF 5m, be careful if it not similar then it used to be a consolidation or the beginning of the reversal.
There's a lot a way to open the position than above information that i gave it to you, but consider there are a limit chars on this column, I hope it will help your trading and make a more profit on it.
Disclosure of 'MACD-Total' indicator (MACD-T)hello?
Traders, welcome.
If you "follow", you can always get new information quickly.
Please also click "Like".
Have a good day.
-------------------------------------
A trend indicator has been added to the previously published MACD-Price indicator.
The added MS-Signal indicator is an indicator for viewing the trend and the strength of the trend.
Trading with a trend line is not easy.
Therefore, various MA lines or slanted lines drawn on the chart are used to see the flow of the chart.
Therefore, it is not recommended to trade with the added MS-Signal indicator as support and resistance points.
A trade requires support and resistance points.
To mark support and resistance points, you need a point or section on the horizontal line.
Therefore, it is necessary to utilize the 'Buy/Sell' indicator corresponding to the previously disclosed MACD-Price indicator.
(1W chart)
The long horizontal point of the 'Buy/Sell' indicator serves as support and resistance.
It is possible to check in which section the trend reversal has changed by displaying the MS-Signal indicator.
(1D chart)
A move has emerged to show a reversal of the trend by breaking above the MS-Signal indicator.
Therefore, the MS-Signal indicator is about to change from a downtrend to an uptrend.
I numbered the horizontal line of the 'Buy/Sell' indicator.
The length is different in the order of No. 2 > No. 1 > No. 3.
Since horizontal line 2 is the longest, it indicates that support and resistance play the greatest role.
If you check the support at the first horizontal point, it can be interpreted that there is a high possibility of receiving resistance at the second horizontal point.
However, if you find support at the 2nd horizontal point, you can see that it will go up significantly with 3rd position.
Trading with indicators allows you to make quick choices and decisions.
However, more important than the use of indicators is your own trading strategy.
in other words,
- How much investment will you proceed with the purchase?
- How to proceed with installment purchases
- At what point will the Stop Loss be done?
- How long will the investment period be?
- Is it a long-term investment or a short-term investment?
As listed above, the most important trading strategy for trading should be established.
When conducting a trade, ignoring the above list and thinking about where to buy and where to sell is like sailing in the dark.
We disclose the indicators in the hope that it will become a faster and more objective indicator for trading with the trading strategy you have established.
thank you
------------------------------------------------------------ -----------------------------------------------------
Intra-variety Timeframe Floating Fibonacci Levels [Loxx]Intra-variety Timeframe Floating Fibonacci Levels is an intraday, intraweek, and intramonth indicator to be used for scalping on lower timeframes. The indicator paints the developing fibonacci retracement levels as they change overtime over the selected intra-variety timeframe chosen. This indicator acts as another way to gauge support and resistance levels.
What Are Fibonacci Retracement Levels?
Fibonacci retracement levels—stemming from the Fibonacci sequence—are horizontal lines that indicate where support and resistance are likely to occur.
Each level is associated with a percentage. The percentage is how much of a prior move the price has retraced. The Fibonacci retracement levels are 23.6%, 38.2%, 61.8%, and 78.6%. While not officially a Fibonacci ratio, 50% is also used.
The indicator is useful because it can be drawn between any two significant price points, such as a high and a low. The indicator will then create the levels between those two points.
Suppose the price of a stock rises $10 and then drops $2.36. In that case, it has retraced 23.6%, which is a Fibonacci number. Fibonacci numbers are found throughout nature. Therefore, many traders believe that these numbers also have relevance in financial markets.
Fibonacci retracement levels were named after Italian mathemetician Leonardo Pisano Bigollo, who was famously known as Leonardo Fibonacci. However, Fibonacci did not create the Fibonacci sequence. Fibonacci, instead, introduced these numbers to western Europe after learning about them from Indian merchants. Fibonacci retracement levels were formulated in Ancient India between 450 and 200 BCE.
Details
-Change Fibonacci levels
-Select day, week, or month timeframe
Waddah Attar Hidden Levels [Loxx]Waddah Attar Hidden Levels is a dynamic indicator of support of resistance built by Ahmad Waddah Attar
Details
-Uses data from the Daily time frame only
-Used for intraday trading, restricted to timeframes 1 hour and below
-Best Time Frames 15, 30, 60 minutes
-Draws support and resistance lines on chart inside a boundary of fibonacci levels
How to use Waddah Attar Hidden Levels
-Breakout trading indicator
-Buy at the broken red line, or insert pending buy order
-Sell at the broken green line, or insert pending buy order
-Take profit/Stop-loss at blue lines
.236 FIB Extension ToolThis is a simple FIB extension tool that pulls from the start of a wave to the end of the wave. It extends FIB levels beyond the first wave making the assumption that the first wave was between 0.0 and .236 FIB levels. This often works as support and resistance in a multi-wave move. I see the price get to .65 or .786 often after clearing the initial .236 level. This works on any timeframe.
Pivot Points Standard Higher Timeframe█ OVERVIEW
This indicator was intended as educational purpose only and alternative way to write pine script in version 5 for Pivot Points Standard.
█ CREDITS
Credits to TradingView for original built-in source code.
█ FEATURES
Display price or percentage.
Change color for labels and lines.
█ USAGE EXAMPLES
Auto Support & Resistance With Wick Signals & Percentage GapsThis auto support and resistance indicator uses percentage deviations from the previous session close to calculate levels. It provides arrows as signals when it detects 2 wicks in the last 5 bars from a support or resistance level. Includes alerts for price crossing any level as well as real time percentage gaps from current price to the next closest support and resistance level. You also have the option to set up to 3 major levels of your own for any levels that are very important on longer timeframes that you want included. Those will show on the chart as well as within your percentage gap table with color coded background. All features can be customized or turned off to suit your preferences.
SOURCE
This indicator uses the previous session close as a source by default but can be adjusted to use the previous session high or the previous session low. I find the close setting to provide the most accurate levels.
SESSION
The default setting for the previous session used is the daily session but can be adjusted to use the daily, weekly, monthly, quarterly or yearly session. Use longer sessions when looking at longer time frame charts.
SIGNALS
The signals by default are set to only show an arrow if there have been 2 bullish or bearish wicks off of a support or resistance level in the last 5 bars. This can be changed to one bullish wick off of support and one bearish wick off of resistance or it can be set to give a signal anytime a bar crosses a support or resistance level. This can be controlled in the indicator settings.
PERCENTAGE DEVIATION LEVELS
The default percentage deviation is set to 1% but can and should be adjusted according to whatever ticker you are using. For example use .25% or .5% when looking at forex intraday charts since they are not as volatile as other markets. For leveraged etfs used 1% multiplied by the leverage on the etf, so for SQQQ use 3% as it is a 3x leveraged etf. When looking at longer timeframes or highly volatile charts, set the percentage deviation to 2%, 5%, 10%, etc.
LINE COLORS
The color of the lines will change from red to green depending on if the price is above or below that level. You can customize these colors in the settings.
MAJOR LEVELS
If you have major levels of support and resistance from longer timeframes and your own charting, you can add up to 3 major levels that will show on the chart as well as show the percentage gaps in the table. The label for each major level will be colored to match the color of the line on the chart individually.
PERCENTAGE GAP TABLE
The gap table will update live with percentages to go from current price to the next closest support and resistance levels so you don’t have to calculate them manually. The position of the percentage gap table can also be changed within the indicator settings.
TURN FEATURES ON/OFF
There are 3 toggle switches so you can easily turn on or off certain features such as: the support and resistance lines, the percentage gaps table and the arrow signals.
LINE WIDTHS
You can also set the line width of all levels and the line width of the starting level within the indicator settings.
***MARKETS***
This indicator can be used as a signal on all markets, including stocks, crypto, futures and forex.
***TIMEFRAMES***
This automatic support and resistance indicator can be used on all timeframes as long as there is enough data for the session used.
***TIPS***
Try using numerous indicators of ours on your chart so you can instantly see the bullish or bearish trend of multiple indicators in real time without having to analyze the data. Some of our favorites are our Volume Spike Scanner, Volume Profile, Momentum and Trend Friend in combination with this auto support and resistance indicator. They all have real time Bullish and Bearish labels as well so you can immediately understand each indicator's trend.
Support/Resistant Zone (Simple)The concepts of trading level support and resistance are undoubtedly two of the most highly discussed attributes of technical analysis.
Support is a price level where a downtrend can be expected to pause due to a concentration of demand or buying interest. As the price of assets or securities drops, demand for the shares increases, thus forming the support line. Meanwhile, resistance zones arise due to selling interest when prices have increased.
There are many ways to identify support and resistance zones. This indicator is a simple method to identify them. Support/Resistant zones will draw basing on the size of the wick for candles, which are Pivots High/Low before.
Resistance/Support Indicator - FontiramisuIndicator showing resistances and support, based on pivots location
When a new pivot location is near from a resistance/support the latter gains weight.
You can modify multiple parameters :
Nb Max res/sup : Define the number max res/sup to keep in our res/sup history array. The greater it is the older bar index will be taken.
Nb show res/sup : Define the number of res/sup to be drawn.
Min weight shown : Define min res/sup weight to be shown. Weight is used to measure strengh of res/sup.
% range stack : Define price percentage change required to stack a pivot into an existing res/sup. Default is 0.015 = 1.5%.
Pivots are calculated with deviation parameter to validate with more precision.
Fontilab Library is used to code this indicator.
Trend Indicator (dow trending) - FontiramisuIndicator showing pivots and interpret a trend out of it.
Pivots are calculating with deviation parameter to validate with more precision.
Trending moves are calculated according to Dow Theory :
In an uptrend, if the price made a new high, the price must make a new high to confirm the trend, otherwise, it might signal a possible change in the trend.
In an uptrend, if the price made a new low, the price must make a new low to confirm the trend, otherwise, it might signal a possible change in the trend.
The indicator can show 2 trends with 2 different "Pivot Depth"
See indicator parameters.
Tab is display at the bottom right corner to show trend direction and if it is hesitating
Fontilab Library is used to code this indicator
fontilabLibrary "fontilab"
Provides function's indicators for pivot - trend - resistance.
pivots(src, lenght, isHigh) Detecting pivot points (and returning price + bar index.
Parameters:
src : The chart we analyse.
lenght : Used for the calcul.
isHigh : lookging for high if true, low otherwise.
Returns: The bar index and the price of the pivot.
calcDevThreshold(tresholdMultiplier, closePrice) Calculate deviation threshold for identifying major swings.
Parameters:
tresholdMultiplier : Usefull to equilibrate the calculate.
closePrice : Close price of the chart wanted.
Returns: The deviation threshold.
calcDev(basePrice, price) Custom function for calculating price deviation for validating large moves.
Parameters:
basePrice : The reference price.
price : The price tested.
Returns: The deviation.
pivotFoundWithLines(dev, isHigh, index, price, dev_threshold, isHighLast, pLast, iLast, lineLast) Detecting pivots that meet our deviation criteria.
Parameters:
dev : The deviation wanted.
isHigh : The type of pivot tested (high or low).
index : The Index of the pivot tested.
price : The chart price wanted.
dev_threshold : The deviation treshold.
isHighLast : The type of last pivot.
pLast : The pivot price last.
iLast : Index of the last pivot.
lineLast : The lst line.
Returns: The Line and bool is pivot High.
getDeviationPivots(thresholdMultiplier, depth, lineLast, isHighLast, iLast, pLast, deleteLines, closePrice, highPrice, lowPrice) Get pivot that meet our deviation criteria.
Parameters:
thresholdMultiplier : The treshold multiplier.
depth : The depth to calculate pivot.
lineLast : The last line.
isHighLast : The type of last pivot
iLast : Index of the last pivot.
pLast : The pivot price last.
deleteLines : If the line are draw or not.
closePrice : The chart close price.
highPrice : The chart high price.
lowPrice : The chart low price.
Returns: All pivot the informations.
getElIntArrayFromEnd() Get the last element of an int array.
getElFloatArrayFromEnd() Get the last element of an float array.
getElBoolArrayFromEnd() Get the last element of a bool array.
isTrendContinuation(isTrendUp, arrayBounds, lastPrice, precision) Check if last price is between bounds array.
Parameters:
isTrendUp : Is actual trend up.
arrayBounds : The trend array.
lastPrice : The pivot Price that just be found.
precision : The percent we add to actual bounds to validate a move.
Returns: na if price is between bounds, true if continuation, false if not.
getTrendPivots(trendBarIndexes, trendPrices, trendPricesIsHigh, interBarIndexes, interPrices, interPricesIsHigh, isTrendHesitate, isTrendUp, trendPrecision, pLast, iLast, isHighLast) Function to update array and trend related to pivot trend interpretation.
Parameters:
trendBarIndexes : The array trend bar index.
trendPrices : The array trend price.
trendPricesIsHigh : The array trend is high.
interBarIndexes : The array inter bar index.
interPrices : The array inter price.
interPricesIsHigh : The array inter ishigh.
isTrendHesitate : The actual status of is trend hesitate.
isTrendUp : The actual status of is trend up.
trendPrecision : The var precision to add in "iscontinuation" function.
pLast : The last pivot price.
iLast : The last pivot bar index.
isHighLast : The last pivot "isHigh".
Returns: trend & inter arrays, is trend hesitate, is trend up.
drawBoundLines(startIndex, startPrice, endIndex, endPrice, breakingPivotIndex, breakingPivotPrice, isTrendUp) Draw bounds and breaking line of the trend.
Parameters:
startIndex : Index of the first bound line.
startPrice : Price of first bound line.
endIndex : Index of second bound line.
endPrice : price of second bound line.
breakingPivotIndex : The breaking line index.
breakingPivotPrice : The breaking line price.
isTrendUp : The actual status of the trend.
Returns: The lines bounds and breaking line.
.b dual dynamic SRThis is dual band dynamic S/R indicator
It works on longger swing than BB 20,2 band rage, and I think It works well.
even on the rapid price change, it quite woks well.
If price goes out of 1st S/R band range, 2nd S/R band shows up on the chart.
Because of large bandwidth, An area in which an actual candle is drawn may be displayed as small.
So, with some codework, I made the S/R band occupy only the area near the actual candle drawing area.
The S/R band value is calculated as a combination of donchian band, high/low, atr, etc.
and regular default setting value is fixed on the code level. you can change the color set.
For more information, please refer to the source code.
if you have any questions freely contact to me by message on tradingview, or telegram @sr_bt
but please understand that responses may be quite late.
-------------------------------------------------------------------------------------------------------------------------------------------
Special thanks to all of contributors of community.
The script (originaly .b) may be freely distributed under the MIT license.
without a clear understanding of the house rules,
Several indicators on the charts, it should be clean chart on publishing.
So I am re-publishing as a new one, sorry about that.
Close Over/Under LevelIf you want to be alerted when a price closes above or below a given level(s), then this indicator is for you! 😁 Whether you're looking for a breakout, or some change of structure, etc, this should come in handy.
Usage:
Just add a level(s) (anything above 0).
Optionally plot lines.
Set alerts as normal.
Enjoy!
ATR and IV Volatility TableThis is a volatility tool designed to get the daily bottom and top values calculated using a daily ATR and IV values.
ATR values can be calculated directly, however for IV I recommend to take the values from external sources for the asset that you want to trade.
Regarding of the usage, I always recommend to go at the end of the previous close day of the candle(with replay function) or beginning of the daily open candle and get the expected values for movements.
For example for 26April for SPX, we have an ATR of 77 points and the close of the candle was 4296.
So based on ATR for 27 April our TOP is going to be 4296 + 77 , while our BOT is going to be 4296-77
At the same time lets assume the IV for today is going to be around 25% -> this is translated to 25 / (sqrt (252)) = 1.57 aprox
So based on IV our TOP is going to be 4296 + 4296 * 0.0157 , while our BOT is going to be 4296 - 4296 * 0.0157
I found out from my calculations that 80-85% of the times these bot and top points act as an amazing support and resistence points for day trading, so I fully recommend you to start including them into your analysis.
If you have any questions let me know !
PercentagefromEMAEMA (Exponential moving average) often acts as dynamic support and resistance and trend detector and the further price is away from ema the more it has chance to reverse, hence percentage levels gives a range to exit your trades.
*choose your favourite timeframe and EMA length , alter percentages as you wish to generate Take profit levels
thank you..
Happy Trading.