Breakout FinderHelo All,
I got many requests for a Breakout script and here it's. This script searches the breakouts/breakdowns and draw square if there is one.
The options:
"Period" is used to find Pivot Points
"Max Breakout Length" is the maximum length to search breakouts
"Threshold Rate %" is channel width of the breakout area. calculated using highest/lowest of last 300 bars.
"Minimum Number of Tests" is the minimum number of tests that the Price tried to break the S/R level
and some options for coloring and linestyle
Lets see some examples:
in this example "Minimum Number of Tests" is 2 so the Price must have tested to break resistance area 2 times and then it breaks it as seen in the screenshot:
in following example Threshold rate is %10, so the channel width is very big:
as you can see in followinf screenshot you can choose different colors and line styles:
Alerts added ;)
Enjoy!
Support
Gridimus MaximusGridimus Maximus draws N grid lines stepping by price or percent in chosen direction from set price, or draws N grid lines stepping by pivots.
The queue function method used is adapted from an example provided on the PineCoders website, much gratitude to LucF for this gem!
To prevent grid lines out of range from causing chart to rescale right click on chart's price column and enable Scale Price Chart Only.
Pictured example above is using Type Of Increment: Steps By Pivot, Number Of Steps: 5.
Pictured example below is using Type Of Increment: Steps By Price, Number Of Steps: 6, Starts From Price: $10k, Steps By Percent Or Price: $10k.
Pictured example below is using Type Of Increment: Steps By Percent, Number Of Steps: 7, Starts From Price: $10k, Steps By Percent Or Price: 33%.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
SMA 200 Ribbon MTF - Support and ResistanceThe SMA 200 is one of the most important and strongest support/resistance lines on any timeframe. This script pulls the SMA 200 line from multiple timeframes so traders can visually see price action bounce between support and resistance . The current timeframes SMA 200 is displayed in white and turns yellow to signify "pressure". Can be used on higher timeframes to find bull action. This indicator can also be used to filter out pumps and dumps as shown in example 3 and 4.
Example of indicator on 5 min timeframe. Candles bounce along SMA200 lines.
Example of indicator on daily timeframe . Lines turn green and price action pumps. Lines turn red and price action dumps.
Example 3: A clean crossover of lines usually signals a bullish pump.
Example 4: Tangled or messy lines tend to result in a dump as price action struggles to cross resistance. A pullback is required to "clean" the lines.
EMA Band can be turned on using "tickbox" in settings menu.
Bitcoin Daily Support/ResistanceA new indicator for tradingview.
Indicator Overview
The 2-Year MA Multiplier is intended to be used as a long term investment tool.
It highlights periods where buying or selling Bitcoin during those times would have produced outsized returns.
To do this, it uses a moving average (MA) line, the 2yr MA, and also a multiplication of that moving average line, 2yr MA x5.
Note: the x5 multiplication is of the price values of the 2yr moving average, not of its time period.
Buying Bitcoin when price drops below the 2yr MA (green line) has historically generated outsized returns. Selling Bitcoin when price goes above the 2yr MA x 5 (red line) has been historically effective for taking profit.
Why This Happens
As Bitcoin is adopted, it moves through market cycles. These are created by periods where market participants are over-excited causing the price to over-extend, and periods where they are overly pessimistic where the price over-contracts. Identifying and understanding these periods can be beneficial to the long term investor.
This tool is a simple and effective way to highlight those periods
MA 50/100/150 was historically good support and resistance. When we cross them we have a new trend that is established.
EMA 730 Ribbon MTF - Support and ReistanceThe EMA 730 line is a great way to show dynamic support and resistance . Price action travels "through" this line on each timeframe. This script pulls the EMA 730 Line from multiple timeframes so a trader can visually see price action bounce between support and resistance lines. Lower bands (white lines) can be turned off using "tickbox" in settings. EMA length can also be adjusted in settings. Some charts may work better with a length of 750.
Example of EMA Bands on lower timeframe.
Crypto EMA Bands - Support and ResistanceEMA Bands for crypto markets shows support and resistance lines. Helps identify bull and bear market trends. SMA200 is white and turns yellow to signal pressure. Can also be useful for identifying Elliot waves and breakouts.
Average Band by HarmanUsually, Moving Averages (Simple & Exponential) consider "close" of each candle to form a line for a particular period. In this indicator, we have considered all the parameters (Open, Close, Low & High) of each candle to form a Band or a wave which act as a zone to provide support & resistance. It works well on all the time frames. It perfectly works on lower time frames of 15 min & 5 min for intraday trades and even for scalping. There is a line that moves very near to candles known as "Candle Line" provide support & resistance to each individual candle and a leading line which moves ahead also acts as support & resistance and helps in determining trend direction.
How to use the indicator ?
Indicator consists of 3 components :
1) A Band or wave of 3 lines (upper, middle & lower line)
2) A "Candle Line" which moves along with the candles
3) A Leading line which moves ahead of the candles
Method 1 : When candles are being formed above the candle line (line near to candles) and it crosses the band or wave from below to upside, then long trade can be initiated. Similarly, When candles are being formed below the Candle line and it crosses the band or wave from upside then short trade can be initiated. Stop loss can be maintained below the band for Long trade and above the band for short trade. Candle line can be used to trail the stop loss.
Method 2: If candles moves above and below of the band very often and frequently and candle line is in the middle of candles then it is NO TRADING ZONE. If you still want to trade, then select a higher time frame and check the price movement. If there is a stability in the higher time frame, then take the trade in the higher timeframe with stable movement.
Method 3 : Candle line acts as "First line of Defence". In a uptrend, all the candles are formed above the candle line and in case of down trend, all the candles are formed below the candle line. When a newly formed candle cross the candle line then you can book profit. For Example : In uptrend , candles are being formed above the line, when a new candle started forming below the line and when the complete candle is formed below the line, profit can be booked. Vice-versa in case of downtrend.
Method 4: Direction of leading line, band and candle line helps in determining the trend. If all these three components are in upward direction, price trend is upward and if all these three components are in downward direction, then price trend is downward. When, leading line and band cross each other from opposite direction for consecutive 2-3 times, then price movement is sideways.
Method 5 : Thickness of band play an important role in determining price action. If band is narrow, it means small candles are being formed and no any huge price movement is observed in this period. When band started expanding, it signifies that big candles are begin to form and there is a more price movement than before. Similarly, If contraction of band started, it means that small candles are being formed and there is low price movement as compared to the price movement when Band was expanded. If Band is expanded (wider) and volumes are high, It means the Band will act as strong Support or Resistance than usual. In case, candles and candle line cross the expanded Band, you can enter the Long or Short trade.
Method 6: When the Band, leading line and candle line collides or meet at a single point, then it is either strong support or resistance.
Method 7 : Usage in Scalping : Select the shorter time frame of 1 min or 5 min. If the candles are crossing the band very frequently in 1 min, then select 5 min time frame or wait for few minutes for stability. Now, when candles started forming above the candle line and it crosses the band from below then take a long position and book profit after few candles above the band. Place stop loss below the Band. Similarly, when candles started forming below the candle line and it crosses the band from above, then enter into short trade and book profit after few candles. Place stop loss above the band in the case of short trade.
You can combine above methods to give a sharp edge to your trade and increase the probability of your winning in the trade.
Indicator Settings : Default period selected is 50 for both the Band and leading line. You can change the period to 26 or 100 or 200. Select the period and check the chart, if the indicator looks fine and smooth, then you can use your settings. For most of the time, default settings work perfectly.
Proudly Developed by :
Harmandeep Singh
Graduate in Computer Science with Physics & Mathematics
MBA in Business Marketing and Finance
Experienced Computer programmer & Software developer
Stock Market & Crypto Trader
[PX] Pivot ZonesHello everyone,
I was having some fun with the new gradient function, arrays and pivots. Decided that i would publish my little playground :)
This script basically draws lines or zones for detected pivot high and lows and counts the number of candles those levels have been untested.
Tested levels will stop at the candle, which breaks them.
How does it work?
- Define the number of candles that make up the pivot point with the "Pivot Left" and "Pivot Right" parameter (I took more extreme values to showcase the indicator).
- Select your "Layout Type": This can be either a line at the pivot point, a zone between the pivot point and its body or the average of the two.
- You can in-/decrease the number of lines with the "Number of Lines/Zones" parameter.
The older a line becomes the more it will lose of its original transparency.
Hope that might be useful to some of you :)
Please click the "Like"-button and follow me for future open-source script publications.
If you are looking for help with your custom PineScript development, don't hesitate to contact me directly here on Tradingview or through the link in my signature :)
NSDT Support/Resistance ZonesA simple script that allows you to plot 8 different zones of support and resistance. Enter the high and low of a support/resistance zone, and the script will fill the range for easier viewing. Open source and all settings can be customized.
Dynamic Support And Resistance [CC]The Dynamic Support And Resistance Indicator was created by Mike Siroky (Stocks and Commodities pgs 14-18) and this is a handy indicator that will show you useful support and resistance levels no matter how the stock is doing right now. I have color coded the middle line to show buy and sell signals so buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators you want me to publish!
Projected Support And Resistance [CC]Projected Support And Resistance is a custom indicator of mine loosely based on the work done by Ketan Asher (Stocks and Commodities Bonus Issue 2021 pgs 12-14) and generally speaking this does a pretty good job of telling you what the future behavior of the stock will be. As the lines widen apart, there will be either upward or downward momentum. Buy when the line turns green and sell when it turns red.
Let me know what other indicators you would like to see me publish!
(IK) Base Break BuyThis strategy first calculates areas of support (bases), and then enters trades if that support is broken. The idea is to profit off of retracement. Dollar-cost-averaging safety orders are key here. This strategy takes into account a .1% commission, and tests are done with an initial capital of 100.00 USD. This only goes long.
The strategy is highly customizable. I've set the default values to suit ETH/USD 15m. If you're trading this on another ticker or timeframe, make sure to play around with the settings. There is an explanation of each input in the script comments. I found this to be profitable across most 'common sense' values for settings, but tweaking led to some pretty promising results. I leaned more towards high risk/high trade volume.
Always remember though: historical performance is no guarantee of future behavior . Keep settings within your personal risk tolerance, even if it promises better profit. Anyone can write a 100% profitable script if they assume price always eventually goes up.
Check the script comments for more details, but, briefly, you can customize:
-How many bases to keep track of at once
-How those bases are calculated
-What defines a 'base break'
-Order amounts
-Safety order count
-Stop loss
Here's the basic algorithm:
-Identify support.
--Have previous candles found bottoms in the same area of the current candle bottom?
--Is this support unique enough from other areas of support?
-Determine if support is broken.
--Has the price crossed under support quickly and with certainty?
-Enter trade with a percentage of initial capital.
-Execute safety orders if price continues to drop.
-Exit trade at profit target or stop loss.
Take profit is dynamic and calculated on order entry. The bigger the 'break', the higher your take profit percentage. This target percentage is based on average position size, so as safety orders are filled, and average position size comes down, the target profit becomes easier to reach.
Stop loss can be calculated one of two ways, either a static level based on initial entry, or a dynamic level based on average position size. If you use the latter (default), be aware, your real losses will be greater than your stated stop loss percentage . For example:
-stop loss = 15%, capital = 100.00, safety order threshold = 10%
-you buy $50 worth of shares at $1 - price average is $1
-you safety $25 worth of shares at $0.9 - price average is $0.966
-you safety $25 worth of shares at $0.8. - price average is $0.925
-you get stopped out at 0.925 * (1-.15) = $0.78625, and you're left with $78.62.
This is a realized loss of ~21.4% with a stop loss set to 15%. The larger your safety order threshold, the larger your real loss in comparison to your stop loss percentage, and vice versa.
Indicator plots show the calculated bases in white. The closest base below price is yellow. If that base is broken, it turns purple. Once a trade is entered, profit target is shown in silver and stop loss in red.
Support Resistance ChannelsHello All,
For Long time I was planning to make Support/Resistance Channels script, finally I had time and here it is.
How this script works?
- it finds and keeps Pivot Points
- when it found a new Pivot Point it clears older S/R channels then;
- for each pivot point it searches all pivot points in its own channel with dynamic width
- while creating the S/R channel it calculates its strength
- then sorts all S/R channels by strength
- it shows the strongest S/R channels, before doing this it checks old location in the list and adjust them for better visibility
- if any S/R channel was broken on last move then it gives alert and put shape below/above the candle
- The colors of the S/R channels are adjusted automatically
You can set/change following settings:
- Pivot Period
- Source : High/Low or Close/Open can be used
- Maximum Channel Width %: this is the maximum channel width rate, this is calculated using Highest/Lowest levels in last 300 bars
- Number of S/R to show : this is the number of Strongest S/R to show
- Loopback Period: While calculating S/R levels it checks Pivot Points in LoopBack Period
- Show S/R on last # Bars: To see S/R levels only on last N bars
- Start Date: the script starts calculating Pivot Point from this date, the reason I put this option is for visuality. Explained below
- You can set colors/transparency
- and You can enable/disable shapes for broken S/R levels
Examples:
You can change colors as you wish:
here " Show S/R on last # Bars " set 100:
Sometimes visuality may corrupt because of old S/R levels, to solve it you need to set "Start Date" in the options to start the script in visual part (last 292 bars)
here in first screenshot it doesn't look good (shrink), then on second screenshot I set the "Start Date" it looks better, if you change time frame don't forget to set it again :)
Enjoy!
NSDT Pivot Points PlusThis script uses the Traditional Pivot Points but includes the price levels and the 50% line between levels. We added the ability to change the line color of the major levels and the minor levels independently, for better clarity. Added alerts - used code from QuantNomad.
Pivot Points description from TradingView default indicator:
Pivot Point analysis is a technique of determining key levels that price may react to. Pivot points tend to function as support or resistance and can be turning points. This technique is commonly used by day traders, though the concepts are valid on various timeframes. There are several methods of identifying the exact points. Common types of pivot points are Traditional, Fibonacci, Woodie, Classic, Camarilla and DM and each type has its own calculation method.
Most use a variation of significant prices such as established highs, lows, opening and closing prices and then apply a calculation to determine these points. They all calculate additional support and resistance levels alongside the pivot points. They can be used to determine when to enter or exit trades or to determine the range of a market. Conservative traders look for additional confirmation before entering a trade. Whether pivot points are used alone or in combination with other techniques, they are a useful tool in a technical trader's toolbox.
[RickAtw] O1 Opening Market LineThis indicator helps to identify current support and resistance based on the opening of the Asian, London and New York sessions.
Function
You can make good trade entries based on these lines. Shows daily and weekly openings of each session
It will also help you to look at which session you are currently trading)
Purple ----> Asian session
Red ----> London session
Blue ----> New York session
Key Signal
buy ---> A strong buy signal is a bounce from the low and the presence of a weekly or day open line.
sell ---> A strong sell signal is a bounce from the maximum and the presence of a weekly or day open line.
P.S. Be sure to test on your pair!
Remarks
This will help you determine the approximate area of support and resistance.
Since we cannot look into the future, it does not inform you about the exact records, but a possible change in trends.
Readme
In real life, I am a professional investor. And I check each of my indicators on my portfolio and how effective it is. I will not post a non-working method. The main thing is to wait for the beginning of trends and make money!
I would be grateful if you subscribe ❤️
NSDT Pivot ZonesThis is a new take on Traditional Pivot Points. By modifying the calculations, we were able to create "pivot zones" with a decent degree of accuracy.
PRIME - ShadoW ZoneZ with RSI LevelsIn This experimental study, we've taken RSI data, Volume Profile, and Trend analysis, combining them into one unique package that will allow a trader to analyze market trend lines and their proposed channels, trend momentum through candle color augmentation similar to "Pulse", and Visible Volume index price levels on chart for the current sequence. Below are explanations of each function within the system.
The Semafor is used to spot future multi-level Supports and Resistance zones.
It is also useful to spot HL or LL or HH or LH zones at different Depth settings.
The red zones are the extreme places where the market has a higher chance of reversing while the green zones have the lowest setting with lower chances of the market reversal
Automatic Trend Lines
The indicator takes in 2 timeframes to detect High and Low values from which to draw the trend lines of each timeframe.
As the values change with price movement, the lines are updated. They are color coded for uptrend and downtrend based on the direction of each individual line. Trend lines can be set up to color with only the default value on the configurations panel.
- Toggle on/off Color Coded
- Change Default, Uptrend, Downtrend color
- Change Line Width
- Change Line Style
- Toggle on/off Line Extensions
- Change Extended Line Width
- Change Extended Line Style
- Toggle On/Off labels for 7 data points of each timeframe
Automatic Trend Sights
This is a neat feature that may help you get a better feel for the direction the current movement is heading towards in correlation with the short or medium length timeframe trends. The sight draws a line from the middle vertical point of the trend coordinates towards the current price. They are toggled off by default but can be enabled in the configurations panel.
- Toggle on/off sight on each timeframe
- Change Width
- Change Line Style
Support & Resistance Levels, the main aim of the study. Level calculations are based on Relative Strength Index ( RSI ) threshold levels of oversold/overbought and bull/bear zones, where all threshold values are customizable through the user dialog box. Background of the levels can be colored optionally.
RSI Weighted Colored Bars and/or Mark Overbought/Oversold Bars , Bar colors can be painted to better emphasis RSI values. Darker colors when the oscillator is in oversold/overbought zones, light colors when oscillator readings are below/above the bull/bear zone respectively, and remain unchanged otherwise. Besides the colors, with “Display RSI Overbought/Oversold Price Bars” option little triangle shapes can be plotted on top or bottom of the bars when RSI is in oversold/overbought zones .
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
Bull Market Support Band (20w SMA, 21w EMA)This moving average indicator is a bull market support band. It's significance comes from the previous bull runs where the price was bouncing off or riding from a distance the support band until the end of the market cycle. For example, during the 2017 bull run, Bitcoin had several 30-40% corrections to the support band.
The green line represents the 20 weeks simple moving average and the red line represents the 21 weeks exponential moving average. The best way to read the current value is to look at the weekly chart, but any time frame will display the same values.
Ichimoku + 2 base linesIchimoku + 2 base line
This indicator is a combination of Ichimoku cloud indicator with two base lines.
The first base line is the same as the Ichimoku default settings but the baseline 2 indicates an average of 108 candles in the past and it acts as a strong support and resistance level.
How to use this indicator?
You can use this indicator to see if a break out is true or is a false break. For example if the price broke up the Ichimoku cloud and base line 2 is above the price, it will probably react to that area but if it's below the price, it is a good opportunity to buy. (for sell/short position it is in the opposite way the base line 2 should be above the price)
If you want to trade in support zones base line 2 (108) is a very good area that you can wait for a good candlestick pattern to enter a position.
Caution: before using this indicator please back test it and if the results were good enough, use it as a confirmation.
NSDT Pre-Market Breakout LevelsA simple way to identify potential breakouts at the New York market open. This indicator plots the high and low of the New York Pre-Market, providing a great visual of a potential breakout levels.
HTF Highs Lows [JV]█ OVERVIEW
This script presents a label with an overview of higher timeframe highs and lows. This can be useful information as we all know that price likes to revisit previous highs and lows area, specially on the higher timeframe.
█ CONCEPTS
This information can be relevant and valuable for various reasons:
Finding horizontal Support and Resistance
Get a better view on Market Structure
Provide some information about Order Flow
TrendLines
...
█ FEATURES
Plots
This script provides the option to show information about 3 timeframes
Each timeframe can be separately shown or hidden
The Y position of the info label can be user defined, based on high or low of the chosen timeframe
The X offset of the info label can be adjusted to the user's liking and the chart resolution
The label color and text color can be user defined
The info label's size can be user defined
█ NOTES
Caveat
The timeframes must be chosen in order of size. Meaning that the highest timeframe should be on top. This is title as such on the info label, but I want to mention it again as it's something to pay attention to.
Repainting
The question that pops up all the time is: Does it repaint ?
I will quote PineCoders on this:
We're pretty sure Wilder was not asked very often if RSI repainted. Why? Because it wasn't in fashion—and largely unnecessary—to ask that sort of question in the 80's. Many traders back then used daily charts only, and indicator values were calculated at the day's close, so everybody knew what they were getting. Additionally, indicator values were calculated by generally reputable outfits or traders themselves, so data was pretty reliable. Today, almost anybody can write a simple indicator, and the programming languages used to write them are complex enough for some coders lacking the caution, know-how or ethics of the best professional coders, to get in over their heads and produce code that does not work the way they think it does.
Briefly: yes, it repaints and no it does not matter.
Simple because we are working with highs and lows on a higher timeframe. So if we get a new high or low within a certain time frame, we want this new high or low to be displayed and, for me, it's not relevant if this information appears when it happens or when the candle closes.
Questions & Suggestions
Questions, suggestions or even a word of thanks are always welcomed in the comments section. I usually answer within the same day.
█ THANKS
A word of thanks to, and I hope I am allowed to use hyperlinks here, LonesomeTheBlue for being an inspiration on coding style and his work on arrays in Pine Script and to lmatl for his support, words of advice and letting me borrow his brain now and then.
pivot semaphore support&resistance levels [LM]Hello Traders,
I would like to introduce you pivot semaphore support&resistance levels. The idea is the same as the zigzag script of mine to spot the importance of support&resistence
The Semafor is used to spot future multi-level Supports and Resistance zones.
It is also useful to spot HL or LL or HH or LH zones at different Depth settings.
The red zones are the extreme places where the market has a higher chance of reversing while the green zones have the lowest setting with lower chances of the market reversal
The lines can be extended like so
The lines also can just stop extending when price will reach it
Enjoy!
Multi Time Frame Candles with Volume Info / 3DHello Traders,
This is my second Multi Time Frame Candles script but with this new one, you will have some new features such volume info, remaining time to close of higher time frame candle and also developed using new features of Pine such array of lines. also I tried to make it 3D for better visualization ;) also it shows new highs/lows / breakouts.
I tried to make many things optional, so you can change almost everything using options.
What you can change using options:
- Higher time frame
- Number of Candles
- Candle Colors Up/Down
- Wick Color
- Volume colors Up/Down
- Text color of Remaining Time
- Shadow Color
- Background color
- Start bar of the candles (so you can see many higher times frame candles in same window)
- 3D effect, by default it's enables but you can disable 3D view
Lets see some examples:
Remaining time:
Breakouts:
You can combine different higher time frames:
if you don't want 3D view then combining different higher time frames:
You can change background color:
Enjoy!