ATR Trend Bands [Misu]█ This indicator shows an upper and lower band based on price action and ATR (Average True Range)
The average true range (ATR) is a market volatility indicator used in technical analysis.
█ Usages:
The purpose of this indicator is to identify changes in trends and price action.
It is mainly used to identify breaking points and trend reversals.
But it can also be used to show resistance or support levels.
█ Features:
> Buy & Sell Alerts
> Buy & Sell Labels
> Color Bars
> Show Bands
█ Parameters:
Length: Length is used to calculate ATR.
Atr Multiplier: A factor used to balance the impact of the ATR on the Trend Bands calculation.
Lignes de tendance
Support Resistance Channels/Zones Multi Time FrameHello All,
For long time I have been getting a lot of requests for Support/Resistance Multi Time Frame script. Here ' Support Resistance Channels/Zones Multi Time Frame ' is in your service.
This script works if the Higher Time Frame you set is higher than the chart time frame. so the time frame in the options should be higher than the chart time frame.
The script checks total bars and highest/lowest in visible part of the chart and shows all S/R zones that fits according the highest/lowest in visible part. you can see screenshots below if it didn't make sense or if you didn't understand
Let see the options:
Higher Time Frame : the time frame that will be used to get Support/Resistance zones, should be higher than chart time frame
Pivot Period : is the number to find the Pivot Points on Higher time frame, these pivot points are used while calculating the S/R zones
Loopback Period : is the number of total bars on higher time frame which is used while finding pivot points
Maximum Channel Width % : is the percent for maximum width for each channel
Minimum Strength : each zone should contain at least a 1 or more pivot points, you set it here. (Open/High/Low/Close also are considered while calculating the strength)
Maximum Number of S/R : the number of maximum Support/Resistance zones. there can be less S/Rs than this number if it can not find enough S/Rs
Show S/R that fits the Chart : because of we use higher time frame, you should enable this option then the script shows only S/Rs that fits the current chart. if you disable this option, all S/R zones are shown and it may shrink the chart. also you may not see any S/R zone if you don't choose the higher time frame wisely ;)
Show S/R channels in a table : if you enable this option (by default it's enabled) then lower/upper bands of all S/R zones shown in a table ( even if it doesn't fit the chart ). you can change its location. zones are sorted according to their strengths. first one is the strongest.
and the other options is about colors and transparency.
Screenshots before and after zoom-out:
after zoom-out number of visible bars and highest/lowest change and it shows more S/R zones that fits the current chart!
if you see Support Resistance zone like below then you should decrease ' Maximum Channel Width ' or you should set higher time frame better:
You can change colors and transparency:
You can change Table location:
Alerts added :)
P.S. I haven't tested it so much, if you see any issue please drop a comment or send me message
Enjoy!
Auto Fibonacci Levels + Auto Trend Line generatorAnother indicator for you guys!!!
This indicator consists of the 5 key Fibonacci retracement levels, plotted automatically to user input settings. I also have included an auto support/resistance trend line generator.
What is a Fibonacci retracement?
'Fibonacci retracement is a method of technical analysis for determining support and resistance levels. It is named after the Fibonacci sequence of numbers, whose ratios provide price levels to which markets tend to retrace a portion of a move before a trend continues in the original direction.' - Wikipedia
How to use the Fibonacci retracement?
- The Fibonacci levels are default. These percentiles from price to the average of the high in a sample and low in a sample give you a guideline of where a bottom may be, where a top may be, and where a range is being created.
- Look for the price to reject from 61.8% and 76.4%, and also look for price to bounce from 38.2% and 23.6%. If a lower low/higher high is made, the fib levels will follow and the percentiles within will be recalculated after a 5 candle offset period.
- If you see price trending towards the lower percentiles (38&23) and using the 50% as resistance, look for a break downwards and vice versa.
-This Fibonacci set as all others is subject to fake-out, always use this with another series indicator, or don't use it as a signal for entry at all (unless you have a backdated strategy)
How to use the trend line generator?
-The trend line generator will only plot when a lower low/higher high has taken place within the input amount of candles. It is also offset by a user amount.
-The check box will give the option to have the trend line's plot or not.
- If you see a green/red dot it means that that will be your first coordinate for the trend line, and until the computations are complete it will give you an idea of which direction it will be in (resistance or support)
-When opening this indicator zoom out all the way to connect any trend lines that do not load automatically.
Let me know if you have any questions, suggestions or issues! Thank you everyone!
-Cheatcode1 :)
SP:SPX TVC:DXY BMFBOVESPA:EUR1! CME:BTC1! BINANCE:BTCUSDT
Interactive trendlineThis is a concept that I have been playing with
to make a manual trend line that has more then just two connecting dots
but that has sequential data connected on every bar between the
beginning an the end point that can then be used to determine a break of trend or
a bounce.
This is added in a few simple steps
1) add the indicator to your chart
2) set the x_1 time bar
3) set the y_1 price
4) set the x_2 time bar
5) set the y_2 price
6) check the table that calculated the run value and enter that value in the settings box in the "Run" input box
Khate ravandThis script draws trendlines from the pivot points in the price chart.
//
// The input for the function that draws the trendlines is any calculation or function
// (here this is pivot points, but the core of the script can be used in other implementations too),
// that most of the time and occasionally produces a 'non n/a' value.
// The trendline function then connects the non n/a values and extends the connections of those points in a trendline.
//
// There is an option to draw the lines from the wicks or from the 'real bodies' of the candles.
// The trendlines can either extend infinitely or only run for an adjustable amount of bars.
//
// There's an option to display trendline breaks
// And the option to display trendlines in color or monochrome
//
Trend LinesHello Everyone.
This is my first script on TV, hope you find it useful.
How it works?
- On each bar it finds last x (depending on your settings) higher and lower Pivot Points ( PP ).
- It searches for possible trend line from oldest PP to newest, once found it stops and draws the line.
- The higher the time frame the lower the number of PP needed. Play around with the number of PP and left/right bars needed to confirm a PP and you get different results.
For suggestions don't hesitate to contact me
Easy TrendCurrent script displays trend channel, which makes it easy to see reversal signals
Note:
- If price goes above the channel it might be an early sell signal
- If price falls from channel it might be a sell signal, better to enter position on retest
Plan for future development:
- Alerts
- Trend angle
dize Multi-Timeframe TrendHi Trader,
the "Multi-Timeframe Trend" indicator is one part of our holistic approach to identifying trading setups. It is one of many indcators of our dize indicator package and should always be used in conjunction with the other dize indicators.
💡 What is the MTF Trend indicator?
Our "Multi-Timeframe Trend" indicator allows to view the trend on different timeframes. The multi-timeframe approach helps us to filter out noise from the market and to find the overarching trend. In addition to the trend, the indicator also shows the percentage change for each up and down movement, which is an expression of the trend strength. We use a proprietary approach to identifying turning points, which will be used for trend recognition.
Furthermore, we connect the most recent dominating highs and lows to create two trendlines at the most right side of the chart.
💡 How to use it?
Using the "Multi-Timeframe Trend" indicator is pretty straight forward. After applying it to your chart you will have to adjust the "Resolution" parameter in the settings. Please be aware, that the selected resolution should always be higher than the displayed chart timeframe. Once that is done, the indicator will show the up- and downmovements of the higher timeframe on your chart.
To fine-tune the trendlines, you should first activate the "Show Trendlines" checkbox. After that we will use the "Trendlines Depth" parameter to detect the most optimal trendlines out of the latest "n" up and down turning points.
Let's have a look:
In the above example you can see a daily Bitcoin chart with a weekly MTF Trend configuration. Initially it shows an uptrend. You will notice how the up- and downswing percentages change over time and move into favor of the bears. The red numbers (downmovement) increase, while the green number (upmovement) decrease. It's easy to identify the sentiment shift. Lastly, the indicator shows two trendlines, which both indicate the current direction of the market.
🔓 To gain access to this indicator, please read the signature field.
Bounce Manager TrendlinesThe trendline script is made for manual input of trendlines using point clicks on the chart. The script will then see if price respects these lines by the parameters you input in settings panel. On a respectable bounce it will print buy/sell arrows. The script also has functionality to send alerts, this is helpful if you want to automate trendlines . I created this script and many others under the bounce manager toolkit to expand on the signalling capabilities of popular drawing tools as I find using just a crossover to be lacking especialy for full automation.
components:
- Line respect: When price moves past this the script will no longer look for entry until a new trend has been established. The line can also be used as a stop loss.
- Confirmation: When price touches the line during a trend it
will wait to cross over this line to confirm a reaction from the line.
- Consolidation filter: A trend filtering system, this is a distance from
the line price has to break to confirm trend direction.
- Stop loss: This can be set to a percentage distance from the low after
bounce. Or it can be set to the line respect line
- Take profit: This can be a fixed take profit target or a risk to reward
based take profit. With risk to reward it will multiply the stop loss
distance by the input and use that to create target (green cross)
- ATR based or % based: there are 2 versions of the script, one for strict
percentage based logic and another one based on ATR values
If you are having problems figuring out which settings to use I recommend you check the Bounce Manager ATR script for reference as this script plots the components:
Zignaly automation settings:
zignaly integration, you can use the settings panel to decide your risk management. Option to use a fixed take profit % or an automatic risk to reward calculation based on the stop loss. Stop loss can get calculated using the max violation setting as a stop loss (this will put stop loss below line respect level) or when not checked it will use 0.01% below the low of the signal candle as stop loss. Just add your zignaly private key in the settings and use any alert function call as alert. Make sure to use zignaly.com as your webhook url.
If 5 trendlines are not enough use the 20 line input version, this script is for the clean strong trendline trader.
Part of the Honest Algo indicator suite
[UPRIGHT Trading] Auto-Trendlines Pro (cc)Hello Traders -
Today I am releasing a full-featured auto-trendline indicator.
This makes it easier for beginners and professionals alike to analyze a charts trending support and resistance.
What are Trendlines and why do we use them?
In short, a trendline is a diagonal line that connects to two or more price points on a chart to show the current direction of price. These are used to identify and confirm trend direction in technical analysis and show support and resistance points.
Utilizing pivot points and different calculations for sources we're able to create the trendlines; with adjustable slopes (or just use of proprietary calculations) we are able to make these lines to line up with the current trend.
How it's different:
Accurate auto-drawn calculated trendlines.
Fully customizable - the ability to adjust the trendlines easily to exact specifications with every type of trader in mind.
Can be used to spot long trend as well as short, by adjusting length or using extend both to see previous pivots it's touched.
Then retracted, for perfect long trend.
Can show old trendlines for analysis (click image to see).
Auto-labels Higher-Highs, Higher-Lows, Lower-Highs, Lower-Lows at pivots.
Lining up trendlines with Break signals can help provide more accurate trendlines (potentially teaching) beginners how to draw them better.
Signature double trendline set.
Also notice the additional sell/buy signals (shown above).
Squeeze / Low-float mode adjusts to fit big moves.
Adjust the opacity to hide or fade a line (as seen above).
Pre-filled alerts for breakouts / breakdowns.
Please see author instructions for access.
Cheers,
Mike
(UPRIGHT Trading)
Smarter SNR (Support and Ressistance, Trendline, MTF OSC)Built with love "Smarter SNR (Support and Ressistance, Trendline, MTF OSC) "
This indiator will show you Support & Ressistance, Good Trendline, and Multi-timeframe analyzing of Oscillator (Stochastic and RSI)
You can combine with your own strategy, or use this purely
DISCLAIMER :
Measure the risk first before use it in real market
Backtest The Strategy was very important, so you know the probability
Fundamentally Logical :
SNR -> Last 3 Zigzag Pivot
Trendline -> Using two last pivot for calculating the slope
Features :
1. SNR
2. Trendline
3. MTF Oscillator Analyzing
How to use it :
1. All Label, Table & Line can be turned on/off in settings
2. Pivot Period can be Adjusted in settings
3. All Label, Table & Line style can be adjusted in settings
Regards,
Hanabil
TrendLineScalping-BasicDear Traders,
Here is the thought which came to my mind on the trendline break scalping. sometimes during the trade we do plot trendlines and we do anticipate for the line to break and take a trade. with the same thing in mind I had created this basic script to help you and other to create based on the logic used in the script.
This is just a logic based script and doesn't do any kind of wonders. Hence you may use it as necessary.
Regards....
Gann FanHello All,
For long time I have been getting many requests about Gann Fan indicator. now we have linefill() function in Pine Language and I think it's right time to make Gann Fan Indicator. Many Thanks to Pine Team for adding many new features to the Pine Language!
How this indicator works:
- It calculates midline (1/1)
- By using midline it calculates other lines (1/2, 1/3, 1/4...etc)
- It calculates highest/lowest Pivot Points in last 280 bars.( by default it's 280 bars, you can change it and pivot period )
- It checks the location of highest/lowest Pivot Points
- After the calculation of the Gann Fan lines, it draws lines, puts Labels and paints the zones between the lines according to the colors set by the user
Long time ago I created a special algorithm for calculating the line with 45 degree and I used it for "1/1" line. Anybody who needs it can use this algorithm freely ;)
Options:
You can change following items;
- The colors
- Transparency. Possible values for transparency are from 0 (not transparent) to 100 (invisible)
- Line styles
- Loopback Period (by default it's 280)
- Pivot Period (by default it's 5)
- Enable/disable Labels
- Label location (by default it's 50
Tradingview Gann Fan page : The Gann Fan is a technical analysis tool created by WD Gann. The tool is comprised of 9 diagonal lines (extending indefinitely) designed to show different support and resistance levels on a chart. These angles -drawn from main tops and bottoms- divide time and price into proportionate parts and are often used to predict areas of support and resistance, key tops and bottoms and future price moves. Please note that the chart needs to be scaled properly to ensure the market has a square relationship....
Enjoy!
Support Resistance InteractiveHello All,
Using this "Support Resistance Interactive" script you can set the Support/Resistance levels interactively by clicking on the chart. Using the SR levels you set, the indicator creates Support Resistance zones. The width of the zones are calculated by using Threshold option and Threshold is the percent of the distance between Highest/Lowest levels in last 300 bars. if you set Threshold = 1 then it means 1% of the distance between Highest/Lowest levels. You can change SR levels by moving the level up/down by using your mouse anytime you want.
Now lets see it step by step;
After you added the indicator it will ask 5 Support/Resistance Levels and when you click any point then it's kept as S/R level and it asks another SR levels. if you want to use only 3 SR levels then last 2 SR levels are not important and you can click anywhere on the chart;
After you set all SR levels, it will ask "Number of Support/Resistance" . if you want to activate first 3 SR lines then set it 3. by default it's 5. when you set it click "Apply" and see the SR zones. that's it.
You can enable/disable alerts and set frequency, then create alerts. as it's interactive tool, the SR levels you set are specific for the current/active symbol. if you open another symbol then you better delete the indicator and add it again
Three Alerts exist in the script: Support Broken, Resistance Broken and Price in SR zone . you can enable/disable the alerts as you wish and you can set frequency for each one as "Once Per Bar" or "Once Per Bar Close"
by default Green/Red/Gray colors are used but You can change the colors using the options. according to the Price moves, SR zone colors are changed automatically.
when we have "Reset" feature to run the script interactively (like we added it for first time) I can update the script, then you will not need to delete/re-add each time you changed the symbol :)
In this example "Threshold" is 2 and "Number of Support/Resistance" is 4.
in this example "Threshold" is 0 and "Number of Support/Resistance" is 5.
Last example; Labels are shown for each zone, you can set location of the labels. SR order and Upper/lower band of each zone are shown in each label.
Enjoy!
HAP Auto Trend Line [PRO]Hello Traders!
The trend line is among the most important tools used by technical analysts. Instead of looking at past business performance or other fundamentals, technical analysts look for trends in price action. A trend line helps technical analysts determine the current direction in market prices. Technical analysts believe the trend is your friend, and identifying this trend is the first step in the process of making a good trade, and it can tell Support/resistance is very good.
But when drawing Trend Lines, sometimes we're not sure where to start. From where is the starting point? And sometimes it can be drawn multiple lines with different support/resistance lines over time. This itself can be confusing, so I tried to create a tool that allows it to draw lines automatically. According to price movement.
Let's take a look at the variables you need to understand from our indicators.
For this indicator it works in two main parts:
Section of Trend Line
Trend Reversal section
Therefore, these two parts have separate functions. To be used as a component for easier decision-making.
Trend Line, as I said before, what it is. Next is Trend Reversal. I will simply say it is. A period of time when the candle tries to pump and dump. This will help point out the potential price reversal. And if there is a trend line area, it is an interesting point to consider. To identify possibilities.
Some variables from the settings page
Number of Bars to Check : It is the number of past candlesticks to consider. To identify the start of the Trend Line, if it meets the condition, it will automatically draw the Trend Line for you.
Trend Line Depth : It is the frequency. Of identifying the starting point Trend Line. If the value is large, it will find a low Trend Line, and if it is low, it will find more Trend Line. This is flexible. So you have to try it yourself. On demand.
Overview
You can turn it on or off. Support/resistance position either.
Select Emoji Support/resistance. Freely
Line style you want
your favorite color
customizable line intensity
the script is fast enough to run on 1sec chart:
fun !
Indicators OverlayHello All,
This script shows the indicators in separate windows on the main chart. Included indicators are RSI, CCI, OBV, Stochastic, Money Flow Index, Average True Range and Chande Momentum Oscillator. indicator windows are located at the top or bottom of the chart according to last moves of the Closing price. Different colors are used for each indicator. Horizontal levels are shown as dashed line and label as well.
Using the options;
You can enable/disable the indicators you want to see or not
You can change source and length for each indicator
You can set window length. using this length indicator windows are located on the chart
After you added this indicator to your chart I recommend: right click on any of the indicator windows => "Visual Order" => "Bring to front" as seen screenshot below:
in this example only 3 indicators enabled and period is set as 80:
indicator windows moves to the top or bottom of the chart according to the close price:
P.S. if you want to see any other indicator in the options then leave a comment under the indicator ;)
Enjoy!
3rd WaveHello All,
In Elliott Wave Theory, 3rd wave is not the shortest one in the waves 1/3/5 and it's usually longest one. so if we can catch it then we may get good opportunities to trade. This script finds 3rd wave experimentally. it can be also the 3rd waves in the waves 1, 3, 5, A and C. the 3rd wave should have greater volume than other waves, the script can check its volume and compare with the volumes of the waves 1 and 2 optionally.
Pine Team released Pine version 5! This script was developed in v5 and it uses Library feature of Pine v5 for the zigzag functions. This script is also an example for the Pine developers who learn Pine v5 and Libraries.
Options:
Zigzag Period: is the length that is used to calculate highest/lowest and the zigzag waves
Min/Max Retracements: is the retracement rates to check the wave 2 according to wave 1. for example; if min/max values are 0.500-0.618 then wave 2 must be minimum 0.500 of wave 1 and maximum 0.618 of wave 1.
Check Volume Support: is an option to compare the volumes of1. 2. and . waves. if you enable this option then the script checks their volume and 3rd wave volume must be greater then 1 and 2
there are 4 options for the targets. you can enable/disable and change their levels. targets are calculated using length of wave 1.
Options to show breakout zone, zigzag, wave 1 and 2.
and some options for the colors.
The Library that is used in this script:
P.S. This is an experimental work and can be improved. So do not hesitate to drop your comments under the script ;)
Enjoy!
LTB Zigzag CirclesHello All,
Today I am here with a new idea and script, " LTB Zigzag Circles ". The idea is to create Circles using last 2 zigzag waves and to catch the breakouts earlier than horizontal lines. if a circle is broken then the script shows entry for Long/Short positions. and if broken circle reappears again then the position is closed. You can change Zigzag period as you wish and see the different results.
Here you can see how the script calculates and draws the Circles:
Below you can see how the script draws part of the circle on each bar:
Optionally the script can show levels:
P.S. I haven't tested it as a strategy, Result and Performance may change by Zigzag period, you need to find best Zigzag period according to your strategy. By the way, my Zigzag Circles idea can be improved, if you have any recommendation let me know please ;)
Enjoy!
Auto Support Resistance [WS]This is paid version.
If you wanna use free version
This show support line, and resistance line.
moderately! and beautiful way!
also proper trend line .
you cannot see source code, but it doesnt have any secret formula.
It use just pivot function.
( i just wanna keep my design tech. )
it has 3 type line.
1. horizontal. yellow. default pivot size is 15
2. connection of top(peak, blue). pivot size 10
3. connection of bottom(green). pivot size 10
you can change pivot size.
it has one speical option about volume .
if the bottom has too small volume , it cannot be starting point.
if you want every bottom can be starting point, you can turn off the option.
each point has name like H6, G8.
this name help you to talk with someone about the point, sharing the infomation.
that name is base on the time of candle (it mean it is not randome). so in your friend chart(screen), the point has same name.
=========================================
한글 설명.
이 지표는 유료버전입니다.
무료버전은 위의 그림을 누르시면 됩니다.
아름답게 절제된, 그리고 적절한 추세선들을 자동으로 보여줍니다!!!
소스코드를 볼 수 없지만, 추세선을 결정하는 비밀 수식 같은 것은 없습니다.
오직 pivot피봇 함수만을 사용하여 고점과 저점을 찾고 있습니다.
선은 3가지가 있습니다.
1. 고점을 연결한 선. 파란색. 기본 피봇 10
2. 저점을 연결한 선. 녹색. 피봇 10
3. 고점 또는 저점의 수평선. 노란색. 피봇 15
특별한 기능이 하나 있는데, 볼륨이 낮은 저점은 녹색선의 시작점이 되지 못하게 하는 기능입니다.
이 기능은 옵션에서 끄거나, 정도를 조절할 수 있습니다.
각 고점 저점은 H4, G8 같은 이름을 가지고 있습니다.
이 이름은 여러분이 차트분석을 올리거나 친구와 차트에 대해 대화를 나눌 때 유용하게 쓰일 수 있습니다.
이 이름은 캔들의 시간값을 이용하며 (무작위로 지어진게 아니라는 의미), 그래서 친구의(모두의) 화면에서 같은 이름을 보여줍니다.
점선은 확장선이며, 기본은 30, 최대 55까지 늘릴 수 있습니다.
(너무 늘리면 화면이 복잡해집니다.)
가장 최근의 고점과 저점 수평선은 무한대의 길이를 가집니다.
그 외의 수평선은 적당한 길이로 조절되어 출력됩니다.
간혹 3개의 선으로 나뉘어 보이거나 투명도가 변하곤 하는데 이는 특별한 의미를 보이려는 것이 아닙니다. 트레이딩뷰 파인스크립트의 한계로 인한 현상입니다.
Point and Figure Chart - LiveHello Traders,
This is "Point and Figure Chart (PnF)" script that run in separated window in real time. The separated PnF chart window is timeless, so no relation with the time on the chart. PnF chart consist of "X" and "O" columns. While "X" columns represents rising prices, "O" column represents a falling price. If you have no idea about what PnF charting is then you should search for "Point and Figure Charting" on the net and get some info before using this script.
Now lets talk about details. PnF Chart requires at least two variables to be set => Box size and Reversal. Box size represents the size of each X/O in PnF chart and the reversal is used to calculate new X/O or reversal. for example if currrent column is X column then for new "X", "box size * 1" move is needed and for new "O" column or reversal, "box size * revelsal" move is needed. in the script I use lines as X/O columns.
In the options you can set "Box Size Assingment Method". you have 3 options Traditional, ATR, Percentage . what are they?
Traditional: user-defined box size, means you can set the box size as you wish, using the option . if you use this option then you should set it accordingly.
ATR : that's dynamic box size scaling and on each columns it's calculated once, you can set length for ATR
Percentage: that's also dynamic box size scaling according to closing price when new column appeared. if you use this option then you should set it accordingly.
Reversal: The reversal is typically 3 but you can change it as you wish
"Change Bar Color by PnF Trend": if you enable this option then bar color changes by PnF columns, by default it's not enabled
"Change Column Color When Breakout Occurs": PnF color changes if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
"Change Bar Color When Breakout Occurs": bar colors changed if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
the script checks only Double Top/Bottom breakouts at the moment. there are many other breakouts such Triple/Quadruple, Ascending/Descending Triple Top/Bottom breakouts, Catapult etc.
Also the script shows new X/O level and reversal Levels in PnF window. An example:
If you enable "Change Bar Color by PnF Trend" option:
An example if you disable the option "Change Column Color When Breakout Occurs
You may want to see my another/older "Point and Point Chart" script as well. you can find it in my profile/published scripts and in the Public Library. I use same PnF calculation algorithm in both scripts.
Enjoy!
Divergence for Many Indicators v4Hello Traders,
Here is my new year gift for the community, Digergence for Many Indicators v4 . I tried to make it modular and readable as much as I can. Thanks to Pine Team for improving Pine Platform all the time!
How it works?
- On each candle it checks divergences between current and any of last 16 Pivot Points for the indicators.
- it search divergence on choisen indicators => RSI , MACD , MACD Histogram, Stochastic , CCI , Momentum, OBV, VWMACD, CMF and any External Indicator !
- it checks following divergences for 16 pivot points that is in last 100 bars for each Indicator.
--> Regular Positive Digergences
--> Regular Negative Digergences
--> Hidden Positive Digergences
--> Hidden Negative Digergences
- for positive divergences first it checks if closing price is higher than last closing price and indicator value is higher than perious value, then start searching divergence
- for negative divergences first it checks if closing price is lower than last closing price and indicator value is lower than perious value, then start searching divergence
Some Options:
Pivot Period: you set Pivot Period as you wish. you can see Pivot Points using "Show Pivot Points" option
Source for Pivot Points: you can use Close or High/Low as source
Divergence Type: you can choose Divergence type to be shown => "Regular", "Hidden", "Regular/Hidden"
Show Indicator Names: you have different options to show indicator names => "Full", "First Letter", "Don't Show"
Show Divergence Number: option to see number of indicators which has Divergence
Show Only Last Divergence : if you enable this option then it shows only last Positive and Negative Divergences
you can include any External Indicator to see if there is divergence
- enable "Check External Indicator"
- and then choose External indicator name in the list, "External Indicator"
- External indicator name is shown as Extrn
- related external indicator must be added before enabling this option
Coloring, line width and line style options for different type of divergences.
Following Alerts added:
- Positive Regular Divergence Detected
- Negative Regular Divergence Detected
- Positive Hidden Divergence Detected
- Negative Hidden Divergence Detected
Now lets see some examples:
Hidden Divergences:
Regular and Hidden Divergences together:
Showing first letters of indicators:
You can see only the number of indicators which has divergence:
You can see only divergence lines without indicators names and numbers:
option to used different label/line/text colors:
You have option to see only last divergences:
You can change Pivot Period, in following example Pivot Period = 15:
You can use Close or High/Low as Source for Divergence
You can include external indicators and get divergences on it:
Wish you all a happy new year!
Enjoy!
TrendLine ChannelsAbstract
This script provides a set of Trendline Channels which can be tighter than Donchian Channels.
This script computes the most suitable active upper and lower trendlines and updates them as soon as possible.
We can use it for breakout signals earlier than Donchian Channels.
Introduction
Channels are tools which can mark area of values of ranging markets.
Once the price leaves the original region, range traders may start admitting they are wrong and trigger trend.
Donchian Channels (misheard as Dungeon Channels) use the highest and the lowest price to define area of values.
When the price breakouts, it just like it got released from a dungeon.
However, waiting for the price making even higher or lower may be too late and risk reward ratio may be lower.
Trendlines can make the channels tighter and we can find earlier breakout signals.
Computing Trendline Channels
(1) Find the most active trendlines
In this script, a valid trendline connects two high values or two low values.
A high value means the highest value in a trading day.
A low value means the lowest value in a trading day.
In this script, every trendline does not crossover any bar but can exactly touch them.
The most flat trendline is taken. (one for upper and one for lower)
(2) Continue to use or Change a trendline
If there is a tighter trendline available, this script changes to use it.
If the previous active trendline is broken, this script re-computes the trendline available.
When this case happens, this script display with an another color.
Otherwise, this script continues using the previous trendline.
(3) Middle line
The middle line indicates the middle value between the upper and the lower.
Parameters
Length : how many days are used for computation. The default value is 16 just because 16=4*4, using binary characteristic.
x_go_on : If the previous trendline is not breakout and there are no tighter trendlines available, we continue use it.
Color Options
(1) Upper trendline (no update or tighter)
(2) Upper trendline (changed due to breakout)
(3) Middle line
(4) Lower trendline (no update or tighter)
(5) Lower trendline (changed due to breakout)
Conclusion
Trendline Channels can be tighter than Donchian Channels and evaluate earlier breakout signals.
Comparing to known auto trendline scripts, Trendline Channels is continuous.
Once a trendline is broken, Trendline Channels can instantly point out the next available one.
If you think the price movement is boring or you cannot have good risk reward ratio, you can go to an another timeframe.
Reference
How to trade with Donchian Channels
How to trade with Trendlines
Linear Regression ChannelHello Traders,
There are several nice Linear Regression Channel scripts in the Public Library. and I tried to make one with some extra features too. This one can check if the Price breaks the channel and it shows where is was broken. Also it checks the momentum of the channel and shows it's increasing/decreasing/equal in a label, shape of the label also changes. The line colors change according to direction.
using the options, you can;
- Set the Source (Close, HL2 etc)
- Set the Channel length
- Set Deviation
- Change Up/Down Line colors
- Show/hide broken channels
- Change line width
meaning of arrows:
⇑ : Uptrend and moment incresing
⇗ : Uptrend and moment decreasing
⇓ : Downtrend and moment incresing
⇘ : Downtrend and moment decreasing
⇒ : No trend
An example for how color of lines, arrow direction and shape of label change.
Enjoy!