Volume-Weighted Closing Range (TG Fork)Volume-weighted closing range of each bar. Closing range is (high - close) relative to the length of the wick (high - low). A close at the top of the wick would be 100%, middle 50%, bottom 0%. This is then multiplied by volume to weight towards high volume bars.
A moving average is applied to visualize trend in volume-weighted closing range over time.
Options include changing the threshold of bullish closes. The default is 50%, but you can view a close above 40% as a bullish .
How to use:
Columns indicate per-bar closing range, and can be used as either a buying-selling pressure indicator, or as an overreaction detector (eg, bars that are abnormally big can be used to start a fading/contrarian trade next bars). Green means the bar closed in the upper range, red in the lower range.
The cloud is the moving average over several bars (by default using EMA). This tends to represent sentiment over a period of time, and hence trend/momentum. Can be used in any timescale, even on weekly, then this represents the market cycles.
If you like this indicator, please show the original author your appreciation:
Cerca negli script per "range"
30 Second Futures Session Open RangeThis indicator displays 30 second opening ranges from Globex, Europe, and RTH sessions.
From the RTH session range, it also displays infinitely generating Price Targets based on a % of the opening range size.
I am retrieving the 30 second data using the new "request.security_lower_tf()" function.
The importance of these levels is based on the idea that when the market opens, algorithms establish their positions within the first 30 seconds.
These areas can also be seen as potential areas of support and resistance throughout the sessions.
Enjoy!
True Range Adjusted Exponential Moving Average [CC]The True Range Adjusted Exponential Moving Average was created by Vitali Apirine (Stocks and Commodities Jan 2023 pgs 22-27) and this is the latest indicator in his EMA variation series. He has been tweaking the traditional EMA formula using various methods and this indicator of course uses the True Range indicator. The way that this indicator works is that it uses a stochastic of the True Range vs its highest and lowest values over a fixed length to create a multiple which increases as the True Range rises to its highest level and decreases as the True Range falls. This in turn will adjust the Ema to rise or fall depending on the underlying True Range. As with all of my indicators, I have color coded it to turn green when it detects a buy signal or turn red when it detects a sell signal. Darker colors mean it is a very strong signal and let me know if you find any settings that work well overall vs the default settings.
Let me know if you would like me to publish any other scripts that you recommend!
TNTThis script just changes the background of the chart to show Trending(Green) / Range Bound(Red) Regions.
The concept is very simple, al each candle we look at the size of the candle and use a moving average of these candle body size (ABS (close-open)) and compare it agains a double smoothened average, i.e. moving average of this average to find trending or not trending periods.
I find it useful primarily for entry in options, a green background is more favourable for option buying and a red background is more favourable for option selling.
This script tells you nothing about the direction of trade.
ka66: Candle Range IndicatorVisually shows the Body Range (open to close) and Candle Range (high to low).
Semi-transparent overlapping area is the full Candle Range, and fully-opaque smaller area is the Body Range. For aesthetics and visual consistency, Candle Range follows the direction of the Body Range, even though technically it's always positive (high - low).
The different plots for each range type also means the UI will allow deselecting one or the other as needed. For example, some strategies may care only about the Body Range, rather than the entire Candle Range, so the latter can be hidden to reduce noise.
Threshold horizontal lines are plotted, so the trader can modify these high and low levels as needed through the user interface. These need to be configured to match the instrument's price range levels for the timeframe. The defaults are pretty arbitrary for +/- 0.0080 (80 pips in a 4-decimal place forex pair). Where a range reaches or exceeds a threshold, it's visually marked as well with a shape at the Body or Candle peak, to assist with quicker visual potential setup scanning, for example, to anticipate a following reversal or continuation.
Normalised Dynamic RangeNormalised Dynamic Range is an indicator that identifies when an asset is going to trend. It uses the concept of Dynamic Range.
The indicator takes 3 look back periods (Default: 45, 30, 15) and calculates the dynamic range as follows:
Dynamic Range (DR) = Maximum(Close, Look back Period) / Minimum (Close, Look back Period)
This gives the Dynamic Range for a given look back period. Similarly 3 different DRs are calculated for 3 look back periods (Long, Mid and Short). These DRs are averaged to get Average Dynamic Range (ADR)
ADR = (Long DR + Mid DR + Short DR) / 3
Since, the short look back candles are also considered in the Mid and Long look backs, the average is weighted more towards the closer candles.
This ADR, is now normalised over a relative look back period (Default: 10) to generate Normalised Dynamic Range (NDR). The formula for normalising is as follows:
Normalised Dynamic Range (NDR) = ((Current ADR - Minimum(ADR, relative look back) / (Maximum(ADR, relative look back) - Minimum(ADR, relative look back)) * 100
How To Read
When NDR is below 20, the asset is getting into range bound
When NDR is above 20, the asset is trending
Caution
NDR only signals if an asset is trending or not. It does not give the direction of the trend.
Stochastic ChannelsDonchain trend following system with overbought/ oversold areas inspired by stochastic. Multiplier to get non repainting HTF capability. features a smoothed price as well as moving average of the smoothed price, also inspired by the stochastic indicators %K and %D. This and slow stochastics compliment each other nicely.
%D line colored by direction.
Filled color areas represent overbought/oversold.
Shows breakouts as well as giving targets and entries in rangebound markets.
Fear Of Missing Out grid of forex tradingAbstract
This script finds potential safe grids placing limit orders without fear of missing out.
This script computes grids according to power of 1.0025 .
You can reference those price levels for your trading.
Introduction
Grid trading is a popular trading method.
Traders plan several price levels as grids and repeat buying at lower grids and selling at higher grids.
Grids can be round number like multiple of 100 pips.
Grids can also be support and resistance according to price history.
Some traders may think they need to adjust grids to trade.
However, there are several problems in choosing grids.
One problem is rate of change is related and therefore exponential. 20 to 30 is different from 30 to 40.
Another interesting point is there are some special impressing reversal price levels.
Several months ago, I had a question why usdjpy bounced near 108.3 .
After using a calculator, I found that 108.3 = 100 * 1.083 ≒ 100 * pow(1.0025,31) .
1.0025 , as known as 0.25% of change, is a potential stop out zone.
Therefore, we can compute grids and one grid is a little more than 1.0025 times than an another one.
After we finished computing grids, we can consider buy and sell near those grids.
Note that different traders may obtain different grid values.
For example, from 1.0 to 2.0 , it can be splited as 270 grids or 277 grids because pow(1.0025,277)<2 .
Those grids cannot always imply potential reversal points but they can be useful for traders looking for 0.25% profit targets with reducing fearing of buying or selling too early.
Computing grids
This script split from 1.0 to 10.0 into three segments.
One is 1.0 to 2.0 .
The second segment is from 2.0 to 5.0 .
The third segment is from 5.0 to 10.0 .
This script does the same thing for 0.1 to 1.0 , 10.0 to 100.0 , and so on.
For 1.0 to 2.0 and 5.0 to 10.0 , this script split a segment as 270 grids.
For 2.0 to 5.0 , this script split a segment as 360 grids.
The last step is display the next grids to the daily low and daily high.
Maybe also display the grids behind grids shown.
Parameters
x1,x2,x3,x4 : display the next x1,x2,x3,x4 grids to daily high and daily low. 1 means the next grid to daily high and daily low. 2 means the next grid to 1.
x_seg : default 2.0 . This script split from 1.0 to 10.0 into three segments. One is 1.0 to x_seg. The second segment is from x_seg to 10.0/x_seg . The third segment is from 10.0/x_seg to 10.0 .
x_grid1 : how many grids in the first segment
x_grid2 : how many grids in the second segment
x_lowprice : add this number for bigger grid distance. Generally, you don't need this number when trading forex but you may need it in stock trading. For stocks with price between 50 to 100, I recommend you use x_lowprice=100.
Conclusion and suggestions
This script can find potential grids for trading.
If price touches grids usually, we can consider buy and sell after price touches grids.
If price reverses before touching grids usually, we may consider buy and sell before price touches grids.
Those grids can remind us don't buy too much unless the price touches the next grid.
For instruments with less volatility, maybe we need more grids.
For traders with more money, they may also consider more grids for more dedicated range trading to collect more profit.
Reference
Sorry, I forgot them.
Central Pivot Range 2xBased on a modified Hancock Pivot Range.
Displays the Central Pivot Range for 2 customisable Timeframes Along with Targets which are based on Classic Pivot Point Extensions.
The Pivot Point Extensions are Extended to the right of the price chart which helps eliminate unnecessary clutter
TF1 Displays Right Extensions R3 to S3 + the pivot point
TF2 Displays only Right Extensions R2 to S2
I would have liked to have provided more Right Extensions plus Labels however that would have exceeded Tradingviews memory limits, having said that R3 to S3 for both timeframes can still be displayed as historical levels
Central Pivot Range High Low and Mid Levels + the Targets work great as Support and Resistance and help with analysing the trend
A Thick Central Pivot Range generally indicates consolidation whereas a Thin Central Pivot Range generally indicates a trending market
vol_rangesThis script shows three measures of volatility:
historical (hv): realized volatility of the recent past
median (mv): a long run average of realized volatility
implied (iv): a user-defined volatility
Historical and median volatility are based on the EWMA, rather than standard deviation, method of calculating volatility. Since Tradingview's built in ema function uses a window, the "window" parameter determines how much historical data is used to calculate these volatility measures. E.g. 30 on a daily chart means the previous 30 days.
The plots above and below historical candles show past projections based on these measures. The "periods to expiration" dictates how far the projection extends. At 30 periods to expiration (default), the plot will indicate the one standard deviation range from 30 periods ago. This is calculated by multiplying the volatility measure by the square root of time. For example, if the historical volatility (hv) was 20% and the window is 30, then the plot is drawn over: close * 1.2 * sqrt(30/252).
At the most recent candle, this same calculation is simply drawn as a line projecting into the future.
This script is intended to be used with a particular options contract in mind. For example, if the option expires in 15 days and has an implied volatility of 25%, choose 15 for the window and 25 for the implied volatility options. The ranges drawn will reflect the two standard deviation range both in the future (lines) and at any point in the past (plots) for HV (blue), MV (red), and IV (grey).
LKK - Extended Range Candles GapOANDA:EURUSD
The indicator will highlight the Extended Range Candles (ERC) price gap.
Extended Range is the price excessively moving in one direction, it can be one or more candles.
ERC Gap is the range of price that doesn’t have any resistant.
To classified as ERC I use the range (highest price minus lowest price) of the candle before the ERC and divide with ERC range. If result less than given percentage (ERC %) then confirm it is ERC.
RedK_9/30 Trader_v1: aka The MusicianThis is my implementation of a simple trading system inspired by the 9/30 trading strategy, which i came across few years ago. i hope some traders are still using it :)
(please google "9/30 trading strategy" if you're not sure what it is)
- the improvements i added focus on: faster (long/short) signals, discovery of best entry "zone", ride the trend
- no exit option, trader can use a pre-set target, a trailing stop, or any other mechanisms
- i tried to explain some of the definitions and rules on the below chart
- in spite if its simplicity, the 9/30 has a lot to offer - different traders will also use it differently and add their own "do's and don't's"
default settings should be adjusted to suit timeframe, type of trader and what is being traded (Stocks, FOREX,..etc) - the concept itself is very flexible and well-tested for mechanical trading.
code-named "The Musician" due to the 5-line plot :)
i will continue to improve this work whenever i find time - i liked it a lot.. (please tag the idea to receive the updates)
Extras and improvements (compared to the classic 9/30 concept)
---------------------------------------------------------------------------------
* signal line is a smoothed zero-lag WMA of a shorter length (responds faster to trend change = faster signal)
* instead of a single longer MA line, we utilize an "average range" -based channel (not ATR, but provides the same concept) to provide the ideal "entry zones" in both directions - an adjustable multiplier is included in the settings to adjust the channel width
* adds an optional long EMA as additional filter (take longs only above, take shorts only below)
* clearer visualization
What's next:
==============
* clean-up code
* add signals (arrow-up & arrow-dn) for entry and for exit
* tri-color signal line (green on long, red on short, gray on no trade)
* other options for the channel (ATR-based, DC center-line..etc)
* other MA-type options for the Filter MA (SMA, WMA ?)
* maybe: convert to strategy and back-test
Please feel free to explore and test - Comments and feedback are welcome.
Good Luck!
Volume using Candle RangeAnother way of finding out a rough estimate of the volume or how much bulls or bears were in control using only the range of the candlesticks in relation to the closing price. If the close is in the higher range zone then the volume is said to have been positive, if the close is in the lower range zone then the volume is said to have been negative. The close is compared to the midpoint of the candle to see how far from the midpoint the close was.
The columns bars show how far each candlestick's close price is to the midpoint of its high and low. It's possible for the column bar to be a different color than the candlestick itself if the close was above or below the midpoint. An average line is shown that takes the average of a given length amount of column bars. There is an option to show the absolute value only of the columns and the average line.
This is based on an idea I found about candlestick range bars implying volume. This is an attempt to put that theory into practice and to see if there's any truth to it. It's not exactly volume and may not always look like it, and it does not show how many trades took place but instead tries to use price in relation to the high and low range.
PnD [Intromoto]This scripts forms a range based on time, then looks for the levels of premium (the difference between spot and perpetual price) and plots a signal depending on breakout or breakout.
The indicator only works properly on Binance perpetual futures charts. If you're not on a Binance perp chart, the metrics will default to a Biannce:BTCUSDT vs Binance:BTCUSDTPERP premium comparison.
This indicator automatically calls the appropriate spot vs future comparison. i.e if you're on the Binance:MATICUSDTPERP chart it knows to check the Binance:MATICUSDT chart for contrast.
"Super Pumps" are range breakouts with extreme levels of backwardation - set in user inputs
"Pumps" are range breakouts with less extreme backwardation - no user input
"Push" occurs where there are irregularities in the premium vs price sequence, indicating a potential bottom
"Pull" occurs where there are irregularities in the premium vs price sequence, indicating a potential top
"Dumps" are range breakdowns with extreme levels of premium - set in user inputs by %, indicating a potential top
Users can set the base range period, i.e the duration (length) of the range, as well as the range height, established by the first candle of the new range.
User inputs a resolution of candle close required to trigger the signal. i.e "15" would mean price needs to close a 15 minute candle outside of the established range for the signal to appear.
Example: Base period 240, Range Period 15. This would create an invisible range every 4 hours from its first fifteen minute candle. Any price closing (based on resolution in the inputs) would alert a breakout or breakdown.
DM for access.
Thanks
Predictive Period Risk RangeThis script produces a band range that uses a stochastic volatility process to come up with maximum and minimum price ranges over the specified period (using the length variable).
The sample used to predict volatility can be modified using the VolLength parameter, and the extremes can be modified using the VolInflator parameter.
For example, a VolLength of 30 uses the prior thirty days to predict volatility , but that volatility prediction is then adjusted to the period of Length and still only applied to that range
Please PM me for a free trial and for pricing
Consolidation ZonesConsolidation is the term for a stock or security that is neither continuing nor reversing a larger price trend. Consolidated stocks typically trade within limited price ranges and offer relatively few trading opportunities until another pattern emerges .Identifying consolidating stocks involves looking for those that have steady support and resistance levels, trade in a narrow range, and have low trading volumes.Trading on narrowly consolidated stocks can happen but there is often less room for profit due to the small range.Once a consolidation zones appears , keep an eye out for any possible breakouts above or below the upper and lower trading range bounds. These breakouts can be accompanied by large increases in volume and lead to large gains or losses in a short period of time, especially if the stock has been in consolidation for a longer stretch of time.
cATRpillerThis indicator is used to identify range breakouts using an ATR multiplier. My first script, Im sure there are indies out there like this, but this my favorite way to identify breakouts and trends.
Complete Pivot RangesI forgot what book I read this from. But basically a successful trader would create a range using the open/high/low/close of the previous day, and the high/low of the previous day.
I created the indicator from the book, but also added a few other pivots to it. You can hide the ones you don't need in settings.
He also mentioned that the resistance of this area is a lot like a samurai and armour, and that if price falls through the pivot, it will fall faster. Just like a sword that penetrates armour will go straight through your body.
Green = half day pivot. :: I've noticed price can be rejected from these areas against the trend during the day
Blue = daily pivot. :: My favourite. You can see how the trend is going by checking how it steps. There is good value in putting orders on in this range, especially when price is touching a 50 ema on the 15 min chart.
Red = 5 day rolling pivot :: collects the open/high/low/close of the last 5 days and makes a daily range with them. Best used with 50ema on the hour chart. The book used a 3 day rolling pivot but I find this more useful.
Yellow = 5 week rolling pivot :: like the red rolling pivot above but using the last 5 weeks. Best on 4 hour chart.
As with all indicators see if it can give you value and if it's right for your trading.
Cheers
All past LevelsContains all past levels that we need
1. Previous Monthly High
2. Previous Monthly Low
3. Previous Weekly High
4. Previous Weekly Low
5. Previous Daily High
6. Previous Daily Low
7. Previous Monthly Range Average (PMH+PML)/2
8. Previous WeeklyRange Average (PWH+PWL)/2
9. Previous Daily Range Average (PDH+PDL)/2
10. Monthly Open
11. Weekly Open
12. Daily Open
VPTbollfib & Camarilla (Danarilla)I do not own the original indicators. This is just a combination of the two because of their nature to work in a similar way.
Camarilla Pivots run on the basis of intraday range trading. Usually after daily open you look the fade whatever move happened before. by shorting R3/H3 levels or longing R3/L3. Targeting the other side of the range. This is the infamous PivotBoss level calculations and you would want to activate camarilla and turn off the normal pivots. They use the previous days volatility to plot the next days levels.
But what about some confirmation?
Well RafaelIzoni (who made it open source for improvement) threw together this VPTbollfib. It is volume price trend crossing down a fib line using bollinger bands as price envelope. The beauty of this is that It will signal usually counter to current price action based on selling into uptrends or vise versa. Meaning you get signals to counter price. Which is what you might be looking for on range day trade scalps for camarilla. A wick reversal or engulfing + volume based signal is a very happy pairing together. And those signals are usually suitable for the target of the range you are day trading. Hourly time frame works quite well for both. And camarilla should also be on daily settings.
Special Thanks to Nanda (who published the pivotboss indicator AND) Helped to merge the scripts together.
This indicator alone is an entire trade system. Camarilla already is. If you know the rules. it can be used for entries, exits, risk management to trade the range on TREND, COUNTER TREND, and BREAKOUT plays. The bollinger band fibs add confirmation to the trends levels. And the VPT adds a secondary confirmation to take a camarilla trade.
Try it out. I think you will find both the levels on camarilla and the VPT signals quite suprising.
LTP - Buddy Carter Expected Range
Expected Price Ranges based on Buddy Carter:
"Many years ago after reading a Paul Tudor Jones Risk Manual -- I created an "expected range" calculation to suit my circumstances -- it worked exceptionally well -- the simple equation is:
[ ]"
Reversal finderThis script is used to visually highlight candles which may signal a reversal following a false break of a support or resistance level.
Inputs are:
Lookback period: look for the highest high and the lowest low of the prior x bars.
SMA length: used for a simple moving average of the range (high minus low) of the prior x bars.
Range multiple: used to filter out signals for any bars with a range smaller than the average range of the preceding bars (determined by SMA length above) e.g. a range multiple of 2 will only show signals for bars with a range twice of that of the average range of the preceding bars.
Range threshold: used to filter signals for bars both the open and close of the bar are at the extreme end of the bar e.g. a threshold setting of 33% will only show buy signals for bars which open and close within the upper 1/3rd of the bar’s high/low range (vice versa for sell signals). This helps highlight, for example, bars with a high which exceeds resistance in a current range but which close back inside the range.
Highlight signal bars?: This will highlight bars with a buy signal in green, sell signal bars in red, and all other bars in grey. The script was designed for use with a dark background, so you will need to play around with the bar colours in the style settings to suit your preferences.
Settings used in the example chart are not the default – they are lookback: 5, SMA length: 20, range multiple: 1.2, range threshold: 33%.
Enjoy!
LOSS2PROFIT_MARKET_ZONE//Version4
Best For Range Trader...
Combination of decision Point and Pivot Point And CPR...
Market Zone consist of
TMZ = Top Market Zone
CMZ = Center Market Zone
BMZ = Bottom MArket Zone
You can choose option of daily /weekly/monthly/yearly...
Historical data Control...
Easy Way to Analyse Market Zone to apply breakout and pullback entry..
Easy to capture Trending and Non-Trending Market..