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!
Opening Range & Daily and Weekly PivotsThis script is for a combination of two indicators: an Opening Range Breakout (ORB) indicator and a daily/weekly high/low pivot indicator. The ORB indicator displays the opening range (the high and low of the first X minutes of the trading day, where X is a user-defined parameter) as two lines on the chart. If the price closes above the ORB high, the script triggers an alert with the message "Price has broken above the opening range." Similarly, if the price closes below the ORB low, the script triggers an alert with the message "Price has broken below the opening range."
The daily/weekly high/low pivot indicator plots the previous day's high and low as well as the previous week's high and low. If the current price closes above yesterday's high or last week's high, the script triggers an alert with the messages "We are now trading higher than the previous daily high" and "We are now trading higher than the last week high", respectively. If the current price closes below yesterday's low or last week's low, the script triggers an alert with the messages "We are now trading lower than the previous daily low" and "We are now trading lower than the last week low", respectively.
In addition to the visual representation on the chart, the script also triggers alerts when the price crosses any of these levels. These alerts are intended to help traders make decisions about entering or exiting trades based on the price action relative to key levels of support and resistance.
Confined Range Candle FinderThis indicator finds candlesticks which are confined within the range of a previous candlestick. This indicates volatility contraction which often leads to volatility expansion, i.e. large price movements.
While every confined range will contain at least 1 inside bar, this indicator differs from the Inside Bar Finder which only finds consecutive inside bars.
This indicator includes options such as:
- The minimum number of candlesticks confined within the range of a previous candlestick to trigger the indicator
- Labels to indicate the number of confined candles
- Signal lines to indicate the high and low of the containing candlestick
Try out this indicator with different options on different timeframes to see if confined ranges increase the probability of identifying the direction of price movements. Breaks or closes outside signal lines can be used to trigger trade signals.
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.
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).
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!
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
PEC Range (Prefer on 1D chart)Price Expansion and Contraction is basic calculation of Candles High-Low and it is average of previous 5 High-Low. Which will help to analyse volatility of running situation. This can be used for analysis purpose only not as buy/sell signals.
How to use this?
Ranges of candles may increase on lower value of PEC.
Ranges of candles may decrease on high of PEC.
This is not ATR of 5 period.
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
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:
[ ]"
LTP - Risk Ranges
This indicator shows volume and volatility adjusted risk ranges for the price.
Based on the previous volume in upside (downside) movements and the volatility of these upside (downside) movements a plausible range to the upside (downside) is calculated and drawn.
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..
MARKET_ZONEFor Intraday Trader... Classical Decision_point and CPR Combination...
Market Zone
TMZ = Top market zone
CMZ = center market zone
BMZ = Bottom Market zone
TMZ consist of pdh and r1
CMZ consist of pc and cpr
BMZ consist of pl and s1
useful for determination of trending market and range market...
Filthy REPAINTING of McNasty Profits*** THIS SCRIPT REPAINTS ***
Looking at the history will go you NO IDEA as to actual performance, or alerts that triggered within each bar. I made all of the alerts repaint in order to allow an alert each minute a condition is met, and never again after.
For instance; receive an alert each time the price is within a particular plotted area on the chart (as defined by settings). This could not be accomplished without repainting.
In order to receive a notification of the price crossing a particular line, YOU NEED TO SET ALERTS TO "ONCE PER MINUTE."
This way, if you use an alert to enter a position and then get stopped out, you can re-enter on the next alert if the price moves in the original direction again within the same bar.
Also, I made this script so that each entry has an available Stop Loss alert that will get you out of a position going in the wrong direction (and option to enter in opposite direction). You set the parameters within the settings.
Although each position has a tight Stop Loss available via Alert, I also recommend using a similar tight Stop Loss directly on your exchange in case an error occurs anywhere within the chain.
This script HAS A LOT OF OPTIONS for how you can use it, from very conservative to extremely aggressive. There are NINE customizable alerts for the user to decide how/when to use, or ignore entirely.
When the Alerts are set to "ONCE PER MINUTE" you will get an alert each time the price crosses the corresponding area on the chart, but the characters only remain on the charts history if the alert was still firing (Once Per Minute) when the bar closed. This is why the Alerts on the chart's history are completely irrelevant.
As you can imagine, this is a LOT OF ALERTS. Consequently, this is meant for use with "bot trading" using the Alerts to automatically Open and Close positions.
I am using it with 3Commas to make trades on Bybit.
At the time of publishing, this is "Invite Only." I need to test it out over a range of time, conditions, chart time frames, pairs, etc... before opening it to the public.






















