First 5 Minutes Open/Close LinesThis very simple indicator paints lines at the high and low of the first 5m candle of the session. It is primarily intended for big cap NYSE traded stocks with high volume. I wrote this indicator to save me the trouble of manually drawing the lines each day.
The lines drawn at the 5m high/low will remain constant regardless of which timeframe you switch to. In the example screenshot, we are looking at the 1m timeframe. This helps us switch effortlessly between different timeframes to see if a given price movement meets our entry criteria.
In addition to drawing lines at the first 5m high/low, it will optionally paint two zones, one each around the high and low. The boundaries of this zone are configurable and expressed as a percentage of the total movement of the first 5m bar. By default, it is set to 25%.
This indicator is based on the concept that the first 5m bar always has massive volume which helps us infer that price may react around the extremes of that movement. The basic strategy works something like this:
- You identify the high timeframe (HTF) trend direction of the stock
- You wait for the first 5m candle of the session to close
- You wait for price to puncture through the outer boundary of the zone marked by the indicator.
- You enter when price retraces to the high, or low, which marks the midpoint of the punctured zone.
- Only enter long on stocks in a HTF uptrend, and short on stocks in an HTF downtrend.
- Use market structure to identify stop loss and take profit targets
Note: Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
HIGH-LOW
Previous Highs + Lows by HAZED📈 Introducing: Previous Highs + Lows by H A Z E D 📉
✨ Overview
Get a clear view of market levels with Previous Highs + Lows v1.0! This indicator lets you track critical previous highs and lows across multiple timeframes, marking them directly on your chart for an intuitive view of support and resistance zones. Whether you’re analyzing breakouts or looking for reversal levels, these indicators provide essential context to refine your trades.
🛠️ Key Features
Multiple Timeframes Supported
Toggle on previous highs and lows for daily, weekly, monthly, 4-hour, and 1-hour charts to match your analysis style.
Customizable Labels
Choose label sizes from “tiny” to “huge,” adjust the opacity to blend seamlessly with your chart, and customize text color for optimal readability.
Label Position Control
Avoid overlap with a flexible label offset feature, allowing for 10 adjustable increments to fit your preference and chart layout.
Clear Visual Cues
Labels use icons to differentiate high (⬆️) and low (⬇️) levels at a glance, providing a straightforward way to interpret key price areas.
Instant Alerts for Key Levels
Receive alerts when the price crosses over previous high levels, keeping you informed about potential breakout zones without constant chart-watching.
🚀 How to Use
Identify Key Levels: Quickly locate significant highs and lows from previous periods to define your support and resistance zones.
Set Alerts: Stay updated on market moves with built-in alerts when prices cross these critical levels.
Customize Your View: Use the various options to make this indicator uniquely yours – adjust label size, color, opacity, and position.
🔔 Why Use Previous Highs + Lows v1.0?
Enhanced visibility of critical levels saves you time by giving you a structured view of price action.
Customization features let you adapt the indicator to your personal style and chart setup.
Flexible alerts mean you can focus on other tasks without missing important price movements.
🔗 License: Mozilla Public License 2.0
© H A Z E D, 11/4/2024
Ultra High/LowThe Ultra High/Low script helps traders track key price levels by automatically marking significant highs and lows on a chart, highlighting potential reversal points for future trading decisions.
Introduction
The Ultra High/Low script identifies and marks significant highs and lows on a trading chart. These are specific points where the price reached a peak or bottomed out before reversing. The script draws lines at these levels, which can be extended, and it also labels the exact price at these points. This makes it easy for traders to see where the price has changed direction previously, helping them make more informed trading decisions.
Detailed Description
In more detail, the Ultra High/Low script is designed using Pine Script™, a programming language used for creating custom indicators and strategies on the TradingView platform. Here's how it works:
..........
Detection of Pivot Highs and Lows
The script identifies "pivot highs" and "pivot lows." These are points on the chart where the price reached a local maximum or minimum, surrounded by lower highs (for pivot highs) or higher lows (for pivot lows).
The user can customize how many bars to the left and right of the high or low the script should consider to confirm a pivot (Length argument in the settings).
The script uses Pine Script functions for pivot detection. ta.pivothigh() and ta.pivotlow() .
......
Drawing Lines and Labels
Once a pivot is identified, the script draws a dashed line from the pivot point to the current price bar. This line helps visualize where significant price reversals have occurred.
The script also adds a label next to these lines showing the exact price of the pivot point. This label also shows "PDH" (Previous Day High) or "PDL" (Previous Day Low) if the pivot is PDH or PDL. Same for "PWH" (Previous Week High) and "PWL" (Previous Week Low).
......
Purging and Extending Lines
If the price crosses a pivot line after it has been drawn, the script can either delete the old line (purged line) or keep it and add additional indicators to show that the line has been liquidated.
The script also has options to extend the lines into the right.
......
Custom Inputs
The script offers several customizable options, like the color of the lines and labels, whether to show the exact price or not, and whether to extend the lines. This allows traders to tailor the indicator to their specific needs and preferences.
..........
Overall, the Ultra High/Low script is a powerful visual aid for identifying critical price levels that may influence future price movements, making it easier for traders to make decisions based on historical price behavior.
Higher Timeframe High & Low [ChartPrime]The Higher Timeframe High & Low Indicator plots key levels (high, low, and average price) from a higher timeframe onto the current chart, aiding traders in identifying significant support and resistance zones.
The indicator also detects and labels breakout points and can display trend directions based on these higher timeframe levels breakout points.
Key Features:
◆ Higher Timeframe Levels:
Plots the high, low, and average price from a selected higher timeframe onto the current chart.
Extends these levels into the future for better visualization.
◆ Breakout Detection:
Identifies and labels breakouts above the higher timeframe high or below the higher timeframe low.
Breakout points are clearly marked with labels indicating "High Break" or "Low Break" with timeframe mark.
If the following break out type is the same that previous, it does not marked by labels, but still marked by bar color.
◆ Trend Visualization:
Optionally displays trend direction by changing bar colors and line styles based on breakout conditions.
Trend indication helps in identifying bullish or bearish market conditions.
◆ Support and Resistance Indication:
Marks support and resistance points with '◆' symbols when the current timeframe's high or low interacts with the higher timeframe's levels.
◆ Period separation:
Background color changes to indicate period separation if enabled.
◆ Inputs:
Extension to the right of High and Low: Sets the number of bars to extend the high and low lines into the future.
Timeframe: Selects the higher timeframe (e.g., Daily) to use for plotting high and low levels.
Period Separator: Toggles the visual separator for periods.
Show Trend?: Toggles the trend visualization, changing bar colors and plot styles based on breakouts.
Show Breakout Labels?: Toggles the Breakout Labels visualization.
Indicator Logic:
Historical vs. Real-Time Bars: Adjusts values based on whether the bar is historical or real-time to ensure accurate plotting.
High and Low Prices: Retrieves the high and low prices from the selected higher timeframe.
Breakout Conditions: Determines if the current price has crossed above the higher timeframe high (high break) or below the higher timeframe low (low break).
Color and Trend Logic: Adjusts colors and checks for breakouts to avoid multiple labels and indicate trend direction.
Usage Notes:
This indicator is ideal for traders looking to integrate multi-timeframe analysis into their strategy.
The higher timeframe levels act as significant support and resistance zones, helping traders identify potential reversal or continuation points.
The breakout labels and trend visualization provide additional context for trading decisions, indicating when the price has breached key levels and is likely to continue in that direction.
This indicator enhances chart analysis by providing clear, visual cues from higher timeframe data, helping traders make more informed decisions based on a broader market perspective.
Prior Day LevelsA simple script that plots the previous day's high, midway, and low points. You can also set alerts with this script, allowing you the ability to not have to stare at the charts all day.
[ttcHugo] 3 Days OPEN/HIGH/LOW LINES It's a simple and basic tool for OPEN/HIGH/LOW lines in each day of recently 3 days. I will build more tools in the future. If you find it is useful for you please follow me and have any advise please contact me thank you.
Zigzag Chart Points█ OVERVIEW
This indicator displays zigzag based on high and low using latest pine script version 5 , chart.point which using time, index and price as parameters.
Pretty much a strip down using latest pine script function, without any use of library .
This allow pine script user to have an idea of simplified and cleaner code for zigzag.
█ CREDITS
LonesomeTheBlue
█ FEATURES
1. Label can be show / hide including text can be resized.
2. Hover to label, can see tooltip will show price and time.
3. Tooltip will show date and time for hourly timeframe and below while show date only for day timeframe and above.
█ NOTES
1. I admit that chart.point just made the code much more cleaner and save more time. I previously using user-defined type(UDT) which quite hassle.
2. I have no plan to extend this indicator or include alert just I thinking to explore log.error() and runtime.error() , which I may probably release in other publications.
█ HOW TO USE'
Pretty much similar inside mentioned references, which previously I created.
█ REFERENCES
1. Zigzag Array Experimental
2. Simple Zigzag UDT
3. Zig Zag Ratio Simplified
4. Cyclic RSI High Low With Noise Filter
5. Auto AB=CD 1 to 1 Ratio Experimental
YDH/YDL to Current Day H/L - Zones- Draw boxes on the intersections between yesterday's high/low and the day's after high/low
This will help you to visualize areas at extreme points where algo hasn't yet pushed price to recover them
OHMLC Lines - Present- Current OHMLC candles
- Show current Open, High, Mid, Low, Close candles levels
Monday Session High/LowThis script tracks and draw the High and the Low for Monday session across the whole week period.
Many crypto traders use the high and low extremes for Monday session as an confluence on how the price action during the week reacts against it.
Daily Monday Weekly Monthly Quarterly Yearly High Low Mid This indicator can be useful for traders who are interested in analyzing price movements over different time periods. By displaying the daily, Monday, weekly, monthly, quarterly, and yearly high and low values along with their mid values on a chart, traders can get a better understanding of how prices have behaved over longer periods of time.
For example, a trader might use this information to identify trends or patterns in the market. They might look for occasions when the daily high and low values move outside of an established range or when the weekly or monthly mid values cross certain key levels. This could signal a potential change in the market trend that the trader could act upon.
Additionally, the code can help traders identify key support and resistance levels based on the high and low values of the candles. By plotting these values on a chart, traders can see where prices tend to find support or resistance over different time periods. This information can be used to place stop loss orders or take profit orders at important levels.
Overall, the benefit of using the code you provided is that it offers traders a comprehensive view of price movements over different time periods, which can aid in making more informed trading decisions.
Each level described above has its own unique label, which is abbreviated for convenience. These abbreviations are listed below for quick reference:
For daily levels: DH (Daily High), DM (Daily Mid), and DL (Daily Low)
For Monday levels: MonH (Monday High), MonM (Monday Mid), and MonL (Monday Low)
For monthly levels: MH (Monthly High), MU50 (Monthly 50 percent of Mid and High), MM (Monthly Mid), MD50 (Monthly 50 percent of Mid and Low), and ML (Monthly Low)
For quarterly levels: 3MH (Quarterly High), 3MU50 (Quarterly 50 percent of Mid and High), 3MM (Quarterly Mid), 3MD50 (Quarterly 50 percent of Mid and Low), and 3ML (Quarterly Low)
For yearly levels: YH (Yearly High), YU50 (Yearly 50 percent of Mid and High), YM (Yearly Mid), YD50 (Yearly 50 percent of Mid and Low), and YL (Yearly Low)
These labels can help you quickly identify the different levels and keep track of important price points.
If the chosen timeframe does not fall under the category of intraday, daily and Monday level will not be displayed.
Please feel free to send your suggestions to @z_mehran.
Key Levels (Open, Premarket, & Yesterday)OVERVIEW
This indicator automatically identifies and draws recent high-probability support and resistance levels (recent key levels). Specifically, yesterdays highs / lows, premarket highs / lows, as well as yesterdays end of day Volume Weighted Average Price and trader specified Moving Average.
This is most useful on charts with intraday time frames (1 minute, 5 minute etc.) commonly used for day trading. This is not ideal for larger time frames (greater than 1 hour) commonly used for swing trading or identifying larger trends.
INPUTS
You can configure:
Line size, style, and colors
Label colors
Which key levels you want to see
Moving Average Parameters
Market Hours and Time Zone
DEV NOTES
This script illustrates:
A method for iterative management of more complex data objects (not just discrete values) with loops and arrays.
High/Low Statistics @joshuuuThis indicator has been made to get a statistical edge. It has two different options. Weekly High/Low or Daily High/Low
Weekly High/Low - use this on Daily Chart
This option plots a table, that shows how often the High/Low of the Week has been made on certain Days of the Week. It is possible, to only filter bullish/bearish weeks, to have more precise values.
Daily High/Low - use this on Hourly Chart
This options plots a table, that shows how often High/Low of the Day has been made on certain Hours of the Day. It is possible, to only filter bullish/bearish days, to have more precise values.
How do I use it?
Let's say you have created a daily bias. You are expecting spx500 to have a bullish day. Now you can filter bullish days in your indicator settings and then you get data, on which time of the day you have the highest chance to see the high/low of the day being created, same goes for weekly bias.
Draw Line For High Low Custom Range Interactive█ OVERVIEW
This indicator is an educational indicator to make pine coders easier to how to use interactive inputs with User-Defined Type (UDT) especially when dealing input.time.
█ NOTES
This indicator is not perfect but it is a good starting point or template to start develop custom range interactive indicator.
█ INSPIRATIONS
ABC 123 Harmonic Ratio Custom Range Interactive
XABCD Harmonic Pattern Custom Range Interactive
PriceTimeInteractive
█ CREDITS
CAGR Custom Range
Pine scripts are now interactive
█ FEATURES
1. High Low points are determined based on points selected.
2. Line will be drawn after points are correctly arranged.
3. Label show error once wrong point is selected, move the point as instructed in example.
█ EXAMPLES / USAGE
Pi - Intraday High-Low Predictor
Pi - Intraday High-Low Predictor
This is not my Strategy/Research , I've just coded it into a indicator.
I found it interesting & useful so I'm sharing it here.
This Strategy/Research is by Kshirod Chandra Mohanty ( y-o-u-t-u-b-e : Trade with IITIAN )
You can watch his video on y-o-u-t-u-b-e for more info on this one.
the video has following title :
"1Cr Paid Strategy For Free || 10000 Subscribers Special Giveaway || How to find Day High or Low"
This will not tell you which is day high or day low, but it will help you to predict the day high from a day low and day low from a day high.
It will give you a possible range to which the prices could move to.
He has explained/used this on Banknifty.
How to Find out Day High from Day Low & Day Low from Day High :-
He uses the value of Pi (3.14) and the Range of 1st 5minute candle to find out the possible highs from day low and the possible lows from day high.
Range = value of Pi * 1st 5minutes Range
Small range = Range / 2
Large range = Range + Small range
so to find out the possible lows from day high we do following calculations
Small range low = day high - Small range
Range low = day high - Range
Large range low = day high - Large range
and to find out the possible highs from day low we do following calculations
Small range high = day low + Small range
Range high = day low + Range
Large range high = day low + Large range
Note :- This Indicator does Repaint in following ways,
As the script uses the Day High to predict the possible lows ,
so if it's an up-trending day and price keeps on making new High's then the ranges for lows will keep on changing.
similarly the script uses the Day Low to predict the possible high's ,
so if it's an down-trending day and price keeps on making new Low's then the ranges for highs will keep on changing.
My observations / thoughts about this :-
This script does not provide buy/sell recommendations. it just provides possible ranges to where prices can go from Day-High & Day-Low.
It's better to avoid trading when the price is trading between the Small range high & Small range low levels.
As it has high probability that it will be a range bound day and price will stay in between those two levels.
There is a high probability that it will be a trending day if price breaks either the Small range high/low ,
then the price could move to Range low/high.
If price breaks from Range High/Low then there is a high probability that it will be a trending day and the price could move to Large Range low/high.
Note :- If you want to use this on instruments/scripts/indexes which are active for large session such as forex/cryptos , then i suggest that you use the Opening Range period of 4Hours i.e 240minutes, to get better results.
using the default setting of 5minutes will not give good results on them.
play around with this value to find out which one suits that instrument/script/index the best.
Don't trust these levels blindly, do backtest or live testing of this then use for real trade if you want.
Use Price action near these levels to make any trading decision's.
The script provides following options :
1. Option to display Ranges in a Table (which you can enable/hide as you wish)
You can set the Table's location, size , background color & text color according to your preference.
2. Option to enable/hide Predicted-Highs from Day-Low on chart.
3. Option to enable/hide Predicted-Lows from Day-High on chart.
4. Option to set the Opening range period - here you can select your preferred opening range for calculation purpose.
5. Option to enable/hide historical levels on chart.
6. Options to customize the colors & line styles for lines.
7. Options to customize the colors , position & size for labels.
Extended Session High/Low - Intraday and daily chartsThis script plots the extended session highest high and lowest low levels. It works on any time frame from 1 minute to daily.
Please note that during the extended session, TradingView stops updating the daily chart. This means that once the script is loaded on a daily chart, it will not be updated until the market opens, unless you manually reload the layout (Ctrl+R). For this reason, it is recommended to use a multi-timeframe layout, so when the pre/post market line is near the extended session high/low on the daily chart, you can compare these values with those on an intraday chart of the same ticker.
The extended session high/low are important for day traders because they represent the maximum and minimum limits within which the trades have taken place during the extended trading hours. This can make them levels of support/resistance that can be useful for planning trend following, reversal and range-bound strategies.
By displaying the extended session high/low on the daily chart, traders can also see if there are any significant levels nearby that are related to the daily time frame, such as trendlines, support/resistance levels, or moving averages. This can help the trader evaluate whether there is enough room for a price movement in the direction of his trading strategy.
Expected Move Plotter [CHE]Expected Move Plotter
"There is magic in everything new."
Introduction:
This script is an indicator for financial trading that plots the expected movement of a security based on the average range over the last five periods. The script is written in Pine Script, a high-level programming language used for creating technical indicators, strategies, and other trading tools for the TradingView platform.
Inputs:
Percentage of Open and Close: This input specifies the percentage of the open and close price to use for the expected movement.
Time Periods: The script takes the different time periods into account and translates them to either 60 seconds, 240 seconds, 1 day, 3 days, 7 days, 1 month, 3 months or 12 months.
Calculation:
The script uses the "Open" and "High"/"Low" values of the last 5 periods to calculate the average range and plots the expected movement above and below the current open price. The plot is either green or red depending on whether the expected move is above or below the current close.
Code Breakdown:
The script starts by defining three integer constants: MS_IN_MIN, MS_IN_HOUR, and MS_IN_DAY, which represent the number of milliseconds in a minute, hour, and day, respectively.
The function timeStep_translate() returns a string that represents the timeframe for a chart based on the current timeframe. The function first converts the chart's timeframe to milliseconds and then uses a switch statement to determine the string value to be returned based on the number of milliseconds in the timeframe.
The script then retrieves the data for the open, high, and low values for the last five periods. The high and low values are used to calculate the average range, which is then used to plot the expected movement above and below the current open price.
Conclusion:
This script provides traders with a visual representation of the expected movement of a security based on the average range over the last five periods. It takes different time periods into account and provides a clear indication of whether the expected move is above or below the current close. The script is easy to use and provides a useful tool for traders looking to make informed trading decisions.
Best regards Chervolino
AIO Key LevelsAll In One Key Levels - Displays key levels for any type of chart.
Over 30 levels at your complete disposal.
Filled with a host of features that allow you to customise the appearance and display of the indicator to suit your individual trading style.
The result is a clear and concise indicator that helps traders easily identify key levels.
- The indicator is easy to use and does not need a detailed description.
- With customisable input parameters such as display style, line style, font style, offset, threshold and index.
- The colours for the key levels can also be customised.
- The script uses a 'switch' function and selected input parameters to set display, line and font styles.
- The key levels are constructed using the data received and the selected styles and colours.
- A unique cycle helps to improve the readability of the levels without "polluting" the graph with multiple labels
- In addition, I have left hints in the indicator to help you understand it better.
For Pine coders.
Why did I create it when there are many counterparts?
Simply because counterparts have very large and complex code and modest functionality and flex.
Here I have managed to fit it into 100 lines still readable.
You can learn how to call lots of lines and marks with just one function.
I also created a unique loop that connects labels if they are too close together for better visibility on a plot.
I have left detailed comments for each action.
I would be glad if someone could tell me how to make it more easier.
Prior day and pre-market high lowThis indicator displays the:
- Prior day high
- Prior day low
- Pre-market high
- Pre-market low
as a coloured line across the entire session for each individual session on an intraday chart.
For the extended session, this indicator marks the prior day and pre-market high low for each individual session starting at the pre-market and ending in the post-market, a feature not available on other indicators.
This indicator automatically marks out the levels for the prior day and pre-market high low for each individual session, allowing the user to observe how the price action behaves around the prior day and pre-market high low.
Note:
In this script, request.security() used with lookahead = barmerge.lookahead_on to fetch prices without offsetting the series by for the extended session does not access future data. This is because for extended session, request.security() sees the start of the session to be at the start of the regular session and ends at the end of the pre-market, when in reality the session starts at the start of the pre-market and ends at the end of the post-market.
Hence in each extended session when the line is first drawn in the pre-market, request.security() returns the value of the prior day high/low, and not future data.
Simple Zigzag UDT█ OVERVIEW
This indicator displays zigzag based on high and low, which is using user-defined types (UDT) or objects .
█ CREDITS
LonesomeTheBlue
█ FEATURES
1. Label can be resized.
2. Label can be display either short (Eg : HH, LL, H, L, etc) and long (Eg : Higher Low, etc)
3. Color can be customized either contrast color of chart background, trend color or customized color.
█ EXAMPLES / USAGES
OHLC ToolOHLC Tool allows you to display Current or Historical OHLC Values as horizontal lines that extend to the right on your chart.
Features
Variable Lookback to display a specific historical bar's values. Default = 1 (Previous Candle)
Customizable Timeframe to view HTF Candle values.
Custom Line Colors, Styles, and Thicknesses.
Price Scale Value Display Capability.
For displaying the line values and labels on the price scale you will need to enable:
"Indicator and financials name labels"
and
"Indicator and financials value labels"
These options are found in the Price Scale Menu under Labels. Price Scale Menu > Labels
When you do this you will notice your other indicator values will also be on the price scale,
if you wish to disable these, go to the indicator settings under the "Style" Tab, Uncheck the "Labels on price scale" box.
Indicator Settings > Style > "Labels on price scale"
Enjoy!
Session High and Low IndicatorThis script is meant for stocks that have a pre-market session. It is meant to be used on the 1 min time frame. This script will draw a green line at the high of pre-market, and a red line at the low of pre-market and extend these lines across the regular session day
This makes it easy to see if price action during regular market has broken above pre-market high or broken below pre-market low.
The high/low skips any quick spikes in price action (similar to what happens at 8:30 am every day).
Heiken Ashi Swing High/LowIt uses Heiken Ashi candles to detect recent swing high and low.
It can be used as a stop-loss or support/resistance indicator.