inChart - LibLibrary "inChart"
determine if price value is between chart high + x% and low - x% on the visible chart.
inChart()
HIGH-LOW
Multi Timeframe Support & ResistanceAbout This Indicator
This indicator plots support (pivot low) and resistance (pivot high) using the chart timeframe and second editable timeframe.
How it can be useful
Having higher timeframe support and resistance plotted on a lower timeframe chart helps keep you grounded in the current range the price is in. This can be useful when wanting to avoid taking longs at resistance and shorts at support.
How to use
Adjusting the look back and look ahead will impact how frequently the support and resistance lines move. When Price breaks above resistance or below support, the lines will not move until a new pivot high and pivot low are detected.
Disclaimer: Not Financial Advice
Net New Highs/Lows (With visible code)Basically the same script than Carusolnsights but without hidding the lines of code...
"This indicator displays the net number of stocks on the Nasdaq Composite making 52-week highs or lows. For instance, if there are 60 new 52-week highs and 20 new 52-week lows, the net number will display 40 net new 52 week highs. This indicator is particularty useful in gauging what the breadth is of the Nasdaq.
Three days of net 52-week highs show a healthy market which is conducive to increasing exposure. This condition is highlighted with a green background.
Three days of net 52-week lows show an unhealthy market which is conducive to reducing exposure. This condition is high|lighted with a red background."
AllTimeHighLowLibrary "AllTimeHighLow"
Provides functions calculating the all-time high/low of values.
hi(val)
Calculates the all-time high of a series.
Parameters:
val : Series to use (`high` is used if no argument is supplied).
Returns: The all-time high for the series.
lo(val)
Calculates the all-time low of a series.
Parameters:
val : Series to use (`low` is used if no argument is supplied).
Returns: The all-time low for the series.
All-In-One Sessions, Weekly, Monday, Previous Highs/LowsWe are forever drawing key levels on our charts with saved drawing templates, but finding the levels, adding the labels, is all tedious stuff. We have indicators, but we have multiple different ones at a time.
What if you could just tick a box on/off?
Well now you can.
This all in one 'levels' indicator is designed to show all the key highs and lows from previous weeks, Monday, the current week, as well as an option to highlight the market sessions and their highs and lows.
There are lots of options available for extending lines and choosing their colors, so once you have set it up how you want, don't forget to save YOUR defaults.
Oorah.
PharshK RSI and Zigzag with H/LIt is with RSI level
and Zigzag Pattern that Market goes on Maximum level and Lower Level
And it is also Showing High and Law Level of last Moving Candle so it is easy to entry and Hold
Day Week Month High & LowThis is a small little script that helps visually mark the high and lows of the DAY, WEEK or MONTH (of your choosing). It's best when paired with my High and Low Fibonacci Pivot Points indicator to help emphasize the high and lows of the day, week or month.
Dashboard (chlo) - v1I am an aircraft maintenance technician who is trying to get into software development in the financial sector.
This is a project in which a dashboard of other security(stocks) with open, close, high, and low will appear.
I could compile this after a detailed study of different dashboards and pine script for several hours
hope you like this.
Rets High/Low (2.0 Special Uncensored Edition)This script can be used as a visual aid in seeing the last highs and lows of price in a specific time period. It automatically updates the plots if new highs or lows are made within the given lookback period.
This is a fairly basic version currently, with new added features coming in future updates such as range between high/low and half and whole number detection.
MTF High LowThis is a Multi-Time Frame High Low Indicator that plots the highest and lowest price levels of the chart timeframe and a user selected higher timeframe.
The length can be optimized by the user from settings (default value is 6 candles) and table position can also be adjusted.
The calculation does not takes into account the last candle price data to form a view using the current close price as described below:
If Close > mid value of High + Low, view is Bullish
If Close < mid value of High + Low, view is Bearish
The above is also calculated for the higher timeframe and view for both timeframe is updated in the chart.
The color coding is dynamic based upon the current close price levels and comparisons with High, Low and Mid values.
The mid values level plot is hidden by default and can be enabled and saved as default if the user likes so.
Wolf EMA & OHL & SIGNALSWolf EMA & OHL & SIGNALS
this indicator is mainly used for fast trading techniques (scalping). provides various tools for comprehensive trend analysis.
5 EMAs are used to have possible market entry or exit signals.
EMA
Thanks to the combination of the EMAs of different timeframes,
you can immediately get an idea of the resistances or supports
of the higher timeframes.
HOL
Lines are drawn on the right side indicating the maximum, minimum and opening
of the day, past day, week and past week respectively.
These levels are excellent as price acceleration points.
SIGNALS
There are three types of signals that are monitored by this indicator:
- Shimano
This signal is generated if the price remains compressed between two EMAs, more precisely between the third and the fifth, at the point where the price breaks one of these EMAs there can be a strong price movement.
- Viagra
This signal is generated if the price remains below the second EMA for a long time without ever closing above / below, at the point where it closes by climbing over the EMA there may be a change in trend.
-Bud
This signal is generated if a positive candle is formed and subsequently at least two that close within the high and low of the positive candle. Where the price breaks through the high of the positive candle is a great entry point.
NYSE New Highs vs New LowsNYSE New Highs vs New Lows is a simple market breadth indicator that compares HIGN, the number of new highs during that day, and LOWN, the number of new lows. The new highs are on top and lows are appropriately on bottom. Without averaging, it's a little chaotic so you can smooth them out as much as you want, and the top-right label shows how much you're smoothing.
Interpretation:
Essentially, we use $SPY or $QQQ as a proxy for what's going on in the market, but because the FAANG stocks are so heavily weighted, it's not always representative. If SPY is flat/down, but there are 200 new highs today, then one of the big boys is weighing down an otherwise very bullish market. It's like looking at one of those heatmap charts, but in a single number.
Bullish Trend
- Lots of new highs
- Very few new lows
Bearish Trend
- Lots of new lows
- Very few new highs
Potential Reversal
- Too high, 250+
- Too low, 150+
High/Low/Open/Close Daily, Weekly, Monthly Line
I wrote this for the purpose of saving time while marking up charts by automating the process of drawing and labeling lines at areas of interest on larger
timeframes while still having the option to change the style and size of the lines and labels to adjust for any timeframe and avoid a messy chart.
I also used this as an exercise in menu organization giving users every imaginable option and producing clean readable code.
- This indicator draws a line on the Daily, Weekly, and Monthly bar at the High, Low, Open and Close of each bar as price
tends to react when revisiting these areas.
- Each set of bars has an optional identifying label with its own color set that can be shown with or without the lines
price value, and has drop down menus for size and style of each set of labels.
- Each set of lines has inputs for line/text color, line width and style, and can be hidden if the user doesn't have the need for any particular timeframe.
- Lines and Labels with delete when a new line is created.
- I recommend going into Chart Settings/Status Line and turning off indicator arguments OR moving the script to the top
of the indicator list to avoid an obstructed chart view with this indicators arguments. When Pine allows, I will update it to hide them.
Contains some public domain code from T.V. manuals and tutorial for creating drop down input menus for options.
/ ~For My Pal Jittery~
~ Who likes his clean chart and custom colors~
3D GATOR %HLThis indicator tracks the 3 day trading bots and measures the high and the low (%).
Usually a trend can change or continue every 3 days.
When volatility decreases and both values are the same gator is going to open its jaws so it's a good time to open a position long. Avoid shorts during low volatility.
On the other hand when volatility increases, and gator has its jaws wide open is a good time to look for shorts.
That's pretty much it.
This indicator was designed by me and created by Marketwatcher.
Scalping The Bull IndicatorName: Scalping The Bull Indicator
Category: Scalping, Trend Following, Mean Reversion.
Timeframe: 1M, 5M, 30M, 1D depending on the specific technique.
Technical Analysis: The indicator supports the operations of the trader named "Scalping The Bull" which uses price action and exponential moving averages.
Suggested usage: Altcoin showing strong trends for scalping and intra-day trades. Trigger points are used as entry and exit points and to be used to understand when a signal has more power.
It is possible to identify the following conformations:
Shimano: look at the price records of a consecutive series of closings between the EMA 60 and the EMA 223 when a certain threshold is reached. Use the trigger points as price structures to identify entry and exit zones (e.g. breakout of the yesterday high as for entry point) .
Bomb: look at the price registers a percentage variation in a single candle, greater than a threshold such as 2%, in particular on shorter timeframes and around the trigger points.
Viagra: look at there is a consecutive series of closes below the EMA 10.
Downward fake: look when, after a cross under (Death Cross), the price returns above the EMA 223 using the yesterday high as a trigger point.
Emergence: look at the EMA 60 is about to cross over the EMA 223.
Anti-crossing: look at, after an important price rise and a subsequent retracement, the EMA 60 is about to cross under the EMA 223 but a bullish impulse brings the price back above the EMAs.
For Sales: look at two types of situations: 1) when the price falls by more than 10% from the opening price and around the yesterday’s low or 2) when the price falls and then reaches, in the last 5 days, a bigger percentage and then breaks a trigger point.
Colour change: look at the opening price of the session - indicated as a trigger point.
Third touch of EMA 60: look for 3 touches below the EMA 60, and enter when there is a close above the EMA 60.
Third touch of EMA 223: look for 3 touches when there are 3 touches below the EMA 223, and enter when there is a close above the EMA 60.
Bud: look at price when it crosses upwards the average 10 and subsequently at least 2 "rest" candles are between the maximum and minimum of the breaking candle.
Fake on EMA 10: look for the open of a candle higher than the EMA 10, the minimum of the candle lower and the closing price returns above the EMA 10..
For Stop Loss and Profit Targets consider a proper R/R depending on Risk Management, using price structures such as the low of the entering candle and a quick Position Management moving quickly the Stop-Loss at Break-Even.
Configuration:
Market
EMA: The indicator automatically configure itself on market it knows (Binance, Piazza Affari and NASDAQ) otherwise it can be configured manually fo Crypto market (5/10/60/223) or Stock Market (5/10/50/200).
Additional Average: You can display an additional average, e.g. 20-period average.
Chart elements:
Session Separators: indicates the beginning of the current session (in blue)
Background: signals with the background in green an uptrend situation ( 60 > 223) and in red background a downtrend situation (60 < 223).
Trigger points:
Today's highs and lows: draw on the chart the opening price of the daily candle and the highs and lows of the day (high in purple, low in red and open in green)
Yesterday's highs and lows: draw on the chart the opening price of the daily candle, the highs and lows of the previous day (high in yellow, low in red).
Credits
Massimo : for refactoring and suggestions.
HTF Liquidity Levels█ OVERVIEW
The indicator introduces a new representation of the previous days, weeks, and months highs & lows ( DWM HL ) with a focus on untapped levels.
█ CONCEPTS
Untapped Levels
It is popularly known that the liquidity is located behind swing points or beyond higher time frames highs/lows (in a sense, an intraday swing point is a day high/low). These key areas are said "liquid" because of the accumulation of resting orders, mainly in the form of stop-loss orders. And this more significantly on higher time frames which have more time for stacking orders. As the result, the indicator aims to keep track of untapped levels that have their liquidity states intact.
Liquidity Pools
Once a liquidity level identified, or better, a cluster of liquidity levels work as magnets for the market. The price is more likely to make its way towards heavier pockets of liquidity, by proximity (the closest liquidity pool), and by difficulty (path with less obstacles). This phenomenon is referred as liquidity run, raid, purge, grab, hunt, sweep, you name it. Consequently, the indicator can help you frame a directional bias during your trading session.
█ NOTES
Drawings
Once a level is tapped, it is highlighted. At the end of each day, all tapped levels are cleared.
4C Daily Levels Suite + Premarket High/LowThis '4C Daily Levels Suite + Premarket High/Low' indicator is a clean way to automatically plot important daily levels including:
Prior Day High
Prior Day Low
Prior Day Close
50% level between Prior High/Low
Today's Open
Today's Premarket Low+High
This Daily Levels indicator is unique in its ability to:
-Plot all of the daily level PLUS premarket high/low levels (extended hours must be turned ON)
-Can hide past days levels, only plotting levels on the current day, to keep chart cleaner
-Can extend line levels right or fullscreen
-Plots the level price at each level on the chart
-Can show/hide price levels labels
-Can add supplemental premarket levels plot to show levels being formed during the premarket time period
-Coded with line.new vs plot so dashed lines are available as a style
-Automatically hides the indicator if the timeframe selected is Daily or greater
SEE SCREENSHOT EXAMPLES BELOW
Default mode, with extended hours showing:
With supplemental premarket plot showing:
Default mode without extended hours showing:
Showing past day’s levels
Extend lines to fullscreen
Some parts of this code were adapted from 'pd Levels' by CryptoCurl
HLC True Strength Indicator (with Vix)HLC True Strength Indicator Volume Weighted with Vix Line by SpreadEagle71
This indicator is a True Strength Indicator with Close, High and Low used together, along with the TSI of the Vix.
The white line is the close. The red line is the lows and the blue is the highs. These are also volume-weighted.
How to Interpret:
1. zero line crosses. If SPY/SPX500 crosses the zero line, then its bullish. If the purple Vix line crosses up, watch out because this is bearish.
2. white/blue/red lines cross purple (Vix). If they cross upwards, this is bullish. If downward, this is bearish. Basically, SPX, ES1!, SPY or even DIA can be used. The security and the Vix should travel in opposite directions and cross the zero-line at the same time. But this is not always the case.
3. Black area infills. These are used between the close and the highs (blue) and the lows(red). Close should not be between these in order to have momentum.
4. Close (white line) leads. Close is the last price so it tends to show where the others (highs and lows) are going. If the close is sagging below a high where the blue lines are on top, this could mean that there is a reversal coming. Same holds true for a white line above a "valley" formed by the blue and red lines; it could mean a reversal to the upside soon.
5. The Black Infill areas as a squeeze or contraction/expansion area. The thinner the black infill areas, the more of a momentum "squeeze" could be present. Wide black infill areas mean increased volatility and what may come next is a reversion to the mean for volatility. See TTM Squeeze Indicator or the Squeeze Momentum Indicator (kudos LazyBear).
Lastly, just remember indicators indicate; they are not magic. :)
SpreadEagle71
ORB-PreDay_PerM_LevelsThis script provides following levels:
1. ORB Level - You can adjust the timeframe of Opening Range (plots from 9am to 4pm)
2. ORB Fib Extension - 1.618 and 2.618 Fibonacci Extension of ORB High and Low (plots from 9am to 4pm)
3. Previous Day High/Low/Close - You can adjust color/thickness of the lines (plots from two days ago so that you can clearly see the levels)
4. Previous Two Days High/Low (plots from two days ago so that you can clearly see the levels)
5. Pre-Market High/Low (plots from 6:30am to 11am)
All in one indicator gives much better clarity of where current instrument is trading in relation to ORB, Previous Day Levels and Previous Two Days Levels along with Pre Market Levels.
You could combine these levels with your favorite EMA or EMA Cloud to create a trading system.
You could combine these levels with MA Cloud and ATR vs DTR script to gauge the move.
Look at the TWTR Chart today and see how these levels are respected.
[TTI] All-time-high (ATH), (ATL), 52 week high and low Dots––––History & Credit
I wanted to show our community the idea that stocks that make All Time High are likely to continue making ATHs for some time. It goes contrary to the idea "buy cheap sell high". Actually, in the real market leaders the stocks that make 100+% return are just getting started on returns to few THOUSAND percent. I have used code from QuantNovad scrip in this one too. So thanks to him as well, since it speeded writing it from scratch!
–––––What it does
The script paints dots and shows stats.
The dots are 4 types:
🟢 = Every time a new ATH is achieved, a green dot paints above the bar
🟣 = Every time a new 52week High is achieved, a purple dot paints above the bar
🟡 = Every time a new ATL is achieved, a yellow dot paints below the bar
🟠 = Every time a new 52week Low is achieved, a orange dot paints below the bar
Stats =
Show in a box in the bottom right corner of the screen. How many times has this stock achieved:
👉 ATHs
👉 52WK High
👉 ATLs
👉 52WK LOW
–––––How to use it
This is really an illustrative script to get the idea of the methodology "buy high sell higher', that we teach as momentum traders.
Some notable examples to check are:
HOOD
MSFT
TSLA
AAPL
See the stock dynamics and understand that bottom fishing doesn't result in stocks making massive moves.
Hi-Lo Trend BarsI present to you a simple but useful indicator.
The basic logic is an indicator that tracks the high of the high bars in the specified range and the low of the low bars in the specified range.
I used two multipliers in order to go out of certain ranges and I tried to provide precision by subtracting this multiplier value from the lowest and highest values.
I set the steps of the multipliers to 0.01 so that it is easy to use on instruments that require finer tuning.
Because every instrument has its own dynamics. You should change the multiplier values according to the instrument dynamics.
For example, under Spot, these multiplier values work efficiently with a large multiplier such as 2.0. It is more efficient in the range of 0.1 - 0.2 in the stock market.
I hope your transactions will be of some use in directional evaluation.
Thanks.
Percentage Levels by TimeframePlots the positive and negative percentage levels from a selection of timeframes and sources for any ticker. You can use this within a pullback trading system. For example, if you historically look at the average pullback of large cap stocks and ETF's, you can use this indicator to plot the levels it could pullback to for an entry to go long. It can be used as potential targets when trading a ticker short. Another use for this is to backtest the set percentage targets using TradingView's bar replay feature to see how ETF's and large cap stocks have reacted at these levels. Note: This is intended to be used at timeframes equal to higher than the chart's as it may cause re-painting issues.
Currently percentage levels are statically set to 1, 3, 5, 10, 15, 20, 25, and 30% levels above and below the chosen source (open, high, low, close). You can also display the data based on timeframes from Daily (1D) all the way up to Yearly (12M)
*Not financial advice but in my opinion the current percentage levels set (see above) are best used for ETF's and Large Cap Stocks.
Jan 2
Release Notes: Added the ability to select the historical bars to look back when plotting levels
Jan 2
Release Notes: To get a better display or proper resolution on your charts, change the view settings to "Scale Price Chart Only"
Jan 2
Release Notes: To add % labels for this indicator on the price axis, change your chart settings to include "Indicator Name Label" & "Indicator Last Value". You can find this under the Label section after hitting the gear icon in the bottom right of your chart.
Jan 2
Release Notes: Added: Custom Line Plot Extension Settings. Ideally both values should be equal to display optimal extended lines. To return to a base setting: '1' = Historical Lookback & '0' = Offset Lines. Also note this is dependent on the timeframe you are viewing on the chart.
Jan 2
Release Notes: Removed indicator from example chart that was not needed.
Jan 2
Release Notes: Updated some comments in the Pine Script
Jan 2
Release Notes: Update: Added commentary and instructions in the indicator settings to address recommended line plot settings for Stocks/ETF's vs Futures
Jan 2
Release Notes: Changed title from "Calculation Method" to "Calculation Source"
Jan 4 2021
Normal use of security() dictates that it only be used at timeframes equal to or higher than the chart's as it may cause re-painting
K's Volatility BandsVolatility bands come in all shapes and forms contrary to what is believed. Bollinger bands remain the principal indicator in the volatility bands family. K's Volatility bands is an attempt at optimizing the original bands. Below is the method of calculation:
* We must first start by calculating a rolling measure based on the average between the highest high and the lowest low in the last specified lookback window. This will give us a type of moving average that tracks the market price. The specificity here is that when the market does not make higher highs nor lower lows, the line will be flat. A flat line can also be thought of as a magnet of the price as the ranging property could hint to a further sideways movement.
* The K’s volatility bands assume the worst with volatility and thus will take the maximum volatility for a given lookback period. Unlike the Bollinger bands which will take the latest volatility calculation every single step of time, K’s volatility bands will suppose that we must be protected by the maximum of volatility for that period which will give us from time to time stable support and resistance levels.
Therefore, the difference between the Bollinger bands and K's volatility bands are as follows:
* Bollinger Bands' formula calculates a simple moving average on the closing prices while K's volatility bands' formula calculates the average of the highest highs and the lowest lows.
* Bollinger Bands' formula calculates a simple standard deviation on the closing prices while K's volatility bands' formula calculates the highest standard deviation for the lookback period.
Applying the bands is similar to applying any other volatility bands. We can list the typical strategies below:
* The range play strategy : This is the usual reversal strategy where we buy whenever the price hits the lower band and sell short whenever it hits the upper band.
* The band re-entry strategy : This strategy awaits the confirmation that the price has recognized the band and has shaped a reaction around it and has reintegrated the whole envelope. It may be slightly lagging in nature but it may filter out bad trades.
* Following the trend strategy : This is a controversial strategy that is the opposite of the first one. It assumes that whenever the upper band is surpassed, a buy signal is generated and whenever the lower band is broken, a sell signal is generated.
* Combination with other indicators : The bands can be combined with other technical indicators such as the RSI in order to have more confirmation. This is however no guarantee that the signals will improve in quality.
* Specific strategy on K’s volatility bands : This one is similar to the first range play strategy but it adds the extra filter where the trade has a higher conviction if the median line is flat. The reason for this is that a flat line means that no higher highs nor lower lows have been made and therefore, we may be in a sideways market which is a fertile ground for mean-reversion strategies.