Parallel Pivot Lines [LuxAlgo]Displays lines connecting past pivot high/low points with each line having the slope of a linear regression. This slope can also be controlled by the user with the 'Slope' setting. Each line can be used as a support or resistance by the user.
Settings
Length : Pivot length. Use higher values for having lines connected to more significant pivots points.
Lookback : Number of lines connecting a pivot high/low to display, with a total of lines equal to Lookback*2
Slope : Allows the user to multiply the linear regression slope by a number within -1 and 1
Limitations
The script has currently several real time behavior limitations. Lines are displayed retrospectively and will not update with the arrival of new bars. Readjusting the indicator to newer pivots will require the user to either hide/unhide the indicator or change its settings.
High Length or Lookback values might not return any lines if the location of a pivot point is outside the defined buffer size of the indicator (set as 5000 bars).
How To Use
The indicator can be used to get supports and resistances and is more so closer to a drawing tool due to its limitations. The lines not updating with the arrival of new bars have the advantage of providing fixed supports/resistances.
The Slope setting allows the user to control the angle and direction of the lines. Using a Slope of 1 will return lines with the same slope as the one of a linear regression fit from the farthest pivot point displayed by the indicator to the most recent bar.
The chart above shows the indicators and a linear regression in orange.
If you want to have horizontal lines, use a Slope equal to 0.
Finally using a negative slope value will allow the user to have lines in opposite directions to the main trend.
Conclusion
We hope you like this indicator (drawing tool) and find it useful for drawing your support & resistances in a unique way!
Lines
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
Example - Future Line DrawingExample primarily focuses on:
• creating a simple function to get a time offset value
• using the offset to set drawing locations in the future
• how to properly set up and manipulate line positions
Extras ( end of script ):
• inclusion of vertical lines for visualising start and end points using the time offsets
• inclusion of label to read out the current time offset forwards/backwards
This script publication is intended for:
• Educational Purposes
Who is it for?
• anyone who wants to learn the basics of drawing using 'time' for purposes of positioning
Donchian Zig-Zag [LuxAlgo]The following indicator returns a line bouncing of the extremities of a Donchian channel, with the aim of replicating a "zig-zag" indicator. The indicator can both be lagging or lagging depending on the settings user uses.
Various extended lines are displayed in order to see if the peaks and troughs made by the Donchian zig-zag can act as potential support/resistance lines.
User Settings
Length : Period of the Donchian channel indicator, higher values will return fewer changes of directions from the zig-zag line
Bounce Speed : Determine the speed of bounces made by the zig-zag line, with higher values making the zig-zag line converge faster toward the extremities of the Donchian channel.
Gradient : Determine whether to use a gradient to color the area between each Donchian channel extremities, "On" by default.
Transparency : Transparency of the area between each Donchian channel extremities.
Usage
It is clear that this is not a very common indicator to see, as such usages can be limited and very hypothetical. Nonetheless, when a bounce speed value of 1 is used, the zig-zag line will have the tendency to lag behind the price, and as such can provides crosses with the prices which can provide potential entries.
The advantage of this approach against most indicators relying on crosses with the price is that the linear nature of the indicator allows avoiding retracements, thus potentially holding a position for the entirety of the trend.
Altho this indicator would not necessarily be the most adapted to this kind of usage.
When using a bounce speed superior to 1, we can see the predictive aspects of the indicator:
We can link the peaks/troughs made by the zig-zag with the precedent ones made to get potential support and resistance lines, while such a method is not necessarily accurate it still allows for an additional to interpret the indicator.
Conclusions
We presented an indicator aiming to replicate the behaviour of a zig-zag indicator. While somehow experimental, it has the benefits of being innovative and might inspire users in one way or another.
Divider by hourHi,
This script will draw divider lines by the hours of current day so that you can have a better view as your desire.
Future Line Example for study PivotPoint I know a lot of people who want to draw a line in future. I asked a lot of good Guys in Pine and they havent a solution. But today i got an idea i want to share with you. I hope this example give you a hint.
it is Usefull if you want to draw it like the Orginal Pivot Point standart or everything else.
I see a lot of Pivot Indicators but all stop at the actual Candle or extended right 100+ Years
Have Fun :)
Label with Trading Idea - ExampleThis is just simple trading idea draw into chart using labels and lines.
Please use it as educational purpose and you are free to modify any part of the script.
Semoga Terhibur.
TECHNICAL ANALYSIS LINESTechnical analysis lines automatically do technical analysis for you. It connects the important points and allows you to see. It calculates the momentum of the price action and makes a target forecast. It should never be used as investment advice. Settings are designed to be fully customizable.
For access link on my profile or message me.
Enjoy :)
lineAlertslineAlerts is a powerful tool to define Buys, Sells and Buy-Sell lines for repeating actions.
The possibilities vary from 1 Buy and/or Sell to repetitive Buying and Selling at definable lines from a specified point in time (Year, Month, Day and Hour to begin).
lineAlerts provides:
+ optional StartBuy and optional EndSell
+ in repeat mode: optional definable ending-action (Buy or Sell, which overwrites Stop-Out/Abort)
+ buy- and sell Lines can be angled separately by using non-zero entries in the Angle %perDay parameter
+ configurable Stop Loss (Percentage, Stop-Out/Abort-Only, Flat or Angled like Buy-Sell-Lines)
+ profit calculation and effective alerts can be set further than the beginning time (ActiveAfter#Hours)
+ empty-bar-correction for lower-liquidity pairs on short timescales (automatically on)
+ optional visual extension to the right for currently active buy-sell lines
+ Slippage Max. Percentage parameter, added to order price for Buying, subtracted for Selling
(represented in the Buy-Sell markings and LastPrice lines, also calculated in Profit/Loss percentages)
+ Full Autoview Alerts automation in the Order parameters (for spot trading, this can be replaced with
your own API commands while creating or modifying the TradingView alerts):
- Separate order size entries for Buying and Selling
- Choice between Percentage or absolute Amount for both Buying and Selling
(choose the corresponding alert-drop-down option when creating an alert!)
The timeframe for running lineAlerts depends on the scale (duration) of the defined pattern.
Running on a very small resolution, e.g. 1-5 Min, is suitable for a pattern of a few days to a week at most.
This is because of the limited available historic data. Keeping your pattern lines shorter than a week on these micro-timeframes will produce accurate results/output. A pattern which may last a few weeks or even months can run flawlessly on a 1H resolution for example.
"Once per bar" is the best alert option in any case. To avoid multiple signals within 1 bar in highly volatile times, it is better to create the alert on the 1 or 4 Hour chart in stead of the daily chart for a pattern of multiple weeks for example.
lineAlerts is suitable for any timeframe on any chart which is open 24/7, like most crypto currencies.
My other published indicators contain a handy combination of new and classical indicators and oscillators.
With lineAlerts, the one defining the lines is in complete control. Results might indicate how good one is at defining trade patterns and at defining suitable stop losses, but lineAlerts is not an indicator as such.
lineAlerts is more something like a visually definable price-line alerter with various stop loss and ending options. There will be a video available with some more explaining.
WARNING:
Note that if an Autoview extension is active for the charted exchange and the according TradingView alerts are activated, it works right out of the box, so make sure to have all order decimals right...
GuidoN - December 2019, July 2020
Previous HighHorizontal line for previous daily, weekly or monthly high.
By default :
Green Label - previous 1 day high
Yellow Label - previous 1 week high
Red Label - previous 1 month high
Each number and color can be change in setting.
Fibonacci EMA [sidd]EMA with Fibonacci Numbers, I have developed this system for finding trend , support and resistance in lower time frame and higher time frame.
If Candles closes below at least 4 Fibonacci line then trend is down if Candles closes are above minimum 4 Fibonacci line the trend is up.
Fibonacci line act as support for Uptrend market similarly same lines act as resistance for downtrend market.
Before new trend start all lines shrink together and looks like single thick line.
And When trend almost matures then all lines are expanded and they have spaces between them.
Hope it will help new trader. This study is not for Buy and Sell.
How To Show Vertical LinesExample of various methods to show dashed or solid vertical lines on chart based on using either session or time.
Credit for line method goes to midtownsk8rguy ->
Credit for plot method goes to PineCoders -> www.pinecoders.com
Special thanks to LucF, midtownsk8rguy, and PineCoders for permission to use their work.
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!
MFCTrade TREND v5 only 4 h The main trend indicator.
Suitable for 1H-1D, on any exchange and on any coin, currency pair, index.
There are basic settings that allow you to adjust the indicator individually for each situation.
Relative Strength Index custom lines and fillingI changed this RSI oscillator to give everyone ability to change position of strategic lines as RSI has a lot more to offer than only overbought and oversold boundries. You can change overbought and oversold line and make one more space depend what you are looking for. For me and as default it is 40-60 range. I put a center line at 50.
Line & Label RGB Color Editor [DW]This script is a template designed to provide developers with UI color customization for v4 lines and labels.
The color pallete used within this script is a full spectrum "web safe" format with 216 colors to choose from.
Colors are easily modified via the RGB inputs. The designated color selector function takes in the RGB values and returns the corresponding hex color.
Transparency can be modified as well. However, the color.new function only supports constant integers for transparency value, so it has to be manually adjusted within the code.
On line 42, you'll see a variable within the color selector function named trans. This is the transparency value, which can be set to any integer from 0 to 100. I have it set to 0 by default.
I included a sample label to demonstrate how the color editor works. It also displays the hex codes for the current label and text colors for some additional reference.
Implementing this in your own script is pretty straightforward.
All you need to do is copy the color selector function and inputs (feel free to name them whatever you want) into your desired script. Then, you can use them to declare your color variables.
[PX] MTF Standard Deviation LevelHello guys,
once again, I want to show you a different method for detecting support and resistance level. Today's approach is similar to the one I posted recently, but the way the level will be detected is different. I call it the multi-timeframe standard deviation level.
How does it work?
The method is similar to the way Bollinger Bands work. First, the indicator calculates the standard deviation, which can be influenced by the "Sensitivity"- and "Length"-setting.
Sensitiitiy - the higher the value, the fewer level will be shown
Length - simply the length for the standard deviation formula
Second, the detected value will be added (for resistance level) or substracted (for support level) from the current close. Once the upper or lower boundaries are crossed, a level will appear and keeps moving until the up- or downward movement finishes. Then the level will settle and stay in place.
Again, as seen in my previous indicator, you can control all the different styles and colors for the levels. The best part is, the whole thing works in a multi-timeframe fashion. In an example, you could select the "Daily" level and plot them on a 4-hour chart.
If you find this indicator useful, please leave a "like" and hit that "follow" button :)
Have fun, happy trading and once again Merry Christmas :)))
[PX] M/W/D LevelHey guys,
this script shows monthly, weekly and daily OHLC data represented as horizontal level.
I tried to make it as user-friendly as possible. Therefore, you can add different colors and styles for each level, as well as turn them on and off.
With the "Label Offset" -parameter you are in control where the label text should appear. You can shift it from left to right and vice-versa. To shift it to the left choose a negative value. To shift it to the right use a positive one.
This best setting for me personally is the "Candle Selection" -dropdown. This allows you to decide wether you want to show the previous candles OHLC-data or the current live OHLC-data.
!!CAUTION!! If you use the "Current Month/Week/Day" -selection be aware that values shown are "live"-data of the current candle. Therefore, values will change the same way your chart keeps changing on live data.
The "Previous Month/Week/Day" -selection on the other hand is historical data and therefore only changes once we reached a new month/week/day.
If you like my work, consider leaving a like :)
Happy trading!
[HT] Hiubris TrendlinesHOW IT WORKS
This script automatically draws the last 2 TrendLines based on pivot points on the chart (wick to wick)
- Users can adjust the lookback length of those pivot points
NOTES
This Script is meant to help traders easily identify Trends and Trendlines
* This indicator does NOT Repaint! None of our published indicators repaint!
Price-Line Channel - A Friendly Support And Resistance IndicatorIntroduction
Lines are the most widely used figures in technical analysis, this is due to the linear trends that some securities posses (daily log SP500 for example), support and resistances are also responsible for the uses of lines, basically linear support and resistances are made with the assumption that the line connecting two local maximas or minimas will help the user detect a new local maxima or minima when the price will cross the line.
Technical indicators attempting to output lines have always been a concern in technical analysis, the mostly know certainly being the linear regression, however any linear models would fit in this category. In general those indicators always reevaluate their outputs values (repainting), others non repainting indicators returning lines are sometimes to impractical to set-up. This is what has encouraged me to make a simpler indicator based on the framework used in the recursive bands indicator that i published.
The proposed indicator aim to be extremely flexible and easy to use while returning linear support and resistances, an option that allow readjustment is also introduced, thus allowing for a "smarter" indicator.
The Indicator
The indicator return two extremities, the upper one aim to detect resistance points while the lower one aim to detect support points. The length setting control the steepness of the line, with higher values of length involving a lower slope, this make the indicator less reactive and interact with the price less often.
The name "price-line" comes from the fact that the channel is dependent on its own interaction with the price, therefore a breakout methodology can also be used, where price is up-trending when crossing with the upper extremity and down trending when crossing with the lower one.
Readjusted Option
The line steepness can be readjusted based on the market volatility, it make more sense for the line to be more steep when the market is more volatile, thus making it converge faster toward the price, this of course is done at the cost of some linearity. This is achieved by checking the "readjustment" option. The effects can be shown on BTCUSD, below the indicator without the readjusted option :
when the "readjustment" option is checked we have the following results :
The volatile down movement on BTCUSd make the upper extremity converge faster toward the price, this option can be great for volatile markets.
Conclusion
The recursive bands indicator prove to be an excellent framework that allow for the creation of lots of indicators, the proposed indicator is extremely efficient and provide an easy solution for returning linear support and resistances without much drawbacks, the readjusted option allow the indicator to adapt to the market volatility at the cost of linearity.
The performance of the indicator is relative to the motion of the price, however the indicator show signs of returning accurate support and resistances points. I hope the indicator find its use in the community.
Thanks for reading !
Note
Respect the house rules, always request permission before publishing open source code. This is an original work, requesting permission is the least you can do.
[RD] HLGO - GANN fibonacci (square/box, based on bars, h&l)==================================================================
Sept 24 - 2019 - HLGO - GANN V1
==================================================================
==================================================================
Description
==================================================================
Script to plot a gann related model (square / box ), try the different params.
Next version will be a time based version. Current version uses bars
(aka bar_index) so it can't plot beyond the last bar accept by extending
===================================================================
Version : v1 (notes
===================================================================
NaN
===================================================================
PLEASE -TIP- (we are trying to raise ₿100 to educate the wales)
===================================================================
BTC: 1C7sk3x8o2sX5eBV5HSz3KAgXJJ3FsF2Mo
ETH: 0xa14f3059EcDAE4aEe2E17826033E1D2C7e83233e
BNB: bnb1kwe3hqp4e8ch02ruhpclau4tvf0enzzh5tc2e3
Multi Horizontal Lines 540Draws horizontal lines depends on condition of regular price, if 10000 then increment is 540, otherwise increment by 54
Multi Horizontal LinesAbility to plot multi price lines, go to settings and put price and increment of lines.
Enjoy