Zig Lines with Percent & ValueOverview, Features, and Usage:
The Zig Lines with Percent & Value is an indicator that highlights the highest and lowest points of the market from pivot points and zigzag lines based on the ZigZag Period setting. By a default value of 13 for the ZigZag Period this works well on Bitcoin or other alt coins on the 1 hour or higher timeframe charts.
What makes this indicator unique is that it draws a green line to signify an uptrend or a red line to signify a down trend. It will also show the percent difference between the previous point/line, for example: If you see a -negative percentage point with a red line drawn to it, then you are looking at a low pivot point and then as the green line is drawn to a +positive percentage value the percentage you see is the difference between the two points. This is great to see a trend reversal as you can look at previous pivot points and notice about how far the price moves before it changes direction (trend reversal).
There is an invisible EMA line that is used to assist with coloring the negative vs positive values. The value above or below the percentage is the lowest or highest price at that pivot point . The display of the price at the pivot point depends on your ZigZag Period setting and the timeframe of your chart.
Added Bollinger Bands as it fits perfectly with the visuals of the Zig Lines & Pivots.
Usage of Bollinger Bands:
~As the price or candle gets close to the top or bottom of the Bollinger band it can give you a better confirmation that the pivot location is at it's final place, and the trend is more likely to switch directions.
It’s important to know this indicator should not be used for alerts of any type it does repaint as the green or red line is drawing based on live chart data and it can change depending on the direction of the market. This is a great visual tool for trend analysis or to be used with other indicators as a confirmation for a possible good entry or exit position.
Credits ( and consent to use ):
Credits go to user LonesomeTheBlue for creation of this 'Double Zig Zag with HHLL' script.
The addition of the Value above/below the Percentages is from user Noldo and that script is found here:
The Bollinger Bands setup was suggested by user countseven12 and his script that uses the same BB setup is found here:
References:
1. Chen, James. (2021 March 15). Zig Zag Indicator . Received from http: www.investopedia.com
2. Mitchell, Cory. (2021 April 30). Pivot Points . Received from http: www.investopedia.com
Pivot Points
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!
Logging in Pine ScriptI'm building quite a lot of pretty complicated indicators/strategies in Pine Script. Quite often they don't work from the 1 try so I have to debug them heavily.
In Pine Script there are no fancy debuggers so you have to be creative. You can plot values on your screens, check them in the data window, etc.
If you want to display some textual information, you can plot some info as labels on the screen.
It's not the most convenient way, so with the appearance of tables in Pine Script, I decided to implement a custom logger that will allow me to track some useful information about my indicator over time.
Tables work much better for this kind of thing than labels. They're attached to your screen, you can nicely scale them and you can style them much better.
The idea behind it is very simple. I used few arrays to store the message, bar number, timestamp, and type of the message (you can color messages depend on the type for example).
There is a function log_msg that just append new messages to these arrays.
In the end, for the last bar, I create the table and display the last X messages in it.
In parameters, you can show/hide the entire journal, change the number of messages displayed and choose an offset. With offset, you can basically scroll through the history of messages.
Currently, I implemented 3 types of messages, and I color messages according to these types:
Message - gray
Warning - yellow
Error - red
Of course, it's a pretty simple example, you can create a much fancier way of styling your logs.
What do you think about it? Is it useful for you? What do you use to debug code in Pine Script?
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
NYSE extended session backgroundThis script adds background to the chart to highlight different time areas in any chart.
The time areas are in relation to the open/close time of NYSE , both regular and extended session.
The background colors are the following by default:
NO COLOR : NYSE is open
DARK BLUE : NYSE is closed
LIGHT BLUE : NYSE post market session
ORANGE : NYSE pre market session
In addition, previous day close price line is shown during extended and closed sessions (orange line).
This script is useful to visualize any chart in relation to the NYSE timetable.
MTF Trend WidgetThis indicator identifies trends in multiple higher timeframes (D, W, M) and shows them in a widget off to the right of the chart.
It's meant to be used as an alternative filter for "trading with the trend." Typically people use moving averages of varying lengths for this (i.e. if over 200 MA it's an uptrend, etc.), but I wanted to see if it might be more effective to see if the higher timeframes were actually trending or not in a certain direction.
For the purposes of this indicator, an uptrend is defined as higher highs and higher lows. So if currently in a downtrend and the highs are broken, the indicator will flip to an uptrend because now we have a higher high. Vice versa for downtrends.
The user can choose the lookback period for defining these highs/lows (the pivot points). A smaller lookback number will give you more frequent pivot points.
The user can toggle on visibility of all historical pivot points to make sure the frequency and placement of the swing highs/lows is to their liking.
The user can show the support/resistance lines of those most recent swing high/low points on the multiple timeframes as well.
When these lines are breached, that is when the trends change, so you can see if you are close to changing any longer term trends.
My hope is that this gives people a quick glance at the overall trend without having to cycle through different timeframes.
SMA_barsThe bar construction indicator. The closing and opening values are taken as their moving averages for the same period.
CheckmateTrades - Pivots End GameThis indicator is based on the Pivot study. Traders will be able to plot CPR, Standard floor pivots as well as Camarilla Pivots on multiple timeframes.
Why pivots from multiple timeframes are relevant and included in this one indicator?
We can analyse pivots on multiple timeframes for different trading setups. As in, Daily floor pivots are best suited for analysing the market trend for Day trading. Similarly, Weekly and Monthly floor pivots can be analysed for Swing and positional trading entries. Whereas yearly pivot is best suited for trend analysis for investment purpose.
What is the relevance of plotting tomorrow's pivot level in advance?
Pivot are calculated based on the price happened on a previous day. And hence trader can plot tomorrow pivots in advance to shortlist stocks for tomorrow's trading session.
TimeFrames Available to traders are –
1. Daily
2. Weekly
3. Monthly
A) Daily Pivots
Present Day –
1. Trader can plot Daily CPR
2. Trader can plot Daily R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Daily S1, S2, S3 and S4 pivot support levels
4. Trader can plot Daily Camarilla levels
Future Day –
1. Trader can plot Tomorrow CPR
2. Trader can plot Tomorrow R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Tomorrow S1, S2, S3 and S4 pivot support levels
4. Trader can plot Tomorrow Camarilla levels
5. Previous Day High and Low
B) Weekly Pivots
Present Week –
1. Trader can plot Present week CPR
2. Trader can plot Present week R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Present week S1, S2, S3 and S4 pivot support levels
4. Trader can plot Present week Camarilla levels
Next Week –
1. Trader can plot Next week CPR
2. Trader can plot Next week R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Next week S1, S2, S3 and S4 pivot support levels
4. Trader can plot Next week Camarilla levels
5. Previous Week High and Low
C) Monthly Pivots
Present Month –
1. Trader can plot Present Month CPR
2. Trader can plot Present Month R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Present Month S1, S2, S3 and S4 pivot support levels
4. Trader can plot Present Month Camarilla levels
Next Month –
1. Trader can plot Next Month CPR
2. Trader can plot Next Month R1, R2, R3 and R4 pivot resistance levels
3. Trader can plot Next Month S1, S2, S3 and S4 pivot support levels
4. Trader can plot Next Month Camarilla levels
5. Previous Month High and Low
Moreover, I have also included SMA (Simple moving averages) study in this indicator. Trader can add 20,50 & 200 SMA on there charts.
Why is it relevant? Trader can get a visual confirmation of an up-trending or an down-trending move by looking at rising or falling 20 & 50 SMA respectively
Usually in an uptrending stocks. 20 & 50 SMA will move in parallel to each other and will rise upwards. Price will tend to trade above the 20 SMA and 20 SMA will continue to act as a support.
Pivot Detective Indicator v1.0Overview of Features
The Pivot Detective is an indicator that simply highlights the waves of the market by identifying the pivot highs and pivot lows by using shapes and zigzag lines.
What makes this indicator unique is that you do not have to specify the number of bars to the left or right side of the pivots (aka pivot strength), nor do you need to specify percent deviation for filtering the zigzag (1)lines. Thus, the indicator will monitor price action and keep track of pivot high and low prices and implements a common trend analysis algorithm to determine when the trend has reversed to confirm the pivot price and begin tracking the next pivot price. The tolerance of the trend reversal can be configured to be strict or loose depending on your preference.
Be aware that this indicator does not determine key levels of price like support (S1, S2, etc.) and resistance (R1, R2, etc.) levels that are found in the traditional Pivot Points indicators (2).
Usage Information
The indicator can be applied to any chart at any time frame. It is very customizable where you can add or change various chart elements to help you enhance your interpretation of the price action trend reversals at the pivots. You can specify the pivot shapes, colors, and visibility as well as zigzag line thickness, color, and visibility. You can adorn the pivot shapes with any combination of price, rate of change percentage, and pivot trend using HH/LH/LL/HL text as well as control the coloring schemes for the in-progress pivot. The size of the text can also be customized.
Be aware that this indicator makes use of lines and labels which are limited to 500 lines and 500 labels, so if traverse far into the history, they will not appear because they have reached these limits and were removed by the chart's rendering engine.
Lastly, you can define "any alert() function call" messages on the "New Pivot High Point" and "New Point Low Point" events. These alerts provide custom placeholders that can be used in the messages, which are: {{exchange}}, {{ticker}}, {{currency}}, {{new_pivot_point_price}}, and {{new_pivot_point_roc}}
References
1. Chen, James. (2021 March 15). Zig Zag Indicator. Received from http: www.investopedia.com
2. Mitchell, Cory. (2021 April 30). Pivot Points. Received from http: www.investopedia.com
Pivot boxes [LM]Hello traders,
let me intoduce you pivot boxes. New features of pinescript that allows to render boxes enabled to highlight pivot zone. Range high or low is defined by pivot high or low and rangeLow and RangeHigh are defined by close of following candle.
It has two settings that you can change at your will, it also enables hide/show particular pivot setting
Hope you will enjoy as I enjoyed to write it.
Lukas
Example - HTF Step InterpolationAbout this script:
This example aims to highlight an alternative way to view HTF data by providing basic interpolation functionality.
This script does not aim to provide use in itself as an indicator or strategy.
Reason for study:
Educational Purposes Only
Fibonacci Pivot ZonesFibonacci Pivot Zones make use of the average price between the high, low & close of the previous session, while adding deviations based on Fibonacci numbers to form support and resistance zones, which can be used as targets for intraday and swing trading.
You can select the timeframe for the zones, for example 12 hour pivots to trade in 15m timeframe, or even monthly pivots to trade on the daily timeframe.
You can choose the different fibonacci levels on the menu, by default these are:
0.382
0.618
0.782
1
Enjoy!
MultiPrice AlertThis is an alert script using Pinescript version 4. This enables one to set 5 alerts (1 StopLoss, 4 Targets), on 3 different symbols, at using a single alert in the UI.
Every visible line will only appear on the symbols that are selected. After setting targets when making an alert, select this indicator as a condition. Change the name to whatever you want, usually the names of the set of tickers.
The Alert message is dyanmic showing which Symbol with each type of alert, at whatever price.
Ability to disable the targets + symbols.
Alerts work by Stop Loss crossing under price and Targets Cross Over. Enabling the "Short" Targets reverses this.
The line that is being displayed is actually the price of the asset being moved over x number of bars. I have not found a way to plot a traditional horizontal line, as the code for it uses a fixed price.
As it being a user input, it is a variable. Any help with this would be appreicated.
Alerts are set to once per bar.
Known bug that sometimes if the prices that you set are inside the current candle stick, then your alert will immeaditally fire, either change the timeframe or let it fire and wait fo
After a target is hit, I reccomend setting the alert to 0 and REMAKING the alert. You MUST REMAKE THE ALERT AFTER ANY CHANGES. This script WILL NOT CHANGE ALERTS AS YOU CHANGE SETTINGS.
TradingView Alerts are not this smart , at least I haven't found a way to do this yet.
DECPDECP is simple and easy to use!
It detects bullish and bearish engulfing candlestick patterns.
After detecting the patterns I've said, it mentions that the pattern is going to continue its direction to up or down.
But remember candlestick patterns don't determine targets and it's possible that predicted directions fail.
So use it carefully and enjoy it!
Sup/Res - SwingSwiss SuiteSup/Res can display up to ten different lines of supports and resistance.
It’s super reliable and ultra-customizable. You won’t have to draw them yourself anymore. It’s more accurate and time-saving.
Also, the indicator calculates in real-time the distance in % from the market price to the lines.
The indicator is perfect if you need to define your price limits on a swing trading strategy or for scalping a 5mn chart as a day trader.
Disclaimer:
Trading and investing in the financial markets involves substantial risk of loss and is not suitable for every investor.
All trading strategies are used at your own risk.
Trend Analyzer is part of the SwingSwiss Suite, contact me for more info
Sentiment EURUSD 1m with hedging zonesThis is a very specialised and optimized script, for 1m EURUSD traders - daytraders, scalpers.
1m trading is very difficult, but it can be also most profitable, if done right.
Why difficult? It is hard to detect market direction - usually when trend indicators reverse, that new trend is already over. One and the same indicator signal sometimes provides one outcome (for example reversal) and sometimes exactly the opposite (continuation). It requires deep understanding on WHEN to use which indicator and when to ignore signals. Set the parameters of your indicators to a very sensitive extent and they will keep changing direction back and forth - always being too late of course :) Set the parameters too losely, and you'll be late with entries 100% of times. Looking for universal trend-showing indicator? There is none...
This script is a result of 2 years of practical following EURUSD 1m market action. Looking at charts with MANUAL TRADER'S eyes. Analyzing all together: price action, indicators, zigzag, divergences, momentum, pivot points, support and resistance. On the one hand traders say only manual trading can be successful and on the other - to stick to one strategy and be automatic when applying to it. So this is it - automatic coding of market signals as if manual trader would do it. Forex is news-driven? Yes, it is. So if market sentiment changes because of some news happening, the script will quickly recognize it and suggest reversal.
Please note I'm not pretending to have a crystal ball. Nobody has. The goal of this script is not to predict where EURUSD market will be, but to correctly notice that is has reversed. Nothing else.
Sometimes the market will move towards reversal, but not cross the line yet - these are so-called HEDGING ZONES. Sometimes they turn out to be reversals and sometimes simply best places for dip entries. Ideally a trader should hedge there, because market could move either way. You might wanna apply apply knowledge of market fundamentals there or look into some micro-indicators. Anyway, it is good to realize where those zones are and this script shows them. In pink.
It is invite-only script. DM me for access.
WattageSimple plot script for ranges from prior day closed based on Brian Watts talks.
Should work on any timeframe. For example, if 5m the ranges will still be for the prior day.
Edit based on daily ranges of whatever symbol. Change the ranges as you see fit.
It is interesting if you turn on prior day close for verification and current day high/low in the chart settings.
Meant as open source for you to do what you please.
Thank you Brian Watt.
TestedFX SR RADAR v3 (Support & Resistance Radar)TestedFX SR Radar is unlike any other Support and Resistance indicator I have seen to date. It doesn't just show you recent important pivots. Everyone with eyes can see those levels lol. You need an edge on the market. You need to know the levels AHEAD OF TIME. Trading is about having MORE and BETTER information than everyone else. Notice how the levels start BEFORE price touches those levels!!
How does TestedFX SR Radar do this?? Glad you asked.
Just like real radar, it searches within 5 ATR of the current price for strong pivots thousands of bars previous major pivots. But that is just the start. Then when a level is respected with a wick rejection a upvote is cast. When the level is busted a downvote is cast. The shading levels are based on the levels POWER as scored by the market voting on it. (Notice the purple dots at then end of the wicks that hit the level) Using this novel technique high probability pivot points are calculated IN ADVANCE so you know the important levels ahead of time.
Darker levels and multiple lines grouped together show strong S/R levels.
You can use this in combination with your favorite strategy. However, it was built to go with one of our private indicators. Typically good practice on TV is to include all functionality in one indicator. We tried to do that with this indicator but we couldn't because it uses too much CPU power. As it is if you change the SR Radar settings you will get "Script takes too long to execute" type errors. If that happens try hiding and showing the indicator again. If that doesn't work then reset your settings back to standard settings. The upside is that we are releasing this free to our tradingview friends.
I love this community and it is great to be able to give back. I really hope this helps you make better trading decisions. If so please let me know your experiences (good and bad) in the comments.
Sincerly,
Doug Collins
TestedFX
Traders Hedge - Pro with AlertsDear Traders,
"You can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future." ~Steve Jobs
This quote from Steve Jobs, explains the very essence of this indicator.
Trading is Simple, Why make it complicated. ~ Ravi Chandran
The main motto building this Traders Hedge - Pro indicator is to equip retail traders with a multi purpose tool which in itself will act as a complete trading setup.
This indicator will help you in understanding the market structure and planning your possible entries & exits well in advance.
The indicator & setup is independent of time frames & will work for all trading instruments.
Traders Hedge - Pro Indicator with Alerts you can also set Alerts on your favourite scripts and time frames, to get notification when a Demand or a Supply Zone is created or any Price rejection is formed.
List of all the features is provided below.
1. Trade Type - A quick auto setup for Intraday or Swing trades
2. CPR - Identifies the market structure and helps to plan mean reversions trade setups
3. Weekly Support & Resistance - Automatically identifies and displays the higher time frame support & resistance levels
4. Price Action Triggers - Alert with a trigger symbol shown on the respective candle where a possible price reversal is expected
5. Targets - Plots the possible Major & Minor targets, which helps in planning our possible profit booking & stop loss zones
6. Developing Pivots - Plots the price mean reversion zones for the upcoming trading session
7. Supply & Demand Zones - Plots the demand and supply zones by changing the color of the candle
8. Dynamic Dz & Sz Price Tracking - It dynamically identifies and plots the support & resistance levels
9. Opening Range - Plots the identified opening range on the chart
10. PEMA - Helps in visualizing the trend and also acts as a dynamic support & resistance levels
To set Alerts follow the steps provided below.
1. Go to the symbol chart and select the time frame on which you want to set Alerts.
2. Select Alerts Tab and click on Create Alert, shortcut key Alt+A
3. In Condition Select the option “Price Rejection Alerts“ or “Zone Alerts“ for which you want the alerts to be shown
4. In Options, select Once Per Bar Close
5. Select expiry as per your preference or keep it open-ended
6. Select Alerts Actions as per your preference
7. Alert name is optional
8. Default message is “Price Rejection Alerts“ or “Zone Alert” and can be modified
9. Click on Create and in the warning window select Continue Anyway
How to get the indicator:
To know more about the indicator & to download please check the link in the signature below.
Once you have active alert, you will keep getting notification whenever a Price rejection or new Demand / Supply zone gets created in the identified symbol and time frame you have selected.
Please do feel free to use the indicator and give your valuable feed backs which will help me in optimizing it to a great extent.
I would love to thank each of the traders in this Trading View community in helping me improve on my trading skills.
Happy Trading!
Pivot ProbabilitiesThis indicator gives traders historical probabilities based on how often price closed between any two pivot points.
What are the features? (as of release)
Get the historical statistics of how often price closed between any two pivot points.
Manually set your own pivot point resolution to any higher timeframe. So get the historical statistics from any pivot point you'd like.
Why would someone use this?
Reversion: We can more clearly see between which pivots price has highest probability of mean reversion towards.
Risk Management: By adding the statistics between groups of pivots, we can have a better idea of what the normal trading range for pivot points on any given asset should be. Making it easier to identify which pivot points are more likely to have extreme price movements go past.
Could you add an option to show probabilities for "x" style of pivot points?
I plan on adding more types of pivot points in the future. Check out if there are any updates to this indicator that include the pivots you're looking for. Otherwise, tell me what you're looking for in the comments here.
Why don't I see any pivot points on my chart when I apply this indicator?
This indicator does not draw pivot points on your chart. It strictly draws probabilities. So feel free to use it in combination with your favorite one.
Fractal lines multi time framePlot lines using last two William's fractals to find trends, it supports different resolutions and alerts
Pivots, Compressions and ExtensionsPivots, Compressions and Extensions
Best used with a monochromatic bar chart, ex. light gray bars that allow signals to stand out.///
Blue = volatility expansion warning, this means volatility has been compressed and is starting a new phase of volatility expansion.
(cont.) Think a ball at the top of a hill with very low positional volatility but high potential energy. Blue bars mark the point
(cont.) where potential energy starts to transition into kinetic energy. This often 'cycles' into a new regime of higher volatility.
Pink & purple bars signify extreme, exponential trend, often the climax of a particular bull or bear cycle. Can help identify tops.
Orange is meant to signal a pocket pivot as described by @RollyTrader among others. This pivot marks the end of consolidation.
NVME TP & SL systemNVME TP and SL system is an ATR based risk management tool that is designed to identify possible stop loss and take profit points for you to follow depending on the volume generated by the average true range. Sometimes, they zones may be really close together and this often occurs during a ranging period of the market where there is little movement and this can be fixed if you increase the values on the settings. Moreover, you can input your entry price and what position you are looking for such as a short or a long and then the indicator will generate some zones for you to follow too. The zones will not update after every bar close but instead follow the main setting of bar reset period where the indicator will generate new zones if x bars has passed, default is 20.
Features:
3 Take profit zones ( all customisable: colour, atr multiplier, display toggle on and off )
1 Stop Loss Zone ( all customisable: colour, atr multiplier, display toggle on and off )
Custom Position (Long or Short)
Custom Entry Point (Up to 9 decimal places)
'Golden ratio' spiral - 'GoRaS'This script is based on 'Golden Ratio'
It starts from the last pivot high/low, forming a rectangular spiral.
Mainly experimental but I think it could be used as 'support/resistance' and trend interpretation
The (pivot) length can be adjusted ('Leftbars'):
Start of the spiral can be changed ('Start loop'):
End of the spiral can be changed as well ('End loop'):
It can be made more compact, or wider ('Ratio'):
'Extend lines' can be helpful finding S/R area's:
('extend left')
Cheers!
Peak Profit v2 (Reversal Points & High/Low Waveform)This script includes two different methods of indication.
It includes a High/Low Waveform . It is a technical indicator that is best performed when using a trailing stop, it also works well as a trend line.
Trade with caution however the general idea is to buy when line turns green, and sell when the line turns red.
This can be disabled by clicking the checkmark in the visual settings of the script.
Second Feature is an indicator for Reversal points . These show a price to "enter long" and "take profit"
This part of the script looks for a series of consecutive closes greater than or less four closing price bars to define an underlying uptrend or downtrend.
In general, minor price reversals are associated with the completion of the trend and major market turning points are identified by the completion of a trend of a specific series of bar openings/closes.
As always, this script should not be relied upon alone for your sole indication of buying and selling. Use your own intuition and other indicators along with this one for the best results.